hansika
Member level 2
hi every one,
i am writing a led blink program in mikroC dspic compiler as shown below and i am dumping the program into the micro controller dspic30f6014A using winpic 800 software , i am able to dump the program into the controller the soft ware giving dumping is successful but the code is not executed correctly means led is not blinking can any one please tell me where i am doing wrong
void main()
{
TRISG=0;//setting port G as output port for switches
TRISB=1;
LATGBITS.LATG15=1;
while(1)
{
LATGBITS.LATG15=~LATGBITS.LATG15;
delay_ms(10);
}
}
i am writing a led blink program in mikroC dspic compiler as shown below and i am dumping the program into the micro controller dspic30f6014A using winpic 800 software , i am able to dump the program into the controller the soft ware giving dumping is successful but the code is not executed correctly means led is not blinking can any one please tell me where i am doing wrong
void main()
{
TRISG=0;//setting port G as output port for switches
TRISB=1;
LATGBITS.LATG15=1;
while(1)
{
LATGBITS.LATG15=~LATGBITS.LATG15;
delay_ms(10);
}
}