lpc47s457-ns Standard Microsystems Corp., lpc47s457-ns Datasheet - Page 131

no-image

lpc47s457-ns

Manufacturer Part Number
lpc47s457-ns
Description
Advanced I/o With X-bus Interface
Manufacturer
Standard Microsystems Corp.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
LPC47S457-NS
Manufacturer:
Microchip Technology
Quantity:
10 000
The following is an example of how to program these bits for the Write Byte protocol.
To issue a start command:
To issue a command/data byte:
To issue a stop command:
( Note 1: ESO bit must be ‘1’ to shift serial data onto SMBus)
Note 1 : In master receiver mode, the last byte must be terminated with ACK bit high (‘negative acknowledge’).
Note 2 : If both STA and STO are set high simultaneously in master mode, a STOP condition followed by a START
condition + address will be generated. This allows ‘chaining’ of transmissions without relinquishing bus control.
Note 3 : All other STA and STO mode combinations not mentioned in Table 64 are NOPs.
Bit 0 ACK
This bit must be set normally to logic “1”. This causes the SMBus to send an acknowledge automatically after each
byte (this occurs during the 9th clock pulse). The bit is reset (to logic “0”) when the SMBus controller is operating in
master/receiver mode and requires no further data to be sent from the slave transmitter. This causes a negative
acknowledge on the SMBus, which halts further transmission from the slave device.
Status Register
Overview
The Status register, the read-only component of the SMBus Base Address, enables access to SMBus operational
status information.
Bit 7 PIN
Pending Interrupt Not. This bit is a status flag which is used to synchronize serial communication and is set to logic
“0” whenever the chip requires servicing. The PIN bit is normally read in polled applications to determine when an
SMBus byte transmission/reception is completed.
When acting as transmitter, PIN is set to logic “1” (inactive) each time the data register is written. In receiver mode,
the PIN bit is automatically set to logic “1” each time the data register is read.
After transmission or reception of one byte on the SMBus (nine clock pulses, including acknowledge) the PIN bit will
be automatically reset to logic “0” (active) indicating a complete byte transmission/reception. When the PIN bit is
subsequently set to logic “1” (inactive) all status bits will be reset to “0” on a BER (bus error) condition.
SMSC LPC47S45x
STA
1
1
0
1
0
load the data register with slave address
write to the control register to initiate a start condition (i.e., Bits[2:1] = 10) (see Note 1)
poll status register for a successful completed transaction (i.e., PIN bit = ‘0’ and LRB bit = ‘1’)
write NOP to the control register to prevent repeated start condition (i.e., Bits[2:1] = 00)
load data register with command/data byte (see Note 1)
poll status register for a successful completed transaction (i.e., PIN bit = ‘0’ and LRB bit = ‘1’)
write to the control register to initiate a stop condition (i.e., Bits[2:1] = 01) (see Note 1)
load the data register with dummy data (Note: This issues stop condition. )
STO
0
0
1
1
0
PRESENT MODE
MST/REC;
MST/TRM
MST/TRM
SLV/REC
MST
ANY
Table 64 − Instruction Table for Serial Bus Control
REPEAT START
STOP WRITE
STOP READ;
FUNCTION
DATASHEET
CHAINING
START
DATA
NOP
Page 131 of 259
Transmit START+address, remain
MST/TRM if R/nW=0; go to MST/REC if R/nW=1.
Same as for SLV/REC
Transmit STOP go to SLV/REC mode; Note 1
Send STOP, START and address after last master
frame without STOP sent; Note 2
No operation; Note 3
OPERATION
Rev. 08-10-09

Related parts for lpc47s457-ns