When a pin is routed to became an input capture pin (rising edge example) is it possible to read its status as a GPIO status inside the interrupt routine ?
Better...I have to input capture pin set as rising and falling edge function.
When an interrupt occur (example interupt A) I need to know which is its status and I need to know which is the status of signal B.
In poor word I need to read the input capture pin status when I'm in the input capture service routine.
Thanks in advance.
Attilio
解決済! 解決策の投稿を見る。
Hello,
For example CT_INP4, from UM ,we can see there are two pins can configured for this function. Also in MCUXprsso Pins config, input "CT_INP4", you can see the two pins, then refer to your requirements to choose one. If choose PIO1_9, then read the status of this pin.
BR
Alice
Hello ,
Yes, you can try to read.
BR
Alice
Hi Alice, my apologies for delay in the answer.
Thank you for your assistance.
But I mean this: when an input capture is assigned I can not find any any kind of reference for (the same pin) as GPIO. As you can see the capture 1 CT_INP4 is selected as input capture.
For this pin a nane was assigned: it's ENCODER_PHB
But I don't find any reference about it. I don't know the pin number..I don't know the related port.
I solved the problem looking for some reference in the form
At the bottom of the list I found the references, but it's not very immediate. I expected to find references with witch to recall the related GPIO sdk.
Instead no.
There is any kind of solution or I have to continue with this mode ?
Thank you.
Attilio
Hello,
For example CT_INP4, from UM ,we can see there are two pins can configured for this function. Also in MCUXprsso Pins config, input "CT_INP4", you can see the two pins, then refer to your requirements to choose one. If choose PIO1_9, then read the status of this pin.
BR
Alice
Thanks Alice