LCDInfo.com http://forum.lcdinfo.com/ |
|
PLanar EL display Atmel controller and what driver? http://forum.lcdinfo.com/viewtopic.php?f=9&t=1274 |
Page 1 of 1 |
Author: | Sereja [ Wed Jul 27, 2005 9:01 ] |
Post subject: | PLanar EL display Atmel controller and what driver? |
Hi, . 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 . 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 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. |
Author: | Henri [ Thu Aug 04, 2005 14:32 ] |
Post subject: | |
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. |
Author: | Sereja [ Mon Aug 22, 2005 11:15 ] |
Post subject: | |
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 , 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? |
Author: | Sereja [ Sat Aug 27, 2005 9:05 ] |
Post subject: | |
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 |
Page 1 of 1 | All times are UTC + 2 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |