NerdKits - electronics education for a digital generation

You are not logged in. [log in]

NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.

Microcontroller Programming » ADCRA

February 19, 2011
by hariharan
hariharan's Avatar

in the temperature sensor project u said "This is because for the ADCSRA register we need to set more than one bit to 1. In this case, we need to set the ADEN, ADPS2 and ADPS1, ADPS0 bits to 1." Why?

February 19, 2011
by Rick_S
Rick_S's Avatar

I'm not sure exactly what question you are asking....

Are you asking why more than 1 bit needs set, or why the bits are set using the method they are?


February 19, 2011
by hariharan
hariharan's Avatar

I am asking why is this project using this Memory and why more than 1 bit should be set.

February 20, 2011
by hevans
(NerdKits Staff)

hevans's Avatar

Hi Hari,

The NerdKits Guide goes through and talks about why we set these bits. Read over page 50 again. If you want to know more detail about what these specific bits do, read over the Analog to Digital Converter section of the MCU Datasheet. Basically need to set these bits to get the behavior out of the Analog to Digital converter that we want.


Post a Reply

Please log in to post a reply.

Did you know that talking to the microcontroller over the USB/Serial link is easy under Windows, Linux, and OS X? Learn more...