manoharn
Junior Member level 2
- Joined
- Jun 5, 2012
- Messages
- 24
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Bangalore,India
- Activity points
- 1,429
Code:
#include "lpc17xx.h"
#define LED (1 << 29)
void delay(unsigned long int count)
{ unsigned long int j;
for(j = 1000000; j > 0; j--);
}
int main (void)
{
SystemInit();
LPC_GPIO1->FIODIR |= LED; // P1.29 = Outputs
LPC_GPIO1->FIOCLR = LED; // Turn-OFF LED
//Loop LED Test
while(1)
{
LPC_GPIO1->FIOSET = LED; // Turn-ON LED
//for(j = 1000000; j > 0; j--);
delay(1);
LPC_GPIO1->FIOCLR = LED; // Turn-OFF LED
// for(j = 1000000; j > 0; j--);
delay(1);
}
}
this is the program working properly in arm mode .Please guide me what are all the changes i need to make for this program to run in thumb mode.
Last edited by a moderator: