|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
ADC Initialization problem
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 |
|
#2
|
|||||
|
|||||
|
Re: ADC Initialization problem
Did you add the appropriate code to the interrupt service routine before trying to run the program? It sounds like you called the initialization routine to set up the interrupts, but you haven't put in the part that actually handles them.
If an interrupt occurs but the service routine doesn't acknowledge it, it will continue to interrupt the program constantly and not let the normal code run. If the code doesn't get around to communicating with the master processor, it will be considered a code error and the red light will come on. The moral of the story is: don't try to use half-entered code. Follow the directions to the end. |
|
#3
|
||||
|
||||
|
Re: ADC Initialization problem
Quote:
|
|
#4
|
|||
|
|||
|
Re: ADC Initialization problem
ok thanks it works now, i thought that if ill check every step whether it works itwill be ok, so.... it didnt...
you can see this thread as closed.. thanks ![]() |
|
#5
|
||||
|
||||
|
Re: ADC Initialization problem
Infranco I dont think anyone can help us but i only read about seven of them before i figured that they were typing too much and i could read all that at once.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CMUcam initialization time | DanDon | Programming | 11 | 31-12-2006 16:57 |
| ADC problem | sjung9442 | Programming | 4 | 17-02-2006 11:12 |
| adc code problem | railerobotics | Programming | 6 | 24-01-2006 22:26 |
| Reciever Initialization problem | PuiChi | Programming | 1 | 26-01-2004 23:54 |
| Master uP Initialization Routine | Ulibrium | Technical Discussion | 5 | 24-01-2002 16:43 |