In my project,
trying to configure a timer that runs with a clock with the 1 µs resolution.
Then set CCR to capture rising and falling edges and generate an event. In the ISR, I need to check the input pin if a falling or rising edge occured. On a falling edge, save contents of the CR (capture register) and send it through UART. Same On a rising edge, save CR send it through UART.
But the issue, am not able to enter in ISR.
I appreciate your suggestions. Please find the attached code.
Original Attachment has been moved to: main.c.zip