lpcware

Togglin PORT 1 LPC11xx

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by WhyNot on Sun Nov 21 14:48:27 MST 2010
Hi there,

I am having problems with toggling PORT 1 on LPC11XX.

I want to create a 8bit bus to drive a LCD for example.

I do

LPC_GPIO1->DIR = 0xFFF;


and then on the blink example I have

LPC_GPIO1->DATA =0xfff;
and LPC_GPIO1->DATA00x00;

I know that bits P1.0-P1.3 are not GPIO in the demo board (for JTAG use) but the other bits in PORT 1 have as reset values in SYSCON the function GPIO-


Any thoughts why can't see port1 bits toggling ?

Thank you

Outcomes