<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>ATmega32 Development System - LCD Display 128x64
Graphical LCD Interfacing Switches</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css" media="print">
body { visibility: hidden; display: none }
</style><!-- Google Analytics Klingon Gaagh-->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17003396-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script><!-- Google Analytics Very Fresh-->
</head>
<body style="color: rgb(0, 0, 0);" alink="#ee0000" link="#0000ee" vlink="#551a8b">
<!-- stop the vultures nicking my graphics --><!-- i've had job agencies rip my graphics for their friends -->
<script language="JavaScript">
browser = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )));
function warn() {
if (event.button==2) {
alert('Please remember that the content and structure\n' +
'of this site are copyright. - Peter J. Vis.')
}
}
document.onmousedown = warn;
</script>
<div id="wrapper">
<div id="nav">
<ul>
<li><a href="../../index.html">home</a></li>
<li><a href="../../experience.html">Experience</a></li>
<li><a href="../../gallery.html">gallery</a></li>
<li><a href="../../interests.html">Interests</a></li>
<li class="lastchild"><a href="../../contact.html">contact</a></li>
</ul>
</div>
<!-- end nav -->
<div id="body">
<div style="text-align: center;"></div>
<div id="current">
<div style="text-align: center;"></div>
<!-- end .nav --> </div>
<!-- end current -->
<div id="content">
<h2><img style="width: 666px; height: 37px;" src="images/topline.gif" alt="" /><br />
</h2>
<div class="contentbox">
<div id="pv"><span style="font-weight: bold; color: rgb(102, 102, 102);"><br />
<br />
</span><big style="font-weight: bold;"><big><big>Graphical
LCD</big></big></big><br />
<br />
Graphical LCD's are a relatively new concept, and worth using. I
managed to acquire one from a supplier in China for as little as
£10.00 inc P+P. UK suppliers wanted three times that amount.<br />
<br />
<img style="width: 405px; height: 304px;" alt="" src="lcd/syb12864-1.JPG" /><span style="font-weight: bold; color: rgb(102, 102, 102);"><br />
</span><span style="color: rgb(102, 102, 102);"></span><span style="text-decoration: underline;"></span></div>
<span style="font-weight: bold; color: rgb(102, 102, 102);">
</span><big style="font-weight: bold;"><big><big><br />
</big></big></big><big style="font-weight: bold;"><big><big><a href="introduction.html">Introduction</a><br />
<br />
<a href="specification.html">Specification</a><br />
<br />
<a href="main%20board.html">Main Board</a><br />
<br />
<a href="lights%20and%20switches.html">Lights &
Switches</a><br />
<br />
<a href="sensors.html">Sensors</a><br />
<br />
<a href="analog%20board.html">Analog</a><br />
<br />
<a href="uart.html">UART Interface</a><br />
<br />
<a href="lcd.html">Graphical
LCD</a><br />
<br />
<a href="Forum.html">Forum</a><br />
<br />
<a href="../C++.html">Projects</a></big></big></big><big style="font-weight: bold;"><big><big>
</big></big></big></div>
<!-- end .contentbox -->
<h2><img style="width: 666px; height: 38px;" alt="" src="images/topline.gif" /><br />
</h2>
<div class="contentbox">
<span style="font-weight: bold;"></span><span style="color: rgb(102, 102, 102);"><span style="font-weight: bold;"></span></span><br />
<span style="font-weight: bold;">LCD Board Schematic<br />
<br />
<img style="width: 607px; height: 657px;" alt="" src="lcd/lcd%20schematic.bmp" /><br />
</span><span style="font-weight: bold;"><br />
Circuit Operation<br />
</span>The
LCD is the most expensive component, I didn't want the backlight to
burn out within a few months. Although the backlight is specified to
work on 5v (LCD Pin 19), I decided to under run it on it's minimum
threshold value just under 5v at around 4.8v. This was
achieved
with 2 4.7 ohm resistors in parallel.<br />
<br />
A 25K pot is used to
control the brightness. Originally I used a 10K pot however it didn't
provide a good variation that I was looking for.<br />
<br />
A jumper JP
is used to to isolate PB5 which is also MOSI when using an ISP
programmer. I was able to source some non-expensive slide switches, so
I decided to use that instead of jumper JP. I also added a slide switch
to control the power on pin 2 of the LCD. <br />
<br />
The LCD data
lines pins 7 to 14 occupy a complete port D of the ATmega32.
The
control lines of the LCD occupy port B. PB6 and PB7 are not used as
they are also MISO and SCK and used by the ISP.<br />
<br />
I have a separate section on how the 128x64 graphical LCD works <a href="../128x64/128x64.html">here</a>. <br />
<br />
<br />
<span style="font-weight: bold;">Veroboard Build<br />
</span><span style="font-weight: bold;"></span><br />
<img style="width: 622px; height: 1011px;" alt="" src="lcd/lcdvero.gif" /><br />
<span style="font-weight: bold;"></span><span style="font-weight: bold;"></span><span style="font-weight: bold;"><br />
Components:<br />
</span><span style="font-weight: bold;"></span><span style="font-weight: bold;">SW1, SW2 Slide switches, VR1 25K,
R1 & R2 4.7k, LCD SYB12864C Ice Blue screen.<br />
<br />
</span>Obviously, the links under the LCD should be made first
before
soldering the LCD in place. All links under the LCD should be made with
insulated wire. There is plenty of space for the links to go under the
LCD, alternatively they could be made on the track side. Light blue
diagonal links are LCD data bus lines.<br />
<span style="font-weight: bold;"><br />
<br />
<br />
<br />
SYB12864 LCD Specification<br />
</span>Here is a quick llittle drawing I made in CAD. <span style="font-weight: bold;"><br />
<br />
<img style="width: 610px; height: 492px;" alt="" src="lcd/lcd.gif" /></span><big><span style="font-family: monospace; font-weight: bold;"><br />
</span><span style="font-family: monospace;">PIN<br />
01 Vss
Ground</span><br style="font-family: monospace;" />
<span style="font-family: monospace;">02
Vdd Power
+5v +10%</span><br style="font-family: monospace;" />
<span style="font-family: monospace;">03
Vo
LCD Brightness Control</span><br style="font-family: monospace;" />
<span style="font-family: monospace;">04
D / I Data:H Instruction:L</span><br style="font-family: monospace;" />
<span style="font-family: monospace;">05
R / W Read / Write</span><br style="font-family: monospace;" />
<span style="font-family: monospace;">06
E
Enable Trigger</span><br style="font-family: monospace;" />
<span style="font-family: monospace;">07
DB0 Data Bus</span><br style="font-family: monospace;" />
<span style="font-family: monospace;">08 </span></big><big><span style="font-family: monospace;">DB1
Data Bus </span></big><big><span style="font-family: monospace;"></span><br style="font-family: monospace;" />
<span style="font-family: monospace;">09
</span></big><big><span style="font-family: monospace;">DB2