C8051F300/1/2/3/4/5
Rev. 2.9
115
13.4. Using the SMBus
The SMBus can operate in both Master and Slave modes. The interface provides timing and shifting con-
trol for serial transfers; higher level protocol is determined by user software. The SMBus interface provides
the following application-independent features:
•
Byte-wise serial data transfers
•
Clock signal generation on SCL (Master Mode only) and SDA data synchronization
•
Timeout/bus error recognition, as defined by the SMB0CF configuration register
•
START/STOP timing, detection, and generation
•
Bus arbitration
•
Interrupt generation
•
Status information
SMBus interrupts are generated for each data byte or slave address that is transferred. When transmitting,
this interrupt is generated after the ACK cycle so that software may read the received ACK value; when
receiving data, this interrupt is generated before the ACK cycle so that software may define the outgoing
ACK value. See
Section “13.5. SMBus Transfer Modes” on page 123
for more details on transmission
sequences.
Interrupts are also generated to indicate the beginning of a transfer when a master (START generated), or
the end of a transfer when a slave (STOP detected). Software should read the SMB0CN (SMBus Control
register) to find the cause of the SMBus interrupt. The SMB0CN register is described in
“13.4.2. SMB0CN Control Register” on page 119
; Table 13.4 provides a quick SMB0CN decoding refer-
ence.
SMBus configuration options include:
•
Timeout detection (SCL Low Timeout and/or Bus Free Timeout)
•
SDA setup and hold time extensions
•
Slave event enable/disable
•
Clock source selection
These options are selected in the SMB0CF register, as described in
Summary of Contents for C8051F300
Page 2: ...C8051F300 1 2 3 4 5 2 Rev 2 9 NOTES ...
Page 6: ...C8051F300 1 2 3 4 5 6 Rev 2 9 NOTES ...
Page 48: ...C8051F300 1 2 3 4 5 48 Rev 2 9 NOTES ...
Page 56: ...C8051F300 1 2 3 4 5 56 Rev 2 9 NOTES ...
Page 82: ...C8051F300 1 2 3 4 5 82 Rev 2 9 NOTES ...
Page 88: ...C8051F300 1 2 3 4 5 88 Rev 2 9 NOTES ...
Page 96: ...C8051F300 1 2 3 4 5 96 Rev 2 9 NOTES ...
Page 130: ...C8051F300 1 2 3 4 5 130 Rev 2 9 NOTES ...
Page 172: ...C8051F300 1 2 3 4 5 172 Rev 2 9 NOTES ...