Kinetis register for analog voltage like S12

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Kinetis register for analog voltage like S12

305 Views
ScottKerstein
Contributor III

Hello,


Do the Kinetis parts have a register that indicates the digital state of the voltage on any analog pin?  The S12 had a feature like this.


Thanks.

Scott

0 Kudos
1 Reply

202 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi Scott,

If customer want to config Kinetis analog pin as GPIO input function, and check the GPIO input data register to check the voltage level(high or low)?

If so, yes, Kinetis product with this function.

Customer can set most analog pin as GPIO input function using Pin Control Register n (PORTx_PCRn) [MUX] bits select related pin function.

And the Port Data Input Register (GPIOx_PDIR) register will reflect the input voltage level.

Wish it helps.


Have a great day,
best regards,

Ma Hui

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos