Post Go back to editing

AD5328 stops converting after some time

Hello,

 

I'm using the AD5328 DAC together with the STM32L152 Discovery board. The microcontroller sends some data to the DAC through SPI and the DAC converts this. It works fine, but after some time it stops converting and it keeps its previous value.

 

I have the LDAC pin tied to VDD and before every conversion I set the LDAC bits to low. Could this be the problem? What is the best way to set the LDAC pin and bits?

If this is not the issue, any other ideas? I can post some code if needed.

 

Thank you for the help.

  • Hi dorinc,

    As said in the LOAD DAC Input(/LDAC) FUNCTION Section in page 18 of the data sheet, the operation of the /LDAC function is like that of an OR logic gate. If you wish to control the DAC through software, the /LDAC pin should be tied to high and the /LDAC bits set as required. Alternatively, if you wish to control the DAC through hardware, the /LDAC mode bits should set to high (01).

    Do you require simultaneous updating of all DAC outputs? If not, you may tie /LDAC pin permanently low. This way, the DAC registers are automatically updated once there is a new data in the corresponding input register.

    Regards,

    Mark

  • Would you happen to have some scope shots of the SPI lines during the time the DAC stops converting? Would you also be able to send the exact codes that you used?

    Thank you.

  • I changed LDAC to be permanently tied to ground now, but still after some

    time the DAC stops converting. Even when I reinitialize the debugger the

    DAC doesn't start converting again, it just gets stuck with the previous

    values. It only starts working again if I power off the microcontroller.

    Any ideas why this happens?

    Thank you.

    On Tue, Mar 18, 2014 at 4:16 AM, msamera <

  • This question has been assumed as answered either offline via email or with a multi-part answer. This question has now been closed out. If you have an inquiry related to this topic please post a new question in the applicable product forum.

    Thank you,
    EZ Admin
More Content

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.