Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers

LCD Controller

Altera_Forum
Honored Contributor II
1,134 Views

Hey,everyone. 

I'm student.I want to control LCD on board DE2 by C language on NIOSII softwave, but I don't know procedure this.I need to help.Please help me.thank!! 

English skill of me not good,sorry.
0 Kudos
7 Replies
Altera_Forum
Honored Contributor II
428 Views

The SOPC/Qsys LCD controller is described in Chapter 9 of this document: 

 

http://www.altera.com/literature/ug/ug_embedded_ip.pdf 

 

The University program has this guide: 

 

ftp://ftp.altera.com/up/pub/altera_material/11.0/university_program_ip_cores/audio_video/character_lcd.pdf 

 

and more info here: 

 

http://www.altera.com/education/univ/unv-index.html 

 

click on the links on the left under "Educational Materials". 

 

Cheers, 

Dave
0 Kudos
Altera_Forum
Honored Contributor II
428 Views

Hi,thank Dave very much. 

And do you have code on NiosII? I want to consult. 

Thank!
0 Kudos
Altera_Forum
Honored Contributor II
428 Views

 

--- Quote Start ---  

 

And do you have code on NiosII? I want to consult. 

 

--- Quote End ---  

 

The SOPC Builder component should come with software drivers. 

 

I do not use NIOS II, so cannot help with coding questions, sorry. 

 

Cheers, 

Dave
0 Kudos
Altera_Forum
Honored Contributor II
428 Views

#include <stdio.h> 

# include "system.h" 

 

FILE *lcd; 

main() 

lcd = fopen(LCD_NAME, "w"); 

fprintf(lcd,"hello world!\n"); 

while(1); 

exit(0); 

 

for LCD_NAME see system.h
0 Kudos
Altera_Forum
Honored Contributor II
428 Views

I have just Built SOPC system to control LCD.It include CPU, LCD,JTAG UART, sysid, on_chip_memory. I think it miss something,but I don't know what it is? somebody help me?thank!

0 Kudos
Altera_Forum
Honored Contributor II
428 Views

It should be sufficient to start. You may also need a system timer at one point.

0 Kudos
Altera_Forum
Honored Contributor II
428 Views

 

--- Quote Start ---  

It should be sufficient to start. You may also need a system timer at one point. 

--- Quote End ---  

 

hi, thank you!:)
0 Kudos
Reply