Professional Documents
Culture Documents
6.1 Introduction
To load a program into the C on the USB 89v51RD2 FLASHER BRD Starter Kit, you will need the Windows program Flash Magic programming software from Embedded System Academy which can be found on the accompanied CDROM or free download it from the Embedded System Academy Website: http://www.esacademy.com and install this to your C drive. Flash Magic is Windows software from the Embedded Systems Academy that allows easy access to all the ISP features provided by the P89C51Rx2 devices. These features include: Erasing the Flash memory (individual blocks or the whole device) Programming the Flash memory Modifying the Boot Vector and Status Byte Reading Flash memory Performing a blank check on a section of Flash memory Reading the signature bytes Reading and writing the security bits Direct load of a new baud rate (high speed communications) Sending commands to place device in BootROM mode Flash Magic provides a clear and simple user interface to these features and more as described in the following sections. Under Windows, only one application may have access the COM Port at any one time, preventing other applications from using the COM Port. Flash Magic only obtains access to the selected COM Port when ISP operations are being performed. This means that other applications that need to use the COM Port, such as debugging tools, may be used while Flash Magic is loaded.
7.2 Menus
There are four menus, File, ISP, Options and Help. The File menu provides access to loading and saving Hex Files,loading and saving settings files and exiting the application. The ISP menu provides access to the less commonlyused ISP features. The Options menu allows access to the advanced options and includes an item to reset alloptions. The Hep menu contains items that link directly to useful web pages and also open the Help About windowshowing the version number. The Loading and Saving of Hex Files and the other ISP features are described in the following sections.
7.3 Tooltips
Throughout the Flash Magic user interface extensive use has been made of tool tips. These are small text boxesthat appear when you place the pointer over something and keep it still for a second or two. Note that tool tips do not appear for items that are disabled (grayed out).
Step 4 Options
This section is optional, however Verify After Programming, Fill Unused Flash and Generate Checksums may only be used if a Hex File is selected (and therefore being programmed), as they all need to know either the Hex File contents or memory locations used by the Hex File. Also note that if one or more of the security bits are set on the device or the clocks bit (6 clks/cycle) is set on the device, then those set bits will be disabled in this section,indicating that they cannot be reprogrammed. If the device erases the security bits (and clocks bit) when a full Flash erase is performed then you can select the Erase all Flash option in section 2 and all the security bits (and clocks bit) will be enabled, indicating that you can select which ones you wish to program after the Hex File has been programmed. If the device does not erase the security bits then even if Erase all Flash is checked, the set security bits will remain disabled. On these devices only a Parallel Programmer can erase the security bits. Checking the Verify After Programming option will result in the data contained in the Hex File being read back from Flash and compared with the Hex File after programming. This helps to ensure that the Hex File was correctly programmed.
Checking the Fill Unused Flash option will result in every memory location not used by the Hex File being programmed with the value 00H. Once a location has been programmed with 00H it cannot be reprogrammed with any other value, preventing someone from programming the device with a small program to read out the contents of Flash or altering the applications operation. Checking the Generate Checksums option will instruct Flash Magic to program the highest location in every Flash block used by the Hex File with a special checksum adjuster value. This value ensures that when a checksum is calculated for the whole Flash Block it will equal 55H, providing the contents of the Flash block have not be altered or corrupted. Please refer to the Checksums section for more information. Checking the Execute option will cause the downloaded firmware to be executed automatically after the programming is complete. Note that this will not work if using the Hardware Reset option or a device that does not support this feature. The 66x and old Rx2 families only support this feature from revision G onwards.
Click on Start Button Message shld be apper Rest the Device in ISP Mode Then Click on Reset ( Fig2 will show Proggrmming Status) If u are Getting Error Unable to Communicate or Baud rate Error Hold the Reset and Try Again After getting Message Release The Reset
- http://groups.google.com/group/nskelectronics