Download 440EPx/GRx

Transcript
Revision 1.15 – September 22, 2008
PPC440EPx/GRx Embedded Processor
Preliminary User’s Manual
4. The master and slave buffers are 4 × 1 byte-wide FIFOs. Exercise care when using master and slave buffers.
As an example, consider the case where one byte of data is written on the IIC bus. The data is first written into
the master or slave buffer. After four OPB clock cycles the data is placed on the IIC bus. There is no way to verify data in the buffer without disturbing the IIC transaction. The act of verification requires removing the data. If
the data is removed, invalid data is placed on the IIC bus.
5. Use care when monitoring the IICx_XCNTLSS[SDBD] or to IICx_STS[MDBS] to determine when data is
present. These bits are set to 1 when the buffer contains data in any stage. Consider the case where the master buffer is empty prior to being loaded with a byte received over the IIC bus. The byte enters the fourth stage
of the buffer and the IICx_STS[MDBS] is set to 1. Stages 1, 2, and 3 do not contain data. Therefore, the data is
not available for four OPB clock cycles. Any attempt to prematurely read the data yields invalid data.
6. When responding to a slave needs service request, manage the data first. Read data out of the slave buffer,
IICx_SDB, for slave reads or write data into the IICx_SDB for slave writes. Next clear the slave needs service
request. For reads, clear IICx_XTCNTLSS[SRS]. For writes, clear IICx_XTCNTLSS[SWS]. Last, clear the
active interrupt, IICx_STS[IRQA] =0.
7. There is no timeout function implemented in the IIC interface. If this type of error recovery function is needed, it
must be implemented in software.
8. Avoid the situations listed in Section 7.2 of the Phillips Semiconductors I2C Specification, dated 1995. For your
convenience, the section is summarized as follows:
If multiple masters can be simultaneously involved in a transfer to the same address, or device, then the
design of the system must be done in such a way that arbitration between:
• A repeated Start condition and a data bit does not occur.
• A Stop condition and a data bit does not occur.
• A repeated Start condition and a Stop condition does not occur.
An example of this situation occurs if one master writes 1 byte while another master writes 2 bytes to the same
device.
9. IIC0SDA is shared with GPIO bit 26.
Sharing is controlled by the SDR Register SDR0_PFC4 bit 0.
AMCC Proprietary
793