MC68HC12 MOTOROLA [Motorola, Inc], MC68HC12 Datasheet - Page 318

no-image

MC68HC12

Manufacturer Part Number
MC68HC12
Description
The MC68HC912DT128A microcontroller unit (MCU) is a 16-bit device composed of standard on-chip peripherals including a 16-bit central processing unit
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet
DDRIB — Data Direction for Port IB Register
Inter IC Bus
17.7 IIC Programming Examples
17.7.1 Initialization Sequence
Technical Data
318
RESET:
DDRIB7
Bit 7
0
DDRIB6
Read and write anytime
DDRIB[7:2]— Port IB [7:2] Data direction
DDRIB[5:0] — These bits served as memory locations since there are
no corresponding external port pins for MC68HC912DT128A.
Reset will put the IIC Bus Control Register to its default status. Before
the interface can be used to transfer serial data, an initialization
procedure must be carried out, as follows:
6
0
1. Update the Frequency Divider Register (IBFD) and select the
2. Update the IIC Bus Address Register (IBAD) to define its slave
3. Set the IBEN bit of the IIC Bus Control Register (IBCR) to enable
4. Modify the bits of the IIC Bus Control Register (IBCR) to select
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.
required division ratio to obtain SCL frequency from system clock.
address.
the IIC interface system.
Master/Slave mode, Transmit/Receive mode and interrupt enable
or not.
DDRIB5
5
0
DDRIB4
Inter IC Bus
4
0
DDRIB3
3
0
DDRIB2
2
0
MC68HC912DT128A — Rev 4.0
DDRIB1
1
0
DDRIB0
Bit 0
0
MOTOROLA
$00E7

Related parts for MC68HC12