Hi,
I'm currently an probetion for an electronics system development company and they gave me LPC1788 and Topway LMT057DCDFWU-NBA to work with. I don`t have mentor or any kind of help. I don`t have any example.
I'm also very new to programming therefore it is rather hard for me to work with the device. If someone could give me some kind of help, or some initalization code for LPC 1788 lcd controller, or some example ?
Any advice is welcomed.
Thank you very much.
Hello,
Thank you for the help. But I am a little bit stuck. I have problem with HFP. How to configure Hsync and Vsync and DEN?
It turns out that I do not have pins on the conector (for display) for LRC, DRC, DEN, HSYNC, VSYNC. But I have general purpose pins (on the conector); P1(24,25,28,29) and P2(8,9). Can i use dose pins, and how?
Thanks for the help.
If we look in UM10470, section 11.5.0, we'll find more info about the available signals and their names.
Table 203 is important to us.
LCD_ENAB_M would be the same s LCD_DEN ("TFT data enable output").
LCD_FP would be the same as LCD_VSYNC
LCD_LP would be the same as LCD_HSYNC
In UM10470, table 248 (page 334), we'll find additional information on the LCD pins available.
LCD_FP is available on P2[3]
LCD:ENAB_M is available on P2[4]
LCD_LP is available on P2[5]
Now let's turn to table 82 (page 128)
Here we'll find P2[3], P2[4] and P2[5] and the values that go into the IOCON register for those pins, when configured for LCD_FP, LCD_ENAB_M and LCD_LP (that's value 111, which is alternate function 7)
Let's try checking if those signals are connected to the TFT display.
For instance, let's take the LCD's HSYNC pin.
In section 3.1 of the datasheet for the TFT display, we'll find the pin connections.
If you have a printout of this page, you could use the 'Note' column for writing the pin that this signal is connected to on the LPC1788.
Pin 3 is the HSYNC signal. Follow this signal to the pin on the LPC1788 (or use a multimeter to beep-check the connection).
If it ends up on P2[5], then you're in luck; write 'P2[5] in the 'Note' column.
(unfortunately, the 'Note' column does not have any rows for for R[1..4], G[1..4], B[1...4], but the blank lines might work for this purpose).
The LRC and UDC signals can be either permanently pulled up or down or connected to any GPIO pin of your own choice.
If it's already connected, the existing connection should do fine; just configure the GPIO pin as output and set it to the desired value. It wouldn't need to change value frequently; just when initializing the display.
If you need to find the connections of the R[5...0], G[5...0] and B[5...0] signals (they each have more than one possible port connection on the LPC1788), then use the following tables to assist you:
Table 82 (page 128)
Table 248 (page 334) (this is a suggested layout only)
R[5..0] will go to LCD_VD[7..2], G[5..0] will go to LCD_VD[15..10], B[5..0] will go to LCD_VD[23..18] and now I need some tea.