DEMO9S08LIN Freescale, DEMO9S08LIN Datasheet - Page 88

no-image

DEMO9S08LIN

Manufacturer Part Number
DEMO9S08LIN
Description
Manufacturer
Freescale
Datasheet

Specifications of DEMO9S08LIN

Lead Free Status / RoHS Status
Compliant
1
Chapter 6 Parallel Input/Output
6.2.3.2
6.2.4
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
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.
88
PTBDD[7:0]
PTBDD2 has no effect on the output-only PTB2 pin.
Reset
Field
7:0
W
R
PTBDD7
Port B Control Registers
Port B Data Direction Registers (PTBDD)
Internal Pullup Enable (
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.
0
7
PTBDD6
0
6
MC9S08LC60 Series Data Sheet: Technical Data, Rev. 4
Figure 6-13. Data Direction for Port B (PTBDD)
Table 6-7. PTBDD Field Descriptions
PTBDD5
0
5
PTBPE)
PTBDD4
0
4
Description
PTBDD3
3
0
PTBDD2
0
2
1
PTBDD1
Freescale Semiconductor
0
1
PTBDD0
0
0