I have a question for GPT Interrupt.
For this, I configured the GPT Interrupt like as below,
- used GPT : GPT2
- Interrupt Period : 100usec
- Interrupt Pin : MX25_PIN_GPIO_D
So I expected that the interrupt pin will be toggled with 100usec period.
But the result was strange based on ISR.
- with ISR : Abnormal Operation
- without ISR : Normal Operation
Could you tell me what's the problem?
For your more understanding, I'll attach the modified/added files.
: add GPT2 clock (survey "Eric" in the code)
: GPT Interrupt Test driver
: GPT ISR in the code
#if 1 // GPT Interrupt ISR - No.ISR = Normal / OK.ISR = Ab-normal
/* GPT ISR register */
- captured Wave
. Normal : Normal-Without_GPT_ISR.jpg
. Abnormal : Abnormal-With_GPT_ISR.jpg
Original Attachment has been moved to: clock.c.zip
Original Attachment has been moved to: mx25_gpt_interrupt_driver.c.zip