Post Go back to editing

ad5304 programming

Category: Software
Product Number: ad5304ARMZ, ad5304

What command sequence does it take to setup the AD5304 output channels A, B, C & D?

  • Hi  ,

      will be checking this query and get back to you soon.

    Best Regards,

    Den

  • Hi  

    This DAC is traight forward, and does not need extra registers to be addressed for operation. From power-up you could go straight to writing to the DACs. Below is an example.

    0x3FFF -> write FFF to DAC A and update DAC A output

    0x7FFF -> write FFF to DAC B and update DAC B output

    0xBFFF -> write FFF to DAC C and update DAC C output

    0xFFFF -> write FFF to DAC D and update DAC D output

    Best regards,

    Ian

  • 0x3FFF -> write FFF to DAC A and update DAC A output

    0x7FFF -> write FFF to DAC B and update DAC B output

    0xBFFF -> write FFF to DAC C and update DAC C output

    0xFFFF -> write FFF to DAC D and update DAC D output

    I am having trouble getting the AD5304 to behave as expected. My understanding is that the sequence provided by Ian would load 0xFF into each input register but since the LDACbar bit is never set low the input registers would never get shifted into the DAC registers, meaning the output on all channels would remain 0V (assuming this is the first sequence from power up). 

    I'd also like to clarification that the last 4 bits are do not cares, the manual is unclear. Ian's answer disagrees with Figure 32 but is consistent with the text.

    I do not care about all four channels getting updated at the same time, so I am attempting to write 0xFF to just channel A by sending 0x2FF0. This does not affect the output observed at the channel though.

    I have tried both mine and Ian's method with no luck. Any advice would be appreciated. Thank you!