LPC1517 pin configuration issue

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

LPC1517 pin configuration issue

1,104件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lucamini on Fri Oct 03 01:43:13 MST 2014
I have to configure in the LPC1517 48 pin package, PIO0_22 and PIO0_23 as gpio output, but when I drive to high such pins I find a low level (the pin is floating in the application).

The configuration I used was:

Chip_IOCON_PinMuxSet(LPC_IOCON, 0, 22, IOCON_FUNC0 | IOCON_MODE_INACT | IOCON_DIGMODE_EN);
Chip_IOCON_PinMuxSet(LPC_IOCON, 0, 23, IOCON_FUNC0 | IOCON_MODE_INACT | IOCON_DIGMODE_EN);

and

Chip_GPIO_SetPinDIROutput(LPC_GPIO, 0, 22);
Chip_GPIO_SetPinDIROutput(LPC_GPIO, 0, 23);

What's wrong?

Thanks in advance
Luca
0 件の賞賛
返信
2 返答(返信)

1,081件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Fri Oct 03 09:53:18 MST 2014
Hi lucamini ,
As LabRat explained these pins are true Open drain pins. You will need external pull up.
I recommend you to read pages 110-112/759 and 116/759 of UM10736 Rev. 1.1 — 3 March 2014  to check IO configuration.
http://www.nxp.com/documents/user_manual/UM10736.pdf
0 件の賞賛
返信

1,081件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Fri Oct 03 01:52:39 MST 2014

Quote: lucamini
What's wrong?



Nothing  :)  (Except you are not reading datasheets / user manuals...)


Quote:
The I2C-bus functions are fixed-pin functions and must be enabled through the switch
matrix on the [color=#f00]open-drain pins PIO0_22 and PIO0_23[/color].

0 件の賞賛
返信