I found this post: Electronics - 640x400 Lcd (Unique Situation) | bit-tech.net Forums
I have that exact glcd.
What exactly do I have to do to get it set up like the post below says.
Alright my mistake. The circuit right now is extremely simple. THe negative voltage is generated, well, simply by some old wall transformer things so, not much to it there. I am using a Pic Microprocessor (18F4550 @ 48Mhz) to do the Frame, Load, and CPX clocks. The source code is really simple. Now, I have also an asm version but I didn't really put much effort to it, but it will have the timings down more to the exact specs. Simply each of the control wires goes to one of the PORTA i/o's on the microprocessor. The data lines are just sitting randomly on the breadboard and I just stick it in the 5v or 0v rails attempting to see the lines down the display. This afternoon i'll get a pic, but its really simple setup. I hope that covered the general important parts I forgot.
#include <p18f4550.h>
#pragma config PLLDIV=5, CPUDIV=OSC1_PLL2, USBDIV=1, FOSC=HSPLL_HS, FCMEM=OFF
#pragma config MCLRE=OFF, LVP=OFF, PWRT=ON, BOR=OFF, WDT=OFF, PBADEN=OFF
#define LCD_CPX LATA0
#define LCD_FRAME LATA1
#define LCD_LOAD LATA2
void main()
{
unsigned char seg, line;
ADCON1 = 0x0F;
CMCON = 0x07;
TRISA = 0;
TRISB = 0;
while(1)
{
LATAbits.LCD_FRAME = 1;
for(line=0; line<200; line++)
{
for(seg=0; seg<160; seg++)
{
LATAbits.LCD_CPX = 1;
Nop();
LATAbits.LCD_CPX = 0;
Nop();
}
LATAbits.LCD_FRAME = 0;
LATAbits.LCD_LOAD = 1;
Nop();
LATAbits.LCD_LOAD = 0;
Nop();
}
}
}