favr32: improve touchscreen response
authorBen Nizette <ben@niasdigital.com>
Mon, 20 Apr 2009 02:36:53 +0000 (12:36 +1000)
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Mon, 27 Jul 2009 11:16:45 +0000 (13:16 +0200)
commit92c548cd35d50df398f442b07021150094578460
treed3aca9f63cf3069d5873b5cd7bd4f345f6892eaf
parent251ab1a37d9ba810593d5fbf2482bc4ba773fab2
favr32: improve touchscreen response

The ezLCD+101 board (to which an favr-32 is fitted) has a long,
unshielded, nasty lead between the touch panel and the ads7843 touch
controller.  In order to get satisfactory response then, we need to
employ every noise-reduction trick in the driver's arsenal.  After
extensive fiddling I've found some good settings:

1) We keep vref on all the time to dramatically reduce settling times
(at the cost of a tiny increase in power consumption).

2) Despite 1 the settling time is still non-zero.  500uS is plenty of
time for the signals to settle

3) Despite 1 and 2 there's still a little bit of noise around.  By
setting a pen recheck delay we make the panel feel less touchy and
twitchy.

Someone with more time and patience myself might be able to tune this
numbers further but these settings are now perfectly acceptable for
normal use.

Tested on ezLCD+101 though should only improve response on other ezLCD+/
favr-32 boards too.

Signed-off-by: Ben Nizette <bn@niasdigital.com>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
arch/avr32/boards/favr-32/setup.c