Simple 100 ms Interrupt | Cypress Semiconductor
Simple 100 ms Interrupt
I would like to generate an interrupt every 100 ms in a CY8C3866. When I do this with a timer using the tc output pin, the ISR keeps firing about every 15 us or so for about 1 ms. It looks like the cause is that the tc pin stays high for about 1 ms after the unit reaches terminal count. How do I reset the count so the interrupt stops firing? Simple question I know. I'm new to PSoC. In a Microchip processor, I would just clear the interrupt and write a new value in the counter. But that does not work with this timer. Not sure what I'm doing wrong. I've read the datasheet for the timer several times and tried 3 or 4 ways of configuring and wiring the timer. Here's my current version of the ISR code:
/* `#START ISR_100ms_Interrupt` */
Thanks in advance!
/* `#END` */ An axample project with a simple 100 ms timer ISR would be great. If anyone knows where to find that on the Cypress website, please let me know. Otherwise, can someone point out what I'm doing wrong?