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) 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 --- aiw@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.