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

XMC™ Forum Discussions

Not applicable
Hi folks,

for a motor control application we would like to capture encoder increments with 32 bit.

Since the XMC4500 uses the POSIF connected with the CCU4 only 16 bit counter slices are available at first.

We have already thought about concatenating two counter slices but it seems that the counting direction has to fixed for concatenated timers (see XMC4500 user manual, page 22-47). Another option might be to count overflows of the 16 bit slice in software, with the downside of non-atomic access.

Is there a way to capture encoder increments with 32 bit?

Thanks,
Franz
0 Likes
2 Replies
User11185
Level 1
Level 1
I have the same problem as Franz.....Someone has help about this topic?
Thank you
Enzo
0 Likes
User8819
Level 4
Level 4
16 bit counters are enough. You have to extend it to 32 bit if you wish in your interrupt routine.
rum
0 Likes