Mikromedia7Cap & mikrobasic & FT5426 CTP

Post Reply
Author
Message
rutus
Posts: 6
Joined: 07 Jan 2019 14:53

Mikromedia7Cap & mikrobasic & FT5426 CTP

#1 Post by rutus » 25 Nov 2020 21:04

Hallo !
I am bulding SDR receiver for my own fun. I am using mikromedia7 capacitive with STM32H743ZIT6
I have troubles with running FT5426 .
FT5426 is working ( CTP-INT#) is going down and up when touching TFT ) but i can not read registers .
I have no using TF5XX6 library - when I try start using : FT5XX6_SetDefaultMode() - messages box gives me this :
"Call signature does not match the function definition signature 'FT5XX6_gesture_decoder' __Lib_FT5XX6.mpas"
When I use I2C2, it is comunication on adress 0x38 but I am always reading "0" from registers.

Does FT5426 needs some configuration ? Application note gives no information about this. Looks like FT5426 is ready to use after reset.
There is no example for mikrobasic on Libstock.

Best regards ,

PS ' mikromedia7 Capacitive looks VERY nice ;-)

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Mikromedia7Cap & mikrobasic & FT5426 CTP

#2 Post by filip » 27 Nov 2020 16:42

Hi,

Can you please attach the project that you are trying to run ?

Regards,
Filip.

rutus
Posts: 6
Joined: 07 Jan 2019 14:53

Re: Mikromedia7Cap & mikrobasic & FT5426 CTP

#3 Post by rutus » 30 Nov 2020 12:08

Hallo !

main:
syskonfig() ' start of SSD1963 and "I2C2_Init_Advanced(20000, @_GPIO_MODULE_I2C2_PF10)"
clsb() ' clear screen black
kolor(31,63,31) ' color white
czcionka =2 ' font number 2
Text="FT5426 Test"
xtext=100
ytext=100
pisz() ' write on screen

TPWAKE =0
delay_ms(50)
TPRST = 0
delay_ms(20)
TPRST = 1

tpreg=0x02

tt:
if TPINT=1 then
goto tt
end if
tt2:
if TPINT = 0 then
goto tt2
end if

I2C2_Start()
I2C2_Write(0x38, tpreg, 1, END_MODE_stop)
I2C2_Start()
I2C2_Read(0x38, tpbyte, 1, END_MODE_stop)

bytetostr(tpbyte,text)
xtext=10
ytext=10
pisz() ' write on screen

goto tt


end.


I have read this applilication note :
https://www.newhavendisplay.com/resourc ... Ver0.1.pdf
Register 0x02 should give me number of touch points ( for example 1 ) but always gives me "0". Other registers gives me "0" too.
before touch.
before touch.
Resized_20201130_115559_1714.jpeg (59.24 KiB) Viewed 2219 times
After touch.
After touch.
Resized_20201130_115604_2093.jpeg (59.3 KiB) Viewed 2219 times

rutus
Posts: 6
Joined: 07 Jan 2019 14:53

Re: Mikromedia7Cap & mikrobasic & FT5426 CTP

#4 Post by rutus » 07 Dec 2020 13:10

Hallo !

Any help ?

Best Regards.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Mikromedia7Cap & mikrobasic & FT5426 CTP

#5 Post by filip » 09 Dec 2020 17:08

Hi,

I apologize for the delay, I'm working on this right now, I will inform you ASAP.

Regards,
Filip.

rutus
Posts: 6
Joined: 07 Jan 2019 14:53

Re: Mikromedia7Cap & mikrobasic & FT5426 CTP

#6 Post by rutus » 09 Dec 2020 18:03

Ok,
Thank You .
Best regards.

Post Reply

Return to “Mikromedia”