Problems with PIO3_0 can't be set to DTR

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

Problems with PIO3_0 can't be set to DTR

996 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JSalisbury on Tue Jun 07 03:27:06 MST 2011
Hi,
I am useing the LPC1114, I am wanting to use PIO3_0 as the DTR transmit enable pin. I am finding it isn't working correctly. I am setting,
LPC_IOCON->PIO3_0= 0x1;        /* UART_DTR as direction control */
I am finding that in the debugger IOCON PIO3_0 2:0 is set to reserve, and I note that PIO3_0 is the only option in the pull down list, the other 3 are reserved.

I am wanting to use the UART in polling not interupt mode, do you have any other suggestions?

Thanks
0 Kudos
Reply
3 Replies

987 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gbm on Tue Jun 07 10:56:53 MST 2011
Watch the upper bits in IOCON register - your setting is incorrect.
0 Kudos
Reply

987 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Jun 07 05:32:02 MST 2011

Quote: Zero
Obviously debugger doesn't show PIO3_0 / PIO3_1 DTR / DSR option :mad:


It does appear that there are enumerations missing here in the peripheral register view for PIO3_0. and PIO3_1 We'll add these in a future LPCXpresso build.

Note that the peripheral view does show the actual register value, so in the case where an enumeration is missing - you can still decode things yourself.

Regards,
CodeRedSupport
0 Kudos
Reply

987 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue Jun 07 03:52:17 MST 2011
Obviously debugger doesn't show PIO3_0 / PIO3_1 DTR / DSR option :mad:

This doesn't mean that this mode isn't working, did you try it?

Otherwise you could also try to use DTR at PIO2_0 :)
0 Kudos
Reply