mc68hc916y3 Freescale Semiconductor, Inc, mc68hc916y3 Datasheet - Page 445

no-image

mc68hc916y3

Manufacturer Part Number
mc68hc916y3
Description
Mc68hc16y3 16 Bit Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
D.8.8 MCCI Port Data Registers
PORTMC — MCCI Port Data Register
PORTMCP — MCCI Port Pin State Register
D.8.9 SCI Control Register 0
SCCR0A — SCIA Control Register 0
SCCR0B — SCIB Control Register 0
Bits [15:13] — Not Implemented
SCBR[12:0] — SCI Baud Rate
MC68HC16Y3/916Y3
USER’S MANUAL
RESET:
RESET:
15
15
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. When using port
MCCI as an output port, after configuring the pins as I/O, write the first byte to be
output before writing to the MDDR. Afterwards, 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 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 always return the state of the pins regardless of whether the pins
are configured for input or output. Writes to PORTMCP have no effect.
SCCR0 contains the SCI baud rate selection field. Baud rate must be set before the
SCI is enabled. The CPU16 can read and write SCCR0 at any time. Changing the
value of SCCR0 bits during a transfer operation can disrupt the transfer.
SCI baud rate is programmed by writing a 13-bit value to this field. Writing a value of
zero to SCBR disables the baud rate generator. Baud clock rate is calculated as fol-
lows:
NOT USED
13
NOT USED
12
0
Freescale Semiconductor, Inc.
11
For More Information On This Product,
0
10
0
Go to: www.freescale.com
9
9
0
PMC7
U
8
8
0
PMC6
7
U
7
0
SCBR[12:0]
PMC5
U
6
6
0
PMC5
U
5
5
0
PMC4
U
4
4
0
PMC3
U
3
3
0
PMC2
U
2
2
1
$YFFC0C
$YFFC0E
$YFFC18
$YFFC28
MOTOROLA
PMC1
U
1
1
0
PMC0
D-67
0
U
0
0

Related parts for mc68hc916y3