[bascom] OT: 2051 Analog Comparator


From stevem@tanisys.com
Date Thu, 30 Sep 1999 10:50:57 -0600

Please forgive the OT question.  I have searched the Atmel web site but cannot
find any details about the analog comparator within the 2051.

     1.  How do you enable or disable it?

     2.  I know that the output can be read from P3.6.   Is the comparator
always ON?

     3.  Do I simply have to write 1'S to the Port 1 pins?   Or do these two
pins not have the pullup function?


     I saw an APP NOTE  on the Atmel site about doing a crude A/D with this
feature.   However, in looking at the code, I did not find the analog 
comparator
initialization routine.

Thanks for your help.

---- Steve Miller