SLAA998 May   2021 DAC43701 , DAC43701-Q1 , DAC53701 , DAC53701-Q1

 

  1.   Design Objective
  2.   Design Description
  3.   Design Requirements and Detailed Design Procedure
  4.   Error Calculation and Thermal Management
  5.   Test Setup and Measurements
  6.   Register Settings
  7.   Pseudocode Examples
  8.   Design Featured Devices
  9.   Design References

Pseudocode Examples

The following pseudocode helps to get started with LED Fade-in Fade-out applications.


//SYNTAX: WRITE <REGISTER NAME (Hex code)>, <MSB DATA>, <LSB DATA>
//Write MARGIN-HIGH code (12-bit aligned) for bright LED light
//For a 1.818-V output range, the 10-bit hex code for 1 V is 0x0233.
//With 12-bit alignment, it becomes 0x08CC 
WRITE DAC_MARGIN_HIGH(0x25), 0x08, 0xCC 
//Write MARGIN-LOW code (12-bit aligned) for dim LED light 
//For a 1.818-V output range, the 10-bit hex code for 0.5 V is 0x011A. 
//With 12-bit alignment, it becomes 0x0468 
WRITE DAC_MARGIN_LOW(0x26), 0x04, 0x68 
//Map GPI to margin high-low function 
WRITE CONFIG2(0xD2), 0x10, 0x00 
//Enable GPI 
WRITE TRIGGER(0xD3), 0x04, 0x08 
//Configure internal reference with 1.5x output span, and slew time and power-up the device //CODE_STEP: 1 LSB, SLEW_RATE: 4915.2 us 
WRITE GENERAL_CONFIG(0xD1), 0x01, 0x64
//Program the EEPROM 
WRITE TRIGGER(0xD3), 0x04, 0x18