First page Back Continue Last page Overview Graphics
Interrupt Priorities – HPRIO register
The priority of a single maskable interrrupt can be raised to the top of the priority list by writing to the High Priority I Interrupt (HPRIO) register.
The value to be used is found in the last column of the Interrupt Vector Map table.
Only bits 1 through 5 are used (bits 0, 6, and 7 are fixed) so values are between $C0 and $FE.
Each interrupt is assigned an 8-bit priority number, which is equal to the lower nibble of the lower byte of the interrupt vector address. A higher priority number indicates a higher priority. Interrupt priorities are listed in chip-specific technical reference manual, for example, we find the Interrupt Vector Map for the M68HC(9)12B in Table 4-1 of the Data Sheet for the Motorola M68HC12B Family.
The priority of one interrupt may be elevated to the highest priority level by writing its priority number into the HPRIO register. Bits 6 and 7 of all priority values are always one. Bit 0 of all priority values is zero. To avoid indeterminacy, the HPRIO register can be modified only when interrupts are disabled.