![]() |
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 |
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. |
Re: ADC Initialization problem
Quote:
|
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:) |
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.
|
| All times are GMT -5. The time now is 04:54. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi