Lawrence Lile writes: .................... #device PIC12C672 .................... #list .................... #byte OPTION=0x81 .................... #bit pullups=OPTION.7 .................... void main ( void) .................... { 0007: CLRF 04 // Indirect file clear 0008: MOVLW 1F // moov literal 0009: ANDWF 03,F // to status register .................... // not used here: setup_counters(RTCC_INTERNAL,WDT_2304MS); .................... pullups =0; // enable pullups 000A: BSF 03,5 // bank switching 000B: BCF 01,7 // bit 7 clear in oprion reg 000C: BCF 03,5 // bank switching again .................... } 000D: SLEEP -- I think like CCS PIC-C-compiler in very good Pekka Û¼¡`¡¼Û¿,üü,¿Û¼¡`¡¼Û¿,üü,¿ Pekka Ritamaki, Probyte Oy Microprocessor software & hardware design Nirvankatu 31, 33820 TAMPERE, FINLAND http://www.sci.fi/~pri tel: Int. 358-3-2661885 fax: Int. +358-3-2661886 email:pri@sci.fi