Datasheet
Chapter 6 Parallel Input/Output
MC9S08LC60 Series Data Sheet: Technical Data, Rev. 4
88 Freescale Semiconductor
6.2.3.2 Port B Data Direction Registers (PTBDD)
6.2.4 Port B Control Registers
Associated with the parallel I/O ports is a set of registers located in the high page register space that operate
independently of the parallel I/O registers. These registers are used to control pullups, slew rate, and drive
strength for the associated pins and may be used in conjunction with the peripheral functions on these pins
for most modules.
The pins associated with Port B are controlled by the registers in this section. These registers control the
pin pullup, slew rate and drive strength of the Port B pins independent of the parallel I/O registers.
6.2.4.1 Internal Pullup Enable (PTBPE)
An internal pullup device can be enabled for each port pin by setting the corresponding bit in the pullup
enable register (PTBPEn). The pullup device is disabled if the pin is configured as an output by the parallel
I/O control logic or any shared peripheral function regardless of the state of the corresponding pullup
enable register bit. The pullup device is also disabled if the pin is controlled by an analog function.
76543210
R
PTBDD7 PTBDD6 PTBDD5 PTBDD4 PTBDD3 PTBDD2
1
1
PTBDD2 has no effect on the output-only PTB2 pin.
PTBDD1 PTBDD0
W
Reset 00000000
Figure 6-13. Data Direction for Port B (PTBDD)
Table 6-7. PTBDD Field Descriptions
Field Description
7:0
PTBDD[7:0]
Data Direction for Port B Bits — These read/write bits control the direction of port B pins and what is read for
PTBD reads.
0 Input (output driver disabled) and reads return the pin value.
1 Output driver enabled for port B bit n and PTBD reads return the contents of PTBDn.
