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 15:15
Read: times


 
#171161 - Wrong understanding of ADC!
Responding to: ???'s previous message
Yash said:
Could there be any problem in the amount of delay that I'm giving between toggling the WR and RD pins? The exact delay has not been given in any of the MC books so I tried a number of delays, 0.1ms, 1ms, even 255 ms!

You have a wrong understanding of the working of this ADC. This delay is given by the time the ADC needs to generate the result of conversion.

The dialog to the ADC should be like this:

1. First, all lines control lines /CS, /WR and /RD must be high.
2. Set /CS low
3. Set /RW low
4. Output the MUX adresses MA0-4 to the ADC
5. Set /RW high again
6. Set /CS high again
7. Write "1" to the port pins transmitting the MUX adresses and receiving the conversion result, to configure them as inputs, to be able to receive data!
8. Now read the /INTR line over and over again and wait for the end of conversion, which is shown you by a low going of /INTR line.
9. If so, set /CS low
10. Set /RD low
11. Read the result of conversion
12. Set /RD high again
13. Set /CS high again

Now the game can repeat again.

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