tc387 external interrupt pin direct read

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
TylerPeterson
Level 1
Level 1
5 sign-ins First like given First question asked

Is it possible to read a pin  that has been configure for external interrupt as a standard input gpio?
for instance:
If I configure  IfxScu_REQ2A_P10_2_IN, 

could i simply call  __getbit(MODULE_P10,2) to return the current value at the pin?

thanks

0 Likes
1 Solution
cwunder
Employee
Employee
5 likes given 50 likes received 50 solutions authored

You can always read a digital input pin value from the Pn_IN register (provided it is enabled).

cwunder_0-1697115034539.png

 

View solution in original post

1 Reply
cwunder
Employee
Employee
5 likes given 50 likes received 50 solutions authored

You can always read a digital input pin value from the Pn_IN register (provided it is enabled).

cwunder_0-1697115034539.png