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.

DAC121C085: DAC121C085 Example code

Part Number: DAC121C085
Other Parts Discussed in Thread: ENERGIA, DAC161S997

Hi,

I am trying to use DAC121C085 with msp432p401R and i need an example code. Is there an example code ? Thank you.

  • Hi,

    Thank you for your query. We don't have any available example code for this DAC. However, if you could tell us about the application logic at least at a high level, I should be able to write Energia based code and share.

    Regards,
    Uttam Sahu
    Applications Engineer, Precision DACs
  • I have a pressure sensor and it's output is 0.2V - 2.5V. After reading it with msp432p401R 's adc, i want to get 0-10V analog output. I was going to produce 0-2.5V with DAC121C085 then through an op-amp 0-2.5V is going to be 0-10V. Also i am producing 4-20mA with DAC161S997. but i start to think i can do both only using DAC161S997. Is this possible ? with a swich if 4-20mA selected then loop- will contunie if 0-10v i will produce 0-10mA and a 1K resistor will make that current 0-10V. I just need to figure it out how can i let the mcu know about switch's situation.

  • Hi,

    Your first step would be to get a SPI example working for your MCU.
    If you are using CCS, you can go to View->Resource Explorer, select the project you want and then download it directly into CCS. Very easy way to import and test code examples on your device. You might also look for CCS cloud (there is a cloud icon you can press in the upper right hand corner of the project window in the links I send) which makes importing these examples super simple/fast.

    Here is one example of SPI interface that you should hopefully be able to port to your project.
    dev.ti.com/.../


    Thanks,
    Paul