Beginners: please read this post and this post before posting to the forum.
0 Members and 1 Guest are viewing this topic.
PORTDbits.RD0 = 1;Delay10TCYx(35);PORTDbits.RD0 = 0;
LATDbits.LATD0 = 1;Delay10TCYx(35);LATDbits.LATD0 = 0;
void main (void){ TRISDbits.TRISD0 = 0; while(1){ LATDbits.LATD0 = 0; Delay10TCYx(200);//delay for the low cycle (you need to optimize this for about 25ms) LATDbits.LATD0 = 1; Delay10TCYx(35); //delay for the high cycle, you need to work on this //the loop will now retun to the top turning the port back low again }//end of while(1) }