mc9s08gt32a Freescale Semiconductor, Inc, mc9s08gt32a Datasheet - Page 93

no-image

mc9s08gt32a

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

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc9s08gt32aCFBE
Manufacturer:
FREESCAL
Quantity:
192
Part Number:
mc9s08gt32aCFBE
Manufacturer:
FREESCALE
Quantity:
4 400
Part Number:
mc9s08gt32aCFBE
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
mc9s08gt32aCFBE
Manufacturer:
FREESCALE
Quantity:
4 400
Part Number:
mc9s08gt32aCFBE
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
mc9s08gt32aCFBE
0
Part Number:
mc9s08gt32aCFBER
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
6.6.4
Port D includes eight 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[7:0]
PTDD[7:0]
Reset
Reset
Field
Field
7:0
7:0
W
W
R
R
PTDPE7
PTDD7
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
7
PTDPE6
PTDD6
0
0
6
6
Figure 6-22. Pullup Enable for Port D (PTDPE)
Figure 6-21. Port D Data Register (PTDD)
Table 6-14. PTDPE Field Descriptions
Table 6-13. PTDD Field Descriptions
PTDPE5
PTDD5
MC9S08GB60A Data Sheet, Rev. 1.02
0
0
5
5
PTDPE4
PTDD4
0
0
4
4
Description
Description
PTDPE3
PTDD3
3
0
3
0
PTDPE2
PTDD2
0
0
2
2
Chapter 6 Parallel Input/Output
PTDPE1
PTDD1
0
0
1
1
PTDPE0
PTDD0
0
0
0
0
93

Related parts for mc9s08gt32a