lpcware

GPIO will not work as expected

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by DieterNiesel on Tue Jun 17 05:46:20 MST 2014
I am working with the lpcexpresso board 1549. The examples from the 1549 zip archive worked without any problems.
I created a project which only relies on the lpc_chip_15xx library.

Some GPIO pins don't work as expected when I want to blink the red on board led always the green on board led and
a led connected to PIO0_0 D7 ( Arduino Header) is blinking.

What is wrong wih my code ?


while(1)
      {
      ticks = sysTickCnt;
      ticks += 100;
      while(ticks > sysTickCnt);
      Chip_GPIO_SetPortToggle(LPC_GPIO, bled[red].port, bled[red].pin);

Original Attachment has been moved to: config.h.zip

Original Attachment has been moved to: systick.c.zip

Original Attachment has been moved to: pnb1549t1.c.zip

Original Attachment has been moved to: sysinit.c.zip

Outcomes