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

graphics and character LCD problem!!

Altera_Forum
Honored Contributor II
1,239 Views

I'm done on the system board kit dev cyclone iii. My system includes components such as the word file "Doc1.doc" below. 

My verilog program as follows: 

 

module bt4 (clkin_50, cpu_resetn, lcd_data, lcd_csn, lcd_d_cn, lcd_e_rdn, lcd_rstn, lcd_wen, lcd_en); 

 

input clkin_50;  

input cpu_resetn; 

inout [7:0]lcd_data; 

output lcd_csn; 

output lcd_d_cn; 

output lcd_e_rdn; 

output lcd_rstn; 

output lcd_wen; 

output lcd_en; 

 

nios_sys DUT ( 

// 1) global signals: 

.clk_0(clkin_50), 

.reset_n(cpu_resetn), 

 

// the_GLCD_CSN 

.out_port_from_the_GLCD_CSN(lcd_csn), 

 

// the_GLCD_DATA 

.in_port_to_the_GLCD_DATA(lcd_data[7:0]), 

.out_port_from_the_GLCD_DATA(lcd_data[7:0]), 

 

// the_GLCD_D_CN 

.out_port_from_the_GLCD_D_CN(lcd_d_cn), 

 

// the_GLCD_E_RDN 

.out_port_from_the_GLCD_E_RDN(lcd_e_rdn), 

 

// the_GLCD_RSTN 

.out_port_from_the_GLCD_RSTN(lcd_rstn), 

 

// the_GLCD_WEN 

.out_port_from_the_GLCD_WEN(lcd_wen), 

 

 

// the_lcd_0 

.LCD_E_from_the_lcd_0(lcd_en), 

.LCD_RS_from_the_lcd_0(lcd_d_cn), 

.LCD_RW_from_the_lcd_0(lcd_wen), 

.LCD_data_to_and_from_the_lcd_0(lcd_data[7:0]) 

endmodule 

 

 

But when compiling errors like this in word file "Doc2.doc" below. 

 

anybody can help me to fix errors... 

 

thanks.....
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
508 Views

The error message tells you that the signals lcd_d_cn and lcd_wen are assigned twice, which isn't possible. You need to disconnect one of the components that is connected to each pin, either the character lcd component or the PIOs.

0 Kudos
Altera_Forum
Honored Contributor II
508 Views

 

--- Quote Start ---  

The error message tells you that the signals lcd_d_cn and lcd_wen are assigned twice, which isn't possible. You need to disconnect one of the components that is connected to each pin, either the character lcd component or the PIOs. 

--- Quote End ---  

 

 

i want to use both Character and Graphics LCD at the same time. What should i do? 

thanks.
0 Kudos
Altera_Forum
Honored Contributor II
508 Views

You will need a HDL block outside the SOPC system that can connect the pins to either the LCD core or your PIOs, or dump the character LCD core and write your own software driver to control it through the PIOs.

0 Kudos
Altera_Forum
Honored Contributor II
508 Views

 

--- Quote Start ---  

You will need a HDL block outside the SOPC system that can connect the pins to either the LCD core or your PIOs, or dump the character LCD core and write your own software driver to control it through the PIOs. 

--- Quote End ---  

 

 

i don't understand.can you tell more detail? 

can you do it for me? 

thanks so much.....
0 Kudos
Altera_Forum
Honored Contributor II
508 Views

for which method? With the hardware version you need a multiplexer/demultiplexer, probably controlled by another PIO port. For the software version you should find lots of example source code on the net to control a character LCD from regular PIOs.

0 Kudos
Altera_Forum
Honored Contributor II
508 Views

Does anybody do project both LCD character & grpahic LCD. I've already done project with only character or graphics. But when i combine them, some signals have problem because of fanout.

0 Kudos
Reply