This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DAC60504: Sample code

Part Number: DAC60504
Other Parts Discussed in Thread: LM5175

Hello team,

Is there any sample code which the customer is able to refer for DAC60504? 

Best Regards,

Austin

  • Hi Austin,

    We don't have sample code but part is very simple and only 12 registers.  let me know customer use case so that can send you psedo code.

  • Hello Anbu,

    Thanks for reply.

    The use-case is to control output voltage by applying analog signals to the boost controller(ex, LM5175). 

    Best Regards,

    Austin

  • Hi Austin Do,

    Give me some time i will share example pseudo code.

  • Hello,

    Any update from here? 

    Thanks!

  • Hi Austin Do,

    Sorry for delay response ,,here find the Generic example code sequence.'

    Please note: set gain , divider factor based on your schematic and application.

    Broadcast mode, DAC update using CS rising edge

    <ADDR>, <DATA>

    0x05, 0x000A // Trigger Register, Apply software reset and update DAC using async mode (CS rising edge)

    0x05, 0x0000 // Trigger Register, Clear software register

    0x02, 0xFF00 // SYNN Register ,  Disable brd cast and LDAC trigger - DAC update on CS rising edge

    0x03, 0x0000 // CONFIG Register , Disable power down all dac channels, enable internal reference, Enable SDO

    0x04, 0x000F // Select Gain buffer X2  and internal divider factor by 2

    0x06, 0xYYYX // Board cast DAC  for all DAC : { DATA[11:0], x, x, x, x}, DAC code 

     

    Normal mode, DAC update using CS rising edge

    0x05, 0x000A // Trigger Register, Apply software reset and update DAC using async mode (CS rising edge)

    0x05, 0x0000 // Trigger Register, Clear software register

    0x02, 0xF000 // SYNN Register ,  Enable brd cast and disable LDAC trigger - DAC update on CS rising edge

    0x03, 0x0000 // CONFIG Register , Disable power down all dac channels, enable internal reference, Enable SDO

    0x04, 0x000F // Select Gain buffer X2  and internal divider factor by 2

    0x07, 0xYYYX // DAC ch0 for all DAC : { DATA[11:0], x, x, x, x}, DAC code 

    0x08, 0xYYYX //  DAC ch1 for all DAC : { DATA[11:0], x, x, x, x}, DAC code

    0x09, 0xYYYX //  DAC ch2 for all DAC : { DATA[11:0], x, x, x, x}, DAC code

    0x0A, 0xYYYX //  DAC ch3 for all DAC : { DATA[11:0], x, x, x, x}, DAC code  

    0x05, 0x0010 // Apply LDAC SYNC to update all data at a same time

    Regards

    Anbu M