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.
adc example: http://www.hertaville.com/interfacing-a ... ing-c.html
dac page: http://www.ti.com/product/DAC088S085
- Raspberry PI 3
- Qt 5.3.2