Micro-controller only understands binary language. So we need to install hex code into the ROM of controller chip. There are so many loaders available in the market to flash the ROM of micro-controllers. But they are very costly. As i posted earlier about flash magic and specification of p89v51xx chip. We can program hex file easily into ROM.
So you can download this tool from their and it is completely free. We are going to use DB-9 cable or RS-232 in this tutorial.
How it is work..???
As i mentioned flash magic is only support those device which supports ISP. So such chip has boot loading software in built and it is known as a boot loader. So our main target is to put our victim chip into boot loading mode. This is achieved by resetting chip.
when start button of flash magic is pressed to indicate flashing the ROM, it continuously sends 'U' to controller and when the chip is being reset, it goes into boot load mode and gives the echo to flash magic and hex code is then loaded into ROM.
So there is mainly two ways to put chip in boot loading mode..
1) Using Reset switch
2) Without Reset switch
Using Reset switch
Circuit diagram is given below. Using reset switch you can put chip into boot loading mode by using two method, in both the method circuit diagram remains same.
Method-1 :
1) Configure flash magic
2) Power up your circuitry
3) Click on "start" button in flash magic
4) When it ask for "Reset device" press reset switch
Method-2 :
1) Configure flash magic
2) Power up your circuitry
3) Press and hold reset switch
4) Click on "start" button in flash magic
5) When it ask for "Reset device" release reset switch
Without using reset switch
Circuit diagram is given below and the only difference in this is that it does not contain reset switch. So the feature which we gonna use here is brown out detection. Go through below post..
1) Configure Flash magic
2) Click on "start" in flash magic
3) When it asks for "Reset device" power up your circuitry
So its very easy and less time consuming. You can use any method suitable to you. Do comment if you have any doubt or trouble.
Download
Please share this with your friend...





.jpg)
.jpg)

0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.