PICDEM™ 17 Demonstration Board User’s Guide
DS39024B-page 30
2001 Microchip Technology Inc.
; Branch to prolog
movlw HIGH _T0CKI_prolog
movwf PCLATH
movlw LOW _T0CKI_prolog
movwf PCL
;-----------------------------------------------------------;
;***********************************************************;
_PIV_sec CODE H’4020’
;-----------------------------------------------------------;
; Save ALUSTA
movpf ALUSTA, save_ALUSTA ; must save ALUSTA before others
movpf WREG, save_WREG ; temporarily save off WREG
; Branch to prolog
movlw HIGH _PIV_prolog
movwf PCLATH
movlw LOW _PIV_prolog
movwf PCL
;-----------------------------------------------------------;
;***********************************************************;
InterruptCode CODE
;-----------------------------------------------------------;
_INT_prolog
;Save BSR and WREG
movfp BSR, PCLATH
clrf BSR, 1
movpf PCLATH, save_BSR
;Service the interrupt by calling the interrupt
;handling function
goto _INT_2
_INT_1
BANKSEL fpINT
movfp fpINT+1, PCLATH
movfp fpINT, PCL
_INT_2
call _INT_1 ; push address of next instruction on stack
;Restore WREG and BSR
clrf BSR, 1 ;BSR was saved in bank 0
movfp save_BSR, BSR ;Now restore it
movfp save_WREG, WREG ;and WREG as well.
;Restore PCLATH and ALUSTA
movfp save_PCLATH, PCLATH
movfp save_ALUSTA, ALUSTA
;Return from interrupt
RETFIE
;-----------------------------------------------------------;
;-----------------------------------------------------------;
_TMR0_prolog
Содержание Picdem 17
Страница 1: ...PICDEM 17 DEMONSTRATION BOARD USER S GUIDE 2001 Microchip Technology Inc DS39024B ...
Страница 19: ... 2001 Microchip Technology Inc DS39024B page 13 Using the PICDEM 17 Monitor Figure 2 5 Running Diagnostics ...
Страница 24: ...PICDEM 17 Demonstration Board User s Guide DS39024B page 18 2001 Microchip Technology Inc NOTES ...
Страница 28: ...PICDEM 17 Demonstration Board User s Guide DS39024B page 22 2001 Microchip Technology Inc NOTES ...
Страница 40: ...PICDEM 17 Demonstration Board User s Guide DS39024B page 34 2001 Microchip Technology Inc NOTES ...
Страница 62: ...PICDEM 17 Demonstration Board User s Guide DS39024B page 56 2001 Microchip Technology Inc NOTES ...
Страница 80: ...PICDEM 17 Demonstration Board User s Guide DS39024B page 74 2001 Microchip Technology Inc NOTES ...
Страница 82: ...PICDEM 17 Demonstration Board User s Guide DS39024B page 76 2001 Microchip Technology Inc A 1 SCHEMATIC 1 ...
Страница 83: ... 2001 Microchip Technology Inc DS39024B page 77 PICDEM 17 Demonstration Board Schematics A 2 SCHEMATIC 2 ...
Страница 84: ...PICDEM 17 Demonstration Board User s Guide DS39024B page 78 2001 Microchip Technology Inc A 3 SCHEMATIC 3 ...
Страница 85: ... 2001 Microchip Technology Inc DS39024B page 79 PICDEM 17 Demonstration Board Schematics A 4 SCHEMATIC 4 ...
Страница 86: ...PICDEM 17 Demonstration Board User s Guide DS39024B page 80 2001 Microchip Technology Inc NOTES ...
Страница 90: ...PICDEM 17 Demonstration Board User s Guide DS39024B page 84 2001 Microchip Technology Inc NOTES ...
Страница 91: ... 2001 Microchip Technology Inc DS39024B page 85 Floppy Disk Contents NOTES ...