4095. It's zero based, so 0 is counted too. The bitfield is LSB as far as I'm aware, but just standard bit manipulation in C should present no problems. As I've experienced none myself.
On Tue, Feb 16, 2016 at 3:06 PM, Harvey White <[email protected]> wrote: > On Tue, 16 Feb 2016 12:45:18 -0700, you wrote: > > >Anyway, two possibilities here if the raw values are higher than 4095. > > > >1) Your ADC need to be calibrated. I believe there is info in the TRM on > >this, but I have yet to fully understand this process myself. So see the > >TRM for details. > > > >2) your ADC is damaged, and very likely irreversibly. > > 3) 4096? > > If the registers are 16 bits, can the result be (by program) shifted > to be left justified or right justified? In many microprocessors this > is possible. If it's left justified, then > 4096 is just about > guaranteed. > > Harvey > > > > > >On Tue, Feb 16, 2016 at 12:43 PM, William Hermans <[email protected]> > wrote: > > > >> OK, so define "way higher". Higher than 4095 ? > >> > >> On Tue, Feb 16, 2016 at 12:26 PM, hllpc <[email protected]> wrote: > >> > >>> Yes I know about the conversion raw values-> real values, two days ago > >>> the raw values where in the range0-2000 as they should have been, now > they > >>> are way way higher > >>> > >>> -- > >>> For more options, visit http://beagleboard.org/discuss > >>> --- > >>> You received this message because you are subscribed to the Google > Groups > >>> "BeagleBoard" group. > >>> To unsubscribe from this group and stop receiving emails from it, send > an > >>> email to [email protected]. > >>> For more options, visit https://groups.google.com/d/optout. > >>> > >> > >> > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
