|
MC68HC05E0 Datasheet, PDF (74/96 Pages) Motorola, Inc – High-density complementary metal oxide semiconductor (HCMOS) microcontroller unit | |||
|
◁ |
BD1, BD0 â Baud Rate Select Bits (see Table 8-2).
PS1, PS0 â Port Select Bits
These bits should be 01 (binary) to select an I2C-bus function (see Table 8-1).
The I2C-bus Interface is controlled via the SI S Register ($0011).
Serial interface S register
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
$0011
BB
ACK
TFF/
DOIT
IRQ/
ACK
NMA
SP
ST R/WB 0000 0000
BB â Bus Busy Bit
BB is a read-only bit which indicates if the I2C-bus is busy or idle. BB is set if a START condition
is seen on the data line. This implies that another I2C-bus master is using the bus, and that if the
MC68HC05E0 tries to start an I2C-bus sequence a data/clock collision will occur. BB is cleared
when the corresponding STOP condition, implying that the bus is again idle, is detected on the
bus. This ï¬ag generates no interrupt.
8
1 (set) â Busy
0 (clear) â Idle
ACK â Acknowledge Bit
ACK is a read-only bit which goes high if an acknowledge signal is given by a peripheral (via the
9th clock bit) after the MC68HC05E0 has transmitted a byte of data to it. ACK is updated at the
end of each receive sequence.
1 (set) â Acknowledgement received from peripheral
0 (clear) â Acknowledgement not received from peripheral
TFF/DOIT â Transmission Failure Flag/âDo itâ Bit
Writing this bit high starts an I2C-bus transaction. Reading this bit at the end of an I2C-bus
transmit sequence shows the state of the TFF ï¬ag. If high, this indicates a mismatch between data
in the SI Data Register and the data sent on the serial data line. Writing a zero to this bit clears
and resets the Transmission Failure Flag circuitry.
Read
Write
1 (set) â Transmission error
Start Send or Receive
0 (clear) â No transmission error
Clear and reset TFF
MOTOROLA
8-8
SERIAL INTERFACE
MC68HC05E0
|
▷ |