Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** V E C T O R R E M A P P I N G *******************************************/
- #pragma code HIGH_INTERRUPT_VECTOR = 0x08
- void Remapped_High_ISR (void)
- {
- _asm goto HighPriorityISRCode _endasm
- }
- #pragma code LOW_INTERRUPT_VECTOR = 0x18
- void Remapped_Low_ISR (void)
- {
- _asm goto LowPriorityISRCode _endasm
- }
- #pragma code
- //These are your actual interrupt handling routines.
- #pragma interrupt HighPriorityISRCode
- void HighPriorityISRCode()
- {
- // check here for High Priority interrupts (PIR1bits, INTCON, etc)
- }
- #pragma interruptlow LowPriorityISRCode
- void LowPriorityISRCode()
- {
- }
- /** D E C L A R A T I O N S **************************************************/
- #pragma code
- void main(void)
- {
- // ....
- }
Advertisement
Add Comment
Please, Sign In to add comment