problems with timer and gpio interrupts (project attached) | Cypress Semiconductor
problems with timer and gpio interrupts (project attached)
I'm trying to develop a system in which input data is decoded. The input waveform to be decoded is a spi byte from an external device with spi frequency of 100KHz this is connected to p1_3
The timer 16 is set to run at 1MHz with a period of 10, so that the terminal count occurs every 10us. P1_3 is set to generate an interrupt on every falling edge of the waveform
On the first falling edge the timer is started, on every subsequent falling edge the value newdip is updated. In the timer_isr, the program should check if there's been a gpio interrupt in the past 10us if not, the variable value is updated.
I tried running the program with only the gpio and only the timer16 and they work fine individually but I can't get them working together. I observed that only the gpio_isr is called not the timer_isr
Please can anyone help me? I've been stuck on this problem for a week now and still no solution. THANKS