Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 07, 2016, 09:32:11 09:32


Login with username, password and session length


Pages: [1]
Print
Author Topic: SED1335 driver (with anti-flicker)  (Read 2920 times)
0 Members and 1 Guest are viewing this topic.
dezso
Junior Member
**
Offline Offline

Posts: 80

Thank You
-Given: 29
-Receive: 137


« on: April 30, 2010, 01:17:54 01:17 »

This is what I'm after for, the sed1335.c found in the CCS driver folder works but the screen segment flicker on write.
Not super noticeable but like to get rid of it.
If any of you have some experience driving this chip please share your code.

Thanks
Logged
dezso
Junior Member
**
Offline Offline

Posts: 80

Thank You
-Given: 29
-Receive: 137


« Reply #1 on: May 04, 2010, 05:15:49 17:15 »

No one Huh

ok

Here is what I got so far.
According to Epson's datashets if we write during memory read the display flicker can occur.



This is the original write routine created by CCS, no busy check.
Code:
// Purpose:    Write a byte of data
// Inputs:     The byte of data to write
void glcd_sendByte(byte data)
{
   output_d((data));
   output_low(GLCD_CS);
   delay_cycles(1);
   output_low(GLCD_WR);
   delay_cycles(2);
   output_high(GLCD_WR);
   output_high(GLCD_CS);
}

my version with busy check, whoever this will slow done the display significantly, I don't think I can get more than 2fps.

Code:
// Purpose:    Write a byte of data
// Inputs:     The byte of data to write
void glcd_sendByte(byte data)
{
   int status;
   output_low(GLCD_CS);
   output_low(GLCD_A0);
   output_low(GLCD_RD);
   output_high(GLCD_WR);
   delay_us(1);
   status = input_d();
   while (bit_test(status,6) != 1)
   status = input_d();
   while (bit_test(status,6) == 1)
   status = input_d();
   output_low(GLCD_WR);
   output_high(GLCD_RD);
   output_d((data));
   output_high(GLCD_WR);
   output_high(GLCD_CS);
}

any suggestion....

Thanks
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC