GPIO will not work as expected

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GPIO will not work as expected

706 Views
lpcware
NXP Employee
NXP Employee
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

Labels (1)
0 Kudos
Reply
1 Reply

576 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Tue Jun 17 06:57:39 MST 2014

Quote: DieterNiesel
I created a project which only relies on the lpc_chip_15xx library.



Why  :quest:  The better solution is to copy LPCXpresso board library and change it  :)

Anyway, without posting your project(s) it's difficult to debug...
0 Kudos
Reply