This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TSC2007: About measurement procedure of X and Y position

Guru 21045 points
Part Number: TSC2007

Hi Team,

 

We would like to measure X and Y position.

Therefore, we are thinking about following "Write" and "Read" procedure.

Could you please let us know if you have any concern and your recommended procedure?

And, if you have a sample code(procedure), would you send it to me?

 

[My idea]

1. Touch detect

2.Start

3.Address Byte (0x90) so START A CONVERTER FUNCTION/WRITE CYCLE

4.Command Byte (0x84) so Activate X-drivers

5.Stop

6.Start

7.Address Byte (0x90) so START A CONVERTER FUNCTION/WRITE CYCLE

8.Command Byte (0xC4) so Measure X position

9.Stop and waiting conversion

10.Start

11.Address Byte (0x91) so READ A CONVERSION/READ CYCLE

12.Read X measurement result (Data Byte 1)

13.Stop

14.Start

15.Address Byte (0x90) so START A CONVERTER FUNCTION/WRITE CYCLE

16.Command Byte (0x94) so Activate Y-drivers

17.Stop

18.Start

19.Address Byte (0x90) so START A CONVERTER FUNCTION/WRITE CYCLE

20.Command Byte (0xD4) so Measure Y position

21.Stop and waiting conversion

22.Start

23.Address Byte (0x91) so READ A CONVERSION/READ CYCLE

24.Read Y measurement result (Data Byte 1)

25.Stop

 

Regards,

Hide