Other Parts Discussed in Thread: , DAC8760EVM, DAC8760
We are using 4 daisy chained DAC7760 devices on our propriety board and having some problems with readings. Our design is expected to be able to configure anyone of the 4 inputs for 0V to 10V or 4mA to 20mA.
Question 1:
According to formula on page 28, when CODE set to 1, Should I be expecting the voltage on the output to be 0.0024414 (~2.4mV) as when increment CODE by 1, I am seeing the result in table laballed RESULT A. as shown below in code section because of formatting
VREF = 5V
GAIN = 2 (0V to 10V from Table 1 page 28)
N = 12
2^N = 4096
Unipolar Mode:
VOUT = VREF * GAIN * (CODE/2^12)
For CODE = 1
VOUT = 5 * 2 * (1/4096)
VOUT = 0.0024414
Question 2:
According to Equation 6 in DAC7760 datasheet page 34 the following formula is given.
CODE_OUT = CODE * ((User_GAIN + 2^15)/2^16) + User_ZERO
For the DAC7760 the value of 2^15 would that be 2^11 ie N-1?
Question 3:
Are there any other Application not that can help provide additional clarity for the use of the DAC7760.
----------------------------------------------------- Address | Register | Value ----------------------------------------------------- 0x01 | Write DAC Data register | Code - see below 0x55 | Write control register (0to10V) | 0x1009 0x55 | Write control register (4to20mA) | 0x100B 0x57 | Write configuration register | 0x0020 0x58 | Write DAC gain calibration register | 0x0800 0x59 | Write DAC zero calibration register | 0x0000 RESULT A: Code | Output -------|-------- 0x0000 | -0.0020 0x0001 | 0.0004 0x0002 | 0.0028 0x0003 | 0.0052 0x0004 | 0.0077 0x0005 | 0.0102 0x0006 | 0.0126 0x0007 | 0.0150 0x0008 | 0.0175 0x0009 | 0.0200 0x000A | 0.0224 0x000B | 0.0248 0x000C | 0.0273 0x000D | 0.0297 0x000E | 0.0321 0x000F | 0.0345 Address | Register Value ------------------------------------------------- 0x58 | DAC gain calibration register | 0x0800 0x59 | DAC zero calibration register | 0x0001 RESULT B: Code | Output -------|-------- 0x0000 | 0.0004 0x0001 | 0.0004 0x0002 | 0.0028 0x0003 | 0.0052