CPM Interrupt Controller
MPC885 PowerQUICC Family Reference Manual, Rev. 2
35-10
Freescale Semiconductor
Table 35-4
describes CIVR fields.
Section 35.6, “Interrupt Handler Example—Single-Event Interrupt
Source,”
and
Section 35.7, “Interrupt Handler Example—Multiple-Event Interrupt Source,”
show how
CIVR fields are used.
35.6
Interrupt Handler Example—Single-Event Interrupt Source
In this example, the CPIC hardware clears CIPR[PC6] during the interrupt acknowledge cycle. The
following steps show how to handle an interrupt source without multiple events.
1. Set CIVR[IACK].
2. Read CIVR[VN] to determine the vector number for the interrupt handler.
3. Handle the interrupt event indicated through the port C6 signal.
4. Clear CISR[PC6].
5. Execute the rfi instruction.
35.7
Interrupt Handler Example—Multiple-Event Interrupt Source
In this example, CIPR[SCC2] remains set as long as one or more event bits remain unmasked in SCCE2.
This is an example of a handler for an interrupt source with multiple events. Notice that the handler must
clear the CISR bit but not the CIPR bit.
1. Set the CIVR[IACK].
2. Read CIVR[VN] to determine the vector number for the interrupt handler.
3. Immediately read the SCC2 event register into a temporary location.
4. Decide which events in the SCCE2 must be handled and clear those bits as soon as possible. SCCE
bits are cleared by writing ones.
5. Handle the events in the SCC2 Rx BD or Tx BD tables.
6. Clear CISR[SCC2].
0
4
5
14
15
Field
VN
0
IACK
Reset
0000_00000_0000_0000
R/w
R/W
Addr
0x930
Figure 35-5. CPM Interrupt Vector Register (CIVR)
Table 35-4. CIVR Field Descriptions
Bits
Name
Description
0–4
VN
Vector number. Identifies the interrupt source. These values are listed in
Table 35-2
.
5–14
—
Reserved. Writing to bits 5-15 has no effect because they are always read as zeros.
15
IACK
Interrupt acknowledge. When the core sets IACK, CIVR[VN] is updated with a 5-bit vector corresponding
to the sub-block with the highest current priority. IACK is cleared after one clock cycle.
Summary of Contents for PowerQUICC MPC870
Page 98: ...MPC885 PowerQUICC Family Reference Manual Rev 2 I 4 Freescale Semiconductor ...
Page 118: ...MPC885 Overview MPC885 PowerQUICC Family Reference Manual Rev 2 1 20 Freescale Semiconductor ...
Page 158: ...The MPC8xx Core MPC885 PowerQUICC Family Reference Manual Rev 2 3 18 Freescale Semiconductor ...
Page 288: ...MPC885 PowerQUICC Family Reference Manual Rev 2 III 4 Freescale Semiconductor ...
Page 554: ...MPC885 PowerQUICC Family Reference Manual Rev 2 V 6 Freescale Semiconductor ...
Page 1090: ...UTOPIA Interface MPC885 PowerQUICC Family Reference Manual Rev 2 43 8 Freescale Semiconductor ...
Page 1312: ...Byte Ordering MPC885 PowerQUICC Family Reference Manual Rev 2 A 8 Freescale Semiconductor ...
Page 1336: ...MPC885 PowerQUICC Family Reference Manual Rev 2 D 16 Freescale Semiconductor ...
Page 1358: ...MPC885 PowerQUICC Family Reference Manual Rev 2 D 38 Freescale Semiconductor ...
Page 1370: ...MPC880 MPC885 PowerQUICC Family Reference Manual Rev 2 E 4 Freescale Semiconductor ...
Page 1386: ...Revision History MPC885 PowerQUICC Family Reference Manual Rev 2 I 2 Freescale Semiconductor ...