|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
ADC not initializing
I'm using the latest 2008 ifi_frc_sensor code from kevin.org. I'm trying to get ADC initialized so that I can use the gyroscope, but when I try to call Initialize_ADC() inside of the Initialization() function and upload the code to the robot, the robot's Program State light continues blinking as though it's still downloading the code but it has already completed. I tried to do a bit of debugging with the Initialize_ADC() function and I discovered that when I comment out the line that says "T4CONbits.TMR4ON = 1;", line 222, the robot doesn't get stuck blinking the amber Program State light, but obviously I don't get good gyro values.
Thanks in advance for any help, Jonathan |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ADC #pragma | cprogrammer | Programming | 1 | 26-10-2006 20:42 |
| Problems Initializing Serial Driver... | neilsonster | Programming | 0 | 13-02-2005 23:27 |
| Initializing autonomous mode | Mr. Lim | Programming | 7 | 02-02-2004 07:26 |
| Header Not Found (adc.h) | NotQuiteFree | Programming | 2 | 23-01-2004 16:26 |
| Change to Initializing Inputs and Outputs | Jferrante | Programming | 4 | 07-01-2003 11:36 |