AD7156
Rev. 0 | Page 21 of 28
POWER-DOWN TIMER REGISTER
Address Pointer 0x10
8 Bits, Read/Write, Factory Preset 0x40
Table 14. Power-Down Timer Register Bit Map
1
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Power-down timeout (6-bit value)
(0) (1) (0x00)
1
The default values are given in parentheses.
Table 15.Power-Down Timer Register Bit Descriptions
Bit Mnemonic Description
7 This bit must be 0 for proper operation.
6 This bit must be 1 for proper operation.
[5:0]
Power-down
timeout
This bit defines the period duration of the power-down timeout.
If the comparator outputs have not been activated during the programmed period, the part enters power-down
mode automatically. The part can be then returned to a normal operational mode either via the serial interface
or by the power supply off/on sequence.
The period is programmable in steps of 4 hours. For example, setting the value to 0x06 sets the duration to 24
hours. The maximum value of 0x3F corresponds to approximately 10.5 days.
The value of 0x00 disables the power-down timeout, and the part does not enter power-down mode automatically.
CAPDAC REGISTERS
Ch 1 Address Pointer 0x11
Ch 2 Address Pointer 0x12
8 Bits, Read/Write, Factory Preset 0xC0
Table 16. CAPDAC Registers Bit Map
1
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
DacEn DacAuto DacValue (6-bit value)
(1) (1) (0x00)
1
The default values are given in parentheses.
Table 17. CAPDAC Registers Bit Descriptions
Bit Mnemonic Description
7 DacEn DacEn = 1 enables capacitive the DAC.
6 DacAuto DacAuto = 1 enables the auto-DAC function in the adaptive threshold mode.
When the auto-DAC function is enabled, the part dynamically adjusts the CAPDAC to keep the CDC in an
optimal operating capacitive range. The CAPDAC value is automatically incremented when the data average
exceeds ¾ of the CDC full range, and the CAPDAC value is decremented when the data average goes below ¼
of the CDC full range. The auto-DAC increment or decrement step depends on the selected CDC capacitive
input range.
This bit has no effect in fixed threshold mode; the auto-DAC function is always disabled in the fixed threshold mode.
[5:0] DacValue CAPDAC value, Code 0x00 ≈ 0 pF, Code 0x3F ≈ CAPDAC full range.
SERIAL NUMBER REGISTER
Address Pointer 0x13, Address Pointer 0x14, Address
Pointer 0x15, Address Pointer 0x16
32 Bits, Read Only, Factory Preset 0xXXXX
This register holds a serial number, unique for each individual part.
CHIP ID REGISTER
Address Pointer 0x17
8 Bits, Read Only, Factory Preset 0xXX
This register holds the chip identification code, used in factory
manufacturing and testing.
AD7156
Rev. 0 | Page 22 of 28
SERIAL INTERFACE
The AD7156 supports an I
2
C-compatible, 2-wire serial inter-
face. The two wires on the serial bus (interface) are called SCL
(clock) and SDA (data). These two wires carry all addressing,
control, and data information one bit at a time over the bus to
all connected peripheral devices. The SDA wire carries the data,
while the SCL wire synchronizes the sender and receiver during
the data transfer. The devices on the bus are classified as either
master or slave devices. A device that initiates a data transfer
message is called a master, whereas a device that responds to
this message is called a slave.
To control the AD7156 device on the bus, the following
protocol must be utilized. First, the master initiates a data
transfer by establishing a start condition, defined by a high-
to-low transition on SDA while SCL remains high. This
indicates that the start byte follows. This 8-bit start byte is
made up of a 7-bit address plus an R/W bit indicator.
All peripherals connected to the bus respond to the start
condition and shift in the next eight bits (7-bit address + R/W
bit). The bits arrive MSB first. The peripheral that recognizes
the transmitted address responds by pulling the data line low
during the ninth clock pulse. This is known as the acknowledge
bit. All other devices withdraw from the bus at this point and
maintain an idle condition. An exception to this is the general
call address, which is described in the General Call section. In
the idle condition, the device monitors the SDA and SCL lines
waiting for the start condition and the correct address byte.
The R/W bit determines the direction of the data transfer.
A Logic 0 LSB in the start byte means that the master writes
information to the addressed peripheral. In this case, the
AD7156 becomes a slave receiver. A Logic 1 LSB in the
start byte means that the master reads information from
the addressed peripheral. In this case, the AD7156 becomes
a slave transmitter. In all instances, the AD7156 acts as a
standard slave device on the serial bus.
The start byte address for the AD7156 is 0x90 for a write and
0x91 for a read.
READ OPERATION
When a read is selected in the start byte, the register that is
currently addressed by the address pointer is transmitted to the
SDA line by the AD7156. This is then clocked out by the master
device, and the AD7156 awaits an acknowledge from the master.
If an acknowledge is received from the master, the address
autoincrementer automatically increments the address pointer
register and outputs the next addressed register content to the
SDA line for transmission to the master. If no acknowledge is
received, the AD7156 returns to the idle state and the address
pointer is not incremented. The address pointers’ autoincrementer
allows block data to be written to or read from the starting address
and subsequent incremental addresses.
In continuous conversion mode, the address pointers’ auto-
incrementer should be used for reading a conversion result.
This means that the two data bytes should be read using one
multibyte read transaction rather than two separate single byte
transactions. The single byte data read transaction may result in
the data bytes from two different results being mixed. The same
applies for four data bytes if both capacitive channels are enabled.
The user can also access any unique register (address) on a
one-to-one basis without having to update all the registers.
The address pointer register contents cannot be read.
If an incorrect address pointer location is accessed or if the
user allows the autoincrementer to exceed the required register
address, the following applies:
In read mode, the AD7156 continues to output various
internal register contents until the master device issues
a no acknowledge, start, or stop condition. The address
pointers’ autoincrementer contents are reset to point to
the status register at the 0x00 address when a stop condition
is received at the end of a read operation. This allows the
status register to be read (polled) continually without
having to constantly write to the address pointer.
In write mode, the data for the invalid address is not
loaded into the AD7156 registers, but an acknowledge
is issued by the AD7156.
WRITE OPERATION
When a write is selected, the byte following the start byte is
always the register address pointer (subaddress) byte, which
points to one of the internal registers on the AD7156. The
address pointer byte is automatically loaded into the address
pointer register and acknowledged by the AD7156. After the
address pointer byte acknowledge, a stop condition, a repeated
start condition, or another data byte can follow from the master.
A stop condition is defined by a low-to-high transition on SDA
while SCL remains high. If a stop condition is encountered by
the AD7156, it returns to its idle condition and the address
pointer is reset to 0x00.
If a data byte is transmitted after the register address pointer
byte, the AD7156 loads this byte into the register that is cur-
rently addressed by the address pointer register and sends
an acknowledge, and the address pointer autoincrementer
automatically increments the address pointer register to the
next internal register address. Thus, subsequent transmitted
data bytes are loaded into sequentially incremented addresses.
AD7156
Rev. 0 | Page 23 of 28
If a repeated start condition is encountered after the address
pointer byte, all peripherals connected to the bus respond exactly
as outlined previously for a start condition; that is, a repeated
start condition is treated the same as a start condition. When a
master device issues a stop condition, it relinquishes control of
the bus, allowing another master device to take control of the
bus. Therefore, a master wanting to retain control of the bus
issues successive start conditions known as repeated start
conditions.
AD7156 RESET
To reset the AD7156 without having to reset the entire serial
bus, an explicit reset command is provided. This uses a particular
address pointer word as a command word to reset the part and
upload all default settings. The AD7156 does not respond to the
serial bus commands (do not acknowledge) during the default
values upload for approximately 2 ms.
The reset command address word is 0xBF.
GENERAL CALL
When a master issues a slave address consisting of seven 0s
with the eighth bit (R/W) set to 0, this is known as the general
call address. The general call address is for addressing every
device connected to the serial bus. The AD7156 acknowledges
this address and reads in the following data byte.
If the second byte is 0x06, the AD7156 is reset, completely
uploading all default values. The AD7156 does not respond
to the serial bus commands (do not acknowledge) during the
default values upload for approximately 2 ms.
The AD7156 does not acknowledge any other general call
commands.
1 – 7 1 – 7 1 – 7
89 8 9 89 PS
START ADDR
R/W
ACK SUBADDRESS ACK DATA ACK STOP
SDA
SCL
0
7726-050
Figure 40. Bus Data Transfer
DATA A(S)S SLAVE ADDR A(S) SUB ADDR A(S)
LSB = 0
LSB = 1
DATA P
S SLAVE ADDR A(S) SUB ADDR A(S) S SLAVE ADDR A(S) DATA
A(M)
DATA P
WRITE
SEQUENCE
READ
SEQUENCE
A(S) = NO ACKNOWLEDGE BY SLAVE
A(M) = NO ACKNOWLEDGE BY MASTER
A(S) = ACKNOWLEDGE BY SLAVE
A(M) = ACKNOWLEDGE BY MASTER
S = START BIT
P = STOP BIT
A(S)
A(M)
07726-051
Figure 41. Write and Read Sequences

AD7156BCPZ-REEL

Mfr. #:
Manufacturer:
Analog Devices Inc.
Description:
Data Acquisition ADCs/DACs - Specialized 1.8V 3mm X 3 mm 2-CH Cap Cnvtr
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet