> the compiler does not recognize the ansel register That can happen if the project hasn't been configured with the correct micro or includes, eg list P =3D 16F88 include "P16f88.inc" __CONFIG _CONFIG1, _CP_OFF & _HS_OSC & _MCLR_ON & _WDT_OFF & _PWRTE_OFF & _BODEN_OFF & _LVP_OFF __CONFIG _CONFIG2, _IESO_OFF & _FCMEN_OFF For 16F88 project with no analogue, all outputs banksel trisb movlw b'00000000' movwf trisb banksel option_reg movlw b'10000000' ; 1 pullups off movwf option_reg banksel ansel movlw b'00000000' ;all digital movwf ansel banksel cmcon movlw b'00000111' ;comparators off movwf cmcon Joe --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .