below is my code....
- CODE: SELECT_ALL_CODE
unsigned short count=0;
void count_1(){
for (count=0;count<100;count++){
PORTB = 0xff;
delay_ms(1);
PORTB = 0x00;
delay_ms(19);
}
}
void count_2(){
for (count=0;count<100;count++){
PORTB = 0xff;
delay_ms(2);
PORTB = 0x00;
delay_ms(18);
}
}
void main() {
TRISB = 0X00;
portb = 0x00;
while(1){
count_1();
count_2();
}
}