Re: [bascom] OT: 2051 Analog Comparator
|
From |
MWoeste@t-online.de (Michael Woeste) |
|
Date |
Thu, 30 Sep 1999 20:27:14 +0200 |
|
Organization |
CableShop |
Hi Steve,
see my remarks below:
>
> 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?
------ not neccessary
>
> 2. I know that the output can be read from P3.6. Is the comparator
> always ON?
-- always enabled
>
> 3. Do I simply have to write 1'S to the Port 1 pins? Or do these
two
> pins not have the pullup function?
------ no, these port pins have no internal pullup resistor. If you want to
use them as a regulary port pin, you have to add resistory manually.
>
>
> 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
>
>
>