ADS7846 Driver Issues

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

  • ADS7846 Driver Issues

    Hi,

    According to manual, by calling GUITDRV_ADS7846_Exec() periodically, touch XY values would be stored via GUI_TOUCH_StoreStateEx().

    I manage to retrieve correct XY values from the ADS7846 (verified using GUITDRV_ADS7846_GetLastVal())

    However, there is no sign of the state is being stored (GUI_TOUCH_GetState() always return zero).

    Is there a mistake I made somewhere? any solution?

    Someone in the forum has the similar issue (ADS7846 example).

    C Source Code

    1. cfgADS7846.pfSendCmd = TP_ADS7846_vWriteByte;
    2. cfgADS7846.pfGetResult = TP_ADS7846_xReadWord;
    3. cfgADS7846.pfGetBusy = TP_ADS7846_xGetBUSY;
    4. cfgADS7846.pfSetCS = TP_ADS7846_vSetCS;
    5. cfgADS7846.pfGetPENIRQ = TP_ADS7846_xGetPENIRQ;
    6. cfgADS7846.xLog0 = 0;
    7. cfgADS7846.xLog1 = (320 - 1);
    8. cfgADS7846.xPhys0 = 0;
    9. cfgADS7846.xPhys1 = 4095;
    10. cfgADS7846.yLog0 = 0;
    11. cfgADS7846.yLog1 = (240 - 1);
    12. cfgADS7846.yPhys0 = 0;
    13. cfgADS7846.yPhys1 = 4095;
    14. GUITDRV_ADS7846_Config( &cfgADS7846 );
    Display All