Cannot toggle PIO1_5 on lpc expresso

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

Cannot toggle PIO1_5 on lpc expresso

898 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vineetrvce on Tue May 15 04:01:08 MST 2012
Hello All,
   I need to toggle the PIO1_5 (UART RTS) on lpc1114 but the pin is not going low at all. When I try to toggle another pin, it is going low and high with the same code.

Here is the code:

#define LED18
#define DIR_CONTROL_PIN5


GPIOInit();// enables the GPIO clock
GPIOSetDir( PORT1, LED1, OUTPUT_PIN );
GPIOSetDir( PORT1, DIR_CONTROL_PIN, OUTPUT_PIN );


with this source code, I am able to get LED1 go low but when i check th voltage on PIO1_5, it shows ~2.75V after executing the above lines.

How can I solve this issue.

[B]NOTE: I am trying this on the LPC Expresso Board only and NOT any other board. So please go ahead and check if you guys face the same problem!!!![/B]

Regards,
Vineet.
0 Kudos
Reply
4 Replies

883 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vineetrvce on Wed May 16 01:43:17 MST 2012
Yeah, i think I was calling the init_timer32(TIMER32_TIMER0, TIME_INTERVAL); function that was causing the IOCON to change.

Thanks guys.
0 Kudos
Reply

883 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue May 15 08:17:18 MST 2012

Quote: vineetrvce
How can I solve this issue.



The magic word is 'Debugger' :)

There's nothing special about PIO1.5. If it's not working as desired either your hardware or your software is faulty :eek:
0 Kudos
Reply

883 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Polux rsv on Tue May 15 07:24:59 MST 2012
Just my 2 cents: is the Uart configuration using the RTS signal directly, thus the IO pin connected to the Uart peripheral instead of GPIO ????

Angelo
0 Kudos
Reply

883 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gbm on Tue May 15 07:11:46 MST 2012
How did you set the IOCON register for P1_5? With the default value after reset it should toggle.
0 Kudos
Reply