SAMD51 - Static voltage desired on DAC. Refresh command not working.

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


In my application I am using the DAC synchronous drivers to create a static voltage that is used as a control point in my projects.

 

The DAC will initially write the desired value but then decay to zero after a very short period.

 

I have enabled the refresh period in the Atmel START configuration to 0x02 (where 0x01 is reserved), and 0x00 is no refresh however I am unable to see any refreshes occur.

 

If I set refresh to 2 then I get a single pulse out of the DAC.

If I set the refresh to disabled I see a decay after each pulse.

 

Any suggestions? Datasheet snippet below.

 

This topic has a solution.
Last Edited: Wed. Dec 22, 2021 - 02:51 AM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


So this problem is now solved!

 

Thank you Microchip support!!!

 

 

In the advanced config tab of the DAC driver you want to ensure that the "Start conversion event" box is UNCHECKED. Then set the refresh period to 0x02 and boom it works.

 

 

 

 

Alternatively you can go to hpl_dac_config.h and then set "CONF_DAC_STARTEI0" to 0. Make sure it is the same for the other DAC as well.

 

Example of fully working driver: