Interrupts
Posted: Wed Dec 03, 2025 9:20 pm
Using PIC18f27q10. FC11
I have two interrupts. One is a hardware input interrupt. The other is a timer0 interrupt. I believe that priorities are settable but requires a few c code register adjustments such as (maybe):
IPR0bits.INT0IP = 1; // High priority
IPR0bits.TMR0IP = 0; // Low priority
I don't seem to be able to locate these registers in the data sheet, but this seems to compile ok.
If you have any details on this, I would appreciate feedback but.... - If I do not assign priorities, what default priority takes place?
I have two interrupts. One is a hardware input interrupt. The other is a timer0 interrupt. I believe that priorities are settable but requires a few c code register adjustments such as (maybe):
IPR0bits.INT0IP = 1; // High priority
IPR0bits.TMR0IP = 0; // Low priority
I don't seem to be able to locate these registers in the data sheet, but this seems to compile ok.
If you have any details on this, I would appreciate feedback but.... - If I do not assign priorities, what default priority takes place?