Atmel 89C Series Flash Microcontroller Programmer

Microcontroller Topics
Post Reply
User avatar
Shane
Captain
Captain
Posts: 226
Joined: Sun Jul 19, 2009 9:59 pm
Location: Jönköping, Sweden

Atmel 89C Series Flash Microcontroller Programmer

Post by Shane » Sun Mar 06, 2011 1:13 am

Introduction
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.

Supported Devices
The programmer software supports the following Atmel devices.
  • AT89C51
  • AT89S51
  • AT89C51RC
  • AT89C1051U
  • AT89C52
  • AT89S52
  • AT89C55WD
  • AT89C2051
  • AT89C55
  • AT89S53
  • AT89S8252
  • AT89C4051
Note: For 20 pin devices a simple interface adapter is required.

Hardware
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 program pulse for the microcontroller. 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 microcontroller which is selectable either 5v or 6v5.

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 heat-sink on U8 voltage regulator.

For the adjustment of P1, P2 and P3 use a digital multimeter & follow the steps shown below,
  1. To adjust P1, temporarily connect T1 base to ground using test clips then adjust P1 to get 6.5V at the output of regulator U6.
  2. Next first adjust P2 to get the 13.1V at the output of regulator U7, make sure transistor T5 is off or temporarily connect the T5 base to ground using test clips.
  3. Now temporarily short the collector of transistor T5 to ground using test clips.
  4. Adjust P3 to get the 12.1V at the output of U7 regulator IC.
Figure 1: Circuit Diagram of Flash Programmer
1.gif
1.gif (25.3 KiB) Viewed 10683 times
Figure 2 shows the circuit diagram of the interface adapter card required for the programming of 20 pin Flash devices.

Figure 2: Interface Adapter circuit diagram
2.gif
2.gif (7.26 KiB) Viewed 10683 times
Constructing the Board
The prototype board may be built using universal PCB with point-to-point wiring. If you want to make your own PCB, download the PcbsPgm89v3.zip file which contains the printer files for the HP laser printer or download the PcbsPCX.zip file which contains PCX graphics format pcb files. Figure 3 shows the components layout of the programmer pcb.
PcbsPgm89v3.zip
(63.86 KiB) Downloaded 913 times
PcbsPCX.zip
(41.82 KiB) Downloaded 835 times
For printing the PRN files on laser printer run the following command, this will print the all pcb files.

Code: Select all

COPY  *.PRN  PRN/B 
For the bill of material of the project view the file Pgm89v3PartsList.txt.
Pgm89v3PartsList.txt
(2.47 KiB) Downloaded 829 times
The schematics and the pcbs of the project were designed using OrCAD software.

Figure 3: Components layout of the Programmer PCB
3.gif
3.gif (18.94 KiB) Viewed 10683 times
Software
Pgm89v3.zip file is used to run the programmer. This is a Windows program which can be used under
Windows 95 & 98. The main screen of the program is shown in figure 4.
Pgm89v3.zip
(163.83 KiB) Downloaded 1002 times
Following are the main features of this software,
  • Read and Write the Intel Hex File
  • Read Chip info
  • Clear, Fill & Edit Program Buffer
  • Verify with Program Buffer
  • Reload current Hex File
  • Display Data Checksum
  • Program selected Lock Bits & ISP fuse
  • Parallel Port Selection LPT1, 2 & 3

Windows NT/2000/XP
To use the software with the above operating systems, an I/O port driver is required. There are many freeware
I/O port drivers available on the web, the following port driver can be used with the Pgm89 programmer,

http://www.beyondlogic.org/porttalk/porttalk.htm

I have attached the latest version of them (V2.2.).
porttalk22.zip
(66.41 KiB) Downloaded 925 times
Study the web page and the readme file included in the port driver zip file for further information.
The programmer software uses the following I/O port addresses,

Lpt1 Port @ 378H
Lpt2 Port @ 278H
Lpt3 Port @ 3BCH

I/O Port @ 61H
I/O Port @ 42H & 43H

Note:
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.
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.

Figure 4: Main screen of the program PGM89v3
4.png
4.png (12.49 KiB) Viewed 10683 times
DeepakPatil23
Sergeant
Sergeant
Posts: 20
Joined: Mon May 23, 2011 7:16 pm

Re: Atmel 89C Series Flash Microcontroller Programmer

Post by DeepakPatil23 » Tue May 31, 2011 4:12 pm

Hi,

Anyone knows Blow it programmer for Atmel 89 series.

I m not able to program AT89C2051 through Blow it programmer. it shows as blowing even if the 89c2051 is not inserted in the socket. I taken a circuit from site http://www.geocities.com/dinceraydin/8051/.

Pls. let me know if any one have idea about this.

Thanking you.
:?
User avatar
Shane
Captain
Captain
Posts: 226
Joined: Sun Jul 19, 2009 9:59 pm
Location: Jönköping, Sweden

Re: Atmel 89C Series Flash Microcontroller Programmer

Post by Shane » Tue May 31, 2011 7:25 pm

Anyone knows Blow it programmer for Atmel 89 series.
According to the link you have given, Blow IT is one of AT89C2051 programmers. In other words it is already a Atmel 89 series programmer.

The programmer in the first post is also a Atmel 89 series programmer with a set of supportive software which can program AT89C2051. In addition to that chip, it supports many other chips as well.
it shows as blowing even if the 89c2051 is not inserted in the socket
I have seen this with some of my serial programmers as well. But as long as the chips are programmed I'm not too bothered about messages. So just be sure your chip is programmed correctly.
DeepakPatil23
Sergeant
Sergeant
Posts: 20
Joined: Mon May 23, 2011 7:16 pm

Re: Atmel 89C Series Flash Microcontroller Programmer

Post by DeepakPatil23 » Wed Jun 01, 2011 3:16 pm

Ya, Actually given is too complicated for me. i am new to this so i am trying simple one programmer which can may be handle one micro-controller. you given instructions step by step which is very nice.
DeepakPatil23
Sergeant
Sergeant
Posts: 20
Joined: Mon May 23, 2011 7:16 pm

Re: Atmel 89C Series Flash Microcontroller Programmer

Post by DeepakPatil23 » Fri Jun 10, 2011 2:57 pm

which IDE and compiler I will used for AT89C2051??? :?: I know C and Basic also but more preference in C.
Pls. suggest me and if you have any link provide me. :?

Thanking you,
:)
User avatar
Shane
Captain
Captain
Posts: 226
Joined: Sun Jul 19, 2009 9:59 pm
Location: Jönköping, Sweden

Re: Atmel 89C Series Flash Microcontroller Programmer

Post by Shane » Sun Jun 12, 2011 3:09 am

which IDE and compiler I will used for AT89C2051??? :?: I know C and Basic also but more preference in C.
Pls. suggest me and if you have any link provide me. :?
Deepak, it is a bit difficult to find tools for this family of processors. Since you are a beginner, I highly recommend you to start with a processor which has lots of support such as AVR family. ATMega8535, ATMega32, ATMega128 are few of very good, commonly available and powerful microcontrollers. You can use AVR Studio which is freely distributed from Atmel itself and there are loads of ISP type programmers with millions of resources such as example codes for these chips.

If you are going to use PIC, use on of 16F877A, 18F452 and dsPIC30F4011 which has so much of resources available.

So start with something common. When you are familiar with micros, you can switch to smaller processors as per the requirement.
Post Reply

Return to “Microcontrollers”