GPIO will not work as expected

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

GPIO will not work as expected

534 次查看
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

标签 (1)
0 项奖励
1 回复

404 次查看
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 项奖励