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.

Basic Electronics » Advice needed for further projects with my nerdkit

July 22, 2011
by codenamejupiterx
codenamejupiterx's Avatar

i have just completed the tempsensor project and i want to move on to a new project with motors. But when i read the code that was given to me by nerdkit for the temperature sensor i realized that i have never programmed in this fashion before(directly to a micro-controller). I know how to read code and all, but shifting left stuff

 ex. ADCSRA = (1<<ADEN) | (1<<ADPS2) | (1<<ADPS1) | (1<<ADPS0)

is foreign to me. I guess my question is, should i first understand the micro-controller better or is my problem software related ( using commands from libraries that im not use to)?

July 22, 2011
by Rick_S
Rick_S's Avatar

Bit shifting is a common question on the forum here. 1st step is read the section in the guide covering this. The next step is search the forums for bit shift. There have been a lot of good explanations.

Rick

July 22, 2011
by codenamejupiterx
codenamejupiterx's Avatar

Will do. Thanks Rick....:)

Post a Reply

Please log in to post a reply.

Did you know that microcontrollers have two different kinds of memory, program space (flash) and SRAM? Learn more...