Datasheet

Chapter 6 Parallel Input/Output Control
MC9S08SH32 Series Data Sheet, Rev. 2
Freescale Semiconductor 81
6.6.1 Port A Registers
Port A is controlled by the registers listed below.
The pins PTA4 and PTA5 are unique. PTA4 is output-only, so the control bits for the input function will
not have any effect on this pin. PTA5, when configured as an output, is open drain.
NOTE
This PTA5 pin does not contain a clamp diode to V
DD
and should not be
driven above V
DD
.
When the internal pullup device is enabled on PTA5 when used as an input
or open drain output the voltage measured on PTA5 will not be pulled to
V
DD
. The internal gates connected to this pin are pulled to V
DD
. If the PTA5
pin is required to drive to a V
DD
level an external pullup should be used.
6.6.1.1 Port A Data Register (PTAD)
76543210
R
PTAD7 PTAD6 PTAD5 PTAD4
1
1
Reads of bit PTAD4 always return the contents of PTAD4, regardless of the value stored in bit PTADD4.
PTAD3 PTAD2 PTAD1 PTAD0
W
Reset: 00000000
Figure 6-3. Port A Data Register (PTAD)
Table 6-2. PTAD Register Field Descriptions
Field Description
7:0
PTAD[7:0]
Port A Data Register Bits — For port A pins that are inputs, reads return the logic level on the pin. For port A
pins that are configured as outputs, reads return the last value written to this register.
Writes are latched into all bits of this register. For port A pins that are configured as outputs, the logic level is
driven out the corresponding MCU pin.
Reset forces PTAD to all 0s, but these 0s are not driven out the corresponding pins because reset also configures
all port pins as high-impedance inputs with pull-ups/pull-downs disabled.
PRELIMINARY