Hi to all engineers. I am using 16c71 I was working on small code to change prescaler and timer clock to internal or external using RA4 with out bothering higher or lower nibbles. RB7 is timer clock input RB6,5,4 are prescaler inputs timer switch can be 1 or 0 bit 5 in option register prescaler switch can be 000 001 010 011 100 101 110 111 bit 0,1,2 in option registor this is what I am thinking to do BTFSC PORTB,7 ; test timer clock switch MOVLW B'00010000' ; if off load this for ext BTFSS PORTB,7 ; test timer pin MOVLW B'00000000' ; if on load this for int MOVWF TIMER_REG ; save it here BTFSS PORTB,6 ; test 1 of pre switch ADDLW .1 ; if low add 1 BTFSS PORTB,5 ; same as above ADDLW .1 ; / BTFSS PORTB,4 ; / ADDLW .1 ; / MOVWF PRE_REG ; save prescaler here ADDWF TIMER_REG,F ; add pre to timer MOVWF OPTION_REG ; send it to option register did I do it correctly? is there better way of doing it. Andre Abelian