Setup of S64128K
I'm not getting anything on the screen and I am suspecting it is my setup code.
I have the display connected per the diagram provided on your web site. All the caps are 1uF ceramics. The C86 and P/S are connected to 3.3VDC so we have the device in 6800 mode.
I noticed that on caps between VSS and VOUT is about 3.3V.
CAP3, CAP1 and CAP2 also have approx 3V on them.
But V0 thru V4 are all at 0V.
// ************************************************ //
// write command routine
// ************************************************ //
void WriteCommand(void)
{
BYTE yy;
DISPLAY_CS = 0;
DISPLAY_A0 = 0;
DISPLAY_WR = 0;
DISPLAY_RD = 0;
for(yy=0;yy<=200;yy++){}
DISPLAY_CS = 1;
DISPLAY_A0 = 0;
DISPLAY_WR = 1;
DISPLAY_RD = 0;
for(yy=0;yy<=200;yy++){}
}
// ************************************************ //
// write command routine
// ************************************************ //
void WriteData(void)
{
BYTE yy;
DISPLAY_CS = 0;
DISPLAY_A0 = 1;
DISPLAY_WR = 0;
DISPLAY_RD = 0;
for(yy=0;yy<=200;yy++){}
DISPLAY_CS = 1;
DISPLAY_A0 = 1;
DISPLAY_WR = 1;
DISPLAY_RD = 0;
for(yy=0;yy<=200;yy++){}
}
// ************************************************ //
// initialize the display
// ************************************************ //
void Init_Display(void)
{
unsigned short u;
DISPLAY_RES = 0;
for(u=0;u<=10000;u++){}
DISPLAY_RES = 1;
for(u=0;u<=10000;u++){}
WriteValue(0xA2); // write bias
WriteCommand();
// adc select
WriteValue(0xA0); // ADC Normal
WriteCommand();
// set coms
WriteValue(0xC8);
WriteCommand();
// set voltages
WriteValue(0x25); // voltage ratio
WriteCommand();
// set volume mode
WriteValue(0x81); // voltage mode
WriteCommand();
// voltage set
WriteValue(0x20); // voltage set
WriteCommand();
// set booster
WriteValue(0xF8); // voltage boost ratio
WriteCommand();
WriteValue(0x00);
WriteCommand();
// power setting
WriteValue(0x28 + 7);
WriteCommand();
// start line
WriteValue(0x40);
WriteCommand();
// page address
WriteValue(0xB0);
WriteCommand();
// column address high
WriteValue(0x10);
WriteCommand();
// column address low
WriteValue(0x00);
WriteCommand();
// display reverse
WriteValue(0xA7);
WriteCommand();
// display normal
WriteValue(0xA6);
WriteCommand();
// display on
WriteValue(0xAF);
WriteCommand();
// display all on
WriteValue(0xA5);
WriteCommand();
}
any help would be appreciated
Hi Frank,
I will look over your startup code. Would you please also post your sch for the voltage output issue ?
Thanks
All,
This post is being moved to S64128K section.
Thanks,
Mike