void main() { AD1PCFG = 0XFFFF; TRISB = 0; LATB = 0; while(1) { LATB = ~LATB; Delay_ms(1000); } }