- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Everyone,
I am currently using 320*240 graphical Lcd with PSoc 5.I am having problem using the graphical lcd function.If I dont want to use this functions then how can I configure the pins of GLCD in PSoc programming?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think we are going to need a bit more information before we can all help you out 🙂
First of all, which make/model of GLCD are you using?
How do you have it hooked up?
What problems are you having when trying to use the built in component?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I am using GLCD from evolute solutions(GM-G320240B-BTSES W-M-TP) for the home automation project using CYC5588AXI-060ES1.
The problem is I have never used cypress LCD graphics controller and i dont know how to use the functions of the same.
Is it necessary to use the functions of LCD_Intf from the .h file?
Can I use my own functions?Please help me with the same
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Assuming that you have wired up the controller in accordance with the data sheet, then you should use the functions in the .h file.
If you double click on your LCD component in the schematic editor you'll see a button 'datasheet' - read the datasheet which will give you a full description of every function you will need for working with the GLCD.
If you wish to use your own functions, and not the auto generated ones, then don't add the graphic LCD component to your design, just add the appropriate amount of Digital Pins, and write your own routines to drive the pins appropriately.
Some of the pins will be outputs, some will be inputs and some will be bi-directional.
You call also use the 'Find Exampe Project...' link on the start page to load up a sample project which will give an example of how to use the component.
I hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I also found no examples of use of the GLCD components.
As an example I can offer you to look this project (128x64)):
Interfase Modulo LCD Grafico para el PSoC5
http://ea4frb.blogspot.com/2010/07/interfase-modulo-lcd-grafico-para-el.html
I used this project to create my components GLSD 128x64:
the library component with an example application: LCD128X64.cylib http://mylab.wmsite.ru/ftpgetfile.php?id=79
the option of using DMA DMA_for_GLCD_128x64.zip : http://mylab.wmsite.ru/ftpgetfile.php?id=82
I used it in my project:
temperature data logger at the CY8CKIT-014 PSoC®5
http://mylab.wmsite.ru/moi-razrab/cypress-psoc/temperature-logger/
Unfortunately most of the comments are in Russian.
Perhaps this will help you.
good luck, Evgeny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Qutub,
I haven't interfaced GLCD. Looking at the datasheet of the GLCD (GM-G320240B-BTSES W-M-TP), what I understand is that you can use GraphicLCDIntf Component configured for 8-bit parallel mode.
This LCD is compatible with 8080 processor family. The default setting seems to be 6800. It can be changed to 8080 by minor tweak to the GLCD board. The GraphicLCDIntf component also implements 8080 interface.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi pavloven,
I have downloaded your LCD128X64.cylib, changed pins according to my hardware but no matter how I try, LCD doesn't shows anything. After that I have debug code, it seems that program stuck in LCD128x64_TimerWait function, so I have dug in and found that timer in one shot mode does not seems to contains the zero value,
So I have made changes in your library, I have attached my code. Now There is picture, scrolling text and images shown on GLCD.
Please see to this and comment if I have mistaken somewhere.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unfortunately LCD128x64.cylib is missing in the project ))))
Perhaps this is due to the transition to psoc_creator.3.0
I still use creator.2.2 for older chips (no LP)
I will be happy to correct the project with your help for psoc_creator.3.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Afaik there is a setting in "Create Workspace Bundle" that will inclue your libraries into the .zip. I didn't try yet but should work.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Indeed, Timer_LCD does not work, but for timer_v_2.50 (PSoC Creator 2.2) function Timer_LCD_ReadCounter () returns 0, so the project works.
If I use the PSoC Creator 3.0 - function Timer_LCD_ReadCounter () does not return 0, so the function TimerWait () lasts forever.
I remembered that there were other projects with this problem. But I did not understand the reasons - I used CyDelay (xxx) instead of the function TimerWait ().
Thanks for the help! I will add your project to my collection.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Bob,
Thanks for the suggestion. I have gone to File>Create Workspace Bundle and selected Bundle option, which also included my component in zip file.
Pavloven,
I am digging over your driver, will post later updates here, which will help others.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Pavloven,
I have tested your GLCD driver (without DMA) for a week now and it seems running smooth. Latest changes is in my last post.
Now I am testing your GLCD with DMA, So far:
1. I have downloaded from your link
2. Changed pin assignments
3. Added a RW pin as it required in my HW.
4. Changed the component clock input to use a 24MHz bus clock.
5. Working fine. "A dog is running on LCD"
6. Now I inserted a while(1); after first pic "Dog_1" displayed in for loop of main.c
But now it could not print the "Dog_1", which it suppose to print. Herewith including my project. Can you help me to find where is the problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You wrote a semicolon after your while(1) which is an infinite loop. Program stops here.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, DhruvAcharya.
Bob rights as always. If you remove the while (1); all works.
I have a question: Why do you want to use while ()?
And thanks for the modernization project for psoc_creator.3.0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Bob and Pavloven,
My intention was to include previous "text with various fonts" and other "draw shape" functions in this DMA based screen update program. My Plan was:
1. Apply all other above mentioned functions to change the internal buffer memory
2. Use this DMA based method to update this Internal PSoC buffer to GLCD. (We are doing this in UPDATE ALL function without DMA).
I used "while(1);" to check what happen if I update buffer one time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Very interesting project. What do you think achievable sample rates
in the analog and digital channels would be if NOT using SDCARD ?
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What will the next bottleneck?
ADC(max SPS) data memory, ISRs, etc. - I'm not that good in theory ((
By the way, this project is very noisy recording in SD-cart.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What will the next bottleneck?
ADC(max SPS) data memory, ISRs, etc. - I'm not that good in theory
Not really a theory, rather simply looking at each signal stream. Start
with need to meet Nyquist on Analog and Digital inputs, and add them
up. DMA use very helpful as DMA is an engine working in parallel with
CPU (to a significant extent).
By the way, this project is very noisy recording in SD-cart.
Could be that layout and grounding producing analog noise, disable
SDCARD use and compare results. Use DSO on infinte persistance,
look at all supply rails to get a handle on pk-pk noise. Use Polymer
Tants as bulk bypass, they have an order magnitude better Z vs F
response.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, DhruvAcharya. Now I have more projects than LCDs :))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi all i am a student of the university district of Colombia and in my graduation project I am using a psoc 4 need to drive a graphic lcd my question is there any library for psoc 4 ??? because all I've found are for psoc 5, and the truth I do not have much budget thank you very much ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi all i am a student of the university district of Colombia and in my graduation project I am using a psoc 4 need to drive a graphic lcd my question is there any library for psoc 4 ??? because all I've found are for psoc 5, and the truth I do not have much budget thank you very much ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please, if you have a new question, open a new thread. Buried it in here means fewer people will read the question, and even fewer read the answer when they have the same question.
Did you ever bother to enter "psoc4 glcd" into google? It return a number of results that will help you. Most of them are from the "100 projects in 100 days" for the PSoC4 page: http://www.element14.com/community/thread/23736/l/100-projects-in-100-days
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
for PSoC4 and display 2.2" Serial SPI TFT Color LCD Module Display 240X320 w/ PCB Adpater / SD Socket
Project archive: TFT240_320_SD.zip It is here.
or TFT240x320_ECG_Simulator.zip It's here.
If the project is an unused DMA, usually, it is not difficult to convert PSoC4