Hello, i'm trryng to configure lpc4337 timer0 as input capture to capture both rising and falling edges. It's still not working. Can you help me?. Here is my code:
Hi Matias Alvarez,
About your demo, using the following the code to replace the " Chip_SCU_PinMuxSet(IC_SCU_PORT, IC_SCU_PIN, SCU_MODE_FUNC4);"
Chip_SCU_PinMux(IC_SCU_PORT,IC_SCU_PIN, MD_PLN_FAST, SCU_MODE_FUNC4);
I've also create a demo for LPCXpresso4337 board which toggles the P1.5 in the Timer1 interrupt and set the P1.12 work as the T0_CAP1 to receive the PWM wave.
When testing the demo, use a wire connect the P1.5 and P1.12, and after enter into the Timer0 interrupt, it will toggle the blue led (Fig 1).
Have a great day,
Ping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi,
Just recommend, I'm working now and I will inform ASAP if I figure the root cause of the issue.
Have a great day,
Ping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------