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.

DAC7760 source code (non-labview)

Other Parts Discussed in Thread: DAC7760, DAC8760

Hi Guys, is there any body having some source code of DAC7760 in c/c++ or something else except for LabView?


Thank you very much,

Steve

  • Hello Steve,

    The C code on the SM-DIG platform is written as a generic shell, so it does not actually have anything specific to the DAC7760. The LabVIEW has all of the unique features and it leverages the generic firmware to communicate with the DAC.

    What are you looking for? Configuration of the serial peripheral to communicate with the device? Or, are you just looking for a header with register definitions etc?

  • Hi Kevin,

    I'm so glad to get your reply. I'm just come back from anther project.

    Actually this is my first time to work on a DAC chip, so I think it would be a great help if I have got some code that configures the spi of the microprocessor that communicates with DAC7760,  and that code that initializes/configures the DAC7760.

    Thank you very much for your reply. Hope I can further help/advices from you!

    Steve

  • Steve,

    The challenge associated with delivering code that configures the serial port of a microcontroller to communicate with the DAC is that there are so many micros in the world. It's almost impossible to pick one that's going to service everyone's needs. Even within TI, configuring a MSP430 serial port is different than a DSP or a TIVA C.

    Similarly, initialize the DAC itself depends on exactly how you intend to use it. It could be anything from simply enabling the output and using the voltage output mode, or perhaps you need to go select another output range and enable calibration features before you use the outputs for your application.

    What platform are you using for your MCU? If it's a TI device, I'd encourage you to post on the corresponding forum and see if those folks will give you a hand configuring the serial port. From there, I'd be happy to help you configure the DAC8760 for your applications needs.

  • Hi Kevin,


    Thank you so much for the advices. I use an LPC2468 microprocessor, and I have found the spi configuration code of it. What I need to do next is to make it talking to the DAC7760. To eliminate the possible errors on my PCB, I ordered a dac7760 evaluation board. I received it yesterday, and I'm playing with it right now. 

    Your answers are very valuable for me, and I hope I can get your further help in my following processes.


    Thank again,

    Steve