Thread: ADC code errors
View Single Post
  #2   Spotlight this post!  
Unread 22-01-2008, 12:52
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: ADC code errors

Do you mean like:
ADC_VREFPLUS_VDD and ADC_VREFMINUS_VSS ?

If that's what you're talking about then there are two solutions to this problem with the student version 3.15 of the compiler:

-- Fix the 3.15 version of the adc.h system file. There is a missing "#endif" at line 536. It does a series of PIC architecture checks and they forgot to close one conditional #if, thereby wiping out all the subsequent statements.

or

-- You can comment out the code that uses those macros.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle