Cascading Counters

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

cross mob
Not applicable
Hi,

I think there is a way to cascade Counters, but could not figure it out.

I tried generating a us Timer just as in

http://www.infineonforums.com/threads/556-Periodic-microsecond-timer?highlight=microsecond

this works fine, but only gives a 16 bit Counter. It would be really nice to have a 32 bit Counter, without
spending an rollover Interrupt. If you install a second Counter app it is not possible to connect to the first Counters
rollover Signal ( not in Dave, maybe there is an other way ? )
0 Likes
2 Replies
elegantk
Employee
Employee
Use 2x instance of the CNT001 under the App Sharability - Existing App.

Assume CNT001/0 is the LSB
Assume CNT001/1 is the MSB

Set CNT001/0's Event Count match value to "65535".
Set CNT001/0's Signal connection - Status to CNT001/1's Input

*Select Start during initialization for both CNT001/0 and CNT001/1
0 Likes
Not applicable
Works fine.

Thanks.
0 Likes