jjeevan007
Full Member level 5
- Joined
- Apr 13, 2012
- Messages
- 310
- Helped
- 44
- Reputation
- 88
- Reaction score
- 43
- Trophy points
- 1,308
- Location
- bangalore
- Activity points
- 2,782
hi to all,
i have download the evaluation keil uvision 4 for mdk-arm compiler.
but its not creating the proper hex. i mean i written the code for io toggle which works in simulation but not in hardware. my hardware is working fine.
can anyone tell me why the keil uvision 4 is not creating the properly.
regards
jeevan
#include<lpc21xx.h>
int n,m;
void delay()
{
unsigned int i,j;
for(i=0;i<50;i++)
for(j=0;j<12750;j++);
}
main()
{
PINSEL0=0x00000000;
PINSEL1=0x00000000;
IODIR0=0xffffffff;
IODIR1=0xffff0000;
delay();
delay();
delay();
IOPIN0=0XFFFFFFFF;
IOPIN1=0XFFFF0000;
while(1)
{
IOSET0=0xffffffff;
IOSET1=0xffff0000;
delay();
delay();
IOCLR0=0xffffffff;
IOCLR1=0xffff0000;
}
#include<lpc21xx.h>
int n,m;
void delay()
{
unsigned int i,j;
for(i=0;i<50;i++)
for(j=0;j<12750;j++);
}
main()
{
PINSEL0=0x00000000;
PINSEL1=0x00000000;
IODIR0=0xffffffff;
IODIR1=0xffff0000;
delay();
delay();
delay();
IOPIN0=0XFFFFFFFF;
IOPIN1=0XFFFF0000;
while(1)
{
IOSET0=0xffffffff;
IOSET1=0xffff0000;
delay();
delay();
IOCLR0=0xffffffff;
IOCLR1=0xffff0000;
delay();
delay();
}
void delay()
{
unsigned int i,j;
for(i=0;i<50;i++)
for(j=0;j<12750;j++);
}
Code C - [expand] 1 2 3 4 5 6 7 8 /****************Delay Function***************/ void Delay_ms(unsigned long times) { unsigned long i,j; for(j=0;j<times;j++) for(i=0;i<7500;i++); } /*********************************************/
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?