View Single Post
  #3   Spotlight this post!  
Unread 13-02-2007, 09:59
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: ADC Initialization problem

Quote:
Originally Posted by Shomron1690 View Post
hello
i want to merge the code of the gyro (kevin's code), with the whole general code (again, kevin's code).

i followed the instructions under gyro_readme.txt - and it worked.
then i had to follow the instruction adc_readme.txt and im on step 2:

" 2) Initialize_ADC() must be called from user_routines.c/
User_Initialization() "

i added " Initialize_ADC() " under " User_Initialization() " and when i checked whether the code works so far' i downloaded the program to the RC, and the Program State Led was Blinking in red.

does anyone had this problem and / or know how to solve it?
thanks
Check your user_routines_fast.c. If you don't have the necessary interrupt for the ADC enabled, you'll RLOD.