📄 p89progm.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0039)http://a51.diy.163.com/diy/p89progm.htm -->
<HTML><HEAD><TITLE>ATMEL 89 Series Flash Microcontroller Programmer Ver 3</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<META content=FrontPage.Editor.Document name=ProgId></HEAD>
<BODY bgColor=#99ccff>
<DIV align=center>
<DIV align=center>
<TABLE height=261 width="99%">
<TBODY>
<TR>
<TD height=137>
<TABLE borderColor=#000099 height=157 cellSpacing=0 width="100%"
bgColor=#000099 border=1>
<TBODY>
<TR>
<TD width="100%" bgColor=#000099 height=153><FONT
color=#f1f0ff>51测试网 HPPT://a51.diy.163.com
单片机入门</FONT>
<P><FONT color=#f1f0ff><IMG height=112
src="p89progm.files/DSCN3518.jpg" width=273 align=left
border=0>89c51xp版开发套件......自己动手成就未来<IMG height=31
src="p89progm.files/80.gif" width=88 border=0></FONT></P>
<P> </P></TD></TR></TBODY></TABLE>
<P align=center><FONT color=#000099 size=+2>ATMEL 89 Series Flash
Microcontroller Programmer Ver 3.0</FONT></P>
<BLOCKQUOTE>
<H2> </H2>
<HR width="100%">
<FONT size=+1>Introduction</FONT>This programmer was designed in view of
to be flexible, economical and easy to built, the programmer hardware
utilizes the standard TTL series parts and
no special components are used. The programmer is interfaced with the PC
parallel port and there is no special requirement for the PC
parallel port, so the older computers can also be used with this
programmer.
<H2><FONT size=+1>Supported Devices</FONT></H2>The programmer software
supports the following Atmel devices<BR> <BR>
<CENTER>
<TABLE cols=4 width="70%" border=1>
<TBODY>
<TR>
<TD><FONT color=#000000 size=+1>AT89C51</FONT></TD>
<TD><FONT color=#000000 size=+1>AT89S51</FONT></TD>
<TD><FONT color=#000000 size=+1>AT89C51RC</FONT></TD>
<TD><FONT color=#000000 size=+1>AT89C1051U</FONT></TD></TR>
<TR vAlign=center align=middle>
<TD><FONT color=#000000 size=+1>AT89C52 </FONT></TD>
<TD vAlign=center align=middle><FONT color=#000000
size=+1>AT89S52</FONT></TD>
<TD><FONT color=#000000 size=+1>AT89C55WD</FONT></TD>
<TD><FONT color=#000000 size=+1>AT89C2051</FONT></TD></TR>
<TR>
<TD><FONT color=#000000 size=+1>AT89C55</FONT></TD>
<TD><FONT color=#000000 size=+1>AT89S53</FONT></TD>
<TD><FONT color=#000000 size=+1>AT89S8252</FONT></TD>
<TD><FONT color=#000000
size=+1>AT89C4051</FONT></TD></TR></TBODY></TABLE></CENTER>
<P>Note: For 20 pin devices a simple interface adapter is
required.
<H2><B><FONT size=+1>Hardware</FONT></B></H2>Figure 1 shows the circuit
diagram of the Flash Programmer, the programmer is
interfaced with the standard parallel port of the PC.
As shown in the diagram U2 is used to control the data flow
between the controller and the PC, U4 latched the low
order address byte and U5 latched the high order address
byte, while U3 is used to generate the control signals for micro
controller to be programmed. IC U1 is used
to generate the progrram pulse for the u-controller.
The power supply section uses U8 to generate the logic 5V supply while
the U7 is used to provide the programming
supply voltage to controller. IC U6 is used to
generate the VDD power supply voltage for the u-controller which is
selectable either 5v or 6v5.
<P>The power to the circuit is
provided by a wall adapter of 15 to 18V output, normally a
15V type adapter will provide a 19~20V output
voltage. As shown in the diagram the crystal X1 can be
replaced by a resonator in that case capacitors C4 and C5 are not
required. Place a small heatsink on U8 voltage regulator.
<P>For the adjustment of P1, P2 and P3 use a digital multimeter &
follow the steps shown below,
<P>1. To adjust P1, temporarily connect T1 base to ground using
test clips then adjust P1 to get 6.5V at the<BR>
output of regulator U6.<BR>2. Next first adjust P2 to get the
13.1V at the output of regulator U7, make sure transistor T5 is off
or<BR> temporarily connect the T5 base to ground
using test clips.<BR>3. Now temporarily short the collector of
transistor T5 to ground using test clips.<BR>3. Adjust P3 to get
the 12.1V at the output of U7 regulator IC.</P></BLOCKQUOTE><IMG
height=739 src="p89progm.files/Pgm89v3.gif" width=1022>
<CENTER>
<P><B><FONT color=#000099>Figure 1: Circuit Diagram of Flash
Programmer V3.0</FONT></B></CENTER>
<P><BR>
<BLOCKQUOTE>Figure 2 shows the circuit diagram of the interface adapter
card required for the programming of 20 pin Flash devices.
</BLOCKQUOTE><IMG height=394 hspace=100 src="p89progm.files/Adpx051v3.gif"
width=551>
<CENTER>
<P><B><FONT color=#000099>Figure 2: Interface Adapter circuit
diagram V3.0s</FONT></B></CENTER>
<BLOCKQUOTE>
<H2><B><FONT size=+1>Constructing the Board</FONT></B></H2>The prototype
board may be built using universal PCB with point-to-point wiring. If
you want to make your own PCB, download the <A
href="http://alu.topcities.com/programmer/89spro3/PcbsPgm89v3.zip">PcbsPgm89v3.zip</A>
file which contains the printer files for the HP laser printer or
download the <A
href="http://alu.topcities.com/programmer/89spro3/PcbsPCX.zip">PcbsPCX.zip</A>
file which contains PCX graphics format pcb files. Figure 3
shows the components layout of the
programmer pcb.
<P>For printing the PRN files on laser printer run the following
command, this will print the all pcb files.
<P>COPY *.PRN PRN/B
<P>For the bill of material of the project view the file <A
href="http://alu.topcities.com/programmer/89spro3/Pgm89v3PartsList.txt">Pgm89v3PartsList.txt</A><BR>The
schematics and the pcbs of the project were designed using OrCAD
software.</P></BLOCKQUOTE>
<CENTER>
<P><BR><IMG height=316 src="p89progm.files/Layout.gif"
width=717><BR>
<P><B><FONT color=#000099>Figure 3: Components layout of the
Programmer PCB V3.0</FONT></B></CENTER>
<BLOCKQUOTE>
<H2><B><FONT size=+1>Software</FONT></B></H2><A
href="http://alu.topcities.com/programmer/89spro3/Pgm89v3.zip">Pgm89v3.zip</A>
file is used to run the programmer. This is a
Windows program which can be used
under<BR>Windows 95 & 98. The main screen of the program is shown in
figure 4.
<P>Following are the main features of this software,
<BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></TR></TBODY></TABLE>
<LI>Read and Write the Intel Hex File
<LI>Read Chip info
<LI>Clear, Fill & Edit Program Buffer
<LI>Verify with Program Buffer
<LI>Reload current Hex File
<LI>Display Data Checksum
<LI>Program selected Lock Bits & ISP fuse
<LI>Parallel Port Selection LPT1, 2 & 3<BR> <B>Windows NT/2000/XP</B>
<P>To use the software with the above operating systems, an i/o port driver is
required. There are many freeware<BR>i/o port drivers are available on the web,
the following port driver can be used with the Pgm89 programmer,
<P> <A
href="http://www.beyondlogic.org/porttalk/porttalk.htm">http://www.beyondlogic.org/porttalk/porttalk.htm</A><BR> <BR>Study
the web page and the readme file included in the port driver zip file for
further information.<BR>The programmer software uses the following i/o port
addresses,
<P><TT> Lpt1 Port @ 378H</TT><BR><TT> Lpt2 Port @
278H</TT><BR><TT> Lpt3 Port @ 3BCH</TT>
<P><TT> I/O Port @ 61H</TT><BR><TT> I/O Port @
42H & 43H</TT><BR>
<P><B>Note:</B>
<P>In order to insure safe insertion &
removal of the u-controller from programmer ZIF
socket make sure programmer power supply is turned on before
starting the program and the red LED D1 must be turned off when the
program is started. The u-controller should be placed or removed from the ZIF
socket when the red LED D1 is off.<BR>Also note that the
software does not provide the erase
command because this function is performed
automatically during device programming. If you are required to erase the
controller first use the clear buffer command in edit
menu then program the controller, this will erase the controller
memory.<BR>
<P><IMG height=417 hspace=55 src="p89progm.files/Pgm89v3.png" width=559>
<CENTER>
<P><B><FONT color=#000099>Figure 4: Main screen of the program
PGM89v3</FONT></B></CENTER></P>
<P> </P></LI></DIV></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -