MC68HC912B32MFU8 MOTOROLA [Motorola, Inc], MC68HC912B32MFU8 Datasheet - Page 52

no-image

MC68HC912B32MFU8

Manufacturer Part Number
MC68HC912B32MFU8
Description
16-Bit Microcontroller
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet
9 Resets and Interrupts
9.1 Exception Priority
9.2 Maskable Interrupts
52
MOTOROLA
CPU12 exceptions include resets and interrupts. Each exception has an associated 16-bit vector, which
points to the memory location where the routine that handles the exception is located. Vectors are
stored in the upper 128 bytes of the standard 64-Kbyte address map.
The six highest vector addresses are used for resets and non-maskable interrupt sources. The remain-
der of the vectors are used for maskable interrupts, and all must be initialized to point to the address of
the appropriate service routine.
A hardware priority hierarchy determines which reset or interrupt is serviced first when simultaneous
requests are made. Six sources are not maskable. The remaining sources are maskable, and any one
of them can be given priority over other maskable interrupts.
The priorities of the non-maskable sources are:
Maskable interrupt sources include on-chip peripheral systems and external interrupt service requests.
Interrupts from these sources are recognized when the global interrupt mask bit (I) in the CCR is
cleared. The default state of the I bit out of reset is one, but it can be written at any time.
Interrupt sources are prioritized by default but any one maskable interrupt source may be assigned the
highest priority by means of the HPRIO register. The relative priorities of the other sources remain the
same.
An interrupt that is assigned highest priority is still subject to global masking by the I bit in the CCR, or
by any associated local bits. Interrupt vectors are not affected by priority assignment. HPRIO can only
be written while the I bit is set (interrupts inhibited). Table 17 lists interrupt sources and vectors in default
order of priority.
Vector Address
$FFEC, $FFED
$FFEA, $FFEB
$FFFC, $FFFD
$FFFA, $FFFB
$FFEE, $FFEF
$FFFE, $FFFF
$FFF8, $FFF9
$FFF6, $FFF7
$FFF4, $FFF5
$FFF2, $FFF3
$FFF0, $FFF1
1. POR or RESET pin
2. Clock monitor reset
3. COP watchdog reset
4. Unimplemented instruction trap
5. Software interrupt instruction (SWI)
6. XIRQ signal (if X bit in CCR = 0)
Reset
COP clock monitor fail reset
COP failure reset
Unimplemented instruction trap
SWI
XIRQ
IRQ
Real time interrupt
Timer channel 0
Timer channel 1
Timer channel 2
Interrupt Source
Table 17 Interrupt Vector Map
Mask
None
None
None
None
None
CCR
X bit
I bit
I bit
I bit
I bit
I bit
COPCTL (CME, FCME)
COP rate selected
INTCR (IRQEN)
RTICTL (RTIE)
Local Enable
Register (Bit)
TMSK1 (C0I)
TMSK1 (C1I)
TMSK1 (C2I)
None
None
None
None
MC68HC912B32TS/D
HPRIO Value to
MC68HC912B32
Elevate
$EC
$EE
$EA
$F2
$F0

Related parts for MC68HC912B32MFU8