Go to Post It isn't what you're given that makes it awesome. It's what you do with it. - JosephC [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #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
  #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.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:35.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi