LPCExpresso 1114 GPIO Help

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

LPCExpresso 1114 GPIO Help

701件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dane.w.kim on Tue May 11 07:49:24 MST 2010
Hello,

I'm still getting familiar with the part and am having some issues with the GPIO. I'm trying to toggle bits 4 through 7 on Port 2. I'm using the getters and setters as described in the examples.

It seems I'm able to toggle bit 6 and 7, but am unable to change bits 4 and 5. I have verified that the pins are configured to output. Just to verify that I'm not missing something (which, I guess this post means that I AM), I used the blinky exampled and tried changing the output pin to bits 4 through 7 on Port 2. Again, only 6 and 7 change, while 4 and 5 stay high.

Any assistance would be appreciated.
0 件の賞賛
返信
5 返答(返信)

690件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by NXP_USA on Tue May 11 14:17:35 MST 2010

Quote: dane.w.kim
Hello,

I'm still getting familiar with the part and am having some issues with the GPIO. I'm trying to toggle bits 4 through 7 on Port 2. I'm using the getters and setters as described in the examples.

It seems I'm able to toggle bit 6 and 7, but am unable to change bits 4 and 5. I have verified that the pins are configured to output. Just to verify that I'm not missing something (which, I guess this post means that I AM), I used the blinky exampled and tried changing the output pin to bits 4 through 7 on Port 2. Again, only 6 and 7 change, while 4 and 5 stay high.

Any assistance would be appreciated.



It sounds like this isn't the problem in your specific case, but in general, the default power-on-reset pin function should be checked in the User's Manual in the I/O configuration chapter. Some pins do not come configured as GPIO after reset and need to have their pin function set before they can be used as outputs.

If you are still developing code and using the debugger and reset pin, don't reconfigure SWDIO, SWCLK, and reset. Another tip is the gpio.c InitGPIO function will set up some of the pins as GPIO. Calling InitGPIO can interfere with some ADC pins, so if you have trouble with and ADC inputs make sure those pins are properly initialized. The pin functions can be checked live in the LPCXpresso Memory View after enabling the GPIO ports in the Peripherals view.
0 件の賞賛
返信

690件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dane.w.kim on Tue May 11 10:55:17 MST 2010

Quote: andersrosvall
Hi,
I'm Anders from Embedded Artists. It is correct that the silkscreen is incorrect for Port 2/3 pin 4 and 5. The reason was incorrect information at the time the pcb was created and produced. I tried to explain this in the schematic for the LPC1114 board.
You also mention another error. What is this?
BR,
Anders@EA



Hello Anders,

I did see your note on the schematic.I should have specified- I didn't mean to insinuate that the board or schematic as being "error ridden." According to the schematic, It looks like Port 2- pin 4 and 5 are marked as USB D+ and D- on the board (which make sense since the LPC1114 doesn't have a USB peripheral).
0 件の賞賛
返信

690件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by andersrosvall on Tue May 11 10:31:04 MST 2010
Hi,
I'm Anders from Embedded Artists. It is correct that the silkscreen is incorrect for Port 2/3 pin 4 and 5. The reason was incorrect information at the time the pcb was created and produced. I tried to explain this in the schematic for the LPC1114 board.
You also mention another error. What is this?
BR,
Anders@EA
0 件の賞賛
返信

690件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dane.w.kim on Tue May 11 08:27:11 MST 2010
Also, there seem to be further errors on the silk screen. I recommend double checking every pin out with the schematic before use - http://ics.nxp.com/support/lpcxpresso/pdf/lpc1114.schematic.pdf
0 件の賞賛
返信

690件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dane.w.kim on Tue May 11 08:07:03 MST 2010
I'm posting this in case anyone else has the same problem.

I should have consulted the schematic before posting. It appears that on the LPCXpresso board, the silk screens are incorrect. Port 2 Pin 4 and 5 are actually Port 3 Pin 4 and 5.
0 件の賞賛
返信