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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/25/09 17:57
Read: times


 
#171167 - No, you don't!
Responding to: ???'s previous message
Yash said:
Yes, the algorithm is right and I'm programming my controller according to the aforementioned algorithm.

No, you don't!

This:
cs=1;
intr=1;
rd=1;
wr=1;
cs=0;
wr=0;
wr=1;
adc=0x08;
cs=1;
adc=0xFF;

should be:


cs=0;
wr=0;
adc=0x08;
wr=1;
cs=1;
adc=0xFF;


And this
while(intr==1);
cs=0;
wr=1;
rd=0;
rd=1;
cs=1;
value=adc;

should be:


while(intr==1);
cs=0;
rd=0;
value=adc;
rd=1;
cs=1;


Kai Klaas




List of 18 messages in thread
TopicAuthorDate
Receiving output from ADC0848.            01/01/70 00:00      
   Don't feed other pins without VCC            01/01/70 00:00      
      CS and RD working.            01/01/70 00:00      
         Wrong understanding of ADC!            01/01/70 00:00      
            But according to Mazidi...            01/01/70 00:00      
               No, you don't!            01/01/70 00:00      
                  Sorry!            01/01/70 00:00      
                     How do you see that?            01/01/70 00:00      
                        The LCD shows a 255.            01/01/70 00:00      
                           But this can have zillions of reasons...            01/01/70 00:00      
                     Never retype source code when posting            01/01/70 00:00      
                        Working! But with errors...            01/01/70 00:00      
                           You must convert raw ADC reading into temperature            01/01/70 00:00      
                           Self-heating?            01/01/70 00:00      
   Configured as push-pull?            01/01/70 00:00      
      It's a P89v51RD2            01/01/70 00:00      
         Difference only noticeable if contention            01/01/70 00:00      
         then STOP what you are doing            01/01/70 00:00      

Back to Subject List