NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Microcontroller Programming » ADCRA
February 19, 2011 by hariharan |
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 |
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? Rick |
February 19, 2011 by hariharan |
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) |
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. Humberto |
Please log in to post a reply.
Did you know that signed numbers need to be sign-extended when chaging variable sizes? Learn more...
|