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

cross mob
MichaelG
Employee
Employee
I want to count external edges and for this reason I need a 32Bit counter. But as I looked at the timer concatenation interface I only saw the following possibilitys.

• Timer Period match (CC4yPM)
• Timer Zero match (CC4yZM)
• Timer Compare match (CC4yCM)
• Timer counting direction function (CCupd)
• Timer load function (CCload)
• Timer capture function for CC4yC0V and CC4yC1V registers (CCcap0)
• Timer capture function for CC4yC2V and CC4yC3V registers (CCcap1)

I'm not sure if it is possible in one of those modes to count an overflow of the first register(16Bit). What is the way this could be done, is there any way?

bg,
Michael
0 Likes
2 Replies
Not applicable
take a look at this:

http://www.infineonforums.com/threads/1069-Cascading-Counters?highlight=counter

still it is not a 32bit Counter.
You will have two 16 bit Registers. those have to be copied to a 32 bit Register.
32bit Counting with one Register is not possible.
0 Likes
MichaelG
Employee
Employee
Thanks for the hint, it works.
0 Likes