Multi-function pins on LPC1343

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Multi-function pins on LPC1343

549件の閲覧回数
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 件の賞賛
返信
1 返信

539件の閲覧回数
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 件の賞賛
返信