I forgot to mention that for being able to see the square signals I had to configure the resistive touch component us Delta Sigma ADC. If I use the SAR ADC, that is supposed to be for the PSoc5, it didn't work.
Example.cywrk_.Archive01.zip 2.3 MB
I have attached for you a small project were I played with IL9341 Display and Resitive Touch.
Even though I have not used emWin you might be able to compare and check Resistive Touch
All the Best
TFT_Test.Bundle01_1.zip 878.1 K
Thank you very much Frank
You can just set it up The Resistive touch component to run independently from Emwin by using a port interrupt that activates a function that is similar to a matrix keypad scan. It will first run function \\ResistiveTouch_ActivateX()\\ then //ResistiveTouch_Measure()// then \\ResistiveTouch_ActivateY()\\ then //ResistiveTouch_Measure()// to get your coordinates. Measure returns a ADC count on each measure that you need to convert to your pixel map .
I used to do it this way before I wrote my own code for it. It is not hard to do. Most HMI's these days use Bitmaped based widgets instead of drawn widgets so it is just a matter of selecting the stored bitmap and positioning it on the display and accessing it using callbacks (function pointers). Just use a good SRAM to store your bitmaps.
Thanks to all.
I already have it. The problem was that I did not initialize calibration values of the X and Y coordinates correctly.
The values of the constants:
#define TOUCH_AD_LEFT 500
#define TOUCH_AD_RIGHT 3030
#define TOUCH_AD_TOP 400
#define TOUCH_AD_BOTTOM 3700
hello frank sanderdo
can you send exact schematic about lcd? where can we buy it? i want to use color lcd in psoc but i am new about psoc