View Single Post
  #182   Spotlight this post!  
Unread 12-01-2008, 14:49
NetElemental's Avatar
NetElemental NetElemental is offline
Registered User
AKA: James E.
FRC #0418 (Purple Haze)
Team Role: Programmer
 
Join Date: Nov 2007
Rookie Year: 2008
Location: Austin, TX
Posts: 4
NetElemental is an unknown quantity at this point
Re: New C18 3.0+ Compatible FRC Code

Kevin,
Thanks - we already had #include <adc.h>, it seemed to come like that. Our mcc18 adc.h file actually did not have a definition for ADC_15ANA - it had 0-14 and 16. Assuming the intent is to set all the pins to analog, I changed "ifi_analog_channels" to "ADC_16ANA" if it helps.

In our file, we had
Code:
#define ADC_14ANA  0b11110001 // analog: AN0->13  digital: AN14->15
#define ADC_16ANA  0b11110000 // All analog
Weird, eh?

Thanks again,
James