The QuadDec can counter up to a certain value when interrupts

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

cross mob
mata_4341751
Level 1
Level 1

The QuadDec can count up to a certain value when interrupts?

0 Likes
1 Solution
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

mata,

Yo can set the counter to a certain value and then wait for interrupt when counter overflows. For example you need to count up to 32 using 8-bit QuadDec. Set the counter value to (256-32=224) and wait for the interrupt. Within the isr routine you would have to re-set the counter again.

/odissey1

View solution in original post

0 Likes
1 Reply
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

mata,

Yo can set the counter to a certain value and then wait for interrupt when counter overflows. For example you need to count up to 32 using 8-bit QuadDec. Set the counter value to (256-32=224) and wait for the interrupt. Within the isr routine you would have to re-set the counter again.

/odissey1

0 Likes