MC908JL16CFAE FREESCALE [Freescale Semiconductor, Inc], MC908JL16CFAE Datasheet - Page 117

no-image

MC908JL16CFAE

Manufacturer Part Number
MC908JL16CFAE
Description
Microcontrollers
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet
8.8.3 Multi-Master IIC Master Control Register (MIMCR)
MMALIF — Multi-Master Arbitration Lost Interrupt Flag
MMNAKIF — No Acknowledge Interrupt Flag
MMBB — Bus Busy Flag
MMAST — Master Control Bit
MMRW — Master Read/Write
Freescale Semiconductor
This flag is set when software attempt to set MMAST but the MMBB has been set by detecting the start
condition on the lines or when the MMIIC is transmitting a "1" to SDA line but detected a "0" from SDA
line in master mode – an arbitration loss. This bit generates an interrupt request to the CPU if the
MMIEN bit in MMCR is also set. This bit is cleared by writing "0" to it or by reset.
This flag is only set in master mode (MMAST = 1) when there is no acknowledge bit detected after one
data byte or calling address is transferred. This flag also clears MMAST. MMNAKIF generates an
interrupt request to CPU if the MMIEN bit in MMCR is also set. This bit is cleared by writing "0" to it or
by reset.
This flag is set after a start condition is detected (bus busy), and is cleared when a stop condition (bus
idle) is detected. Reset clears this bit.
This bit is set to initiate a master mode transfer. In master mode, the module generates a start condition
to the SDA and SCL lines, followed by sending the calling address stored in MMADR. When the
MMAST bit is cleared by MMNAKIF set (no acknowledge) or by software, the module generates the
stop condition to the lines after the current byte is transmitted. If an arbitration loss occurs (MMALIF =
1), the module reverts to slave mode by clearing MMAST, and releasing SDA and SCL lines
immediately. This bit is cleared by writing “0” to it or by reset.
This bit will be transmitted out as bit 0 of the calling address when the module sets the MMAST bit to
enter master mode. The MMRW bit determines the transfer direction of the data bytes that follows.
When it is "1", the module is in master receive mode. When it is "0", the module is in master transmit
mode. Reset clears this bit.
1 = Lost arbitration in master mode
0 = No arbitration lost
1 = No acknowledge bit detected
0 = Acknowledge bit detected
1 = Start condition detected
0 = Stop condition detected or MMIIC is disabled
1 = Master mode operation
0 = Slave mode operation
1 = Master mode receive
0 = Master mode transmit
Address: $0040
Reset:
Read: MMALIF
Write:
Figure 8-6. Multi-Master IIC Master Control Register (MIMCR)
Bit 7
0
0
= Unimplemented
MMNAKIF
6
0
0
MC68HC908JL16 Data Sheet, Rev. 1.1
MMBB
5
0
MMAST
4
0
MMRW
3
0
MMBR2
2
0
MMBR1
1
0
Multi-Master IIC Registers
MMBR0
Bit 0
0
117

Related parts for MC908JL16CFAE