I2Sr Field Descriptions - Motorola ColdFire MCF5281 User Manual

Motorola microcontroller user's manual
Table of Contents

Advertisement

2
24.5.4 I
C Status Register (I2SR)
This I2SR contains bits that indicate transaction direction and status.
7
Field
ICF
Reset
R/W
Address
Table 24-5 describes I2SR fields.
Bits
Name
7
ICF
Data transferring bit. While one byte of data is transferred, ICF is cleared.
0 Transfer in progress
1 Transfer complete. Set by the falling edge of the ninth clock of a byte transfer.
2
6
IAAS I
C addressed as a slave bit. The CPU is interrupted if I2CR[IIEN] is set. Next, the CPU must check SRW and
set its TX/RX mode accordingly. Writing to I2CR clears this bit.
0 Not addressed.
1 Addressed as a slave. Set when its own address (IADR) matches the calling address.
2
5
IBB
I
C bus busy bit. Indicates the status of the bus.
0 Bus is idle. If a STOP signal is detected, IBB is cleared.
1 Bus is busy. When START is detected, IBB is set.
4
IAL
Arbitration lost. Set by hardware in the following circumstances. (IAL must be cleared by software by writing
zero to it.)
• SDA sampled low when the master drives high during an address or data-transmit cycle.
• SDA sampled low when the master drives high during the acknowledge bit of a data-receive cycle.
• A start cycle is attempted when the bus is busy.
• A repeated start cycle is requested in slave mode.
• A stop condition is detected when the master did not request it.
3
Reserved, should be cleared.
2
SRW
Slave read/write. When IAAS is set, SRW indicates the value of the R/W command bit of the calling address
sent from the master. SRW is valid only when a complete transfer has occurred, no other transfers have been
initiated, and the I
0 Slave receive, master writing to slave.
1 Slave transmit, master reading from slave.
MOTOROLA
6
5
4
IAAS
IBB
IAL
R
R/W
IPSBAR + 0x30C
2
Figure 24-8. I
CR Status Register (I2SR)
Table 24-5. I2SR Field Descriptions
2
C module is a slave and has an address match.
Chapter 24. I
3
2
SRW
1000_0001
R
Description
2
C Interface
Programming Model
1
0
IIF
RXAK
R/W
R
24-9

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfire mcf5282

Table of Contents