Use TMS (PTA11) as GPIO

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Use TMS (PTA11) as GPIO

Jump to solution
797 Views
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

Labels (2)
0 Kudos
1 Solution
573 Views
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

View solution in original post

0 Kudos
3 Replies
574 Views
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 Kudos
573 Views
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 Kudos
571 Views
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 Kudos