MKE06 read pin

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

MKE06 read pin

跳至解决方案
523 次查看
gangliu
Contributor II

Hello, Thank you for seeing my problem,.I use the MKE06Z.I would like to know how to read the level of a pin.  Please show me how it works.Thank you!999.png

So this is my way of reading the pin level with '|' and I feel like this is going to be a lot of trouble, every time.

Best Regards!

GANG LIU

0 项奖励
回复
1 解答
458 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi GANG,

Please refer the code shown below:

if((GPIO_Read(GPIOB) & 0x2000000)==0x2000000)

 

Best Regards,

Robin

 

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

在原帖中查看解决方案

0 项奖励
回复
1 回复
459 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi GANG,

Please refer the code shown below:

if((GPIO_Read(GPIOB) & 0x2000000)==0x2000000)

 

Best Regards,

Robin

 

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

0 项奖励
回复