I am trying to use one of these to get analog sensor data into my ATMega162, but the pinout and communication proceedure is baffling me a bit.
Datasheet can be found here: http://ww1.microchip.com/downloads/en/DeviceDoc/21294C.pdf
I have tied Vcc to +5v, and Vref to GND. My sensor data will come through CH0 or CH1 (probably will be pseudo-differential mode, so will tie one of them to Vcc, for the upper reference voltage), and Dout will pipe digital data to the AVR. But the other pins confuse me a little.
What would I tie CLK to? (I am using the internal osc @ 1mhz). Im thinking XTAL2 (internal osc output)?
And what does Din do, control the communication? Does this need a dedicated pin on the AVR?
Also, I am currently tieing CS/SHDN to GND, my assumption is that:
"The CS/SHDN pin must be pulled high between conversions."
...means that it is also involved in communications somehow.
Can someone explain all of this please?
Tags: