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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/23/06 16:15
Read: times


 
#110605 - Analog comparator on AT89C2051
Responding to: ???'s previous message
Jack Key said:
Hello. Can anyone please guide me on how to use the analog comparator on the AT89C2051. There's nothing mentioned in the datasheet.

Jack.



Welcome to the group Jack.

To use the analog comparator on the Atmel 89C2051/89C4051 just set P1.0, P1.1 and P3.6 HIGH (set to 1's).

SETB P1.0
SETB P1.1
SETB P3.6

Apply two different analog input voltages (of a value between 0 and 5V)to P1.0 and P1.1.

You can then read bit P3.6 to see if the input voltage on P1.0 is greater or less than the voltage on P1.1.

JB P3.6, OutputHigh

Cheers,

Bert


List of 26 messages in thread
TopicAuthorDate
Analog Comparator on 89C2051            01/01/70 00:00      
   Analog comparator on AT89C2051            01/01/70 00:00      
      Thanks Bert!            01/01/70 00:00      
         ADC            01/01/70 00:00      
         Analog comparator            01/01/70 00:00      
            appnote            01/01/70 00:00      
            one misapplication, one addition            01/01/70 00:00      
               Thanks to all            01/01/70 00:00      
                  Printable ?            01/01/70 00:00      
                  hobby project?            01/01/70 00:00      
                     Ok            01/01/70 00:00      
                  Active - hummmm..            01/01/70 00:00      
   Advise needed!            01/01/70 00:00      
      Have you seen the appnotes?            01/01/70 00:00      
         Yes I have            01/01/70 00:00      
            yes            01/01/70 00:00      
   P3.6???            01/01/70 00:00      
   Finally working, maybe?            01/01/70 00:00      
   Surely working!            01/01/70 00:00      
      consistency, HUH            01/01/70 00:00      
         Not technically correct!            01/01/70 00:00      
            so, it is "testing" which is worthless            01/01/70 00:00      
               True but...            01/01/70 00:00      
                  No, I do not do as above.            01/01/70 00:00      
                     Sure            01/01/70 00:00      
                        "solid theories" vs "testing"            01/01/70 00:00      

Back to Subject List