26
In System Programming using Tx & Rx (Using FlashMagic tool)

In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

  • Upload
    suket

  • View
    302

  • Download
    9

Embed Size (px)

DESCRIPTION

Microcontroller P89V51RD2

Citation preview

Page 1: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

In System Programming using Tx & Rx

(Using FlashMagic tool)

Page 2: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

Circuit

http://www.ece.ubc.ca/~jesusc/P89V51RD2_System.jpg

Page 3: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

Schematic

Page 4: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

• Flash Magic is a PC tool for programming flash based microcontrollers from NXP using a serial or Ethernet protocol while in the target hardware.

• Minimum Requirements:-• Windows NT/2000/XP/Vista• COM Port or Ethernet interface• 16Mb RAM• 10Mb Disk Space

Page 5: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

Starting FlashMagic …..

Page 6: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

Reset circuit options:

Page 7: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

• If you want FlashMagic to reset your device then check it.

• Else if you want to go for manual reset then uncheck it. (Of course , for this , You should be having reset circuit)

Page 8: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

Step1- Communications(1) ‘Select Device’ .. Select an appropriate one for you.

I selected 89V51RD2.

Page 9: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

(2) ‘COM Port ’ Selection

Page 10: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

• Now select COM Port which is available in your PC .

• Check it by following the steps for Windows7:-

Page 11: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

• Go to ‘Device Manager’

Page 12: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

• As you can see there’s one COM port available in my PC. So I can use COM1.

Page 13: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

Caution:

• Mind well that other application isn’t using the COM1.

• E.g. If Hyperterminal is running , there’s possibility of it.

• Okay , Now we continue our set up of FlashMagic.

Page 14: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

(3)‘Baud Rate’ …. Select an appropriate baud rate.

Page 15: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

• If baud rate is high then you may get warning:

Page 16: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

(4)‘Interface’…. ‘None’ option is for ISP.

Page 17: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

Step2- Erase

Page 18: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

Step3- Select Hex File

Page 19: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

Step4- Options

Page 20: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

Step5- Start!

Page 21: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

• If you’re going for manual reset , you’ll get message:

-> So , You’re required to press reset switch now.

Page 22: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

• Now your device is been programmed…. Bingo…..

• Wait , wait …. It’s this much straight forward if all things goes smoothly…. But….. you may get some errors. Like :-/

Page 23: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

• Unable to connect at specific baud rate• Failed to read device signature.

• Visit:www.flashmagictool.com/autobaud

Many of your doubts may get solved.

Page 24: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

Things to take care• Don’t forget turning on power supply.!• Don’t click on ‘YES’ when the message displayed:

‘Running the program may harm your device’. There’s chance to loose your motherboard also.

• Test your RS-232 doing loopback test :- Jumper pins 2 and 3 together then run Hyperterminal and see if you get an echo. If so, most likely your serial port and cabling are working fine.

-> Use LOW VALUE resistor in RESET circuit. High value resistance will make your device in reset mode all the time.

Page 25: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

Windows 7 isn’t having hyperterminal , so ????• open any XP system & copy 4 following files :- 1)-C:\Program Files\Windows NT\HYPERTRM.EXE

2-C:\Windows\Help\HYPERTRM.CHM3-C:\Windows\Help\HYPERTRM.HLP4-C:\Windows\System32\hypertrm.dll

• Then open win7 system create a folder name of "HyperTerminal" under Program files & then paste 4 files.

• Create shotcut -"C:\Program Files\HyperTerminal\HYPERTRM.EXE"

• open short cut . Hyperminial is ready.

Page 26: In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal

• References:• http://www.ece.ubc.ca/~jesusc/P89V51RD2_System.jpg• http://social.technet.microsoft.com/Forums/en/ITCG/thread/

9a378d29-8185-4494-acbd-42dbd2ab1594• www.flashmagictool.com/autobaud

• Thank you. - Suket Thakkar (6th Sem. ECE , Dharmsinh Desai University ,

Nadiad, Gujarat.)