Jun 06, 2019
09:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 06, 2019
09:33 AM
Hello
I use 3 concatenated slices of CC40. I need to get the time stamps of 48bit counter periodically.
Of course I can read time value of each slices but if at this time one of the counters overflows i'll get a wrong timestamp.
Now i use timers in compare mode, if I'm not mistaken in capture mode i can to store at the moment time values of each timer(and then read this timestamp), but event connects to defined pin, and in my case i need to get timestamps via application.
Could you help me?
I use 3 concatenated slices of CC40. I need to get the time stamps of 48bit counter periodically.
Of course I can read time value of each slices but if at this time one of the counters overflows i'll get a wrong timestamp.
Now i use timers in compare mode, if I'm not mistaken in capture mode i can to store at the moment time values of each timer(and then read this timestamp), but event connects to defined pin, and in my case i need to get timestamps via application.
Could you help me?
1 Reply
Jun 11, 2019
05:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 11, 2019
05:07 AM
Hi,
You can use as input for the capture event the SCU_GSC4x signals that get activated by writing to SCU_GENRAL->CCUCON register or using XMC_SCU_SetCcuTriggerHigh()/XMC_SCU_SetCcuTriggerLow().
Regards,
Jesus
You can use as input for the capture event the SCU_GSC4x signals that get activated by writing to SCU_GENRAL->CCUCON register or using XMC_SCU_SetCcuTriggerHigh()/XMC_SCU_SetCcuTriggerLow().
Regards,
Jesus