On Tue, Mar 08, 2011 at 10:44:56AM +0100, Niclas Karlsson wrote:
> Do anyone know why I read so many zeroes?

You're probably reading values faster than the chip supports. Check the
chip documentation for a maximum readout frequency or a ready flag.

> I have made some printk in ads7846.c to trace the problem. It seemed to
> read more correct values when I added the printks.

A printk takes quite some time on an ARM like yours. The throttle makes
it work...


David

P.S.: you're lucky to not get crap values - seems they got the chip
design right...


------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to