EmbDev.net

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


von andreas_mue (Guest)


Rate this post
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
}

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.