[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK-9PRCe3Q0Tjn1qNdzkVcrPmUm_BPQowDgKE4+wVu5T-SVTZQ@mail.gmail.com>
Date: Thu, 23 Aug 2012 15:53:10 +0530
From: Chinmay V S <cvs268@...il.com>
To: "AnilKumar, Chimata" <anilkumar@...com>
Cc: "carmine.iascone@...com" <carmine.iascone@...com>,
Arnd Bergmann <arnd@...db.de>,
"gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
"eric.piel@...mplin-utc.net" <eric.piel@...mplin-utc.net>,
"jic23@....ac.uk" <jic23@....ac.uk>,
"greg@...ah.com" <greg@...ah.com>,
"akpm@...ux-foundation.org" <akpm@...ux-foundation.org>,
"broonie@...nsource.wolfsonmicro.com"
<broonie@...nsource.wolfsonmicro.com>,
"dmitry.torokhov@...il.com" <dmitry.torokhov@...il.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2] lis3lv02d: Add STMicroelectronics lis331dlh digital accelerometer
> Note from datasheet, "1LSb=4g/4096 at 12bit representation,
> ±2g Full-scale"
Precisely my point. All the datasheet says is :
1. It is +/-2G mode --> so Numerator is 4G.
2. We are using 12bits --> so Denominator is 2^12 = 4096.
There is no clear reason/justification as to why 12bits was chosen in
the first place. At this point unless someone from the
design/original-driver team actually confirms why the 12bit
representation was chosen, it is all conjecture on our part.
If you have the actual LIS331DLH hardware, can you verify if the lower
4bits do actually contain any data (or are they always zero). This
will help us decide whether to use them(16bit mode) or discard
them(12bit mode)?...
regards
ChinmayVS
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists