Quantcast
Channel: Data converters
Viewing all articles
Browse latest Browse all 37965

Forum Post: RE: tsc2013 touch controller

$
0
0
See my comments below: 1) The controller supports 2 scan modes. The driver uses scan conversion mode 0 ( C3:0 = 0000). I was able to get this to work and can retrieve the scan coordinates properly. But there is an alternative scan mode, conversion mode 1 (C3:0 = 0001) which puts the scan data results into only 2 registers (IX, IY). I’m not clear as to why you would use one scan mode over the other (C3:0 = 0001)? 2) I tried to use conversion mode 1 because it takes less time to get the coordinates from the controller. But the coordinate values in IX and IY never change. I'm assuming the register addresses for IX and IY are 4 and 5 respectively. I changed the conversion mode to C3:0 = 0001, and I access registers 4 and 5 to retrieve the X,Y coordinates. Is there something else I should be doing or am I misunderstanding something? Comment : If the conversion mode 1 is used, you could only get IX and IY data from the TSC2013-Q1 , which is not sufficient to calculate precise finger X&Y coordinates. As far as I know, the conversion mode 0 is the mode that should be used for most applications. 3) The driver has code for supporting 1 and 2 finger touches but the code is unintelligible. Where did this code come from and is there better code that is easier to understand somewhere that I can use? Comment: That piece of code is mainly borrowed from here : www.spinics.net/.../msg31969.html . Andy

Viewing all articles
Browse latest Browse all 37965


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>