Hi,
I am trying to get PORT B Pin 2 to detect a rising edge of a 16khz clock signal from another board.
Attached is my project.
All the initializations are done properly, but the ISR never gets triggered (i.e. the control never reaches the ISR)
Could you please check what could be the issue?
Regards,
Rashmitha
Thanks to Erich for the reminder, I found that the location of the relevant code was confusing, so I debugged it directly on the FRDM-K64F.
Found a problem:
GPIO_PortClearInterruptFlags(BOARD_PWM_SYCNH_TRG_PIN, 1U << BOARD_PWM_SYCNH_TRG_PIN);
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
without checking too much of your code:
- have you tried the the interrupts *without* that high frequency? Just enabling interrupts on that pin and try with a jumper/button?
- I see that in GPIOInit() you are not actually intializing the pin for interrupts (it as all commented out). Instead you are calling BOARD_InitPeripherals() which shall usually happen in main.
I recommend that you have a look at the pin logic levels (not sure what you have on your board there), with a logic analyzer or scope, just to verify the levels are indeed changing.
I hope this helps,
Erich