jayanthyk192
Full Member level 3
- Joined
- Sep 17, 2010
- Messages
- 179
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,298
- Activity points
- 2,580
Hi,
I have a self made LPC2106 board. I'm able to write the flash, but a simple LED blinking code doesn't work. I'm using keil startup code, 11.0592MHz external crystal. Here's the simple code:
I compile and write the flash using FLASH magic. I connected an LED on P0.19. It doesnt blink. I even tried to reverse the LED supply, i.e. from pin -> ground to pin->3.3V, meaning it's floating. I'm setting P0.14 to 0V while flashing and pulled to 3.3V during code running. But still nothing is happening. So any suggestions?
Thank you.
I have a self made LPC2106 board. I'm able to write the flash, but a simple LED blinking code doesn't work. I'm using keil startup code, 11.0592MHz external crystal. Here's the simple code:
Code:
#include <LPC210x.H> /* LPC21xx definitions */
void delay (void)
{ /* wait function */
int d;
for (d = 0; d < 10000; d++); /* only to delay for LED flashes */
}
int main (void)
{
IODIR = (1<<19);
while (1)
{
IOSET=(1<<19);
delay(); delay();delay();delay();delay();
IOCLR=(1<<19);
delay(); delay();delay();delay();delay();
}
}
I compile and write the flash using FLASH magic. I connected an LED on P0.19. It doesnt blink. I even tried to reverse the LED supply, i.e. from pin -> ground to pin->3.3V, meaning it's floating. I'm setting P0.14 to 0V while flashing and pulled to 3.3V during code running. But still nothing is happening. So any suggestions?
Thank you.