Other Parts Discussed in Thread: SYSCONFIG,
Hi,
I configured TIMG0_C1 as a capture input for pin PA13 to measure the duration between two signal edges on that pin.
TIMG0 is configured with Sysconfig and this works. I get capture-interrupts on each edge which occurs on pin PA13 (either rising and falling).
Now I need to read the polarity of pin PA13 if a capture-interrupt occurs.
How do I check if PA13 has high or low level?
I tried to check (GPIOA->DIN31_0 & DL_GPIO_PIN_13) to be 0 or not, but here no change occured.
I think this is because PA13 is not configured as digital input but as input for timer.
How do I read the polarity high or low of this pin when it is used as input for a capture-timer? Or how do I check which edge caused the interrupt?
Thank you for some help.