mc9s08gt16a Freescale Semiconductor, Inc, mc9s08gt16a Datasheet - Page 93

no-image

mc9s08gt16a

Manufacturer Part Number
mc9s08gt16a
Description
Hcs08 Microcontrollers 8-bit Microcontroller Family
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc9s08gt16aCBE
Manufacturer:
SHARP
Quantity:
1 200
Part Number:
mc9s08gt16aCFBE
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
mc9s08gt16aCFBE
Quantity:
480
Part Number:
mc9s08gt16aCFBER
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
mc9s08gt16aCFBER
Manufacturer:
FREESCALE
Quantity:
8 000
Part Number:
mc9s08gt16aCFBER
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Part Number:
mc9s08gt16aMFBE
Manufacturer:
XILINX
Quantity:
1 300
Part Number:
mc9s08gt16aMFBE
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
6.5.4
Port D includes five pins shared between general-purpose I/O, TPM1, and TPM2. Port D pins used as
general-purpose I/O pins are controlled by the port D data (PTDD), data direction (PTDDD), pullup enable
(PTDPE), and slew rate control (PTDSE) registers.
If a TPM takes control of a port D pin, the corresponding PTDDD bit is ignored. When the TPM is in
output compare mode, the corresponding PTDSE can be used to provide slew rate on the pin. When the
TPM is in input capture mode, the corresponding PTDPE can be used, provided the corresponding
PTDDD bit is 0, to provide a pullup device on the pin.
Reads of PTDD will return the logic value of the corresponding pin, provided PTDDD is 0.
Freescale Semiconductor
PTDPE[4:0]
PTDD[4:0]
Reset
Reset
Field
Field
4:0
4:0
W
W
R
R
Port D Registers (PTDD, PTDPE, PTDSE, and PTDDD)
Port D Data Register Bits — For port D pins that are inputs, reads return the logic level on the pin. For port D
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 D pins that are configured as outputs, the logic level is
driven out the corresponding MCU pin.
Reset forces PTDD 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 pullups disabled.
Pullup Enable for Port D Bits — For port D pins that are inputs, these read/write control bits determine whether
internal pullup devices are enabled. For port D pins that are configured as outputs, these bits are ignored and
the internal pullup devices are disabled.
0 Internal pullup device disabled.
1 Internal pullup device enabled.
0
0
7
0
7
0
0
0
0
0
6
6
Figure 6-21. Pullup Enable for Port D (PTDPE)
Figure 6-20. Port D Data Register (PTDD)
Table 6-14. PTDPE Field Descriptions
Table 6-13. PTDD Field Descriptions
MC9S08GT16A/GT8A Data Sheet, Rev. 1
0
0
0
0
5
5
PTDPE4
PTDD4
0
0
4
4
Description
Description
PTDPE3
PTDD3
3
0
3
0
PTDPE2
PTDD2
0
0
2
2
PTDPE1
PTDD1
0
0
1
1
Parallel Input/Output
PTDPE0
PTDD0
0
0
0
0
93

Related parts for mc9s08gt16a