Enabling pull resistors in KDS 3.2.0

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

Enabling pull resistors in KDS 3.2.0

跳至解决方案
938 次查看
blsousan
Contributor III

I can't find where one can identify the pull direction (pull-up or poll-down) within the KDS.  I need to add some pull-up resistors to a few GPIO inputs.  I see where I can add component Init_GPIO and in there identify which pin to initialize with a pull resistor but can't  find which direction (up or down).  Also its a bit confusing that the pin numbers are not the same as the chip pin numbers so I had to click on a few to figure out the mapping (this is a bit clunky if this is the normal operation)

Bill

0 项奖励
回复
1 解答
841 次查看
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Bill Sousan:

Thank you for using our community.

Please always mention the device you are using, so we can provide accurate answers.

If you are talking about the KE02 as in your other post ​then this device only has internal pull-ups, not pull-downs, so that is why you cannot choose a direction in the Init_GPIO component.

About pin names, the KE02 has a pair of 32-bit registers called GPIOA and GPIOB wrapping 8-bit port pins. See below from the reference manual:

KE02_GPIO.png

I hope this clarifies.

Best regards,

Jorge Gonzalez

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

在原帖中查看解决方案

0 项奖励
回复
1 回复
842 次查看
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Bill Sousan:

Thank you for using our community.

Please always mention the device you are using, so we can provide accurate answers.

If you are talking about the KE02 as in your other post ​then this device only has internal pull-ups, not pull-downs, so that is why you cannot choose a direction in the Init_GPIO component.

About pin names, the KE02 has a pair of 32-bit registers called GPIOA and GPIOB wrapping 8-bit port pins. See below from the reference manual:

KE02_GPIO.png

I hope this clarifies.

Best regards,

Jorge Gonzalez

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

0 项奖励
回复