cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

mata_4341751
New Contributor

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

0 Likes
1 Solution
odissey1
Honored Contributor II

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
Honored Contributor II

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