Use TMS (PTA11) as GPIO

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

Use TMS (PTA11) as GPIO

跳至解决方案
1,726 次查看
snowholgi
Contributor I

Hello,

I want to use PTA11 as GPIO.

By default, PTA 11 (TMS JTAG) is configured as JTAG,

I have set IOMUX to 0 but I can't toggle pad between HIGH and LOW.

Is there something special to do ?

Thanks for your help Holger

标签 (2)
0 项奖励
回复
1 解答
1,502 次查看
anthony_huereca
NXP Employee
NXP Employee

Hi,

  I believe the problem is that you need to enable the OBE bit. I tried this out on the tower board using the gpio example in the sample code, and it worked as expected.

  IOMUXC->SINGLE.PTA11 = IOMUXC_PTB3_DSE(0x1)| IOMUXC_PTA11_OBE_MASK; //enable GPIO output for PTA11

GPIO0->PDOR=~(PIN(4)); //corresponds with PTA11 and goes to gnd
//Delay
time_delay_ms(1000);
GPIO0->PDOR=PIN(4); //corresponds with PTA11 and goes to VDD

-Anthony

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,503 次查看
anthony_huereca
NXP Employee
NXP Employee

Hi,

  I believe the problem is that you need to enable the OBE bit. I tried this out on the tower board using the gpio example in the sample code, and it worked as expected.

  IOMUXC->SINGLE.PTA11 = IOMUXC_PTB3_DSE(0x1)| IOMUXC_PTA11_OBE_MASK; //enable GPIO output for PTA11

GPIO0->PDOR=~(PIN(4)); //corresponds with PTA11 and goes to gnd
//Delay
time_delay_ms(1000);
GPIO0->PDOR=PIN(4); //corresponds with PTA11 and goes to VDD

-Anthony

0 项奖励
回复
1,502 次查看
naoumgitnik
Senior Contributor V

Hello Holger,

The Reference Manual counts 3500 pages :-) - may you provide more details about "set IOMUX to 0", please?

Sincerely, Naoum Gitnik.

0 项奖励
回复
1,500 次查看
snowholgi
Contributor I

Hello Naoum,

With IOMUX to 0 I mean set MUX_MODE of PTA11 to 0. Sorry.

But, in the meantime I have found an error in my driver.

Means PTA11 is working in the same way as other GPIOs.

Sorry.

0 项奖励
回复