English
Language : 

AMC7832 Datasheet, PDF (39/70 Pages) Texas Instruments – AMC7832 12-Bit Analog Monitor and Control Solution with Multi-Channel ADC, Bipolar DACs, Temperature Sensor and GPIO Ports
www.ti.com
AMC7832
SLAS836 – MARCH 2014
8.4 Programming
The AMC7832 is controlled through a flexible four-wire serial interface that is compatible with SPI type interfaces
used on many microcontrollers and DSP controllers. The interface provides read/write access to all registers of
the AMC7832.
Each serial interface access cycle is exactly (N+2) bytes long, where N is the number of data bytes. A frame is
initiated by asserting CS low. The frame ends when CS is deasserted high. In MSB first mode, the first bit
transferred is the R/W bit. The next 15 bits are the register address (32768 addressable registers), and the
remaining bits are data. For all writes, data is committed in bytes as the 8th data bit of a data field is clocked in
on the rising edge of SCLK. If the write access is not a multiple of 8 clocks, the trailing data bits will not be
committed. On read access, data is clocked out on the falling edge of SCLK on the SDO terminal.
The figures below show the access protocol used by the interface. Data is by default accepted as MSB (Most
Significant Bit) first but the AMC7832 can be configured to accept LSB (Least Significant Bit) first operations as
long as the LSB_Order bit in the Interface Configuration 0 register (address 0x00) is set accordingly.
CS
SCLK
SDI
1234
R/W A14 A13 A12
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
A2 A1 A0
Addr N
Addr N +1 (ascending )
Addr N -1 (descending )
SDO
D7 D6 D5 D4 D3 D2 D1 D0 D7 D6 D5 D4 D3 D2 D1 D0
Figure 53. Serial Interface Write Bus Cycle
CS
SCLK
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
SDI
R/W A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0
SDO
D7 D6 D5 D4 D3 D2 D1 D0
Figure 54. Serial Interface Read Bus Cycle
For operations that require large amounts of data to be passed to or from the AMC7832, streaming mode is
supported. In streaming mode multiple bytes of data can be written to or read from the AMC7832 without
specifically providing instructions for each byte and is implemented by continually holding the CS active and
continuing to shift new data in or old data out of the device.
The instruction phase includes the starting address. The AMC7832 starts reading or writing data to this address
and continues as long as CS is asserted and single byte writes has not been enabled in the Interface
Configuration 1 register (address 0x01). The AMC7832 automatically increments or decrements the address
depending on the setting of the address ascension bit in the Interface Configuration 0 register (address 0x00).
If the address is decrementing and 0x0000 is reached, the next address used is address 0x7FFF. If the address
is incrementing and address 0x7FFF is reached, the next address used is 0x0000. Care should be taken when
writing to 0x0000 and 0x0001 as writing to these addresses may change the configuration of the serial interface.
Therefore it is advised that 0x0001 be the first address written and that streaming stops prior to reaching this
address.
The figures below show the access protocol used in streaming mode.
Copyright © 2014, Texas Instruments Incorporated
Product Folder Links: AMC7832
Submit Documentation Feedback
39