2 series 32 bit timer - will it "event" at a 32 bit compare value? #732
Replies: 2 comments 3 replies
-
Does it have to be an all-hardware solution? Could the high order counter fire an "almost there" event which reconfigures the low order counter to fire "the event" a short time later? |
Beta Was this translation helpful? Give feedback.
-
Are you concerned that the last leg (handled solely by the low order counter) might be very small (zero even) thus causing the final event to be considerably delayed? How about a three event chain? |
Beta Was this translation helpful? Give feedback.
-
I have the ATtiny3227 in front of me and am looking at the datasheet about how to use both the TCBs chained together as a 32 bit counter. I am keen for fast responses, so I like the sound of this. However, from reading about the way it works, I'm not sure I can get an event to be generated at any arbitrary 32 bit number.
For example, it says to configure thus:
and the example is given:
But although the event system appears to be the glue holding two 16 bit timers together, there is no apparent way to respond quickly to the 32 bit compare value that you want, right? In fact, they only allow you to use an external event to copy the CNT values into the CCMP registers for you to read at your leisure?
Is there any way to trigger an event at an arbitrary 32 bit count without CCL?
Beta Was this translation helpful? Give feedback.
All reactions