I have a piece of code written in assembly to drive the sed1335. It took me close to two weeks to get a working driver for this chip.
Now I'm running into problem in different area, trying different software to see if I can go faster to reach my goal.
Any idea why ?
I have modified the sed1335 to match my hardware, even when I turn on a single pixel like "glcd_pixel(40,40,1);" it will turn on two pixels next to each other.
I have checked and rechecked the code. I don't see any difference in my modified code other than the control port and the display width.
Can you help.
Thanks
Dezso:
Dezso Guest
Posted: Fri Feb 19, 2010 10:50 pm
Got it working.
I have always been a ASM guy, just learning C.
Code:
// Purpose: Read a byte of data
// Outputs: The byte of data
int8 glcd_readByte()
{
byte data;
set_tris_d(0xFF);
output_high(GLCD_A0);
output_high(GLCD_WR);
output_low(GLCD_CS);
delay_cycles(2);
output_low(GLCD_RD);
delay_cycles(2);
data = input_d();
delay_cycles(5);
output_high(GLCD_RD);
output_high(GLCD_CS);
set_tris_d(0x00);
return data;
}
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum