SLAAE23 June   2021 DAC43204 , DAC53004 , DAC53204 , DAC63204

 

  1.   Design Objective
  2.   Design Description
  3.   Design Notes
  4.   Design Simulations
    1.     Transient Simulation Results
  5.   Register Settings
  6.   Pseudo Code Example
  7.   Design Featured Devices
  8.   Design References

Pseudo Code Example

The following shows a pseudo code sequence to program the initial register values to the NVM of the DAC43204. The values given here are for the design choices made in the Design Notes.

Pseudo Code Example for GPI to PWM

//SYNTAX: WRITE <REGISTER NAME (Hex code)>, <MSB DATA>, <LSB DATA>  
//Power-up current output on all channels, enables internal reference
WRITE COMMON-CONFIG(0x1F), 0x1D, 0xB6 
//Configure GPI for Margin-High, Low function
WRITE GPIO-CONFIG(0x24), 0x01, 0xF5 
//Write DAC margin high code (repeat for all channels)
WRITE DAC-0-MARGIN-HIGH(0x01), 0xBD, 0x00
//Write DAC margin low code (repeat for all channels)
WRITE DAC-0-MARGIN-LOW(0x02), 0x43, 0x00
//Save settings to NVM
WRITE COMMON-TRIGGER(0x20), 0x00, 0x02