Environment: Using C5504/150MHz and CCS 3.3
1. Interrupt Delay
Description:With INT1 connected to GPIO from FPGA pin and enable/config INT1 as an interrupt pin. Whenever INT1 triggered, first line in the service routine is to set GPIO8 and reset it as last line in the ISR routine. Connecting both IOs (INT1 and GPIO8) to oscilloscope, there are about 750ns delay between INT1 pulse (falling edge) and GPIO8 pulse (rising edge). With a special test, all other interrupts are disabled. The result is same.
Question: my understanding is that there are only 3 CPU cycles are needed to confirm the interrupt and register it. CPU cycle is about 7ns with 150 Mhz system clock. Even make it 10 times slow, 30 CPU cycles, it shall be 210ns. How could the delay be 750ns long?
2. INT1 ISR Jitter (+/- 1us) with timer enabled
Description: With 1ms timer (Timer2) enabled, GPIO8 pulse shows +/- 1us jitter from above test. Even in timer ISR, do nothing and return. The jitter (1us) is always there. What could be a reason to cause this?
Please advice.
Thanks,
Howard