View Single Post
  #2   Spotlight this post!  
Unread 08-02-2006, 17:59
Tureyhall Tureyhall is offline
Registered User
AKA: Thomas Hall
FRC #0668 (Apes Of Wrath)
Team Role: Programmer
 
Join Date: Feb 2006
Rookie Year: 2004
Location: San Jose
Posts: 40
Tureyhall will become famous soon enoughTureyhall will become famous soon enough
Re: Get_Analog_Value

Quote:
Originally Posted by Joe Hershberger
IFI Guys,

We were looking at the Get_Analog_Value and noticed that for the 18f8722 case, the OpenADC call configures the ADC to use zero of the analog channels. Not only that, but it does it using a literal "15" with no comment. This "15" is loaded into ADCON1 bits 3-0 which (looking at the data sheet) configures all lines to be digital. If set to "0" instead, it would configure all lines to be analog.

Not sure why this is being done, but it doesn't seem like it should work. Has anyone been able to try this to determine if it's a problem?

-Joe

i have a phrase for you:

"DON'T FIX IT IF IT AIN'T BROKEN!!!!"

seriously, it might have SOME use.
__________________
/*Nerd Camouflage*/

2005 SVR - 668+1072+840 - Semifinalists.
2006 SVR - 668+1280+1693 - Finalists.
2007 SVR - 668+604+624 - Quarter-finalists, Xerox Creativity Award, two highest scores (290-2, 128-0) at SVR.
2007 Nat's - TBA.