10-08-2013 07:46 AM
I wonder whether it is possible to control or operate the LCD expansion module through the PSoC firmware.
I seem to remember that I once stumbled over a documentation, which explained communication between the FPGA and the PSoC, including information how to control the LCD panel inlcuded in the eval kit by means of communicating with the firmware running on PSoC. However, I cannot find this information again.
Is there any documentation on the PSoC firmware that is delivered with the eval board?
Kind Regards, and many thanks for any helpful hint.
10-09-2013 06:25 AM
Are you interested in modifying the PSoC firmware? If so, I can provide the full project. It has not been updated since we started shipping the kit, so it may be based on an old set of tools.
Here is the original firmware document, although admiitedly, we added more functionality after this was created. But, this is a good starting point and gives you some insight into how AvProg and the firmware works together.
I will also post the LCD-specific code, and the full PSoC 3 project.
10-09-2013 06:28 AM
And the full PSoC 3 project. If any of you PSoC experts out there care to update this to the latest tools, re-archive, and share, please feel free to do so.
10-09-2013 10:57 AM - edited 10-09-2013 10:59 AM
Thank you very much for the clarifying information and the shared sources.
In the first attempt, I would not like to change the PSoC firmware, since this would require to a) buy a Cypress programmer (surely the one, the eval boad docu suggests) and b) go through the learning curve and build the system on the PSoC.
On the contrary, my original intention is to use the S6-LX16 eval board for student design projects on RTL design using HDLs. It would be great, if they could use the LCD display and control it right from the FPGA. I was hoping, the PSoC firmware could contain some functionality for this purpose. I could imagine the PSoC firmware to accept control commands from a design on the FPGA and display what the commands request. Those commands could be transfered over a simple n-bit parallel protocol, SPI, I2C or the like. Do you get my idea?
Does the PSoC firmware have some functionality of this kind?
In the meantime, I'll walk through the PSoC firmware project to see what could be used for what I want.
PSoC specialists: Is there some project out in the world that fits my needs? Could you share it?
10-09-2013 11:09 AM
The capability that you suggest to have the FPGA send LCD-related commands to the PSoC, then have the PSoC interpret those commands and drive the LCD is definitely possible. Unfortunately, that capability is not coded into the existing firmware. The existing firmware uses the code that I previously posted to drive a fixed, repeating pattern to the LCD. It is a great idea, but it would take some work to define what those FPGA-to-PSoC LCD commands look like, and then modify the command interpreter and the LCD code to create new PSoC firmware.
10-09-2013 12:38 PM - edited 10-09-2013 12:43 PM
I'll definitely do this firmware design. First, I'll try to edit the existing firmware project you shared (thanks a lot!) and extend its functionality to what I want.
Only if this fails (tool versions, hardware resources, etc) I'll do a standalone firmware, but then only with the desired functionality.
With respect to the command interpreter that you mentioned would need to be modified, I'm not sure. As far as I understood, the command interpreter in the existing firmware receives and interpretes commands from a host PC, sent down a virtual UART line over USB and forward this to the FPGA. I seek for communication in the other direction.
PS, you can mail me as schreiter(at)racyics(dot)de