Untitled
void main(){ trisb=0x00; // 7seg portb as output trisd.f4=0; trisd.f5=0; while(1){ portb=0xf6; //9--> 1111 0110 portd.f4=0; portd.f5=1; delay_ms(10); portb=0xf6; portd.f4=1; portd.f5=0; } }
void main(){ trisb=0x00; // 7seg portb as output trisd.f4=0; trisd.f5=0; while(1){ portb=0xf6; //9--> 1111 0110 portd.f4=0; portd.f5=1; delay_ms(10); portb=0xf6; portd.f4=1; portd.f5=0; } }