English
Language : 

MC908AP8CFBE Datasheet, PDF (237/324 Pages) Freescale Semiconductor, Inc – Microcontrollers
14.6.2 MMIIC Control Register 1 (MMCR1)
MMIIC I/O Registers
Address: $0049
Bit 7
6
5
4
3
2
1
Bit 0
Read:
0
0
0
MMEN MMIEN
MMTXAK REPSEN MMCRCBYTE
Write:
MMCLRBB
Reset: 0
0
0
0
0
0
0
0
= Unimplemented
Figure 14-5. MMIIC Control Register 1 (MMCR1)
MMEN — MMIIC Enable
This bit is set to enable the Multi-master IIC module. When MMEN = 0, module is disabled and all flags
will restore to its power-on default states. Reset clears this bit.
1 = MMIIC module enabled
0 = MMIIC module disabled
MMIEN — MMIIC Interrupt Enable
When this bit is set, the MMTXIF, MMRXIF, MMALIF, and MMNAKIF flags are enabled to generate an
interrupt request to the CPU. When MMIEN is cleared, the these flags are prevented from generating
an interrupt request. Reset clears this bit.
1 = MMTXIF, MMRXIF, MMALIF, and/or MMNAKIF bit set will generate interrupt request to CPU
0 = MMTXIF, MMRXIF, MMALIF, and/or MMNAKIF bit set will not generate interrupt request to CPU
MMCLRBB — MMIIC Clear Busy Flag
Writing a logic 1 to this write-only bit clears the MMBB flag. MMCLRBB always reads as a logic 0.
Reset clears this bit.
1 = Clear MMBB flag
0 = No affect on MMBB flag
MMTXAK — MMIIC Transmit Acknowledge Enable
This bit is set to disable the MMIIC from sending out an acknowledge signal to the bus at the 9th clock
bit after receiving 8 data bits. When MMTXAK is cleared, an acknowledge signal will be sent at the 9th
clock bit. Reset clears this bit.
1 = MMIIC does not send acknowledge signals at 9th clock bit
0 = MMIIC sends acknowledge signal at 9th clock bit
REPSEN — Repeated Start Enable
This bit is set to enable repeated START signal to be generated when in master mode transfer
(MMAST = 1). The REPSEN bit is cleared by hardware after the completion of repeated START signal
or when the MMAST bit is cleared. Reset clears this bit.
1 = Repeated START signal will be generated if MMAST bit is set
0 = No repeated START signal will be generated
MMCRCBYTE — MMIIC CRC Byte
In receive mode, this bit is set by software to indicate that the next receiving byte will be the packet
error checking (PEC) data.
In master receive mode, after completion of CRC generation on the received PEC data, an
acknowledge signal is sent if MMTXAK = 0; no acknowledge is sent If MMTXAK = 1.
In slave receive mode, no acknowledge signal is sent if a CRC error is detected on the received PEC
data. If no CRC error is detected, an acknowledge signal is sent if MMTXAK = 0; no acknowledge is
sent If MMTXAK = 1.
MC68HC908AP Family Data Sheet, Rev. 4
Freescale Semiconductor
235