Altera_Forum
Honored Contributor
16 years agoDE2-70 LCD Control sequences do not work
Hi everybody, this is my first post! :)
I am working on a demonstration system over a DE2-70 board from Terasic which uses the LCD 2x16 display provided on it. The fact is that if I use the hardware abstraction layer (HAL) to control the display (using the "printf()" function or the Altera's "alt_up..." functions) it shows any character I send to it but control sequences are not understood by the LCD and they appear as normal characters instead ('\n' is shown as a weird symbol). Obviously the problem is that I cannot go to second line nor clear the display, for instance. I know I can use a PIO port to connect the LCD and create a control code for it, but I would like to use the HAL method to make the system technology independent. As possible solutions I have tried to:- Use both SOPC modules, the Altera's SOPC one and the University Program one, but no one has fixed the problem (in fact, the University Program module gives me a syntethis error...).
- I have also tried to slow down the clock speed of the LCD module to 50MHz (my whole system works at 100MHz).
- I have checked if all the HAL files are correctly installed.
- I have even tried to copy the HAL files into my project and make the "include"s to them.