Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/10/07 09:29
Read: times


 
#143040 - ADC Problem
I am using the integrated ADC in the 8051 to display 0V-3V...But the problem is everytime I tried to pump in the voltage from the power supply, I found that the power supply always show 3.05V and I can't tune the power supply when everytime I step
void adcdata(void)
{
signed char value;
value=0x00;

ADCINT = 0;
ADBUSY = 1;

while(ADCINT == 0);

value = ADC0H;
ADCEN=0;

}

void main()
{
config();
ADCEN = 1; //enable ADC
delay(500000);
adcdata();
delay(500000);
} 

Can any of you guys tell me what's the cause of these??
Thanks.



List of 30 messages in thread
TopicAuthorDate
ADC Problem            01/01/70 00:00      
   Circuit ?            01/01/70 00:00      
   Clarify?            01/01/70 00:00      
   Crosspost            01/01/70 00:00      
      Clarification            01/01/70 00:00      
         Still no circuit            01/01/70 00:00      
         Power supply            01/01/70 00:00      
   What about the adc lowbyte ?            01/01/70 00:00      
      Power Supply            01/01/70 00:00      
         Power supply            01/01/70 00:00      
            Power Supply            01/01/70 00:00      
      ADC lowbyte            01/01/70 00:00      
         sorry for confusing you but            01/01/70 00:00      
            Thanks for the time            01/01/70 00:00      
               mmmhhh one more time            01/01/70 00:00      
                  LCD code            01/01/70 00:00      
                     No majic            01/01/70 00:00      
                     delay            01/01/70 00:00      
                        Writing Timing Loops in C            01/01/70 00:00      
                           Lucky            01/01/70 00:00      
                              Very true!            01/01/70 00:00      
                                 Your adc value must be 123. {            01/01/70 00:00      
                                    Power Supply Problem            01/01/70 00:00      
                                       We can not see what you are looking at            01/01/70 00:00      
                                          current limiting power supply?            01/01/70 00:00      
                                             Power Supply            01/01/70 00:00      
   Power Supply            01/01/70 00:00      
   ADC0804 with 8051            01/01/70 00:00      
      Start a new thread!            01/01/70 00:00      
      Sorry Dude!!!            01/01/70 00:00      

Back to Subject List