--- trunk/Embedded/main.c 2007/11/29 11:58:46 99 +++ trunk/Embedded/main.c 2007/11/29 13:23:57 100 @@ -4,13 +4,17 @@ #include "lcd.h" +void AD_init(void) +{ + ADON = 1; +} void rs232_init(void) { SPEN = 0; // Serial Port Enable Bit... 0 = disabled TRISC6 = 0; TRISC7 = 1; - SYNC = 0; // SYNC switches between async(0) and sync(1) mode. + SYNC = 0; // SYNC switches between async(0) and sync(1) mode. SPBRG = 25; TXSTA = 0x24; RCSTA = 0x90; @@ -52,6 +56,12 @@ void main() { + AD_init(); rs232_init(); pic18_io_init(); + + if(GODONE==0) + { + + } }