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.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
You do not have the correct permissions to perform this operation. Please, contact us at support@mbed.com to gain full access.
×
Hello
I am trying to code up a simple test on an LTC2418 ADC. This chip uses SPI to read up to 16 Single ended signals. I cannot seem to get correct output from my SPI calls. I would really be grateful if someone could take a look and give feedback.
Datasheet here http://cds.linear.com/docs/Datasheet/241418fa.pdf
Basically you send it an 8bit command to select single ended and the channel and read the 32bit result. Do some massaging of the 32bits and get a result. My results make no sense and changing the input voltage causes erratic changes in result.
I believe the SPI mode is 8,0 but not 100% sure of that.