Saturday, 11 February 2012

Programer for 8051(AT89S52) using parallel port


This article shows how to program 8051 using parallel port of computer. I used AT89S52 chip. which have 8052 core .So let’s see what is more in 8052.


AT89S51
                 AT89S52
Flash memory
 4k
8k
Ram
128x8
256x8
Timer/counter
Two
Three
Total interrupts
Six(with reset)
Eight(with reset)
endurance
1000 Write/Erase Cycles
10000 Write/Erase Cycles
External interrupts
two
two
Memory lock
Three level
Three level
DPTR
dual
dual


So,AT89S52 is a nice chip. You can also select other chip but always select the chip which supports serial programming.IN clear words never use AT89C51/52 always use AT89S51/52.

SFR locations in AT89S52:






Here rounded ones are additional SFRs over standard 8051 family.

Circuit Diagram:
Main board:
Con1-con4 are 8 pin SIL(single in line) male connecters. Con5 is 6 pin SIL female and con6 is 6 pin SIL male connecters. I have used SIL connectors but you can use headers also however soldering headers on general purpose boards are very complicated.  Instead of buying separate connectors you can buy a berg strip and cut them to get desired pins.




      
                                                                   Berg strip

DB25 connection:



POWER supply:
                You can power your circuit with battery or mobile charger or any other homemade regulators. but I have used USB power supply .USB socket of PC supplies +5V which can be directly applied to micro. Just get any old data cable of your mobile phone cut from one side and you will find a red and a black wire.


The entire setup:


Software:
COMPILER:
I have used keil micro vision compiler for my all programming. You can either visit my blog or just check my scribd account you will find useful information for kiel compiler.
        
        Programming software:
                                I have used ISP programmer developed by asim khan to burn the program in  microcontroller. I had also tried pony prog but it don’t work for me. So use Asim khan programmer it very good software.

Download links:

for keil:   from kiel

                     rapidshare
           

for ASIM khan ISP proramer: ISP-30a.ZIP (unzip and keep all files in same folder)

cheak out video:




7 comments:

  1. HI parth, can u plz let me know if we can use a usb type of printer cable for connecting the laptop or CPU to the circuit above?

    ReplyDelete
  2. I have made the same circuit and selected the controller 89S52, when i clicked the signature menu each time different bytes are displayed and message - signature not matching

    ReplyDelete
  3. vijay sorry for late reply
    You need to try with differnt controller

    ReplyDelete
  4. Sir i made the same programmer from circuit diagram provided by you but unfirtunately in my case i am getting a "No response from the microcntroller" message. Early help i solicited

    ReplyDelete
  5. Hi Amrit,
    Are you still facing problem

    ReplyDelete