View Single Post
  #1   Spotlight this post!  
Unread 08-02-2006, 17:35
Joe Hershberger Joe Hershberger is offline
National Instruments
AKA: jhersh
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 1997
Location: Austin, TX
Posts: 148
Joe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to all
Get_Analog_Value

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