Searching \ for ' [PIC] Help 16c71 a/d displays 256 with h' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/ios.htm?key=a%2Fd
Search entire site for: 'Help 16c71 a/d displays 256 with h'.

No exact or substring matches. trying for part
PICList Thread
'[PICLIST] [PIC] Help 16c71 a/d displays 256 with h'
2001\01\18@232557 by Rene Chauvet

picon face
I Was Playing around with the A/D on the 16c71 and I found that with a
supply of 5.11V the a/d indicates 256 at 2.55V then loops.

So at 0V it displays 0 at 2.55 it displays 256, at 2.6 it displays 0V and at
5.11 it displays 256.

Does anyone know why this it happening and how to get it to display 0 at 0V,
128 at 2.55V and 256 at 5.11V like it's suppose to. I tried it with both the
internal Vref and RA3ref(external)

Ren
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\01\19@145609 by Andrew Warren

flavicon
face
Rene Chauvet <spam_OUTPICLISTTakeThisOuTspamMITVMA.MIT.EDU> wrote:

> I Was Playing around with the A/D on the 16c71 and I found that with a
> supply of 5.11V the a/d indicates 256 at 2.55V then loops.
>
> So at 0V it displays 0 at 2.55 it displays 256, at 2.6 it displays 0V
> and at 5.11 it displays 256.
>
> Does anyone know why this it happening and how to get it to display 0
> at 0V, 128 at 2.55V and 256 at 5.11V like it's suppose to. I tried it
> with both the internal Vref and RA3ref(external)

Rene:

Do you ever see ODD values (1, 3, 5, 7, etc.)?

If not, perhaps you're inadvertently shifting the ADRES value left
one bit.

-Andrew


=== Andrew Warren --- .....aiwKILLspamspam@spam@cypress.com
=== Staff Systems Engineer, IPD
=== Cypress Semiconductor Corporation
===
=== Opinions expressed above do not
=== necessarily represent those of
=== Cypress Semiconductor Corporation.

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\01\19@160203 by Dwayne Reid

flavicon
face
At 09:16 PM 1/18/01 -0700, Rene Chauvet wrote:
>I Was Playing around with the A/D on the 16c71 and I found that with a
>supply of 5.11V the a/d indicates 256 at 2.55V then loops.
>
>So at 0V it displays 0 at 2.55 it displays 256, at 2.6 it displays 0V and at
>5.11 it displays 256.
>
>Does anyone know why this it happening and how to get it to display 0 at 0V,
>128 at 2.55V and 256 at 5.11V like it's suppose to. I tried it with both the
>internal Vref and RA3ref(external)

How are you displaying the result?  It sure looks as if you have dropped
the MSB of the a/d result somewhere and are actually only using the lower 7
bits.

dwayne




Dwayne Reid   <dwaynerspamKILLspamplanet.eon.net>
Trinity Electronics Systems Ltd    Edmonton, AB, CANADA
(780) 489-3199 voice          (780) 487-6397 fax

Celebrating 17 years of Engineering Innovation (1984 - 2001)

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Do NOT send unsolicited commercial email to this email address.
This message neither grants consent to receive unsolicited
commercial email nor is intended to solicit commercial email.

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\01\19@161241 by John Pfaff

flavicon
face
How are you getting 256.  With the 8-bit A/D you should only be getting
0-255.  Are the values linear within the range 0V-2.55V?  Are you getting
all values (odd and even)?  How are you displaying the values?

{Original Message removed}

More... (looser matching)
- Last day of these posts
- In 2001 , 2002 only
- Today
- New search...