Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
start
banksel CMCON
movlw 0x07 ;************ADICIONADO turn off comparators
movwf CMCON ; ***********ADICIONADO
MOVWF W_TEMP ;copy W to temp register,
;could be in any bank
SWAPF STATUS,W ;swap status to be saved
;into W
BCF STATUS,RP0 ;change to bank 0
;regardless of current
;bank
MOVWF STATUS_TEMP ;save status to bank 0
;register
:
:(ISR)
:
SWAPF STATUS_TEMP,W;swap STATUS_TEMP
register
;into W, sets bank to
original
;state
MOVWF STATUS ;move W into STATUS
;register
SWAPF W_TEMP,F ;swap W_TEMP
SWAPF W_TEMP,W ;swap W_TEMP into W
File still reads _XT_OSC. Shouldn't it be _EC_OSC not _XT_OSC? I.E. I/O on OSC2 (RA6) and clock in on OSC1 (RA7) as per the schematic above. I've never used an external clock so not sure about this. What is in the original file? Just checked, the 84 didn't have the EC option so not sure how this will work.Yep it was XT - updated the file in post #15