Internal Pull-Up Resistors on FRDM-KE02Z40M

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

Internal Pull-Up Resistors on FRDM-KE02Z40M

跳至解决方案
1,114 次查看
lmg
Contributor III

I'm using KDS 3.1.0 with a FRDM-KE02Z40M board.

 

I'd like to add a switch input to PTG3 and I'd like to use the internal pull-up resistor. I used the component BitIO_LDD.

 

I don't see anywhere to enable the pull-up resistor for this pin.

 

Can anyone help please?

 

Thanks.

 

~LMG

标签 (1)
0 项奖励
1 解答
811 次查看
BlackNight
NXP Employee
NXP Employee

I have not checked it for the KE02, but this should work for it as well:

Tutorial: Bits and Pins with Kinetis and the FRDM-KL25Z Board | MCU on Eclipse

Basically, you need to add the Init_GPIO component to the project, and there you could configure the eletrical settings.

I hope this helps,

Erich

在原帖中查看解决方案

4 回复数
811 次查看
lmg
Contributor III

Ok. There are two "groups" of GPIO pins labeled GPIOA and GPIOB. But within those groups are pins from several ports. You just have to search through until you find the right one.

PTG3 (the one I'm using) is "Pin 19" of GPIOB. Note: "Pin 19" has nothing to do with the hardware pin on the microcontroller. It is merely the designation within the Init_GPIO component.

811 次查看
lmg
Contributor III

Hmmm. Init_GPIO is there, but it only seems to work with Port A and Port B.

~LMG

0 项奖励
811 次查看
lmg
Contributor III

I'm using the FRDM-KE02Z40M board, which has a Kinetis KE02Z family processor.

I also forgot to mention that I'm using Processor Expert, but not SDK.

~LMG

0 项奖励
812 次查看
BlackNight
NXP Employee
NXP Employee

I have not checked it for the KE02, but this should work for it as well:

Tutorial: Bits and Pins with Kinetis and the FRDM-KL25Z Board | MCU on Eclipse

Basically, you need to add the Init_GPIO component to the project, and there you could configure the eletrical settings.

I hope this helps,

Erich