Well, I tested quite a few SSP configurations for TSC2046...
The current ads7846_adc_ssp.c does not work for Axim X50 family.
I had to modify ads7846_init_chip() to get something, in the following way :
SSCR0_P(port) = 0;
*pxa_set_cken(CKEN23_SSP1, 1);*
SSCR0_P(port) |= SSCR0_DataSize(12); /* 12 bits */
SSCR0_P(port) |= *SSCR0_Motorola*;
SSCR0_P(port) |= 0x11 << 8; /* ~100 KHz */
SSCR1_P(port) = 0;
SSCR0_P(port) |= SSCR0_SSE;
Even with these modifications, all I get is x=2048, y=2048...
Communications on 24 bits as in my previous patch seems the only stable
configuration.
I do not understand why : there is no special constraint at this level
in the TSC 2046 datasheet...
Nervertheless, I then get linear measurements in the [5000,
30000]x[5000, 30000] range, that seem useable.
Pierre
Received on Fri Feb 09 2007 - 18:14:38 EST
This archive was generated by hypermail 2.2.0 : Fri Feb 09 2007 - 18:14:52 EST