mc68hc908ld64 Freescale Semiconductor, Inc, mc68hc908ld64 Datasheet - Page 232

no-image

mc68hc908ld64

Manufacturer Part Number
mc68hc908ld64
Description
M68hc08 Microcontrollers Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Multi-Master IIC Interface (MMIIC)
15.6 Programming Considerations
Data Sheet
232
In slave mode, the data in MMDRR is:
In master mode, the data in the MMDRR is:
When the MMDRR is read by the CPU, the receive buffer full flag is
cleared (MMRXBF = 0), and the next received data is loaded to the
MMDRR. Each time when new data is loaded to the MMDRR, the
MMRXIF interrupt flag is set, indicating that new data is available in
MMDRR.
The sequence of events for slave receive and master receive are
illustrated in
When the MMIIC module detects an arbitration loss in master mode, it
will release both SDA and SCL lines immediately. But if there are no
further STOP conditions detected, the module will hang up. Therefore, it
is recommended to have time-out software to recover from such ill
condition. The software can start the time-out counter by looking at the
MMBB (Bus Busy) flag in the MIMCR and reset the counter on the
completion of one byte transmission. If a time-out occur, software can
clear the MMEN bit (disable MMIIC module) to release the bus, and
hence clearing the MMBB flag. This is the only way to clear the MMBB
flag by software if the module hangs up due to a no STOP condition
received. The MMIIC can resume operation again by setting the MMEN
bit.
the calling address from the master when the address match flag
is set (MMATCH = 1); or
the last data received when MMATCH = 0.
the last data received.
Multi-Master IIC Interface (MMIIC)
Figure
15-8.
MC68HC908LD64
Freescale Semiconductor
Rev. 3.0

Related parts for mc68hc908ld64