Question:

MCP3002 ADC interfacing with ATMega162?

by  |  earlier

0 LIKES UnLike

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:

   Report

1 ANSWERS


  1. Oh, well if you kinda think about it you should use the XTAL2, give it a shot, the Din doesnt exactly control the communication it just really helps it out a little if you know what i mean but you should def. have a dedicated pin on the AVR.

    good luck

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.