Skip to main content
FFont.18
Associate II
Feb 20, 2019 7:59 AM UTC
Question

I am developping a GUI with STM32F746G-DISCO. How can I get the information of the position where the interruption occured when the user touches the screen?

Also, what position does the LTDC current position status register (LTDC_CPSR) return? Is it the position of the touch interrupt?

This topic has been closed for replies.

1 reply

FFont.18
FFont.18Author
Associate II
Feb 21, 2019 11:04 AM UTC

Answer if someone needs it: LTDC_CPSR register has no link with position of touch interrupt. In order to find touch position, you need to read the I2C memory of the touch screen pannel (http://www.newhavendisplay.com/app_notes/FT5x06_registers.pdf). Using peripheral I2C3 of uC. Default device adress is 0x70. Interesting registers for position are 0x3:0x6