DEMO9S08LIN Freescale, DEMO9S08LIN Datasheet - Page 87

no-image

DEMO9S08LIN

Manufacturer Part Number
DEMO9S08LIN
Description
Manufacturer
Freescale
Datasheet

Specifications of DEMO9S08LIN

Lead Free Status / RoHS Status
Compliant
1
6.2.3
This section provides information about all registers and control bits associated with the parallel I/O ports.
The parallel I/O registers are located in page zero of the memory map.
Refer to tables in
This section refers to registers and control bits only by their names. A Freescale-provided equate or header
file normally is used to translate these names into the appropriate absolute addresses.
6.2.3.1
Port B parallel I/O function is controlled by the data and data direction registers in this section.
Freescale Semiconductor
Reads of PTBD2 always return the contents of PTBD2, regardless of the value stored in the bit PTBDD2
PTBD[7:0]
Reset
Field
7:0
W
R
PTBD7
Port B Registers
Port B Data Registers (PTBD)
Port B Data Register Bits — For port B pins that are inputs, reads return the logic level on the pin. For port B
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 B pins that are configured as outputs, the logic level is
driven out the corresponding MCU pin.
Reset forces PTBD 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.
0
7
Chapter 4,
PTBD6
0
6
MC9S08LC60 Series Data Sheet: Technical Data, Rev. 4
“Memory” for the absolute address assignments for all parallel I/O registers.
Figure 6-10. Port B Data Register (PTBD)
Table 6-6. PTBD Field Descriptions
PTBD5
0
5
PTBD4
0
4
Description
PTBD3
3
0
PTBD2
0
2
1
Chapter 6 Parallel Input/Output
PTBD1
0
1
PTBD0
0
0
87