1
Discussion - Software / FT813 How to check Touch Interface communication status
« on: September 02, 2020, 09:34:51 AM »
I have two different screens both using the FT813 with Capacitive Touch interfaces. The first screen uses a Focaltech touch controller and the touch interface works as standard. The second screen type uses a Goodix controller and with the additional code described in AN336 also works correctly without any issues.
Each of the screens CTP interfaces uses a different I2C address and hence this must be correctly set in the code depending on the connected screen type.
Screen 1: REG_TOUCH_CONFIG = 0x0381 (Focaltech)
Screen 2: REG_TOUCH_CONFIG = 0x05D0 (Goodix)
I would like to programmatically determine whether the FT813 touch engine is able to communicate with the CTP or is in fault so that I can determine which screen type is connected. This will allow dual sourcing of the screens and a single application code.
Is there a way to check the touch engine status or to communicate directly with the CTP so I can identify the CTP/Screen type fitted? This may involve setting each I2C address in turn and checking for status/communication success if this is available.
Any help is greatly appreciated.
Each of the screens CTP interfaces uses a different I2C address and hence this must be correctly set in the code depending on the connected screen type.
Screen 1: REG_TOUCH_CONFIG = 0x0381 (Focaltech)
Screen 2: REG_TOUCH_CONFIG = 0x05D0 (Goodix)
I would like to programmatically determine whether the FT813 touch engine is able to communicate with the CTP or is in fault so that I can determine which screen type is connected. This will allow dual sourcing of the screens and a single application code.
Is there a way to check the touch engine status or to communicate directly with the CTP so I can identify the CTP/Screen type fitted? This may involve setting each I2C address in turn and checking for status/communication success if this is available.
Any help is greatly appreciated.