English
Language : 

AMC7823_15 Datasheet, PDF (20/55 Pages) Texas Instruments – ANALOG MONITORING AND CONTROL CIRCUIT
AMC7823
SLAS453F – APRIL 2005 – REVISED MARCH 2012
APPLICATION INFORMATION
www.ti.com
DIGITAL INTERFACE
The AMC7823 communicates through a standard SPI bus. The SPI allows full-duplex, synchronous, serial
communication between a host processor (the master) and peripheral devices (slaves). The SPI master
generates the synchronizing clock and initiates transmissions. SPI slave devices, such as the AMC7823, depend
on a master to start and synchronize transmissions.
A transmission begins when initiated by an SPI master. A word from the master is shifted into the AMC7823
through the MOSI pin under the control of the master serial clock, SCLK. A word from an AMC7823 register is
shifted out from the MISO pin under the control of SCLK as well.
The idle state of the serial clock for the AMC7823 is low, which corresponds to a clock polarity setting of 0
(typical microprocessor SPI control bit CPOL = '0'). The AMC7823 interface is designed with a clock phase
setting of 1 (typical microprocessor SPI control bit CPHA = '1'). In both the master and the slave, data are shifted
out on the rising edge of SCLK and sampled on the falling edge of SCLK where data are stable. The master
begins driving the MOSI pin on the first rising edge of SCLK after SS is activated (low).
To write data into AMC7823, the host activates the slave select signal (SS = low) and issues a WRITE command
to start the data transmission. The AMC7823 always interprets the first word (from the host) immediately
following the falling edge of SS signal as a command. The data to be written into the AMC7823 follow the
command. The slave select pin (SS) must remain low until all data are transmitted (see Figure 39). Otherwise,
the WRITE operation is terminated. Likewise, to read data from AMC7823, the host activates the slave select
signal and sends a READ command. The AMC7823 then sends data out through the MISO pin under the control
of SCLK. The slave select pin must remain low until all data are shifted out (see Figure 39). Otherwise, the
transmission is terminated, and all remaining data (if any) are ignored.
When the operation is terminated, the master must issue a new command to start a new operation.
All registers in the AMC7823 are 16-bit. It takes 16 clock pulses of SCLK to transfer one data or command word.
All data are transferred into (or out of) the AMC7823 through an internal serial-parallel (parallel-serial) register. If
SS is deactivated (that is, goes high) before the 16th clock finishes, the incomplete transfer is terminated
immediately and the data being transferred are ignored. In a write operation, the data are not written into the
AMC7823 register. In a read operation, the remaining data bits are not shifted out, and the data must be ignored.
AMC7823 COMMUNICATION PROTOCOL
With the exception of two external trigger pins, an external RESET pin, and an external current setting resistor,
the AMC7823 is entirely controlled by registers. Reading from and writing to these registers is accomplished by
issuing a 16-bit command word followed immediately by data for a single register or for a range of registers. This
command word is constructed as shown in the Command Format table. The data word(s) format for the target
register(s) are illustrated in subsequent pages of this document.
Bit 15
MSB
R/W
Bit 14
X
X : Don't Care
Bit 13
PG1
Bit 12
PG0
Command Format
Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6
X SADR SADR SADR SADR SADR
4
3
2
1
0
Bit 5
X
Bit 4
EADR
4
Bit 3
EADR
3
Bit 2
EADR
2
Bit 1
EADR
1
Bit 0
LSB
EADR
0
Where:
R/W: Data flow direction bit.
R/W = '1'. Read operation. Data are transferred from AMC7823 to the host.
R/W = '0'. Write operation. Data are transferred from the host to AMC7823.
PG1 – PG0: Memory page of addressed register(s) (see Table 1).
SADR4 – SADR0: Starting address of register(s) on selected page.
EADR4 – EADR0: Ending address of register(s) on selected page.
20
Submit Documentation Feedback
Product Folder Link(s): AMC7823
Copyright © 2005–2012, Texas Instruments Incorporated