charels
Posts: 1
Joined: Mon Jun 24, 2019 6:19 pm

Interfacing a DAC088S085 over SPI help

Mon Jun 24, 2019 6:34 pm

Hi all,

I could use some help interfacing over spi with this chip. Mostly I need help understanding how to set up spi with C++. My current setup is a raspberry pi controlling a DAC for a precision voltage control of pressure controllers. I am new to SPI and am unsure how to set up the initial variables. I have an example of spi for the mcp3008 included.

However, I am having a hard time translating this example to a useable SPI interface for my DAC. I cannot get any control over the chip but that's because I am using the code for adc almost exactly and not sure what to change.

Also, if you know any good spi example code please link them.

LINKS
adc example: http://www.hertaville.com/interfacing-a ... ing-c.html
dac page: http://www.ti.com/product/DAC088S085

Additional Info:
- Raspberry PI 3
- Qt 5.3.2

Return to “C/C++”