Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 9 months ago. This question has been closed. Reason: Have had a good response.
Has anyone managed to write to either a AD7689 or AD5422 using SPI bus?
Has anyone had any experience writing a basic routine to communicate with either AD5422 (http://www.analog.com/static/imported-files/data_sheets/AD5412_5422.pdf) or AD7689 (http://www.analog.com/static/imported-files/data_sheets/AD7682_7689.pdf) parts using SPI-bus. I have attempted to write something for the AD7689 part but struggling.
1 Answer
11 years, 4 months ago.
Not these chips in particular, but other AD chips that use SPI - the 7190 and the 5791.
It can be a bit tricky. Some potential pitfalls: For example you must make sure that the SPI clock (SCK) has the right polarity. In the case of the 7190, the clock should be high when idle, whereas for the 5719 it is the reverse, SCK should be low when idle.
Check the timing specs in the data sheets for your chips and try different approaches.
There is some good C code to interface with the 7190 that you may be able to adapt here:
http://mbed.org/users/tkreyche/notebook/ad7190-ultra-low-noise-24-bit-sigma-delta-adc/
T