GPIO will not work as expected

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

GPIO will not work as expected

544件の閲覧回数
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 返信

414件の閲覧回数
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 件の賞賛