This is an old revision of the document!
LCD
The MSE-Embedded platform contains one LCD as indicated in the below figure.
The MSE-Embedded board contains a RGB LCD 320*240 pixels. The datasheets can be found here.
The control pins of this LCD which are connected to the FPGA are listed in the table below. An example tcl-file that can be used with Quartus can be found here.
Function: | short: | FPGA-pin: |
---|---|---|
Active Low Reset | RESETn | PIN_A18 |
Active Low Chip Select | CSn | PIN_G14 |
Data / Command selection: '1' = Data; '0' = Command | D_Cn | PIN_H14 |
Active Low Write | WRn | PIN_G15 |
Active Low Read | RDn | PIN_H15 |
IM0 = 0: 16-bit, IM0 = 1: 8bit | IM0 | G13 |
Data Bus 0 | DATA0 | PIN_G15 |
Data Bus 1 | DATA1 | PIN_E12 |
Data Bus 2 | DATA2 | PIN_E13 |
Data Bus 3 | DATA3 | PIN_F14 |
Data Bus 4 | DATA4 | PIN_E15 |
Data Bus 5 | DATA5 | PIN_F15 |
Data Bus 6 | DATA6 | PIN_E16 |
Data Bus 7 | DATA7 | PIN_F16 |
Data Bus 8 | DATA8 | PIN_C15 |
Data Bus 9 | DATA9 | PIN_D15 |
Data Bus 10 | DATA10 | PIN_C17 |
Data Bus 11 | DATA11 | PIN_D17 |
Data Bus 12 | DATA12 | PIN_C19 |
Data Bus 13 | DATA13 | PIN_D19 |
Data Bus 14 | DATA14 | PIN_A16 |
Data Bus 15 | DATA15 | PIN_B16 |
The initialization code that can be used with the Nios can be found here (lcd_simple.c) and here (lcd_simple.h).
When choosing 8bit mode (IM0 = 1) use DATA8 - DATA15 as data bus and set DATA0 - DATA7 to 0. In 16-bit mode (IM0 = 0) use DATA0 - DATA15.