• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Other Analog & Touch » Touch » Touch Forum » TSC2046E X and Y Data Interacting
Share
Touch
  • Forum
  • E2E Wiki
Options
  • Subscribe via RSS
Check out
Analog Wire blog
  • $core_v2_blog.Current.Name

    RS-485 - Who says you can't teach an old dog new tricks?

    Posted 3 days ago
    by Neel Seshan
    Would you agree that RS-485 has turned out to be one of the most...
  • $core_v2_blog.Current.Name

    Filter for thought

    Posted 5 days ago
    by Soufiane Bendaoud
    Have you ever wondered how engineers designed active filters...
  • $core_v2_blog.Current.Name

    Let’s take this driver out for a spin

    Posted 10 days ago
    by Soufiane Bendaoud
    Before I suggest a suitable op amp to drive an ADC, I look at...

TSC2046E X and Y Data Interacting

TSC2046E X and Y Data Interacting

This question is answered
Nathan Tobol
Posted by Nathan Tobol
on Jan 11 2012 20:06 PM
Prodigy50 points

We are using the TSC2046E to read a 4-wire resistive touch panel and using the internal reference..

The TSC2046E is being driven by an FPGA. We are using commands 0x93 and 0xD3 to read the x/y position (we also tried 0x90 and 0xD0). The TSC2046E with this FPGA code worked fine on the previous board but on this board, changes on one coordinate effect the other coordinate. There are no changes between boards in area the TSC2046E circuit other than a change on the pins used to connect the FPGA to the TSC2046E. We have looked at the signals in the FPGA using SignalTap and verified that they look correct. We have scoped the pins on the TSC2046E and verified that they have the same signals that we see in the FPGA.

We tried substituting resistors for the touch screen and got different readings when the 3 resistor net was connected to X+ Y+ X- and Y+ X+ Y- (e.g. the X and Y readings did not swap when the resistor nets were connected across the associated inputs)

Note, there is a typo on the schematic, C222 is 10nF, just like C221, C223, and C224.

TSC2046E
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Wendy Fang
    Posted by Wendy Fang
    on Jan 11 2012 23:22 PM
    Genius9725 points

    Nathan,

    What is the SPI speed and how long is the interval between reading Y (0x90) and reading X (0xD0)? 

    Also, for debug purpose -- removing the caps C221 and C222 makes any difference?

    Regards,
    Wendy F.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • D43
    Posted by D43
    on Jan 12 2012 04:00 AM
    Intellectual310 points

    4035.PCD TSC2046E Timing0001.pdf

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Wendy Fang
    Posted by Wendy Fang
    on Jan 12 2012 13:02 PM
    Genius9725 points

    The I2C waveform shows some problem. Comparing with the I2C data reading waveform (24 DCLK cycle per reading) shown in Figure 9 of the d/s SBAS417, your I2C DCLK provides only 21 DCLKs in a readying frame.

    Thus, it seems not a hardware problem but some problem at the FPGA software.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Nathan Tobol
    Posted by Nathan Tobol
    on Jan 12 2012 16:04 PM
    Prodigy50 points

    The waveform is generated by the FPGA to communicate with the TSC2046. Unlike an SPI or I2C, it does not operate in 8 bit chunks. Instead it sends the 8 bit command to the TSC2046, waits for busy to go high and then low, and then reads the next 8 or 12 bits (depending on the command) from the TSC2046. This code worked on the previous board. If there needs to be more clocks, I can easily add them, but I do not see where those are required in the specification. Thank you for your assistance.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Nathan Tobol
    Posted by Nathan Tobol
    on Jan 12 2012 22:12 PM
    Prodigy50 points

    I tested the following suggestions:

      1) Removed C221 and C222. No change in the data read from the touch panel.

      2) Reduced the frequency of DCLK to 2MHz. No change in the data read from the touch panel.

      3) Added 4 more DCLK cycles before raising nCS (still at 2MHZ). No change in the data read from the touch panel.

      4) Reduced the frequency of DCLK to 1MHz (still with the extra DCLK cycles). No change in the data read from the touch panel.

    Tomorrow I will take pictures of the signals connecting the TSC2046 to the touch panel and post them to this forum.

    Thank you again for all of your help, in the words of Edison, "I have not failed. I've just found 10,000 ways that won't work".

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Wendy Fang
    Posted by Wendy Fang
    on Jan 13 2012 11:50 AM
    Genius9725 points

    Nathan,

    Besides the SPI waveform, please also get the /PENIRQ waveform (which tells a lot about the TSC itself), and the X+, X-, Y+, and Y-.

    Additionally, please also email me the related source code (with explanation) or the details of your program description.

    Thanks,
    Wendy F.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Nathan Tobol
    Posted by Nathan Tobol
    on Jan 13 2012 12:03 PM
    Prodigy50 points

    Red (10V per division) is X+, Yellow (2V per division) is X-, H 10uS per division:

    Red (10V per division) is Y+, Yellow (2V per division) is Y-, H 10uS per division:

    Waveform, DCLK is 1 MHz:

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Nathan Tobol
    Posted by Nathan Tobol
    on Jan 13 2012 12:12 PM
    Prodigy50 points

    Hi Wendy,

    The PENIRQ is not connected to to FPGA so adding it to the waves would not be easy. If you need that data to diagnose the problem, I could get a technician to add a jumper wire sometime this afternoon. Please send me your e-mail address for the source code.

    Thank you very much,

    Nathan

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Wendy Fang
    Posted by Wendy Fang
    on Jan 13 2012 12:28 PM
    Genius9725 points
    TSC2046EVM AnanlogInterface.pdf

    Nathan,

    The analog interface waveforms seem totally out off normal, which may be because you do not take long enough data.

    What data did you read from TSC2046 with such analog signals? During the period, Is any touch is applied to the touch panel, and  is the I2C active (working state)?

    Attached is what you may expect from the TSC2046 analog interface waveform, where, ch#1 ~4 are X+, X-, Y+, Y- respectively. I also marked the periods when the TSC is sample/read X, Y, Z1 and Z2.

    Regards,
    Wendy F.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Wendy Fang
    Posted by Wendy Fang
    on Jan 13 2012 12:33 PM
    Genius9725 points

    Nathan,

    OK, don't worry about the /PENIRQ at this moment, and let's focus on analog interface for now!

    Best regards,
    Wendy F.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Wendy Fang
    Posted by Wendy Fang
    on Jan 16 2012 13:46 PM
    Genius9725 points

    Hi Nathan,

    Based on our discussion the last Friday, I would like to check your touch panel first.

    To check the touch panel  -- disconnect the touch panel from the system, and

    Without touch: 

    using an ohmmeter to measure the resistance between the X+ and the X-; and the Y+ and Y-, which should be typically between 200 ~ 900 ohms. And measure the resistance e a X pin (X+ or X-) and a Y pin (Y+ or Y-), which should be almost infinite or as least hundreds Mohms.

    With touch on the panel:

    measure the resistance between the X+ and the X-; and the Y+ and Y-, which should be exactly the same as that without touch. And measure the resistance between a X pin (X+ or X-) and a Y pin (Y+ or Y-), which should be some hundreds ohms to a couple of Kohms, depending by the touch pressure and stronger touch results in lower ohms and weak touch results in higher ohms.

    The next, we have to check the connection between the touch panel and the TSC. Generally speaking, the connetion should be designed as simple, as sesure, as short as possible. To make sure the connection is good, you may power up the system, but do NOT run any software/firmware, and then use a voltmeter to measure the TSC2046 analog pins --

    Without touch:

    TSC2046 X+ pin or X- pin should be high; Y+ pin or Y- pin should be low;

    With touch on the panel:

    TSC2046 X+ pin, X- pin, Y+ pin, or Y- pin should all be low.

    Please check yours and let me know if yours are not match the above.

    Best regards,
    Wendy F.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Wendy Fang
    Posted by Wendy Fang
    on Feb 10 2012 12:11 PM
    Verified Answer
    Verified by Wendy Fang
    Genius9725 points

    Hi Nathan,

    Do not hear your further response and am wondering if the issue had been found and the problem had been fixed!

    Regards,
    Wendy F.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use