LCDInfo.com

http://www.lcdinfo.com
It is currently Thu Apr 18, 2024 9:46

All times are UTC + 2 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sat Jun 24, 2006 21:55 
Offline

Joined: Sat Jan 25, 2003 0:24
Posts: 14
I partially got it working. I can fill the whole screen and stuff but i can't figure out how to fill half screen etc. Something just ain't configured properly. I suspect the memory addresses!

Please add me to your msn at goldserve1 at hotmail DOT com and I can show you my code! Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 25, 2006 6:46 
Offline

Joined: Sat Jan 25, 2003 0:24
Posts: 14
Okay, finally got the chip initialzed and can draw something on it BUT i'm getting reading problems from the chip! I goggled it and someone had the exact same problem. When I issue MREAD, D6 is alway stuck at one.

http://projects.tbmn.org/cgi-bin/trac.c ... d_pitfalls

Quote:

Due to the memory problem (see above) the LCD memory has to be read out. This is done with the wiki:SED1335 MREAD command. The problem is that there a lots of bit-errors which renders the received data completely unuseable. I also tried to read a whole bunch of values and accept the value only, if the bunch of values was the same. (this solution end up in an endless loop)
The cable from the wiki:ATMega16 to the LCD controller PCB is currently pretty long (about 50cm) which might be a reason for the bit-errors. The funny thing is that the LCD controller receives all the data-bytes just fine without errors, so it should work the other way too.

I just had a look at the data-lines with my scope. It turned out that the controller PCB's data pin D6 (Pin8 on the SUB-D25 connector) goes crazy if the wiki:SED1335 controller is in MREAD mode. I even completely disconnected the pin from the circuit by temporarily cutting through a PCB track and the strange signal was still on the pin. I will also verify if the on the AVR controller received data changes in bit6 only. Furthermore I also looked for electronic wiki:suppliers where I could get a new wiki:SED1335 in case it is broken.

I'm pretty sure now, that the SED1335 controller on the controller PCB here is not working properly, at least not in MREAD mode. The PCB was not stored safely and an electrostatic discharge might have done damage to the controllers output-buffer. Since I do have to build up a project PCB (wiki:controller_design) with an ATMega128 (see memory problem above), I am designing a new SED1335 PCB (wiki:lcd_controller_redesign) as well. The ATMega128 controller does support up to 64K external SRAM memory which will be more than I need.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 25, 2006 17:07 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
For anyone else possibly having similar problems D6 sounds like the status flag bit for the status read. When using S1D13305 in the 8080 mode /WR and /RD are inverted while A0 is not. This could cause some confusion as A0 defines if you're reading status or data.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 26, 2006 16:42 
Offline

Joined: Sat Jan 25, 2003 0:24
Posts: 14
All working perfectly now! Cheers!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 2 hours


Who is online

Users browsing this forum: No registered users and 36 guests


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

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group