Re: [bascom] OT: 2051 Analog Comparator


From "M.C.Alberts" <mark@mcselec.com>
Date Fri, 01 Oct 1999 01:16:27 +0200
Organization MCS Electronics

Hi Steve,

The pins have no pull up unlike the other pins.
The BASCOM GETAD2051() function retrieves the analog value using the
comparator. it was based on the example of Atmel.

Best regards
Mark Alberts

stevem@tanisys.com wrote:
> 
> 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