XMC1300 CCU8 Timer concatenation

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

cross mob
Not applicable
Hi,

i'm new here and i have a problem with the CCU8 timer concatenation. I want to count pulses (with a Count Event) with a 32-Bit Counter, so i have to concatenate the first two slices of the ccu8.
The result was unexpected and i figured out, that everytime the first slice has a period match, the clk is gated to the second slice. I thought , that the second slice needs the same source to count, so i made a count event (same as first slice) for the second slice too.
Well, it works with a failure:

The second slice counts on period match, so the counting is incorrect

Slice0----Slice1-----32-Bit Value-----Value in decimal

FFFE -->0000-------0000FFFE------------65534
FFFF -->0001-------0001FFFF------------161071 (expected value 0000FFFF=65535)
0000 --->0001-------00010000-------------65536


It is interessting, that the CCU4 works fine with the concatenation (just the TCE bit , without changing anything). I initialized the CCU4 and the CCU8 with the same count event to compare the results. Although the initializing is the same, the ccu8 works different.
How can i fix this problem? I also tried another XMC1300 Board, but the results are the same.
I hope you can help me.
Thank you !
0 Likes
0 Replies