LCDInfo.com

http://www.lcdinfo.com
It is currently Thu Nov 21, 2024 21:25

All times are UTC + 2 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Jul 27, 2005 9:01 
Offline

Joined: Wed Jul 27, 2005 8:47
Posts: 9
Location: Moscow, Russia
Hi, :D.
I making such a thing, witch is work on EL320.240.36 Planar display. This display is similar to 320x240 2 colors LCD disp. EL use 4-bit LCD protocol, so i decided to use SED1335. It's my first work with LCD protocol. Help me pls :oops: :lol:. I want to use disp not with PC but with Atmel AVR microcontroller (AT90S8515, ATmega8515 and simillar). But at first I think i have to start display from PC. Tell me pls witch driver (controller) I should better use. From what OS (DOS or Windows :arrow: better Windows) I should start it. I know C/C++ prety good, work with parallel port thrue the port95nt.exe library. Please help me with advice and some examples. At first I want to write 2 or 3 words and draw simple geometric figure like circle.
Thx2u.

_________________
AC/DC \m/ =)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 04, 2005 14:32 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
It shouldn't matter which OS you use. With DOS and Win9x you have straight access to the hardware ports but with NT you need to use some driver to access the ports. WinIO, DLPortIO etc.

I hope the examples I gave you helps you getting started.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 22, 2005 11:15 
Offline

Joined: Wed Jul 27, 2005 8:47
Posts: 9
Location: Moscow, Russia
I'm using Win XP SP2, thanks for your example that u send to me :) . I donn't understand there these strings:
std::ifstream stream(filename, std::ios::binary);
if (!stream)
{} // error

stream.read(reinterpret_cast<char *>(&header), sizeof(BITMAPFILEHEADER));
stream.read(reinterpret_cast<char *>(&info), sizeof(BITMAPINFO));
stream.seekg(header.bfOffBits, std::ios::beg);

width = info.bmiHeader.biWidth;
height = info.bmiHeader.biHeight;

bytes_in_row = width/8;
lines = height;

discardbytes=0;

if((bytes_in_row % 4) != 0)
discardbytes = (bytes_in_row - (bytes_in_row % 4)) + 4 - bytes_in_row;

for(line=lines-1;line>=0;line--)
{
for(i = 0; (i < bytes_in_row) && (!stream.eof()); i++)
bitmap[line*bytes_in_row+i] = 255 - stream.get();
for(i=0;i<discardbytes;i++)
stream.get();
}

I've cut your comments. And I have 1 little problem :roll: , I connect
dirrectly to microcontroller except 1 leg :? , it is CS pin. I've
connected it to LPT. So the problem is, that I cann't change CS state
during the 8080 protocol. I can just turn it LOW or HIGH. DATA pins
A0, RD and WR are dirrectly goes to microcontroller and CS to LPT.
Will s1d13305(sed1335) work if I set CS to LOW one time, and will
send commands to it without changing CS state??? Or I must change CS
state from LOW to HIGH and from HIGH to LOW every command?

_________________
AC/DC \m/ =)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 27, 2005 9:05 
Offline

Joined: Wed Jul 27, 2005 8:47
Posts: 9
Location: Moscow, Russia
Just make my device, and very glad. I'll upload pictures soon, I'think today. Display and the device. Display is working thrue the ATMEGA microcontroller, not thrue the PC. TY Henri for help :P

_________________
AC/DC \m/ =)


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 28 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:  
Powered by phpBB® Forum Software © phpBB Group