Please provide source code for STM32 for interfacing with DAC63204 over SPI communication that can control voltage for individual channel.
if not then please give list of registers need to set for the same.
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.
Please provide source code for STM32 for interfacing with DAC63204 over SPI communication that can control voltage for individual channel.
if not then please give list of registers need to set for the same.
Hi Kashyap,
We don't have source code available for the STM32, but I can help you with the register settings. I will need more details on how you would like to configure the DAC if you are using any of the internal features.
For the most basic use case, you need to power on the output channels and internal reference (if used), in the COMMON-CONFIG register:
Make sure to power off the current mode for any channels that are using voltage mode.
Set the reference/gain setting in the DAC-X-VOUT-CMP-CONFIG register:
Set the output in the DAC-X-DATA register:
Best,
Katlynne Jones