I've just started working with a 5,7" TFT display with the SSD1963 controller. But I have encountered a problem.
I get random output on the screen. I will also note you that I accidently added 5V to the display and not 3.3V.
But that doesn't seem to have broken the controller, since I only get this flickering when I startup the display. I can still send command to the controller and it does the desired command (for example turn on the display).
The flickering still appears even if I remove the microcontroller.
Here is my code for sending a command (Chip select is controlled elsewhere in my program):
Code: Select all
//Sends command to display.
void SSD1963Command(unsigned short cmd) {
RD = 1;
DC = 0;
DATA = cmd;
WR = 0;
WR = 1;
}
Code: Select all
void SSD1963Data(unsigned short dataout) {
RD = 1;
DC = 1;
DATA = dataout;
WR = 0;
WR = 1;
}
Code: Select all
//Initializes display.
void SSD1963Init() {
//Setup ports.
DATA = 0x00;
DC = 0;
WR = 0;
RD = 0;
CS = 0;
RS = 0;
TDATA = 0x00;
TDC = 0;
TWR = 0;
TRD = 0;
TCS = 0;
TRS = 0;
//Init port settings.
WR = 1;
RD = 1;
CS = 0;
//Waits for supply to stabilize.
delay_ms(10);
//Performs hardware reset.
RS = 0;
delay_ms(100);
RS = 1;
delay_ms(100);
//Software reset.
SSD1963Command(0x01);
//Exit sleep mode.
SSD1963Command(0x11);
//Normal mode.
SSD1963Command(0x13);
//Exit idle mode.
SSD1963Command(0x38);
//Display on.
SSD1963Command(0x29);
}
Any suggestions?
Regards,
Simon H.A.
PS: Here is a picture of my lcd running: http://img535.imageshack.us/img535/8841/dsc0395sa.jpg
Edit: The output is flickering (like when you have no signal on an old style television).