XMC1300 CCU4 Use for puls generation AND trigger for ADC

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Not applicable
Hi,
I would like to produce the following pulse sequence:

_|_|_|____|_|_|____|_|_|____...|_|_|____________________________|_|_|____|_|_|____

tp = 2µs
t1 = 50µs
t2 = 370µs
t3 = 2000µs

After each pulse the ADC should store several conversions in an array.


Thanks to AP32287, I was able to generate the pulses successfully.
Also the conversions I could make thanks to the AP32287.
http://www.infineon.com/dgdl/Infineon-CCU4-XMC1000_XMC4000-AP32287-AN-v01_01-EN.pdf?fileId=5546d4624...
Both together were not possible.
It failed, in my opinion, that I can not move any function into another slice.

What can I do?
Is my approach the right one?
Are there better solutions?

I would like to use the XMC library and not the DAVE apps.

I changed:

#define SYNC_SLICE CCU40_CC40 -> CCU40_CC41
#define SYNC_SLICE_NR (0U) -> (1U)

#define SLICE0_PTR CCU40_CC40 -> CCU40_CC41
#define SLICE0_NUMBER (0U) -> (1U)

Both times worked nothing more
0 Likes
0 Replies