T20
void main() { unsigned int analog; TRISA=0xFF; TRISB=0; TRISC=0; PORTB=0; PORTC=0; while(1) { analog=Adc_Read(3); if(analog>0&&analog<=64)PORTB=0x80; else if(analog>64&&analog<=2*64)PORTB=0xC0; else if(analog>2*64&&analog<=3*64)PORTB=0xE0; else if(analog>3*64&&analog<=4*64)PORTB=0xF0; else if(analog>4*64&&analog<=5*64)PORTB=0xF8; else if(analog>5*64&&analog<=6*64)PORTB=0xFC; ...