linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Input: ads7846 - sampling logic issues with AD7873
@ 2012-05-29 10:47 Markus Niebel
  2012-05-29 12:25 ` Michael Hennerich
  0 siblings, 1 reply; 3+ messages in thread
From: Markus Niebel @ 2012-05-29 10:47 UTC (permalink / raw)
  To: linux-input; +Cc: michael.hennerich, dmitry.torokhov

Hi,

we use the AD7873 controller with internal reference. The current implementation for AD7873 in the ads7846 driver forces the vref to switch off after every sample. So measurements especially in the edge of the screen become unreliable due to the settling time for the internal reference (I guess). Is there a special reason to override the "keep_vref_of" setting of the platform data for the AD7873 in ads7846_setup_spi_msg?

We did already some tests and found out, that leaving vref on makes out system usable with AD7873.

Markus


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Input: ads7846 - sampling logic issues with AD7873
  2012-05-29 10:47 Input: ads7846 - sampling logic issues with AD7873 Markus Niebel
@ 2012-05-29 12:25 ` Michael Hennerich
  2012-05-30 17:53   ` Markus Niebel
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Hennerich @ 2012-05-29 12:25 UTC (permalink / raw)
  To: Markus Niebel; +Cc: linux-input@vger.kernel.org, dmitry.torokhov@gmail.com

On 05/29/2012 12:47 PM, Markus Niebel wrote:
> Hi,
>
> we use the AD7873 controller with internal reference. The current implementation for AD7873 in the ads7846 driver forces the vref to switch off after every sample. So measurements especially in the edge of the screen become unreliable due to the settling time for the internal reference (I guess). Is there a special reason to override the "keep_vref_of" setting of the platform data for the AD7873 in ads7846_setup_spi_msg?
>
> We did already some tests and found out, that leaving vref on makes out system usable with AD7873.
>
> Markus
>
>
Hi Markus,

from top of my head - I don't remember why I forced Vref OFF for the AD7873.
Looking at the datasheet doesn't refresh my memory either.
I know there are some minor differences with respect to the PENIRQ 
behavior in one
PD bits combination - but that doesn't explain why we force it off.

 From a power savings aspect Vref should be turned off, but if
settling time worsens your results, then leaving Vref ON is the way to go.

Feel free to submit a patch.

-- 
Greetings,
Michael

--
Analog Devices GmbH      Wilhelm-Wagenfeld-Str. 6      80807 Muenchen
Sitz der Gesellschaft: Muenchen; Registergericht: Muenchen HRB 40368;
Geschaeftsfuehrer:Dr.Carsten Suckrow, Thomas Wessel, William A. Martin,
Margaret Seif



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Input: ads7846 - sampling logic issues with AD7873
  2012-05-29 12:25 ` Michael Hennerich
@ 2012-05-30 17:53   ` Markus Niebel
  0 siblings, 0 replies; 3+ messages in thread
From: Markus Niebel @ 2012-05-30 17:53 UTC (permalink / raw)
  To: michael.hennerich; +Cc: linux-input@vger.kernel.org, dmitry.torokhov@gmail.com

Am 29.05.2012 14:25, wrote Michael Hennerich:
> On 05/29/2012 12:47 PM, Markus Niebel wrote:
>> Hi,
>>
>> we use the AD7873 controller with internal reference. The current implementation for AD7873 in the ads7846 driver forces the vref to switch off after every sample. So measurements especially in the edge of the screen become unreliable due to the settling time for the internal reference (I guess). Is there a special reason to override the "keep_vref_of" setting of the platform data for the AD7873 in ads7846_setup_spi_msg?
>>
>> We did already some tests and found out, that leaving vref on makes out system usable with AD7873.
>>
>> Markus
>>
>>
> Hi Markus,
> 
> from top of my head - I don't remember why I forced Vref OFF for the AD7873.
> Looking at the datasheet doesn't refresh my memory either.
> I know there are some minor differences with respect to the PENIRQ behavior in one
> PD bits combination - but that doesn't explain why we force it off.
> 
> From a power savings aspect Vref should be turned off, but if
> settling time worsens your results, then leaving Vref ON is the way to go.
> 
> Feel free to submit a patch.
> 
Hi Michael,

did some research in the datasheet for AD7873 and ADS7846 together with collegues from the hardware and also in the history for the driver.

1) in principal the initial support for AD7873 is correct. Vref is not needed for ratiometric measurement.
2) there was a patch (commit	de2defd96d7d92fe8b5f9cf2bfd385d8d4819923, "Input: ads7846 - optionally leave Vref on during differential measurements" which states, that leaving vref on can result in much improved measurement results.

I will change the patch as you suggested in your comment and refer the above fact in the patch comment.

Markus

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-30 17:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-29 10:47 Input: ads7846 - sampling logic issues with AD7873 Markus Niebel
2012-05-29 12:25 ` Michael Hennerich
2012-05-30 17:53   ` Markus Niebel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).