MCCIRM Freescale Semiconductor / Motorola, MCCIRM Datasheet - Page 35

no-image

MCCIRM

Manufacturer Part Number
MCCIRM
Description
MCCIRM Multi-Channel Communications Interface Reference Manual
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
3.7.1 MCCI Port Data Registers
Multichannel Communication Interface — Rev. 1.0
MOTOROLA
Register name and address: MCCI Port Data Register (PORTMC), $XXXX0C
Reset:
Read:
Write:
Bit 15
14
Figure 3-5. MCCI Port Data Registers (PORTMC and PORTMCP)
13
MCCI Port Pin State Register (PORTMCP), $XXXX0E
Reserved
12
Two registers are associated with port MCCI, the MCCI general-purpose
I/O port. Pins used for general-purpose I/O must be configured for that
function.
an output port, after configuring the pins for I/O, write the first byte to be
output before writing to the MDDR. Then write to the MDDR to assign
each I/O pin as either input or output. This outputs the value contained
in register PORTMC for all pins defined as outputs. To output different
data, write another byte to PORTMC.
Writes to PORTMC, the MCCI port data register, are stored in the
internal data latch. If any bit of PORTMC is configured as discrete
output, the value latched for that bit is driven onto the pin. Reads of
PORTMC return the value of the pin only if the pin is configured as a
discrete input. Otherwise, the value read is the value of the latch.
Reads of PORTMCP, the MCCI pin state register, always return the
state of the pins regardless if the pins are configured for input or output.
Writes to PORTMCP have no effect.
Freescale Semiconductor, Inc.
11
For More Information On This Product,
10
(Table 3-3
Go to: www.freescale.com
Configuration and Control
9
8
explains how to do this.) When using port MCCI as
(TXDA)
PMC
0
7
(RXDA)
PMC6
6
0
(TXDB)
PMC5
5
0
Pin Control and General-Purpose I/O
(RXDB)
PMC4
4
0
PMC3
(SS)
Configuration and Control
0
3
PMC2
(SCK)
2
0
Reference Manual
(MOSI)
PMC1
1
0
(MISO)
PMC0
Bit 0
0
35

Related parts for MCCIRM