Lefora Pro Forum
login join
Loading
990 views

TFT HW Connections

Page 1
1–4
rookie - member
7 posts

 

I am trying to connect my first ever TFT LCD to PIC24FJ128GA010 directly using breadboard wires.

The 3.2 inches LCD uses SSD1289 driver IC and I got the driver files for it from Microchip.

When I connect everything and run my program the screen stays white with just the backlight on, no graphics or text.

So now, I got two unknowns. One is the hardware connections whether they are correct/complete or not and at this point I am not sure if I got them right, second is the software driver for the SSD1289.

For now I would like to make sure my hardware connections are correct.

The following are the pin out description for my LCD, and how I connected them.

 

Pin Interface Description

1 LEDA - LED Backlight Anode –

Connected to 15V

2 LEDK - LED Backlight Cathode –

Connected to GND

3 GND 0V Ground –

Connected to GND

4 VDD 2.8V Logic power supply –

Connected to VDD

5 PS2 H/L  See below

Connected to GND

6 PS1 H/L  See below

Connected to GND

7 PS0 H/L  See below

Connected to GND

8 PS3 H/L  See below

Connected to VDD

 

PS3   PS2   PS1   PS0 Interface Mode

1        1       1        1      3 wire SPI

1        1                  1            0      4 wire SPI

1        0       1        1      6800 parallel, 16 bit

1        0       1        0      6800 parallel, 8 bit

1        0       0        1      8080 parallel, 16 bit

1        0       0        0      8080 parallel, 8 bit

0        1       1        1      6800 parallel, 18 bit

0        1       1        0      6800 parallel, 9 bit

0        1        0       1      8080 parallel, 18 bit

0        1        0       0      8080 parallel, 9 bit

0        0       1        1      Reserved

0        0       1        0      Reserved

0        0       0        1     18 bit RGB + 4 wire SPI

 

 9 SHUT H/L Driver sleep mode (Sleep : VDD, Normal : VSS) VDD or VSS

Connected to GND

10 RESET H/L System reset VDD

Connected to RC1 of the PIC24

11 VSYNC H/L Frame synchronisation signal VDD or VSS

Connected to GND

12 HSYNC H/L Line synchronisation signal VDD or VSS

Connected to GND

13 DOTCLK H/L Dot clock signal, continuous external clock signal required VDD or VSS

Connected to GND

14 DEN H/L Display enable from controller VDD

Connected to VDD

15~32 DB17~DB0 H/L

Parallel mode : 8/9/16/18 bit interface

Generic mode : RGB interface VSS

Connected DB17-DB10 to PMD7-PMD0 of the PIC24

DB9-DB0 are all connected to GND

33 RD H/L

68 system : Enable (E)

80 system : Read signal (/RD)

Serial : Not used VDD or VSS

Connected to RD5 of PIC24

34 WR H/L

68 system : Read when high, Write when low (/WR)

80 system : Write signal (WR)

Serial : Not used VDD or VSS

Connected to RD4 of PIC24

35 DC H/L Data or command VDD or VSS

Connected to RC2 of PIC24

36 SDO H/L Data output pin in serial mode OPEN

No Connection

37 SDI H/L Data input pin in serial mode OPEN

No Connection

38 SCK H/L Clock pin in serial mode OPEN

No Connection

39 CS H/L Chip select pin in serial mode OPEN

Connected to RD10 of PIC24

40 GND 0V Ground

Connected to GND

41~45 NC - No connection

No Connections

 

By looking at these connections if you spot anything wrong or have any hints/suggestions please let me know.

 
Thank you.

rookie - member
7 posts

Hi:

Please disregard my last post.

I fixed the issue, and it was my mistake.
I used DB17-DB11 instead of DB8-DB1 for 8-bit 8080 interface as described in the manual.

The LCD is now displaying correctly, and I no longer have any issue.

guest
91 posts

Glad to hear and thanks for posting the fix.

Admin - founder
98 posts

Visitor1,

Please note, Microchips has released their Graphics Library v1.75 which includes reference schematics for the SDT032TFT module.

Thanks,
Mike

Page 1
1–4

Locked Topic


You must be a member to post in this forum

Join Now!