hi every one,
i am programmed dspic30f6014A using winpic800 the software saying code is dumped succesfully. but when i started the controller my led blinking program is not started below is my code
void main()
{
TRISG=0;//setting port G as output port for switches
TRISB=0;
LATGBITS.LATG15=0;
delay_ms(1000);
LATGBITS.LATG15=1;
delay_ms(1000);
LATGBITS.LATG15=0;
delay_ms(1000);
while(1)
{
//LATGBITS.LATG15=~LATGBITS.LATG15;
//delay_ms(100);
LATBBITS.LATB1=0;
delay_ms(1000);
LATBBITS.LATB0=0;
LATBBITS.LATB1=1;
delay_ms(1000);
LATBBITS.LATB0=1;
delay_ms(1000);
}
}
when i start the dspic the leds are in ON state only please suggest me why this is happening
i am programmed dspic30f6014A using winpic800 the software saying code is dumped succesfully. but when i started the controller my led blinking program is not started below is my code
void main()
{
TRISG=0;//setting port G as output port for switches
TRISB=0;
LATGBITS.LATG15=0;
delay_ms(1000);
LATGBITS.LATG15=1;
delay_ms(1000);
LATGBITS.LATG15=0;
delay_ms(1000);
while(1)
{
//LATGBITS.LATG15=~LATGBITS.LATG15;
//delay_ms(100);
LATBBITS.LATB1=0;
delay_ms(1000);
LATBBITS.LATB0=0;
LATBBITS.LATB1=1;
delay_ms(1000);
LATBBITS.LATB0=1;
delay_ms(1000);
}
}
when i start the dspic the leds are in ON state only please suggest me why this is happening