Freescale Semiconductor MPC5200B User Manual page 631

Freescale semiconductor board users guide
Table of Contents

Advertisement

2
I
C Interface Registers
Bit
Name
2
0
EN
I
C Enable—bit controls software reset of entire I
2
If I
C module is enabled in the middle of a byte transfer, interface behaves as follows:
• Slave mode ignores current bus transfer and starts operating when a subsequent start
• Master mode is not aware if bus is busy. If a start cycle is initiated, current bus cycle may
2
1
IEN
I
C Interrupt Enable
2
STA
Master/Slave mode select—bit clears on reset.
• When bit changes from 0 to 1, a START signal is generated on the bus and master mode is
• When bit changes from 1 to 0, a STOP signal is generated and operation mode changes from
STA is cleared without generating a STOP signal when the master loses arbitration.
3
TX
Transmit/Receive mode select—bit selects master/slave transfer direction.
• When addressed as slave, software should set according to status register SRW bit.
• When in master mode, bit should be set according to type of transfer required.
For address cycles, bit is always high.
4
TXAK
Transmit Acknowledge enable—bit specifies value driven to SDA during acknowledge cycles for
both master and slave receivers. Values are used only when I
5
RSTA
Repeat Start—writing 1 to this bit generates a repeated START condition on the bus, provided it is
the current bus master. Bit is always read low.
If the bus is owned by another master, attempting a repeated start at the wrong time results in loss
of arbitration.
6:31
Reserved
18-14
condition is detected.
become corrupt. Ultimately this results in the current bus master or I
arbitration, after which bus operation returns to normal.
0 = module is reset and disabled. This is the Power-ON reset. When low the interface is held
in reset, but registers can still be accessed.
2
1 = I
C module is enabled. Bit must be set before other CR bits have any effect.
2
0 = Interrupts from I
C module are disabled. This does not clear currently pending interrupt
condition.
2
1 = Interrupts from I
C module are enabled. An I
register IF bit is also set.
selected.
master to slave.
0 = Slave Mode
1 = Master Mode
0 = Receive
1 = Transmit
0 = Acknowledge signal is sent to bus at 9th clock bit after receiving 1Byte of data.
1 = No acknowledge signal response is sent (i.e., acknowledge bit = 1)
1 = Generate repeat start cycle
MPC5200B Users Guide, Rev. 1
Description
2
C module.
2
C interrupt occurs, provided the status
2
C is a receiver, not a transmitter.
2
C module losing
Freescale Semiconductor

Advertisement

Table of Contents
loading

Table of Contents