Saint Petersburg, Russia
Offline
Full Member
Karma: 2
Posts: 103
Amateur
|
 |
« on: October 29, 2009, 10:06:12 pm » |
I connected Arduino Duemilanove and monochrome graphic LCD WG12232E-TML-NA. To print letters I wrote simple ASCII sign-generator (6x8 pixels sign-place is 20x4 characters display). Compiled sketch is 4206 bytes. 2kHz timer on interrupt takes about 8% of ATmega328p. Sketch: http://sites.google.com/site/vanyambauseslinux/home/fajlovyj-menedzer/wg12232_arduino.tar.gzPhoto:   Scheme: 
|
|
|
|
« Last Edit: February 02, 2011, 06:42:16 am by Vanyamba »
|
Logged
|
|
|
|
|
North Yorkshire, UK
Offline
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #1 on: November 18, 2009, 03:21:01 pm » |
The list of arduino used LCDs is growing  Keep it up people  I like the wide LCD though, where can you get it from? All normal graphic LCDs are square (boring!) Mowcius
|
|
|
|
|
Logged
|
|
|
|
|
Saint Petersburg, Russia
Offline
Full Member
Karma: 2
Posts: 103
Amateur
|
 |
« Reply #2 on: November 18, 2009, 03:26:30 pm » |
I bought it at local shop. It was my first experience to work with LCD so I selected this device because it was cheap. 
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Saint Petersburg, Russia
Offline
Full Member
Karma: 2
Posts: 103
Amateur
|
 |
« Reply #4 on: November 18, 2009, 04:26:13 pm » |
It looks very similar except SBN1661G chip has E and CL inputs but SED1520 has only one RS input. AMG12232DR has very short description so I can't say surely it will work with my code or it won't. LOW value on E input means the MCU is writing data to display memory, HIGH value means reading (WgLCD::readChar and WgLCD::writeChar functions in wg12232.cpp). CL is 2kHz clock input. R/W and A0 inputs set data transfer mode.
I think SED1520 is newer chip and it has similar but more simple interface, but I couldn't find timing diagrams. How to program it? May be 68- and 80-family MCU datasheets can help because SBN1661G works via same protocol (Arduino is 68-family compatible because it has negative RESET output).
|
|
|
|
« Last Edit: November 18, 2009, 04:42:34 pm by Vanyamba »
|
Logged
|
|
|
|
|
Saint Petersburg, Russia
Offline
Full Member
Karma: 2
Posts: 103
Amateur
|
 |
« Reply #5 on: November 18, 2009, 04:32:36 pm » |
|
|
|
|
« Last Edit: November 18, 2009, 04:33:07 pm by Vanyamba »
|
Logged
|
|
|
|
|
North Yorkshire, UK
Offline
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #6 on: November 18, 2009, 04:51:09 pm » |
Ok, cool  Mowcius
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 4
Arduino rocks
|
 |
« Reply #7 on: January 14, 2010, 09:12:12 am » |
I've found something very similar on ebay (but the forum won't let me post a link until I post a message without a link in it first).
Hopefully I'll be able to post a link to the datasheet for the LCD I found in the next message.
|
|
|
|
|
Logged
|
|
|
|
|
North Yorkshire, UK
Offline
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #8 on: January 14, 2010, 09:13:28 am » |
You can modify your post and put in a link. I am interested  Mowcius
|
|
|
|
|
Logged
|
|
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 4
Arduino rocks
|
 |
« Reply #10 on: January 14, 2010, 09:31:31 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Saint Petersburg, Russia
Offline
Full Member
Karma: 2
Posts: 103
Amateur
|
 |
« Reply #11 on: January 14, 2010, 02:43:32 pm » |
This LCD has similar interface but other display arrangement - 2x122x16 instead 2x61x32. So my code will work incorrectly.
I found GLCD library can work with previously discussed LCD with RS pin.
What the CL pin? Ooops, I remember. CL pin is 2kHz clock input. This LCD has internal timer, since it has no CL pin.
|
|
|
|
« Last Edit: January 14, 2010, 02:48:50 pm by Vanyamba »
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 4
Arduino rocks
|
 |
« Reply #12 on: January 14, 2010, 03:19:19 pm » |
I hope you don't mind but I've got another question.
While the command and data signalling values are documented in the datasheet, I'm not clear on the timing. How would I know how long to keep a command or piece of data on the input lines ? Is it just while E1 or E2 is high ?
|
|
|
|
|
Logged
|
|
|
|
|
Saint Petersburg, Russia
Offline
Full Member
Karma: 2
Posts: 103
Amateur
|
 |
« Reply #13 on: January 14, 2010, 04:33:27 pm » |
Minimum is Tds+Tdh ~ 100 ns. I used E pins rising/falling fronts to read/write data from SBN1661G chips. I found this method when attempted to read LCD RAM data.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 2
Arduino rocks
|
 |
« Reply #14 on: July 06, 2010, 07:47:49 pm » |
|
|
|
|
|
Logged
|
|
|
|
|
|