Not applicable
Dec 15, 2016
02:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 15, 2016
02:47 AM
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
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
2 Replies
Feb 11, 2019
05:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 11, 2019
05:49 AM
I have the same problem as Franz.....Someone has help about this topic?
Thank you
Enzo
Thank you
Enzo
Feb 14, 2019
11:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 14, 2019
11:41 AM
16 bit counters are enough. You have to extend it to 32 bit if you wish in your interrupt routine.
rum
rum