View Single Post
  #5   Spotlight this post!  
Unread 09-03-2004, 08:55
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Potentiometer Question, we need help!

Quote:
Originally Posted by TeknoBramha
analog1 = Get_Analog_Value(rc_ana_in01) << 2);

/

I think your 'shift' is the wrong way - that is a shift left, which will push the 10 bit ADC input up to a 12 bit number;

usually you want to knock the Analog inputs down to 8 bits from 10, a shift right (arrows to the right) >>2;

:^);