Академический Документы
Профессиональный Документы
Культура Документы
com
Visit us at http://www.sunrom.com
Troubleshooting Notes
If you get Failed to connect error in software, It is possible that virtual com port is not between
COM1-COM9. Refer to "Install Manual.pdf" of USB driver to see instruction on changing COM port
on your system from Device Manager. Also you can try reinstalling USB driver.
Understanding BIN/HEX file
To program any device you need a compiled executable file in BIN or HEX format.
Assembly or C Source Code > Source Compiler > Output is BIN or HEX format loaded in software
HEX extension file is an executable file for microcontroller. You will need to compile your source
code with a compiler to generate HEX for BIN file which can be loaded into microcontroller. We
have provided a LED test folder on CDROM containing demo project to blink LED. It has source
code and a file with .HEX extension made in Keil compiler. BIN file can also be used if your compiler
generates that. Benefit of using HEX file is it includes error checking inbuilt so it detects corruption
of data in it if any. Thus you should use a compiler like SDCC or Keil which generate HEX file, See
links for the compilers at last page of this documents.
Insert 20 pin device as shown below. Note pin #1 is indicated by arrow on programmer.
Insert 8 pin device as shown below. Note pin #1 is indicated by arrow on programmer.
After you put device in ZIF socket, then pull handle down. This will bring tension on all pins of
device and bring contact to all pins.
When programmer is not in use, the Handle should be left vertical else the life of socket will be
reduced.
To select recently used files you can click on down arrow & select.
You will see following dialog when you load a HEX extension file. You can keep all setting as default
and click OK to select this file.
If you wish to see what content was read you can click on EDIT button. To
save this memory as HEX file you can click on SAVE button.
If your master IC is locked, it will show memory as 0xFF means its content cannot be read.
Once you have saved file from master you can use this file to load into new microcontrollers.
Other software options
Normally you will use Auto method in repeated programming task. Auto method
will automatically do Erase, Blank Check, Program, Verify & Protect.
We have given other options like Blank, Read, Program, Verify, Protect & Erase
that can be used individually if you wish.
Related Links
http://www.keil.com Keil: Commercial C & assembly compiler for 8051 devices
http://sdcc.sourceforge.net/ SDCC: Freeware C compiler for 8051 devices
http://en.wikipedia.org/wiki/Intel_HEX Intel Hex file format information