STemWin Touch Driver (ADS7843) problem

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • STemWin Touch Driver (ADS7843) problem

      Hello All,
      I am setting up STemWin on STM32F103VE MCU. The graphical part is all setup and working fine!
      The problem is the Builtin touch screen driver of STemWin. I have gone through the manual and created the low level SPI communication part and tested it separately and is working fine. I am able to read the ADC values and they are perfect for touched positions.
      And after that I have registered this low level i/o layer to STemWin using a call to

      Source Code

      1. GUITDRV_ADS7846_CONFIG Config = {0};
      2. Config.pfSendCmd = ADS7843SendCmd;
      3. Config.pfGetResult = ADS7843GetResult;
      4. Config.pfGetBusy = ADS7843GetBusy;
      5. Config.pfGetPENIRQ = ADS7843GetPENIRQ;
      6. Config.pfSetCS = ADS7843SetCS;
      7. Config.xLog0 = 0;
      8. Config.xLog1 = 319;
      9. Config.xPhys0 = 4000;
      10. Config.xPhys1 = 600;
      11. Config.yLog0 = 0;
      12. Config.yLog1 = 239;
      13. Config.yPhys0 = 800;
      14. Config.yPhys1 = 4000;
      15. Config.Orientation = GUI_SWAP_XY;
      16. GUITDRV_ADS7846_Config(&Config);
      Display All


      I have placed breakpoint at the function which get ADC results from ADS7843 chip. And I am calling these function periodically as specified in the manuals.


      Source Code

      1. GUI_Exec();
      2. GUITDRV_ADS7846_Exec();
      But my problem is that Widgets are NOT responding to touches and the pointer is fixed at 0,0 always.

      Images
      • STemWin_touch_problem.jpg

        456.93 kB, 800×600, viewed 36 times