CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

SED1335 not behave !

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Dezso
Guest







SED1335 not behave !
PostPosted: Fri Feb 19, 2010 1:23 am     Reply with quote

Hello

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.

The sed1335.c produce this
http://www.imagebam.com/image/ba324268708322

My asm driver works fine
http://www.imagebam.com/image/aeee6168708320

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







PostPosted: Fri Feb 19, 2010 10:50 pm     Reply with quote

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;
}
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group