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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/07/03 12:35
Read: times


 
#54262 - RE: Problem in Reading the O/P of an ADC0804
Responding to: ???'s previous message
Sridhar S wrote:
-------------------------------
xdata unsigned char var _at_ 0x9000;


void adc()
{
...
...
var=P1;
...
...
}



In addition to the port pin snafu pointed out by Mr Klein you also have a problem with the fact that the usage of var=P1; in the adc() subroutine assigns the value to a undeclared variable.

Michael Karas





List of 4 messages in thread
TopicAuthorDate
Problem in Reading the O/P of an ADC0804            01/01/70 00:00      
   RE: Problem in Reading the O/P of an ADC0804            01/01/70 00:00      
   RE: Problem in Reading the O/P of an ADC            01/01/70 00:00      
   RE: Problem in Reading the O/P of an ADC0804            01/01/70 00:00      

Back to Subject List