EmbDev.net

Forum: µC & Digital Electronics GPIO Ports on Keil MCB1800 with LPC1857


von andreas_mue (Guest)


Rate this post
0 useful
not useful
Hi
I try to set an GPIO Port ( P1_15 ) to high, but it does not work. I 
used the MCB1800 Board with an LPC1857 and modified the Blinky Example.

Somebody has an idea?

Code:
1
 
2
#include "board.h"
3
#include <stdio.h>
4
#include "stopwatch.h"
5
6
/****************************************************************************/
7
void SysTick_Handler(void)
8
{
9
  static int x = 0;
10
  if (x++ > 500) {
11
    Board_LED_Toggle(0);
12
    x = 0;
13
  }
14
}
15
16
/****************************************************************************/
17
18
int main(void)
19
{
20
21
  SystemCoreClockUpdate();
22
  Board_Init();
23
        Chip_GPIO_Init(LPC_GPIO_PORT);
24
        Chip_GPIO_SetPinDIROutput(LPC_GPIO_PORT, 1, 15);
25
        Chip_GPIO_SetPinOutHigh (LPC_GPIO_PORT, 1, 15);
26
27
        
28
  /* Enable and setup SysTick Timer at a periodic rate */
29
  SysTick_Config(SystemCoreClock / TICKRATE_HZ1);
30
        
31
32
33
  while (1) {
34
    __WFI();
35
  }
36
37
  return 0;
38
}

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.