//Vectored Interrupts for MVECEN=ON
void __interrupt(irq(IRQ_INT0), base(0x40F0)) INT0_ISR(void)
{
PIR1bits.INT0IF = 0; // Clear INT0 interrupt flag
//place code here
}
void __interrupt(irq(IRQ_ZCD), base(0x40F0)) ZCD_ISR(void)
{
PIR1bits.ZCDIF = 0; // Clear ZCD interrupt flag
//place code here
}
void __interrupt(irq(IRQ_CMP1), base(0x40F0)) C1_ISR(void)
{
PIR1bits.C1IF = 0; // Clear C1 interrupt flag
//place code here
}
void __interrupt(irq(CLC1_TMR3), base(0x40F0)) CLC1_ISR(void)
{
PIR4bits.CLC1IF = 0; // Clear CLC1 interrupt flag
//place code here
}
void __interrupt(irq(IRQ_TMR0), base(0x40F0)) TMR0_ISR(void)
{
PIR3bits.TMR0IF = 0; // Clear TMR0 interrupt flag
//place code here
}
void __interrupt(irq(IRQ_TMR1), base(0x40F0)) TMR1_ISR(void)
{
PIR4bits.TMR1IF = 0; // Clear TMR1 interrupt flag
//place code here
}
void __interrupt(irq(IRQ_TMR2), base(0x40F0)) TMR2_ISR(void)
{
PIR4bits.TMR2IF = 0; // Clear TMR2 interrupt flag
//place code here
}
void __interrupt(irq(IRQ_TMR3), base(0x40F0)) TMR3_ISR(void)
{
PIR6bits.TMR3IF = 0; // Clear TMR3 interrupt flag
//place code here
}
It's been around since the k42 series 2017. Proud to say first fabbed in Oregon.Sorry, I made a sweeping statement there without checking to see if it's really true! But the article that the Microchipdeveloper link goes to says: "Vectored interrupts (available on some of the latest PIC18F devices) improve the response time..." Evidently it's not a common feature, and they're proud to be offering it. Even though the competition has had it for years.
| Thread starter | Similar threads | Forum | Replies | Date |
|---|---|---|---|---|
|
|
STM32, libopencm3 and interrupt service routines | Microcontrollers | 4 | |
| E | Which Timer to Use on AT89S52 -1ms Timer Interrupt ? | Microcontrollers | 11 | |
|
|
Shorter interrupt latency (PIC 16F) | Microcontrollers | 1 | |
| B | PIC24H Interrupt Latency Diagram Help | Microcontrollers | 5 | |
| D | Slave I2C interrupt latency? | Microcontrollers | 2 |