Multi-function pins on LPC1343

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

Multi-function pins on LPC1343

721 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by err on Mon Jun 21 21:26:23 MST 2010
I'm using an LPC1343 and one of the digital GPIO outputs doesn't work.  We're not using the SPI or UART, but PORT0_8 doesn't seem to work like the other digital outputs that are on single function I/O pins.  It must be due to configuration, but I just don't seem to see any such configuration code in any of my documentation or sample programs.  Any pointers would be greatly appreciated.
0 Kudos
Reply
1 Reply

711 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by err on Tue Jun 22 11:58:34 MST 2010
Found the problem. Using timer16_0, the init call configures this pin as a timer input....

Commented line out, now it works as standard I/O....

[SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]LPC_IOCON->PIO0_8 |= 0x02; /* Timer0_16 MAT0 */[/COLOR][/SIZE]

[SIZE=2][COLOR=#3f7f5f]Commented out of init_timer16 in timer16.c[/COLOR][/SIZE]
[/COLOR][/SIZE]
0 Kudos
Reply