org 0
clrf PORTA
clrf PORTB
clrf PORTC
; clrf PORTD
clrf PORTE
banksel CM2CON0 ;B2
clrf CM1CON0
clrf CM2CON0
banksel OSCCON ;B1
movlw b'01110000' ;8Mhz selected
movwf OSCCON
banksel ANSEL ;B3
movlw 0x00 ;Set portA to digital I/O
movwf ANSEL
banksel TRISA ;B1
movlw 0xFF
movwf TRISA ; all portC OUTPUTS
movwf TRISE
; movwf TRISD
movlw 0x00
movwf TRISB
movwf TRISC
banksel OPTION_REG ;B1/3
movlw b'10000111' ;use Prescale 256:1 **NOT YET DEFINED**
movwf OPTION_REG
clrf T1CON