mc68hc916y3 Freescale Semiconductor, Inc, mc68hc916y3 Datasheet - Page 179

no-image

mc68hc916y3

Manufacturer Part Number
mc68hc916y3
Description
Mc68hc16y3 16 Bit Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
5.10.1 Ports A and B
5.10.2 Port E
MC68HC16Y3/916Y3
USER’S MANUAL
Access to the port A, B, E, F, G, and H data and data direction registers, and the port
C, E, and F pin assignment registers require three clock cycles to ensure timing com-
patibility with external port replacement logic. Port registers are byte-addressable and
are grouped to allow coherent word access to port data register pairs A-B and G-H, as
well as word-aligned long word coherency of A-B-G-H port data registers.
If emulation mode is enabled, the emulation mode chip-select signal CSE is asserted
whenever an access to ports A, B, E, G, and H data and data direction registers or the
port E pin assignment register is made. The SCIM2 does not respond to these access-
es, but allows external logic, such as a Motorola port replacement unit (PRU)
MC68HC33 to respond. Port C data and data direction register, port F data and data
direction register, and the port F pin assignment register remain accessible.
A write to the port A, B, E, F, G, or H data register is stored in the internal data latch.
If any port pin is configured as an output, the value stored for that bit is driven on the
pin. A read of the port data register returns the value at the pin only if the pin is config-
ured as a discrete input. Otherwise, the value read is the value stored in the register.
Ports A and B are available in single-chip mode only. One data direction register con-
trols data direction for both ports. Port A and B registers can be read or written at any
time the MCU is not in emulator mode.
Port A/B data direction bits (DDA and DDB) control the direction of the pin drivers for
ports A and B, respectively, when the pins are configured for I/O. Setting DDA or DDB
to one configures all pins in the corresponding port as outputs. Clearing DDA or DDB
to zero configures all pins in the corresponding port as inputs.
Port E can be made available in all operating modes. The state of BERR and DATA8
during reset controls whether the port E pins are used as bus control signals or dis-
crete I/O lines.
If the MCU is in emulator mode, an access of the port E data, data direction, or pin
assignment registers (PORTE, DDRE, PEPAR) is forced to go external. This allows
port replacement logic to be supplied externally, giving an emulator access to the bus
control signals.
The port E data register (PORTE) is a single register that can be accessed in two
locations. It can be read or written at any time the MCU is not in emulator mode.
Port E data direction register (DDRE) bits control the direction of the pin drivers when
the pins are configured as I/O. Any bit in this register set to one configures the
corresponding pin as an output. Any bit in this register cleared to zero configures the
corresponding pin as an input. This register can be read or written at any time the MCU
is not in emulator mode.
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA
5-71

Related parts for mc68hc916y3