<html>
<!-- Generated by AceHTML Freeware http://freeware.acehtml.com -->
<!-- Creation date: 6/3/2004 -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>www.mindaugas.com</title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="mindmil@one.lt">
<meta name="generator" content="AceHTML 5 Freeware">


<style type="text/css">
<!--
A:link {font-family: Arial, Helvetica, sans-serif;  text-decoration: none; color: #006600}

A:visited {font-family: Arial, Helvetica, sans-serif;  text-decoration: none; color: #006600}

A:hover {font-family: Arial, Helvetica, sans-serif;  text-decoration: underline; color: #006600}

A:link.menu {font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; color: #f5f5f5}

A:visited.menu {font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; color: #f5f5f5}

A:link.menuhlt {font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; color: #f5f5b5}

A:visited.menuhlt {font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; color: #f5f5b5}

A:hover.menu {font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration:underline; color: #f5f5f5}

.menu {font-family: Verdana, Arial, Helvetica, sans-serif; color: #f5f5f5}

.menuhlt {font-family: Verdana, Arial, Helvetica, sans-serif; color: #f5f5d5}

td {background:   transparent; color: navy; font-family: Arial, Helvetica, sans-serif; font-size: 9pt}

body {background-color: #dcdcdc; font-size: 9pt}

.mainmenu {background-color: #191970; color: #f5f5f5; font-size: 10pt; width: 120px}

.rightpanel {background-color: #191970; color: #f5f5f5; font-size: 10pt; width: 120px}

.mainmenuline {color: #c0c0c0;noshade}

.field_name2 {background-color: #191970; color: #f5f5f5; }
.field_name {background-color: #303080; color: #f5f5f5; }
.field_value {background-color: #dcdcdc; color: #000080; }

.submenu {background-color: #4169E1; color: #f5f5f5; font-size: 9pt}

.submenu2 {background-color: #EAEAF3; color: #000080; font-size: 9pt}

.submenu2_lll {background-color: #fAfAF3; color: #bF4500; font-size: 9pt}

.submenu2_l {background-color: #fff6E0; color: #000080; font-size: 9pt}
.submenu2_l_2 {background-color: #fAfAF3; color: #000080; font-size: 9pt}

.submenu2_anouncement2 {background-color: #ddFFdd; color: #000080; font-size: 9pt}

.submenu2_anouncement {background-color: #FFfbcc; color: #d02000; font-size: 9pt}
.submenu2_anouncement_big {background-color: #FFfbcc; color: #d02000; font-size: 14pt}

.submenu2_anouncement4 {background-color: #FFfbcc; color: #800000; font-size: 9pt}

.submenu2_anouncement3 {background-color: #FFfbcc; color: #000080; font-size: 9pt}

.submenu2_lt {background-color: #fAfAF3; color: #f5f5f5; font-size: 9pt}

.submenu2_body2 {background-color: #FFFFeb; color: ##800000; font-size: 9pt}

.submenu2_body {background-color: #FFFff7; font-size: 9pt}
.submenu2_body3 {background-color: #dcdcdc; font-size: 9pt}

.submenuitem {background-color: #4169E1; color: #f5f5f5; width: 70px}

.titlebar {background: #FFA500; color: #800000}

.footerbar {background: #FFA500; color: #800000}

h1 {font-size: 16pt}

h2 {font-size: 14pt}

h3 {font-size: 12pt}

h4 {font-size: 10pt}

h5 {font-size: 8pt}

h6 {font-size: 6pt}

.textstyle {font: bold 12px Verdana;  line-height: 1.5;}

.rgdsmailstyle {font: italic bold 12px Verdana;  line-height: 1.5;}

.formstyle {background-color: #E1E1E1;}

/* End of style section. Generated by AceHTML at 2/7/2005 11:43:21 PM */
-->
</style>


		
</head>
<body>  <!-- bgcolor="#ffffcc" text="#000000" link="#0000ff" vlink="#800080" alink="#ff0000"> -->

<table width="800" align="center" border="0" cellpadding="0" cellspacing="0" bordercolor="#000000" summary="">
	<tr>
		<td height="24" class=titlebar align="center">
		<span style="font: normal; font-family:     sans-serif; font-size: 18pt; font-weight: bold">Mindaugas' Home</span>
		</td>
	</tr>
	<tr>
		<td>
	<table border="0" height="600" cellpadding="0" cellspacing="0" bordercolor="#000000" summary="" >
	<tr>
		<td width="120" align="left" valign="top" class=mainmenu> 
			 <table  border="0" cellpadding="4" cellspacing="0" bordercolor="#000000" summary="" >
				<tr>
					<td class=mainmenu > 
					
												<div >
						<b><a href="../../default.htm" title="Home" class=menu>Home</a></b>						 </div>
						 <hr class=mainmenuline>
														<div >
						<b><a href="../default.htm" title="Projects" class=menu>Projects</a></b><br>&nbsp;&nbsp;<a href="default.htm" title="MJoy" class=menu>MJoy</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="Article.php" title="Article" class=menu>Article</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="Versions.php" title="Versions" class=menu>Versions</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="Programmer.php" title="Programmer" class=menuhlt>Programmer</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="FAQ.php" title="FAQ" class=menu>FAQ</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="Links.php" title="Links" class=menu>Links</a><br>&nbsp;&nbsp;<a href="../MJoy16/default.htm" title="MJoy16" class=menu>MJoy16</a>						 </div>
						 <hr class=mainmenuline>
														<div >
						<b><a href="../../products/default.htm" title="Products" class=menu>Products</a></b>						 </div>
						 <hr class=mainmenuline>
														<div >
						<b><a href="../../software/default.htm" title="Software" class=menu>Software</a></b>						 </div>
						 <hr class=mainmenuline>
														<div >
						<b><a href="../../about.php" title="About" class=menu>About</a></b>						 </div>
						 <hr class=mainmenuline>
																				 
					</td>
				</tr>
		 	</table>
		 </td>
		<td width="680" align="justify" valign="top" bgcolor="#FFFFCC"  class="submenu2_body" >
	



		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<table   width="100%" border="0" cellpadding="4" cellspacing="0" bordercolor="#000000" summary="">
	<tr>
		<td class="submenu">
			<h2>Programmer</h2>
			<h4>How to programm the AVR microcontroller chip for MJoy
			</h4>
		</td>
	</tr>
	<tr>
		<td align="justify"><br>
		
		

<div style="text-align:justify;"><h4>Programmer Hardware</h4>

The controller was programmed using very simple programmer. I like using simple tools for simple tasks :)
Here is the hardware: <br>

<a href="avrisp.gif"><img src="avrisp_thumb.gif" border="0" alt="AVR programmer hardware"></a>
<a href="IMG_0466.jpg"><img src="IMG_0466_thumb.jpg" border="0" alt="Programmer Top"></a>
<a href="IMG_0467.jpg"><img src="IMG_0467_thumb.jpg" border="0"  alt="Programmer Bottom"></a><br>
Click images to enlarge<br>
<br>
<br>
It has a bit dirty design but it works for me and I don’t think something much more is needed. All you have to think about is 
how to connect wires to the correctly to the chosen ATMega8 package. Other Atmel AVR controllers may also porgrammed using this programmer.<br>
<br>

<h4>Programmer Software</h4>

I use PonyProg to program the controller. You can find the latest version on this website:<br>
<br>
&nbsp &nbsp <b>Link: <a href="http://www.lancos.com/prog.html" title="PonyProg">http://www.lancos.com/prog.html</a></b>
<br>

<h4>Programming Procedure</h4>

<ol>
	<li>Connect the controller to USB port on your computer. This is needed to provide +5V power supply. Connect the programmer to LPT1 port on your computer. Connect the programmer to your controller (I use simple LAN patch cord).</li>
	<li>Start PonyProg program. On first start it proposes to make calibration to adjust itself to your PC speed. Let it do it. Alternatively use Setup->Calibration from menu.</li>
	<li>Make setup of programmer interface using Setup->Interface Setup... Make settings according to picture below.<br>
		<a href="Device_setup.gif"><img src="Device_setup_thumb.gif" border="0"  alt="Interface Setup"><br>
		Click image to enlarge</a></li>
	<li>Select ATMega8 chip as the device you want to programm from menu Device->ATMega8 as shown on the picture.<br>
		<a href="Chip_setup.gif"><img src="Chip_setup_thumb.gif" border="0"  alt="Chip Select"><br>
		Click image to enlarge</a></li>
	<li>Open mjoy.hex file using menu File->Open Program (FLASH) File...</li>
	<li>Program the chip using Command->Write Program (FLASH) menu.</li>
	<li>Program the chip configuration bits using Command->Security and Configuration bits... Set flags as shown below and hit Write to program them.<br>
		<a href="Configuration_bits.gif"><img src="Configuration_bits_thumb.gif" border="0"  alt="Configuration bits"><br>
		Click image to enlarge</a></li>
	<li>Close PonyProg, disconnect the programmer and replug your new megajoystick to USB port.</li>
</ol>

<br><br>
Enjoy!
<br><br><br></div>
<h5>Last update: 2005-02-08</h5>
</td>
	</tr>
</table>

		

</td>
</tr>
</table>
		</td>
	</tr>
	<tr>
		<td height="12" class=footerbar align="center">
		</td>
	</tr>

</table>


</body>
</html>