Home

Topview Programmer User Manual

image

Contents

1. This command is used to enable the serial programming to a device The device can be programmed serially only if serial programming is enabled Note The devices AT89S53 AT89LS53 AT89S8252 and AT89LS8252 are shipped with serial program ming mode enabled Atmel 89CXX Flash Programmer EA ELECTRONICS 4 10 Disable Serial Program ee ee eae 4 10 Disable Serial Program This command applies only for the devices that have Serial Peripheral Interface SPI facility AT89S53 AT89LS53 AT8958252 and AT89LS8252 A programmable fuse is available in the controller device to disable serial programming if the user needs maxi mum system security The serial programming fuse can only be programmed or erased in the parallel program ming mode By using this command user can disable the program ming of the device through SPI Atmel 89CXX Flash Programmer EJ ELECTRONICS 4 11 Blank Check EEPROM 4 11 Blank Check EEPROM This command can be used only with either AT89S8252 or AT89LS8252 device These devices have on chip EEPROM of size 2K X 8 configured as data memory from address 0000H to 07FFH This command is activated by lt Blank Check EEPROM gt command in lt Device gt menu Now you should see a dialog box coming up to ask you the address range in the EEPROM space for blank check operation or you can check the complete EEPROM space Blank Check EEPROM Ed IT Full Device Device Starting Address mm Device Ending
2. button to start the save process Save in anu rs ei File name It Save as type Hex Files Hex D Cancel Now you need to enter the file name in the dialog box and click the lt Save gt button to start the saving opera tion Atmel 89CXX Flash Programmer EN ELECTRONICS 3 3 2 Save EEPROM Buffer After completion you should see the following message as a mark of successful operation Save Memory A Operation Completed Succesfully Atmel 89CXX Flash Programmer EN ELECTRONICS 3 3 3 Edit EEPROM Buffer 3 3 3 Edit EEPROM Buffer EEPROM Buffer contents can be viewed using this com mand You can see a window coming up indicating the con tents of the buffer You can also see the contents dis played both in binary and ASCII formats These contents can also be edited for any modification 399433 139493 a n E F P F Li m F F a ZAIAAIAAAZA EEKEEECEREKT rr D pp FF P FE P rr P P P 393 H z E 7 Atmel 89CXX Flash Programmer EN ELECTRONICS 3 3 4 Locate EEPROM Buffer 3 3 4 Locate EEPROM Buffer This command enables you to set the starting address of the EEPROM window for viewing editing This can also be done by moving the scroll bar at the right side of the window When you activate this command using your tool bar you may notice a window popping up asking you for the starting address Key in the required address and complete the window to get the buffer wi
3. 3 2 1 Load Flash Buffer ERROR x Address Exceeds the Buffer Capacity Otherwise the details of the file loaded area will be dis played for the Hex file format The starting and ending address of the blocks will also be displayed in the dia log box File Loading Details EN File Loaded Succesfully Loading Details For the binary file a message Operation completed suc cessfully will be displayed Atmel 89CXX Flash Programmer 16 ELECTRONICS 3 2 2 Save Flash Buffer 3 2 2 Save Flash Buffer This command is used to save the contents of the flash buffer in a file in the disk To activate this command click lt File gt and then lt Save As gt and lt Flash Buffer gt You can see a dialog box opens up and prompts you to enter the starting address and the ending address of the buffer and also prompts for the type of the file hex or binary Then click the lt Save gt button to start the save process Save in ja 8031 z cl File name It Save as type Hex Files Hex D Cancel Now the dialog box waits for the name of the file Select Enter the name and click lt Save gt button Atmel 89CXX Flash Programmer 17 ELECTRONICS 3 2 2 Save Flash Buffer Another small window opens up and indicates the suc cessful completion of the save operation Save Memory A Operation Completed Succesfully Atmel 89CXX Flash Programmer 18 ELECTRONICS 3 2 3 Edit Flash Buffer a
4. Auto Programming Mode EECH 4 2 Auto Programming Mode You may opt for this auto programming option to carry out more operations in a single command In this auto programming mode the following functions are carried out one by one Chip Erase Blank check Program Device Verify the Device with Buffer Contents Protect the device as per protection enabled us ing Setting menu All the above mentioned functions are carried out with reference to the full device You can include or exclude any of the above functions in auto programming sequence For this select lt Auto Pro gramming Mode gt from the lt Setting gt menu You can also start this command by clicking over lt De vice gt menu item and then click over sub menu lt Auto gt Now a dialog box opens up indicating all the functions with individual check boxes During program operation all these functions are sequen tially completed and are indicated in a separate Atmel 89CXX Flash Programmer ECH ELECTRONICS 4 2 Auto Programming Mode window for your convenience The window also sports a program bar Auto Programming Mode AT89C1051 EN M Erase M Blank Check Progam T Verify Protect Programming 50 Pi Atmel 89CXX Flash Programmer EN ELECTRONICS 4 3 Erase Device 4 3 Erase Device This Erase command can be used to erase whole flash memory area of the selected device In case of AT8958252 or AT89LS8252 the command er
5. black Atmel 89CXX Flash Programmer ER ELECTRONICS 3 2 4 Locate Flash Buffer 3 2 4 Locate Flash Buffer Use this command to set the starting address for the flash buffer When you activate this command a small dialog box opens up on the screen to get the address This lt Locate gt command can also be activated by double clicking over the address displayed in the window Atmel 89CXX Flash Programmer EN ELECTRONICS 3 2 5 Clear Flash Buffer 3 2 5 Clear Flash Buffer This command can clear the total flash buffer area to FFH When you activate this command you can see all the contents of the flash buffer getting FFH and change the color to black to indicate the completion of the op eration Atmel 89CXX Flash Programmer EN ELECTRONICS 3 2 6 Fill Flash Buffer 3 2 6 Fill Flash Buffer You can use this command to fill block of flash buffer with a fixed data When you get into this operation you should see a dia log coming up to prompt you for Starting Ending ad dresses along with the fill data as shown here Fill Flash Buffer EN Starting Address 2000 Ending Address 0000 Fill Data foo Successful operation is indicated by another window Atmel 89CXX Flash Programmer EN ELECTRONICS 3 2 7 Copy Flash Buffer HK 3 2 7 Copy Flash Buffer This command copies the contents from one block of data to another area of the flash buffer When getting into this operation a dialog box comes up to
6. get addresses of Starting Ending and the Destina tion Successful completion is indicated by another small win dow Atmel 89CXX Flash Programmer EN ELECTRONICS 3 2 8 Check sum Flash Buffer 3 2 8 Check sum Flash Buffer You can get the check sum of the flash buffer giving start ing and ending addresses of the buffer You need to key in these addresses in the dialog box that comes up The calculated check sum is displayed in another win dow Atmel 89CXX Flash Programmer EN ELECTRONICS 3 2 9 Flash Buffer Disassembly ee 3 2 9 Flash Buffer Disassembly This command is meant for viewing the contents of the flash buffer as program rather than as data You can use this to modify the data at the given address or change modify the program lines When you select this command a window with the name Flash Buffer Disassembly View will be opened up and the contents are displayed as program lines as shown here D EH SREL Jim E be ab Gd Ip sms A ea When you see this window then you can modify any in struction by double clicking over the instruction in the window Now you should see a dialog box appearing with the Atmel 89CXX Flash Programmer EN ELECTRONICS 3 2 9 Flash Buffer Disassembly BEE current instruction at that address as shown here Edit Program Line Ea Enter the New Program Line You can enter a new instruction or change the data or address and press lt Enter gt
7. key or click over lt Store gt button to record the changes in the buffer Note that you cannot change a one byte instruction into a two or three byte instruction for obvious reasons An error message may indicate this state A three byte in struction can be converted into 1 2 byte instruction with NOPs filling up remaining bytes of the instruction You can change the address field of the window by double clicking over that specific location A small window pops up to get the correct address You can get into any of these commands by right click ing anywhere in the window and then select the required command from the floating window Atmel 89CXX Flash Programmer 27 ELECTRONICS 3 2 10 Flash Buffer Enter Program HESSE 3 2 10 Flash Buffer Enter Program This command is meant for entering your program in mne monics line by line in the flash buffer At the end of each line the instructions are converted into opcodes thanks to the built in single line assembler and everything is recorded in the flash buffer When you activate this command you should see a win dow prompting you to enter the starting address of the program If the program window is already opened then the start ing address of the program window will be set to the new value and then the window gets cleared and you can note a new dialog box coming up at the center to get your program in mnemonics as shown here KL fr eme Feis Atmel 89CXX Flash Pro
8. Address OOFF Cancel Atmel 89CXX Flash Programmer EN ELECTRONICS 4 11 Blank Check EEPROM When executing this operation EEPROM contents are read and compared with blank data FFH If full device option is selected then the address range for the EEPROM is considered as starting from 0000H to 07FFH If there is any mismatch the data and the correspond ing address locations are tabulated and displayed in separate window Blank Check Device EEPROM EG BlankCheck History Device Starting Address 0000H Device Ending Address OOFFH Address Device Data BlankCheck Completed EEN 100 Atmel 89CXX Flash Programmer ER ELECTRONICS 4 12 Program EEPROM EEE 4 12 Program EEPROM EEPROM memory space of the selected microcontroller can be programmed with the contents of the EEPROM buffer Also there is a facility to erase this EEPROM space before programming and also the facility to verify the contents after programming These options can be set using lt Options gt command in lt Setting gt menu When you click lt Program gt command in lt Device gt menu the programming operation is activated Then you should enter proper addressing to assign the memory block for programming Program EEPROM EN I Full Device Device Starting Address UU Device Ending Address OOFF Buffer Starting Address 0000 Cancel Atmel 89CXX Flash Programmer EN FRONTLINE 4 12 Program EEPROM
9. Buffer ooonnoenonnnnnnnnennnnnnnnnna 36 3 3 5 Clear EEPROM Butter 37 3 3 6 Fill EEPROM Butter 38 3 3 7 Copy EEPROM Butter 39 3 3 8 Checksum EEPROM Butter 40 Chapter 4 Device Operations 4 1 Device Selection rrrrnnnnnrvnnnnnvnnnnvrrnnnnnnrenannnvnnnnnrnnenennr 41 4 2 Auto Programming Mode AAA 43 4 4 Blank Check Device rurrrnnnnnvvnrrrrrrnnnrnnnerrrernnrrnnennrenenr 46 4 5 Program Device rnrnnnnnnnnnnnvrrnnnnnrnnnrrnennrrrnnnrnnersrernnnnnnen 48 4 6 Read Device nrrmnrnvvvnvorvrrrrvvrvverrrrnrnnnovennnrnrrnnesennnnnnnnee 51 4 7 Verify Device rrmmrnvvvnnnrvrrrvvvennnrrrrrrvnvonennernrrnnevennennnnnneee 53 4 8 Protect Devita rare espian eger 55 4 9 Enable Serial Program rrnnnnnvnnnnvrrrnnnnvrvnnnnnvnnrnnrrnnsennr 57 4 10 Disable Serial Program rrnrnnvrnnnnvnnnonvnnnnrrennnnrnnennnnrenr 58 4 11 Blank Check EEPROM enroeesnnvnnnenvrernnnrnenerrrennnnrnerennnr 59 4 12 Program EEPROM rrvrnnnnvvvnnnnnvnnnnrrrnnrnvrerennnrnersrrrnnsennr 61 4 13 ReadEEPROM rennnnrrrnnnnnrvrnnnnvnnnnrrrnnnnnnrenannnvnnnnnrnnssennr 63 4 14 Verify EEPROM mrnnrnrorrrrvennvvnnrnrrrnnrnrenennnrnnrenrresnnnrnerenn 64 4 15 Programming the Device Soldered in Target Board through SPl s svaret al ed AE 66 Atmel 89CXX Flash Programmer CS Chapter 5 Setting 5 1 Serial Port Setting rurrnrvnnorrrnnnnnrnnnnvrrnnnnnnvnrnnrrnnnnnnene 68 D2 OPUlONS EEE 69 5 3 Auto Programming Mode AAA 70 5 4 Protestio s
10. Hus To quit from this programming operation press lt Esc gt key or lt Close gt button when you see the programming operation indicated in a separate window Atmel 89CXX Flash Programmer KEN ELECTRONICS 4 13 Read EEPROM 4 13 Read EEPROM Read EEPROM command can be used to read EEPROM of the device and store them in the EEPROM buffer Then the buffer contents can be stored in a file either in hex format or in binary To read the device s EEPROM contents click lt Read gt command in lt Device gt menu A dialog box comes at the center of the screen with an option to select the total EEPROM memory space or a block of memory space Read EEPROM E IT Full Device Device Starting Address Device Ending Address OOFF Buffer Starting Address 0000 Cancel Then you should see the operation going on in a sepa rate window Atmel 89CXX Flash Programmer KEN ELECTRONICS 4 14 Verify EEPROM EE 4 14 Verify EEPROM Verify command enables you to verify the device s EEPROM contents with the contents of the EEPROM buffer after programming Activate this command by clicking lt Verify gt command in the lt Device gt menu Fill up the dialog box that pops up at the center of the screen to start this verification Verify EEPROM EI I Full Device Device Starting Address Device Ending Address OOFF Buffer Starting Address 0000 Cancel Atmel 89CXX Flash Programmer EN ELECTRONICS 4 14
11. Topview Programmer User Manual Contents Chapter 1 Introduction 11 Welcome neve ENEE Dee 1 T gt H rdwa re vepsens 3 1 3 For Technical or Customer Support asnrrernrrrnnnnrnnnnvnnrenr 5 14 Packaging ve stil eiie ii aae eed Haan dee 6 Chapter 2 Getting Started 2 1 System Requirements rrrnrnrvnnnnnvnnnvnrvnnnnrnnnrnvnnnrnrrnnennen 7 2 2 Installing Software ccceceeeeceeeseeeeeeeeeeeeeeeeeeeseaeeteeas 8 2 3 Installing Hardware 9 24 WEE eege ieee neal aie teed aes 10 2 5 Uninstalling Software srrrrrnnrnnrnvrrrnnrnvrennnnnvnnrrrrrnntrnnr 12 Chapter 3 Buffer Operations 3 1 Flash EEPROM Buffer arorrrrrernnennnnannnnnnnrvrrvvneensennnnnn 13 3 2 Flash Buffer 3 2 1 Load Flash Butter 15 3 21 lt Load Flash Butter eer en 16 3 2 2 Save Flash Butter 17 3 2 3 Edit Flash Buffer nannannneansennsenoennnnnnnnennnnnna 19 3 2 3 Edit Flash Buffer nannennneansennsennennnnnnnnnnnnnnna 20 3 2 4 Locate Flash Butter 21 3 2 5 Clear Flash Buffer rrei ean 22 3 2 6 Fill Flash Butter 23 3 2 7 Copy Flash Buffer rsrrnnonrrrnnonrrernnnnrvnrnrrnnnnrnnr 24 3 2 8 Check sum Flash Butter 25 3 2 9 Flash Buffer Disassembly A 26 Atmel 89CXX Flash Programmer i 3 2 10 Flash Buffer Enter Program 28 3 3 EEPROM Butter 30 3 3 1 Load EEPROM Butter 31 3 3 2 Save EEPROM Butter 33 3 3 3 Edit EEPROM Buffer rrrrnnnnrnnnvrrvnnrrrrnsrrrnnnrrrrnn 35 3 3 4 Locate EEPROM
12. Verify EEPROM EE EE During verification the device s EEPROM contents are read and compared with the EEPROM buffer If there is any mismatch the data and the corresponding locations are separately tabulated as shown Verify Device EEPROM ES Verification History Device Starting ddress OOOOH Device Ending Address OOFFH Buffer Starting Address OOOOH Address Device Data Buffer Data Verification Completed Error Pall 100 Store to disk There is an option to store the contents of this mismatch table in the disk with the desired name Atmel 89CXX Flash Programmer 65 ELECTRONICS 4 15 Programming the Device ee 4 15 Programming the Device Soldered in Target Board through SPI Devices like AT89S8252 AT89LS8252 AT89S53 and AT89LS53 can be programmed using SPI Bus after sol dered in the target hardware This is another important useful feature of the program mer using which you can program the microcontroller even after soldering the controller in the target PCB Devices like AT89S8252 AT89LS8252 AT89S53 and AT89LS53 have this facility built in the device This facil ity gives designers advantages like updating program data in the field itself or you can let your customer up date his embedded system on his own Also during pro gram development phase you can avoid removing the device from its socket for reprogramming For this purpose a 5 pin connector marked as CON3 is pr
13. a disassembly facility When you activate this the contents of the buffer will be displayed as program rather than as data and you can see the actual program code in mnemonics At this stage you can edit your program code or insert new program lines using built in single line assembler In few of the Atmel s 89CXX devices an EEPROM is also present along with the flash memory Hence a separate buffer is made available for this memory Just like Flash buffer this buffer also has all the fea tures except the disassembly facility since it contains only data Atmel 89CXX Flash Programmer 14 ELECTRONICS 3 2 1 Load Flash Buffer 3 2 Flash Buffer 3 2 1 Load Flash Buffer To load a file into the Flash Buffer click menu lt File gt and then click lt Flash Buffer gt from lt Load File gt com mand You can see a dialog box opens up for selecting the target file Either a hex binary file can be loaded The buffer size will be equal to the flash memory space of the selected device Select the file name using the load file menu and then click open If the selected file is a binary file the control will prompt for the starting address Enter the starting address The dialog box closes and the file gets loaded into the buffer A progress bar indicates the progress of loading If the file exceeds the buffer capacity it is indicated by an error message as shown below Atmel 89CXX Flash Programmer 15 ELECTRONICS
14. as ee ee 3 2 3 Edit Flash Buffer This Edit command is activated as shown below The flash Buffer window may open in binary format for editing viewing if the buffer is not opened already If it is already opened then it becomes current active window The contents are displayed in both Hex and ASCII for mat as shown here Feim Pet RTE u F F SE n Fr FF C P od a EB FE EIER FF i tw P F D 2 F D E ai se ITT i d T T ib m RP oi a Van ang ae EX rim mA Feis i Atmel 89CXX Flash Programmer 19 ELECTRONICS 3 2 3 Edit Flash Buffer The status bar gives current editing address You can use arrow keys lt Page Up gt and lt Page down gt keys to move the cursor to any position in the screen lt Home gt and lt End gt keys take you to the first and last addresses displayed on the screen To edit in ASCII part of the display click your mouse over any place on the right side of the buffer window The current address for that location also gets displayed in the status bar When you change anything in the ASCII side the corre sponding hex code also gets modified in the left side The locations you edit are displayed in red color When you load the buffer from a file then you can see the contents in blue color When you read the flash content of the target the same will be displayed in the buffer window in green color When you clear the buffer using lt Clear gt command the contents will become
15. ases both flash and EEPROM memory spaces You are informed of the completion of this command by a window shown here Atmel 89CXX Flash Programmer ECH ELECTRONICS 4 4 Blank Check Device 4 4 Blank Check Device When using this command the device contents are read and compared with the blank data FFH You can make the programmer to check the full device or a block of flash area for the blank data A dialog win dow enables you to key in the address for the block Blank Check Flash x Full Device Device Starting Address 0000 Device Ending Address Dro Cancel If the full device option is selected then the starting address is taken as 0 and the ending address is consid ered as last flash memory location of the device During this blank check operation if the flash memory contains anything other than FFH then these failed Atmel 89CXX Flash Programmer EN ELECTRONICS 4 4 Blank Check Device a a Se a M E locations are listed separately in the Blank Check His tory Window as shown here Blank Check Device Flash EN BlankCheck History Device Starting Address OOOOH Device Ending Address OOFFH Address Device Data Atmel 89CXX Flash Programmer Za ELECTRONICS 4 5 Program Device SS EE 4 5 Program Device This is the main command that enables the program ming operation in the selected device Basically it pro grams the flash memory space of the selected microcontr
16. ch Frontline Electronics Pvt Ltd for the tech nical support and application assistance in the following ways Email questions to feplsIm frontlinemail com Send questions by mail to Frontline Electronics Pvt Ltd 1 255C Thatha Gounder St Kumaran Nagar Alagapuram Salem 636 016 India Phone 0427 449238 431312 Fax 0427 449010 For additional information and etc please refer our website www Frontline Electronics com Atmel 89CXX Flash Programmer R ELECTRONICS 1 4 Packaging ee 1 4 Packaging Your package contains the following Programmer board Power supply unit Serial port cable User Manual CD Containing software ARON Atmel 89CXX Flash Programmer e ELECTRONICS 2 1 System Requirements KEES Chapter 2 Getting Started 2 1 System Requirements The minimum requirements are as follows Personal Computer with Windows 95 or above A serial port Free hard disk space of 2MB Internet Explorer of version 4 0 or above Atmel 89CXX Flash Programmer KA ELECTRONICS 2 2 Installing Software HK 2 2 Installing Software Insert the CD supplied with the programmer pack and run the installer file Topview Programmer mai This is a windows in staller program which installs all the files in the directory se lected by the user found in the Folder lt Topview Program mer gt You may select the destination directory during installa tion The installer package will guide you through
17. e calcu lated check sum Atmel 89CXX Flash Programmer ER ELECTRONICS 4 1 Device Selection Chapter 4 Device Operations 4 1 Device Selection The Atmel Device programmer can program all the de vices of 8031 family including both 5V and 12V versions and using either parallel or SPI mode The programmer supports following Atmel devices AT89C1051 AT89C2051 AT89C4051 AT89C51 AT89LV51 AT89C52 AT89LV52 AT89S53 AT89LS53 AT89C55 AT89LV55 AT8958252 AT89LS8252 To select the device and also the programming mode select lt Selection gt from the Device menu A dialog box comes up for your convenience Atmel 89CXX Flash Programmer oal ELECTRONICS 4 1 Device Selection a _ r Selection m Programming Mode 89C1051 89553 DEE C 89C2051 C 89L553 Parallel C 9904051 C 89055 89051 C 89LV55 C 89Lv51 9958252 C 89052 89158252 C 89Lv52 Cancel Select the required device and the programming mode The SPI mode is available only for 89853 89LS53 8988252 and 89LS8252 devices For all other devices parallel mode is the only choice After the device and programming mode selection press lt Enter gt key or click over lt OK gt button To keep the old selection as such press lt Esc gt key or lt Cancel gt button In the main window the selected device and the pro gramming mode are displayed in the status bar bottom of the screen Atmel 89CXX Flash Programmer EN ELECTRONICS 4 2
18. er programming of the device IV Disable Verify Three Level Protection 40 Pin Device IV Disable read using MOVC executed from External memory IV Disable Parallel S erial verify IV Disable External Execution Cancel Atmel 89CXX Flash Programmer 71 ELECTRONICS 5 4 Protection For 20 pin devices Lock bit 1 If itis set then no further programming can be done Lock bits 1 amp 2 If both the bits are enabled then further programming and verify read back facility is disabled If you read the device you will only get FFH from all the locations For 40 pin devices Lock bit 1 If this bit is set then accessing the internal flash memory area from external program memory using MOVC instruc tion is disabled and also further programming disabled Lock bits 1 amp 2 If these bits are set following functions are disabled 1 Accessing the internal flash memory area from exter nal program memory using MOVC instruction 2 Further programming 3 Reading from the device Verify operation Atmel 89CXX Flash Programmer SCH ELECTRONICS 5 4 Protection Lock bits 1 2 amp 3 If these bits are set following functions are disabled 1 Accessing the internal flash memory area from exter nal program memory using MOVC instruction 2 Further programming 3 Reading from the device Verify operation 4 External execution Atmel 89CXX Flash Programmer 73
19. error message will be duly displayed for your convenience During programming you may want to load your target program file into this buffer space and then you may modify correct the contents as per your need For your convenience the buffer provides a Single line Assembler to carry out these modifications with ease Another utility is the buffer helps you keep program ming data from many files in order You can load these files into the buffer and verify the whole lot and then pro gram the target device in a single shot Buffer supports editing both in hex and ASCII locating a byte Clearing Filling Copying operations and also generates the check sum All these operations are ex plained in detail in subsequent pages Atmel 89CXX Flash Programmer 13 ELECTRONICS 3 1 Flash EEPROM Buffer Another interesting facility is made available using dif ferent colors for the buffer contents to indicate certain operations Normally the buffer contents are displayed in the black color When a file is loaded into the buffer the color changes to blue When you carry out editing on contents of the buffer the edited portion is displayed in red color When you load the buffer from the flash area of the selected device that portion is displayed in green So with a little experience on the usage of buffer func tions the coloring will assist you very much during pro gram development debugging The buffer also sports
20. grammer EN ELECTRONICS 3 2 10 Flash Buffer Enter Program ar ee eee Enter your program line by line and at the end of each line press lt Enter gt key or click over lt Store gt button to convert the mnemonics into opcodes and store them in the flash buffer During program entry for error conditions a separate error window displays the nature of the error At the end of the program entry press lt Esc gt key or click over lt Cancel gt button to quit this command Atmel 89CXX Flash Programmer EN ELECTRONICS 3 3 EEPROM Buffer 3 3 EEPROM Buffer A buffer in PC memory is maintained for programming on chip EEPROM available in Atmel devices AT 8958252 AT89L58252 This buffer will be activated only when these two devices are selected For all other de vices this buffer will not be activated The on chip EEPROM of capacity 2K bytes can be pro grammed or verified with the contents of this buffer Both hex format and binary format data files can be loaded into this buffer from the disk The contents of the buffer can also be saved in the disk The following commands enable you to interact with this buffer during the device programming operations Edit Locate Clear Fill Copy Check sum Atmel 89CXX Flash Programmer ER ELECTRONICS 3 3 1 Load EEPROM Buffer 3 3 1 Load EEPROM Buffer To load a file into EEPROM Buffer click lt File gt com mand and then select lt EEPROM Buffer gt at lt Load Fi
21. le gt A dialog box comes up to ease the selection Select either a hex or binary file The buffer size will be automatically equal to the EEPROM size of the selected device Select the file name and click open If the selected file is a binary file then the control prompts for a starting address Enter the starting address The dialog box goes off and an indicator shows the pro gressive file loading If the file exceeds the buffer capacity an error will be flashed across the monitor as Shown below ERROR 3 Address Exceeds the Buffer Capacity Otherwise the details of the loaded file will be displayed Atmel 89CXX Flash Programmer SR ELECTRONICS 3 3 1 Load EEPROM Buffer in the hex format The starting and ending addresses of the blocks will also be displayed in the box File Loading Details EN File Loaded Succesfully Loading Details For the binary file format the message Operation com pleted successfully will be displayed Atmel 89CXX Flash Programmer EN ELECTRONICS 3 3 2 Save EEPROM Buffer 3 3 2 Save EEPROM Buffer This command can be used to save the contents of the EEPROM Buffer as a file in the disk Start clicking lt File gt and lt Save As gt and then lt EEPROM Buffer gt A dialog box opens up to prompt you to enter the start ing and the ending addresses of the buffer and also prompts you to select the file type hex or binary Then you should click lt save gt
22. ndow with the correct address Atmel 89CXX Flash Programmer EN ELECTRONICS 3 3 5 Clear EEPROM Buffer 3 3 5 Clear EEPROM Buffer By using this command you can clear the contents of the EEPROM buffer to FFH and the color of the contents will become black Atmel 89CXX Flash Programmer EA ELECTRONICS 3 3 6 Fill EEPROM Buffer 3 3 6 Fill EEPROM Buffer This command is meant for filling a block of memory space with a fixed data When you activate this you can see a dialog box com ing up to prompt you for the Starting Ending addresses and also the Fill data as shown below Fill EEPROM Buffer EN Starting Address Ending Address 0000 Fill Data foo Cancel Note the color difference in the buffer window Atmel 89CXX Flash Programmer EN ELECTRONICS 3 3 7 Copy EEPROM Buffer E 3 3 7 Copy EEPROM Buffer This command copies the contents from one block of data to another area of the EEPROM buffer When getting into this operation a dialog box comes up to get addresses of Starting Ending and the Destina tion Successful completion is indicated by another small win dow Atmel 89CXX Flash Programmer EN ELECTRONICS 3 3 8 Check sum EEPROM Buffer 3 3 8 Check sum EEPROM Buffer This command may be used to find out the check sum of the EEPROM Buffer contents When this command is selected you get a dialog box prompting for the starting ending addresses Then a separate window comes up giving you th
23. ocera iia areia pa iiag 71 Atmel 89CXX Flash Programmer 2 ELECTRONICS 1 1 Welcome Chapter 1 Introduction 1 1 Welcome Thankyou for purchasing Topview Programmer The Device Programmer is meant for programming all the Atmel s 89CXX Family devices using any standard personal computer In fact the programmer is an exter nal addon card that can be connected to the host com puter at the serial port The programmer supports entire family of Atmel s 89CXX devices AT89C1051 AT89C2051 AT89C4051 AT89C51 AT89LV51 AT89C52 AT89LV52 AT89553 AT89LS53 AT89C55 AT89LV55 AT8958252 AT89LS8252 Atmel 89CXX Flash Programmer r ELECTRONICS 1 1 Welcome Programming Operations The programmer maintains a separate buffer area for the device s flash memory and also for EEPROM memory in 8988252 space in the personal computer Initially the programming data Hex Binary Files has to be loaded into this buffer area and then transferred into the device When the buffer holds the relevant data using proper commands the data can be manipulated disassembled and then also be viewed as the assembly program The programmer also supports programming the flash memory space using SPI bus in devices 8958252 89L58252 89553 and 89LS53 For this purpose a sepa rate 5 pin connector is provided onboard Using this fa cility the flash memory area of the device can be pro grammed using SPI bus even after the device has been solde
24. oller with the contents of the flash buffer There are two options available for the programming First is erasing the device before programming the device and other option is verifying flash memory contents after pro gramming You can set these options in lt Setting gt gt lt Options gt Program Flash EG IT Full Device Device Starting Address Device Ending Address OOFF Buffer Starting Address 0000 Cancel Atmel 89CXX Flash Programmer EN ELECTRONICS 4 5 Program Device When the programming command is activated a dialog box mentioned above will appear If full device option is selected then the flash buffer s contents starting from 0000H are programmed into device s flash memory from 0000H onwards After selection click over lt OK gt button to start program ming operation You can see how this operation is car ried out in a dialog box shown here Write to Device Flash Programming Status Chip Erase OK Number of bytes Programmed 514 Device Starting Address OOOOH Device Ending Address O3FFH Buffer Starting Address OOOOH Verification Writing to AT89C1051 To quit this programming press lt Esc gt key or lt Close gt button If erase before programming option is enabled then the device is erased before starting of programming Atmel 89CXX Flash Programmer EN Otherwise programming begins without erasing the de vice If verify after programming i
25. ory Click lt OK gt button or lt Enter gt key to start the opera tion The device contents are read and compared with the flash buffer If there is any mismatch the details are made available in a separate window Atmel 89CXX Flash Programmer EN ELECTRONICS 4 7 Verify Device Verify Device Flash x Verification History Device Starting Address OOOOH Device Ending Address OSFFH Buffer Starting Address OOOOH Address Device Data Buffer Data Verification Completed Error 100 Store to disk This window also sports a facility to store all this mis match information in a file Atmel 89CXX Flash Programmer EN ELECTRONICS 4 8 Protect Device 4 8 Protect Device This protection command helps you to secure the flash memory content of the selected device against unautho rized reading All 20 pin Atmel Microcontrollers have two levels of pro gram memory lock and 40 pin devices have three level program memory security For 20 pin devices Lock bit 1 If itis set then no further programming can be done Lock bits 1 amp 2 If both the bits are enabled then further programming and verify read back facility is disabled If you read the device you will only get FFH from all the locations For 40 pin devices Lock bit 1 If this bit is set then accessing the internal flash memory area from external program memory using MOVC instruc tion is disabled and also furthe
26. ovided in the programmer board The connector details are given below Reset Ground MISO P1 6 MOSI P1 5 SCK P1 7 Connect the above mentioned lines Ground Reset Port lines MISO P1 6 MOSI P1 5 and SCK P1 7 to the corresponding lines of the device to be programmed Atmel 89CXX Flash Programmer KEN ELECTRONICS 4 15 Programming the Device Husker EE in the target board Apart from the above connections provide supply 5V and necessary clock circuit to the controller in target board Connect the target board with the programmer using the connector CON3 In the software select the SPI pro gramming option in the lt Select Device gt function and proceed with the programming process Take care while designing the target board and see that the signals from the target board does not affect the lev els at the following pins during programming of the de vice through SPI Reset MISO P1 6 MOSI P1 5 SCK P1 7 Atmel 89CXX Flash Programmer KA ELECTRONICS 5 1 Serial Port Setting ME sa SSS EE Chapter 5 Setting 5 1 Serial Port Setting This command is meant for selecting a COM port from the possible options COM1 to COM4 to establish the required communication link with the device program mer Click the lt Serial Port gt command from the lt Setting gt menu A dialog box opens up on the screen to invite you to select the COM port Now selected COM port is configured for the comm
27. ps all the commands of the software and the tool bar indicates command Icons Menu bar commands File Menu Buffer Device Atmel 89CXX Flash Programmer 10 ELECTRONICS 2 4 Software Settings Help Like any other Win 95 software when the cursor is placed over the menu the relevant explanation is displayed in the status bar of the Window The status bar also gives appropriate messages when any operation is carried out The status bar gives details of current selected device COM port status mode operation and also the status of the selected protection mode of the device These de tails are updated each time when there is a change in the selection Atmel 89CXX Flash Programmer EN ELECTRONICS 2 5 Uninstalling Software EE es 2 5 Uninstalling Software For uninstalling the software execute the Topview Programmer msi from the CD found in the folder lt Topview Programmer gt Select Remove option to remove the application from hard disk Atmel 89CXX Flash Programmer 12 ELECTRONICS 3 1 Flash EEPROM Buffer Chapter 3 Buffer Operations 3 1 Flash EEPROM Buffer The programming environment sports a buffer space that plays an important role during programming Normally the buffer space will be made equal to the size of the selected device s flash area For an example for the device AT89C51 the buffer space goes up to 4K OFFFH If the target file exceeds this space for that device an
28. r programming disabled Atmel 89CXX Flash Programmer ECH ELECTRONICS 4 8 Protect Device Lock bits 1 amp 2 If these bits are set following functions are disabled 1 Accessing the internal flash memory area from exter nal program memory using MOVC instruction 2 Further programming 3 Reading from the device Verify operation Lock bits 1 2 amp 3 If these bits are set following functions are disabled 1 Accessing the internal flash memory area from exter nal program memory using MOVC instruction 2 Further programming 3 Reading from the device Verify operation 4 External execution These protection levels can be selected by lt Protection gt command in lt Setting gt menu Protect A Chip Protected Sucessfully To protect the contents of flash memory click lt Protect gt from the lt Device gt menu The lock bits are properly pro grammed as per your requirement and the status is dis played in a small window Atmel 89CXX Flash Programmer ER ELECTRONICS 4 9 Enable Serial Program ae ee ee 4 9 Enable Serial Program This command applies only for the devices that have Serial Peripheral Interface SPl facility AT89S53 AT89LS53 AT89S8252 and AT89LS8252 A programmable fuse is available in the controller device to disable serial programming if the user needs maxi mum system security The serial programming fuse can only be programmed or erased in the parallel program ming mode
29. red in the target hardware Atmel 89CXX Flash Programmer R ELECTRONICS 1 2 Hardware 1 2 Hardware The Programmer consists of a board a separate power supply unit and a serial port cable The power supply provides a set of DC voltages like 9V 500mA and 18V 100mA The programmer board has on board regulators for generating 5V and 12V required for the normal operation and programming purposes The Programmer board sports a single 40 pin ZIF socket for pro gramming both 40 and 20 pin devices A DIN connector marked as POWER is used for connecting the power supply unit to the programmer board The terminations of the connector is given below Pin1 amp 2 9V Pin 3 amp 4 Ground Pin6 amp 7 18V Similarly the connecter named as SERIAL PORT helps to con nect the host computer to the programmer board The serial port connector details are given below Pin 1 NC Pin 2 RXD Pin 3 TXD Pin4 NC Pin 5 Ground Pin6 NC Pin 7 NC Atmel 89CXX Flash Programmer ca ELECTRONICS 1 2 Hardware Pin 8 NC Pin 9 NC A switch marked as RESET is used for resetting the program mer A 5 pin connector with the name CON3 is used to connect the target board for programming through SPI For more details refer to the topic Programming the device Soldered in the Target board Atmel 89CXX Flash Programmer Za ELECTRONICS 1 3 For Technical or Customer 1 3 For Technical or Customer Support You can rea
30. s selected then the flash con tents of the device is read back after programming and compared against the flash buffer contents Atmel 89CXX Flash Programmer ER ELECTRONICS 4 6 Read Device 4 6 Read Device Read command can be used to read the flash contents of the selected device and store them in the flash buffer in the personal computer After reading from the flash memory of the device the contents can be stored in ei ther in Intel Hex format or in Binary To activate this command first click lt Device gt in menu bar and then lt Read gt A dialog box comes at the center of the screen to prompt you for the selection of reading whole flash memory or a block of flash memory Read Flash ES Device Starting Address 0000 Device Ending Address or Buffer Starting Address 0000 Cancel Atmel 89CXX Flash Programmer EN ELECTRONICS 4 6 Read Device Press lt Enter gt key or lt OK gt button to initiate read op eration and you can watch this operation Read from Device Flash EN Reading from 478901057 SEE 56 Atmel 89CXX Flash Programmer EN ELECTRONICS 4 7 Verify Device HSE 4 7 Verify Device Verify command enables you to verify device s flash memory contents with flash buffer for confirmation Select lt Verify gt command from lt Device gt menu You can see a Window popping up to prompt you to se lect either the complete device for verification or a block of flash mem
31. the installation process Atmel 89CXX Flash Programmer 8 ELECTRONICS 2 3 Installing Hardware SSS E 2 3 Installing Hardware Connect the power supply unit to the programmer board using the 9 pin DIN connector CON1 marked as POWER Connect the programmer to the host computer using serial port cable Switch on the power supply to the programmer board Execute the application Atmel Flash Programmer from the Start gt Programs menu An opening screen comes up with an About dialog box If the PC is not able to establish com munication via serial port COM2 default it will give an error message Cannot establish communication This indicates that the assigned COM port is not available for this applica tion At this juncture select the lt settings gt option and use serial port settings to change the COM port to establish communi cation If the selected COM port is free the communication is established and the device programming can be started Atmel 89CXX Flash Programmer EN ELECTRONICS 2 4 Software 2 4 Software Whenever the software is activated an opening screen comes alive in the personal computer that presents an About Window to display version details and manufacture s reference FRONTLINE ELEGTRE HIGS esst eater r menn Les MI Kl ELEM Press lt OK gt button to close this About box The software presents a main bar and also a Tool bar The main bar kee
32. uni cation link and the same is indicated in the status bar Atmel 89CXX Flash Programmer EH ELECTRONICS 5 2 Options 5 2 Options You can select different options for the buffer and pro gramming the target microcontrollers using this com mand Click lt Options gt in the lt Settings gt menu I Clear Buffer before loading new file IT Clear Buffer for new device selection IT Erase the device before Programming I Verify after Programming the Device Cancel Define your choice in the upcoming window Atmel 89CXX Flash Programmer EN ELECTRONICS 5 3 Auto Programming Mode 5 3 Auto Programming Mode Using this the functions like Erase Blank Check Pro gram Verify and Protect Device can be included or ex cluded from the auto programming sequence Select lt Auto Programming Mode gt from the lt Settings gt menu Setting Auto Programming Mode EG Sequence IV Erase IV Blank Check IV Program IV Verity IV Protect Device Cancel Atmel 89CXX Flash Programmer 70 ELECTRONICS 5 4 Protection 5 4 Protection Using this command you can select the protection level for the program memory flash memory of both 20 pin and 40 pin Microcontrollers of Atmel Enable this by selecting lt Protection gt from lt settings gt menu A dialog box comes up for your convenience Setting Device Protection EG Two Level Protection 20 Pin Device IV Disable Furth

Download Pdf Manuals

image

Related Search

Related Contents

        Bravetti EP595H User's Manual  User Manual-Heart Rate Monitor Sports Watch  EN DE FR ES IT NL  Bissell 1044 Vacuum Cleaner User Manual  Philips with IntelliTune For iPod TransDock  Automatic Ankle Brachial Index System  

Copyright © All rights reserved.
Failed to retrieve file