Part Number: TSC2046
Other Parts Discussed in Thread: MSP430G2955,
Good morning everybody!
I'm using TSC2046 with 128x64 Xiamen E-SHINE LCD display on a board whre there is MSP430G2955.
After many tests I noticed that 12bit conversion doesn't work (I always read 0) and 8 bit conversion has a strange set of values for X-Position and Y-Position.
#define Y_POSITION 10010100b // 12 bit
#define Z1_POSITION 10110100b // 12 bit
#define Z2_POSITION 11000100b // 12 bit
#define X_POSITION 11010100b // 12 bit
#define Y_POSITION 10011000b // 8 bit
#define Z1_POSITION 10111000b // 8 bit
#define Z2_POSITION 11001000b // 8 bit
#define X_POSITION 11011000b // 8 bit
Here there is a set of values read with a pen touching the screen:
- No touch detect values
Y= 0
Z1=800
Z2=448
X=0
- Higher Left Corner's touch values
Y= 625
Z1=752
Z2=848
X=625
- Higher right corner's touch values
Y= 80
Z1=1008
Z2=848
X=80
- Touch values in the lower right corner
Y= 65
Z1=1008
Z2=128
X=65
- Touch values in the lower left corner
Y= 513
Z1=1008
Z2=112
X=513
- In the center of the screen
Y= 434
Z1=1008
Z2=496
X=434
Is there someone who can explain me (better than the device datasheet) what I have to do in order to have the possibility to read X and Y coordinates of, for example, a point on the display?
Any help and advice would be really appreciated.
Best regards,
Luigi