--- /home/jcomeau/shared_documents/reversible.asm 2007-05-02 19:17:04.231747200 -0600 +++ /home/jcomeau/shared_documents/reversible.asm.orig.txt 2007-05-02 19:18:36.103852800 -0600 @@ -33,14 +33,9 @@ ; has a resolution of 10 bits, with 1023 representing 5V and ; 0 representing 0V. -#define use_crystal 1 #include ; __CONFIG _DEBUG_ON & _FCMEN_OFF &_IESO_OFF & _BOD_OFF & _CPD_OFF & _CP_OFF & _MCLRE_ON & _PWRTE_OFF & _WDT_OFF & _INTOSC ; _EXTRC ; -#ifndef use_crystal __CONFIG _FCMEN_OFF &_IESO_OFF & _BOD_OFF & _CPD_OFF & _CP_OFF & _MCLRE_ON & _PWRTE_OFF & _WDT_OFF & _INTOSC ; _EXTRC ; -#else - __CONFIG _FCMEN_OFF &_IESO_OFF & _BOD_OFF & _CPD_OFF & _CP_OFF & _MCLRE_ON & _PWRTE_OFF & _WDT_OFF & _XT_OSC ; _EXTRC ; -#endif cblock 0x20 Delay1 ; Assign an address to label Delay1 @@ -58,10 +53,6 @@ movlw 0xFF movwf TRISA ; Make PortA all input clrf TRISD ; Make PortC all output -#ifndef use_crystal - movlw 0x41 ; internal oscillator at 1MHz (0x41) 8MHz (0x71) - movwf OSCCON -#endif movlw 0x10 ; A2D Clock Fosc/8 movwf ADCON1 ; bcf STATUS,RP0 ; back to Register Page 0