Parallel I/O Ports
MPC885 PowerQUICC Family Reference Manual, Rev. 2
Freescale Semiconductor
34-13
5. Write the signal value using the PCDAT register.
The following steps can be taken to configure a port C signal as a general-purpose input signal that does
not generate an interrupt:
1. Write the corresponding PCPAR bit with a zero.
2. Write the corresponding PCDIR bit with a zero.
3. Write the corresponding PCSO bit with a zero.
4. The corresponding PCINT bit is a ‘don’t care’ bit.
5. Write the corresponding CIMR bit with a zero to prevent interrupts from being generated to the
core.
6. Read the signal value using the PCDAT register.
When a port C signal is configured as a general-purpose I/O input, a change in the port C interrupt register
(PCINT) causes an interrupt request signal to be sent to the CPIC. Each port C signal can be configured to
assert an interrupt request either when a high-to-low change occurs or when any change occurs. Each port
C signal asserts a unique interrupt request to the CPM interrupt pending register (CIPM) (see
Section 35.5.2, “CPM Interrupt Pending Register (CIPR)”
) and has a different internal interrupt priority
level within the CPM interrupt controller (see
Section 35.2, “CPM Interrupt Source Priorities”
).
Requests can be masked independently in the CPM interrupt mask register (CPMR). See
Section 35.5.3,
“CPM Interrupt Mask Register.”
The following steps configure a port C signal as a general-purpose input
that generates an interrupt:
1. Write the corresponding PCPAR bit with a 0.
2. Write the corresponding PCDIR bit with a 0.
3. Write the corresponding PCSO bit with a 0.
4. Set the PCINT bit to determine which edges cause interrupts.
5. Write the corresponding CIMR bit with a 1 so that interrupts can be sent to the core.
6. Read the signal value using the PCDAT register.
The port C signals associated with CDx and CTSx have a mode of operation in which the signal can be
connected to the SCC internally but can also generate interrupts. Port C still detects changes on CTS and
CD and asserts the corresponding interrupt request, but the SCC simultaneously uses CTS and/or CD to
control operation automatically. This allows the implementation of V.24, X.21, and X.21 bis protocols with
help from other general-purpose I/O signals. To configure a port C signal as a CTS or CD signal that
connects to the SCC and generates interrupts, follow these steps:
1. Write the corresponding PCPAR bit with a 0.
2. Write the corresponding PCDIR bit with a 0.
3. Write the corresponding PCSO bit with a 1.
4. Set the PCINT bit to determine which edges cause interrupts.
5. Write the corresponding CIMR bit with a 1 so that interrupts can be sent to the core.
6. The signal value can be read at any time using the PCDAT register.
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 ...