English
Language : 

MC68HC912DG128 Datasheet, PDF (289/452 Pages) Motorola, Inc – Microcontrollers
Freescale Semiconductor, Inc.
Inter-IC Bus
IIC Register Descriptions
PORTIB — Port Data IB Register
IIC
RESET:
Bit 7
PIB7
SCL
-
6
PIB6
SDA
-
5
PIB5
-
-
4
PIB4
-
-
3
PIB3
-
-
2
PIB2
-
-
1
PIB1
-
-
Bit 0
PIB0
-
-
$00E6
Read and write anytime.
IIC functions SCL and SDA share port IB pins 7 and 6 and take
precedence over the general-purpose port when IIC is enabled. The
SCL and SDA output buffers behave as open-drain outputs.
When port is configured as input, a read will return the pin level. Port bits
3-0 have internal pull ups when configured as inputs so they will read ones.
When configured as output, a read will return the latched output data.
Port bits 5 through 0 will read the last value written. A write will drive
associated pins only if configured for output and IIC is not enabled.
Port bits 3-0 do not have available external pins.
DDRIB — Data Direction for Port IB Register
RESET:
Bit 7
DDRIB7
0
6
DDRIB6
0
5
DDRIB5
0
4
DDRIB4
0
3
DDRIB3
0
2
DDRIB2
0
1
DDRIB1
0
Bit 0
DDRIB0
0
$00E7
Read and write anytime
DDRIB[7:4] — Port IB [7:4] Data direction
Each bit determines the primary direction for each pin configured as
general-purpose I/O.
0 = Associated pin is a high-impedance input.
1 = Associated pin is an output.
DDRIB[3:0] — These bits serve as memory locations since there are no
corresponding external port pins.
MC68HC912DG128 — Rev 3.0
MOTOROLA
Inter-IC Bus
For More Information On This Product,
Go to: www.freescale.com
Technical Data
289