GPIO Ports on Keil MCB1800 with LPC1857

Guest #3976403
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

A question of your own? This thread is over 11 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.