Kinetis register for analog voltage like S12

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Kinetis register for analog voltage like S12

725 次查看
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 项奖励
回复
1 回复

622 次查看
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 项奖励
回复