Freescale Semiconductor MCF51QE128RM Answering Machine User Manual


 
MCF51QE128 MCU Series Reference Manual, Rev. 3
138 Freescale Semiconductor
Get the latest version from freescale.com
Chapter 6 Parallel Input/Output Control
6.7.9 Port J Registers
Port J is controlled by the registers listed below.
6.7.9.1 Port J Data Register (PTJD)
6.7.9.2 Port J Data Direction Register (PTJDD)
Table 6-46. PTHDS Register Field Descriptions
Field Description
7–0
PTHDSn
Output Drive Strength Selection for Port H Bits. Each of these control bits selects between low and high output
drive for the associated PTH pin. For port H pins configured as inputs, these bits have no effect.
0 Low output drive strength selected for port H bit n.
1 High output drive strength selected for port H bit n.
76543210
R
PTJD7 PTJD6 PTJD5 PTJD4 PTJD3 PTJD2 PTJD1 PTJD0
W
Reset:00000000
Figure 6-50. Port J Data Register (PTJD)
Table 6-47. PTJD Register Field Descriptions
Field Description
7–0
PTJDn
Port J Data Register Bits. For port J pins configured as inputs, reads return the logic level on the pin. For port J
pins configured as outputs, reads return the last value written to this register.
Writes are latched into all bits of this register. For port J pins configured as outputs, the logic level is driven out
the corresponding MCU pin.
Reset forces PTJD 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 disabled.
76543210
R
PTJDD7 PTJDD6 PTJDD5 PTJDD4 PTJDD3 PTJDD2 PTJDD1 PTJDD0
W
Reset:00000000
Figure 6-51. Port J Data Direction Register (PTJDD)
Table 6-48. PTJDD Register Field Descriptions
Field Description
7–0
PTJDDn
Data Direction for Port J Bits. These read/write bits control the direction of port J pins and what is read for PTJD
reads.
0 Input (output driver disabled) and reads return the pin value.
1 Output driver enabled for port J bit n and PTJD reads return the contents of PTJDn.