poojapatel2210
New Member
****************************************
;routine to set 5S time out, use Timer 1
;****************************************
Tout5SOn:
movlw 0x67
movwf TMR1H
movlw 0x6A
movwf TMR1L
goto SetToutTMR
movwf TMR1L
SetToutTMR:
call SetBank1
bcf PIE1,TMR1IE ;disable TMR1 int
call SetBank0
movlw b'00110100'
movwf T1CON
bsf T1CON,TMR1ON ;turn on timer 1
;routine to set 5S time out, use Timer 1
;****************************************
Tout5SOn:
movlw 0x67
movwf TMR1H
movlw 0x6A
movwf TMR1L
goto SetToutTMR
movwf TMR1L
SetToutTMR:
call SetBank1
bcf PIE1,TMR1IE ;disable TMR1 int
call SetBank0
movlw b'00110100'
movwf T1CON
bsf T1CON,TMR1ON ;turn on timer 1