Home

Topview Programmer A User Manual

image

Contents

1. Program Status Byte and Boot Vector Program Flash Area m Program Encryption Table m Program User Parameter Table m Verify m Cycle Redundancy Check e Auto Programming mode to automate the selected commands e Multiple Devices can be programmed FRONTLINE ELECTRONICS Es Topview Programmer A Software User Guide Chapter 1 Introduction fe e Project management facility e Verification at various voltages as per your choice e You can read the flash memory contents as the program e You can edit and assemble and modify your application code e Facility to program EEPROM families 24XX 25XX and 93XX from Atmel and Microchip 1 3 Programming Operations The Topview Programmer A maintains separate buffer areas for selected device s flash memory Program Encryption Table User parameter Table Serial EEPROM in the programming environment Initially you need to transfer your target program code data from the files into this buffer and then program the selected device with these buffer contents When you keep your program code in the flash buffer you can edit modify them as per your requirement Even you can visualize the buffer contents as the lines of program This facility enables you to incorporate small modifications without taking the code to the original development tools The Programmer also supports programming flash memory using ICP and ISP modes You can program the target device even after soldering the s
2. Topview Programmer A Advanced Device Programmer For Philips 8051 Microcontrollers Software User Guide Frontline Electronics Pvt Ltd Pandian Street Alagapuram Salem 636 016 Tamilnadu India Ph 0091 427 244 9238 243 1312 Fax 0091 427 244 9010 Email feplslmOfrontlinemail com www Frontline Electronics com pa S For Technical or Customer Support You can reach Frontline Electronics Pvt Ltd for the technical support and application assistance in following ways Email questions to feplsim frontlinemail com Send questions by mail to Frontline Electronics Pvt Ltd Pandian Street Alagapuram Salem 636 016 Tamilnadu India Phone 10091 427 244 9238 243 1312 Fax 0091 427 244 9010 Web site www Frontline Electronics com Copyright 2004 Frontline Electronics Pvt Ltd All Rights Reserved Information in this document is subject to change without notice No part of this document may be reproduced or transmitted in any form or by any means electronic or mechanical for any purpose without the express written permission of Frontline Electronics Pvt Ltd FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Contents Chapter 1 Introduction 1 1 Welcom nireset nhraed it s 1 1 2 Features of the programmer iiiiid aa 1 1 3 Programming Operations aiaaaa es sas 3 1 4 H rdw f s sarsrtssses sest adne adei 4 1 5 Packaging id aaa 5 Chapter 2 Supported Dev
3. 12 Cicha p Heh Cia E Lierka pa Meche Lei Gel Cimen Cankgn ca Fron Darku To get the current device configuration click the Get Current Configuration from Device button This will read the current configuration from device and displays the value To configure the device with the new configuration Click over OK button The completion of the operation will be displayed in small window nil 1 Davi Ohh si Sipe 6 21 Program Boot Vector and Status Bytes This command can be used to program the Boot Vector and Status Byte contents to new value This command will be available for P89C51Rx P89c51Rx2 P89C66x and some devices in P89LPC9xx series microcontrollers To activate this command select Program Boot Vector amp Status Byte command from Device menu FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation IEEE S O A AL S S S S S S ss When the command is activated a window will appear in the center of the screen and prompts for new Boot Vector and Status Byte as shown below Hee Verte aid Silii Ayti Fea imita FE Tin he Hari Ll Poper km LUKI tm fare un Beep a LES Run Beat Lauce ban POF a Messi Pias Bete S ama ha fe ea Cancel To read the current values in the device click over Get Current Value from Device button This will read the values of Boot Vector and Status Byte from device and display them in the dialog box To load the
4. ELECTRONICS 46 Topview Programmer A Software User Guide Chapter 6 Programming Operation Programming Mode Availability rari se ee 1 Atmel EEPROM of both 24Cxx and 93Cxx devices Device The list of Atmel EEPROM supported by Topview Programmer A is given below for your reference 24C01 24C01A 24002 24C02A 24004 24C04A 24C08 24C08A 24016 ONTLINE ELECTRONICS Si Ot Rielle D Topview Programmer A 10 11 12 13 14 15 16 17 18 240164 24C21 24032 24064 240128 2408128 240256 24CS256 24C512 19 20 21 22 23 24 25 26 24C1024 93C46 93C46A 93C46C 93LC46B 93C56 93C66 93C86 Software User Guide Chapter 6 Programming Operation DIE UA S IE IES I III III S Microchip EEPROM of both 24Cxx and 93Cxx devices 1 24AA00 24 24LCS21A 47 93AA46 2 24C00 25 24LC024 48 93C46B 3 24LC00 26 24LC025 49 93LC46 4 24AA01 27 24AA32 50 93LC46A 5 24C01B 28 24AA32A 51 93AA56 6 24C01C 29 24C32A 52 93C56A 7 24LC01B 30 24C32 53 93C56B 8 24AA02 31 24FC32A 54 93LC56 9 24C02B 32 24LC32 55 93LCS56 10 24C02C 33 24LC32A 56 93AA66 11 24LC02B 34 24LCS52 57 93C66A 12 24AA04 35 24AA64 58 93C66B 13 24C04A 36 24LC64 59 93LC66 14 24LC04B 37 24AA65 60 93LC66A 15 24AA08 38 24C65 61 93LC66B 16 24C08B 39 24FC65 62 93LCS66 17 24LC08B 40 24LC65 63 93AA76 18 24C16B 41 24AA128 64 93C76 19 24AA16 42 24FC128 65 93LC76 20 24LC16B 43 24LC12
5. needs Using this mode the enabled features like Erase Blank check Program Verify Protect Device can be included or excluded in the auto programming sequence This command automatically executes different programming functions one by one e Chip Erase e Blank Check e Program Device e Verify the Device with Buffer Contents e CRC Check e Program Encryption Table e Program User Parameter Table e Program Device Configuration e Program Boot Vector and Status Byte e Protect the Device e Verify Protection You can include or remove any of these function as per your requirement You can also define the number of devices that should be programmed Start this command Device gt Auto Now you should see a dialog box with all the available options FRONTLINE ELECTRONICS EJ Topview Programmer A Software User Guide Chapter 6 Programming Operation Sailing duis Fircgramrrins Mind Sele Festi ia Deas bbh Ki k E Mak t R Poe Salia n ri Fronton iin hipe ei huba Caper 6 6 1 Erase In OTP devices the erase option is disabled and the Erase check box and Erase Setting button are not available In some other family of devices 89C5X 89C5XX2 where erase facility is available Only full erasing of the device is possible For these devices Erase Setting button will be disabled In 89C51RX2 89C51RX 89LPC9XX where block page erasing is possible the Erase Setting button
6. Chapter 5 Programming Environment DIE TRI S SS S JE PIN ES 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 needs For your convenience the buffer provides a Single line Assembler to carry out these modifications with ease and confidence Another facility is the buffer helps you to keep programming data from many files in order You can load these files into the buffer and verify the whole lot and then program the target device in a single shot Buffer supports editing In both Hex and ASCII locating a byte clearing filling copying operation and also generates a checksum All these operations are explained in the detail in subsequent pages Another interesting facility using different colours is made available in the buffer to indicate certain operations Normally the buffer contents are displayed in the black color When a file is loaded into the buffer the colour changes to blue When you carry out editing in the contents of the buffer the edited portion is displayed in red colour 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 different colours for buffer functions the colouring will assist you very much during program development debugging The buffer also sports a disasse
7. Disables the ability to perform an erase of sector x in ISP or IAP mode When activated this bit and sector x can only be erased by a global erase command using parallel mode programming This bit and sector x cannot be erased in ISP or IAP modes SECx 1 SPEDISx Sector Program Erase Disable x Disables program or erase of all or part of sector x This bit and sector x are erased by either a sector erase command ISP IAP or Parallel Programming or a global erase command in parallel programming SECx 0 MOVCDISx MOVC Disable Disables the MOVC instruction for the sector x Any MOVC that attempts to read a byte in a MOVC protected sector will return invalid data This bit can only be erased when sector x is erased The dialog box meant for this sector protection selection is given here FRONTLINE ELECTRONICS 60 Topview Programmer A Software User Guide Chapter 6 Programming Operation line Prolin er Proin Bite ETS beda EHEH ka TTEN E D ra facta GOH ka PH wildness Sector CU oo FFH LE Coppia g Dada uha Fcgauurg ard Page barg fot I ial Sees hea F Lipa Fig r d bel Sei E Lira chan Page Erare aed ect Eur D patie MCRL feito Pap Cr sti Teia M ru Tibie HOC k l Page Erbia Mad eke F Lit This box indicates all the possible sectors and also the protection options available for these sectors You can select different protection setting for each sector The selected set
8. ELECTRONICS EJ Topview Programmer A Software User Guide Chapter 6 Programming Operation IES Sg ss Key in the required address and complete the command to get the buffer with the correct address 6 2 2 5 Clear EEPROM Buffer By using this command you can clear the contents of the EEPROM buffer to FFH and the colour of the contents will become black 6 2 2 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 coming up to prompt you for the Starting Ending address and also the Fill data as shown here Fill SEPM Auber Pripis TK Erde dekirern FF FED 17 LS J Note the colour difference in the buffer window FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation 6 2 2 7 Copy EEPROM Buffer This command copies the contents from one area to another area of the EEPROM buffer When getting into this operation a dialog box comes up to get addresses of Starting Ending and Destination meant for the blocks Successful operation is indicated by another small window 6 2 2 8 Checksum EEPROM Buffer This command may be used to find the Checksum of the EEPROM buffer contents When the command is selected a dialog box gets required addresses and another window indicates the calculated Checksum 6 3 Load Buffers Select Load File command from File menu
9. The factory default for the Status Byte is FFH Once set to 00H the Status Byte only be changed back to FFH by a full chip erasing when using ISP 7 4 Hardware Activate of the Boot Loader The microcontroller s Boot Loader can also be executed by holding PSEN low EA grater than VIH such as 5V and ALE high or not connected at the falling edge of Reset This is same effect as having a nonzero Status Byte This allows an application to be built that will normally execute the end user s code but can be manually forced into ISP operation FRONTLINE ELECTRONICS 88 Topview Programmer A Software User Guide Chapter 7 Programming the Soldered Device in the Target Hardware KI SA SNES S A AA S SAS After programming the flash the Status Byte should be programmed to zero in order to allow execution of the user application code beginning at 0000H 7 5 Boot ROM When the microcontroller program its flash memory during ISP all of the low level details are handled by the code contained in 1K Byte Boot ROM The size of the Boot ROM varies from device to device Boot ROM operations include Erase Block Program Byte Verify Byte Program Security Bit etc The Boot ROM area is mostly located at the address FCOOH FFFFH in a non erasable masked ROM 7 6 Status Byte Bit The Status Byte is located in the programmable flash memory After Reset the microcontroller checks the Status Byte If the Status Byte is 0 the program beg
10. can be used to program the User Parameter area present in P89LPC76x series microcontrollers Les Parameter Tafile Tabia Timi ad nau 1 Tabia raidai F When the Program User Parameter Table command is activated a dialog box mentioned above will appear After entering the Starting and Ending addresses or selecting the full table option click over OK button to start programming of User Parameter Table The command completion is displayed as shown below nie mihos L kee merece Fibi Prager Seattle FRONTLINE ELECTRONICS 78 Topview Programmer A Software User Guide Chapter 6 Programming Operation 6 16 Read User Parameter Table This command can be used to read the User Parameter area present in P89LPC76x series microcontrollers Lk s Pararerter Tale Ae Full Tatie Takis Taal it mis 50 T abia i rad d nis iF _ E When the Read User Parameter Table command is activated a dialog box mentioned above will appear After entering the Starting and Ending addresses or selecting the full table option click over OK button to start reading User Parameter Table The specified range of data are read from the device and placed in User Parameter Table buffer You can view the contents of this buffer using Buffer gt User Parameter Table 3 Edit command 6 17 Read and Display the Signature Byte of the Device This command can be used to read and display the signature bytes of the device c
11. default values click the Load Default Values button After entering new value for Boot Vector and Status Byte click OK button to program the new values FRONTLINE ELECTRONICS 84 Topview Programmer A Software User Guide Chapter 7 Programming the Soldered Device in the Target Hardware ii O i S SSS 7 1 Introduction Many Microcontrollers from Philips have the facility to get programmed even after soldered in the target board You need not remove the device from the PCB for programming purpose This is very much reguired when you use SMD devices in your applications These controllers have In System Programming and In Circuit Programming facilities to enable you to update target application in the field and use the same hardware in different applications by varying the software If you provide a simple connector in your target hardware you can upgrade change the target programming code using Topview Programmer A 7 2 ICP and ISP Modes Philips Semiconductor has made different modes of programming available in many of the microcontrollers to enable the user get versatile up gradation facility in his her applications e In System Programming ISP e In Circuit Programming ICP e In Application Programming IAP e Parallel Programming These microcontrollers come with all required hardware and software resources to program flash memory area when the devices are properly initialized The device takes care of complica
12. device or a block of flash area The dialog box gets the addresses of the desired block Hlan Check Lena Sorin tem EN E Drea Erdre LFF If the Full device option is selected then the starting address is considered as 00H and the end address is considered as last flash memory location of the device During this blank check operation if the flash memory contains anything other than FFH then the failed locations are listed separately in the Blank Check History Window as shown here FRONTLINE ELECTRONICS 66 Topview Programmer A Software User Guide Chapter 6 Programming Operation Mana Pec Nevit Friese Hara Taig Siang Aedes KK Toe Tab iek ji FFH Eiesh Check Corgi E ii 1m Crs For LPC9xx series read back facility is not available Instead the manufacturer has provided a facility called Cyclic Redundancy Check If the flash memory contains any data other than 00H then the device is not blank Blank checking is carried out sector wise and a message like Blank or Not Blank indicates that as shown below llank Check Teia Han Tek EH hi FF HI Eset Sector DUKE te LFF HI Bark faci EEH iz OPH Diwa Emea 1 OH be FFH Eii Jek H m 1 FFH birt Geciori HOH te 17TH Pisk Feki TAKE i EFH Pimi Sector HLEH ko IFFFH Ha Piek LAC Aiad Damia 1007 FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation IEEE i 6 9 Prog
13. eva Ead Artim FFH Miku lt mg kd DDH Vedela J L Bele rai Ern ecice OF Fapema Citi Only after completing the programming Close button will be enabled To guit this programming press ESC key or Close button If Erase the device before Programming option is enabled then the device is erased before starting of programming Otherwise programming begins without erasing the device If Verify after Programming the Device is selected then the flash contents of the device is read back after programming and compared against the flash buffer contents If Program Status Byte or Bit and Boot Vector option is selected then the Status Byte or Bit is programmed to zero and the Boot Vector is programmed to its default value FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation i 6 10 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 host computer After reading from the flash memory of the device the contents can be stored either in Intel Hex format or in Binary To activate this command first click Device in menu bar and then Read 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 ral Deen Darvon Starke id ODO Devine Ering idis FF Boies Soaring id my Press Ente
14. hardware should have an on board oscillator The serial port lines RXD TXD PSEN and Reset lines should be isolated from the application during programming You can introduce a jumper setting as shown here to get this arrangement FRONTLINE ELECTRONICS EJ Topview Programmer A Software User Guide Chapter 7 Programming the Soldered Device in the Target Hardware RXD PSEN To Programmer gt r lt To Application Circuit To Programmer gt C To Application Circuit i ur AGA ac fo o w TXD RST To Programmer gt pe C To Application Circuit To Programmer ne To Application Circuit efoto po o po ou For normal operation connect pins 1 and 2 and to program the device connect pins 2 and 3 The Vcc and EA Vpp pins should be kept at 5V 7 9 Connecting the Target Hardware to the Programmer To program the device using ISP a 10 pin connector CON 3 is provided in the Topview Programmer PCB at the right side top corner Connect this connector to the target as shown here P3 0 RXD P3 4 TXD ney 10K 10K aa P2 7 o1 2 a 3 4 27 5 6 5 P2 6 7 8 9 r 1 8 ICP ISP Connector 1 XTAL1 Topview Programmer A L i m XTAL2 Target Board FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 7 Program
15. internal flash memory area from the external program memory using MOVC instruction will be disabled and further programming is also disabled FRONTLINE ELECTRONICS 58 Topview Programmer A Software User Guide Chapter 6 Programming Operation DIE IU U U JS SO ETIOPIJU ISO ISES VIS Security bits 1 and 2 If both of these bits are set following functions are disabled e Accessing the internal flash memory area from external program memory using MOVC instruction e Further Programming e Reading from the device Verify operation Security bits 1 2 and 3 If all the security bits are enabled following functions are disabled e Accessing the internal flash memory from the external programs using MOVC instruction e Further Programming e Reading from the device Verify e External execution If you select the security bit 3 other security bits 1 and 2 will also automatically be activated Similarly when you select the bit 2 other bit 1 is also automatically enabled Facility is also available to protect selected flash memory sectors in few families of controllers You can define and protect individual sectors For the 89LPC900 devices the sector protection is given here SECx Un programmed value 00H BIT SYMBOL FUNCTION SECx 7 3 Reserved Always keep them at zero FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation SECx 2 EDISx Erase Disable x
16. keying in your target program line by line in mnemonics when you are in flash buffer At the end of each line the instruction is converted into opcodes thanks to the built in single line assembler and everything is stored in the buffer When you activate this command you should see a window prompting you to enter the starting address of the program If the program window is already opened then the starting address of FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation S S S S is the program window will be set to the new value and the window gets cleared and you can note a new dialog box coming up at the centre to get your program in mnemonics as shown here Enter your program line by line and at the end of each line press Enter key or click over Store button to convert the mnemonics into opcodes and store them in the flash buffer During program entry for error conditions a separate window displays the nature of the error At the end of the program entry press ESC key or click over Cancel button to guit this command FRONTLINE ELECTRONICS 34 Topview Programmer A Software User Guide Chapter 6 Programming Operation 55 6 2 2 EEPROM Buffer The programmer maintains a buffer space to process the data meant for the serial EEPROM devices This buffer will be activated only when the EEPROM devices are selected for programming For microcontrollers thi
17. will be enabled FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation pion C rita Fall et rd Jaa Baty T Eres Crds Liisi lia ju p Dha ary aj Erua Daid licia Tean kri CID OO Bion MOKU ia FF Bionic PAR iz EFF Eimi EEH ieFAFHI In the erase option you have three possibilities If the security bits are already programmed only one option Erase Full Device and Security Bits will be enabled Remaining options will be disabled since the device doesn t support block erasing when itis protected The remaining two options will allow you to select the block for erasing The option Erase Only Used Blocks permits the erasing of blocks as per buffer data Since the buffer contains total data the programmer automatically can identify all the blocks meant for the programming So you need not keep track of the blocks to be erased The third option Erase Selected Blocks permit you to select the blocks from the list box as per your requirement The programmer takes all these selections into account whenever you activate this auto programming mode FRONTLINE ELECTRONICS 52 Topview Programmer A Software User Guide Chapter 6 Programming Operation IEEE i 6 6 2 Program The device memory s starting address ending address can be set by using this setting command Also you can select the full device option for programming The same address
18. 24AA01 38 24AA32A 5 24C01 39 24C32 6 24C01A 40 24C32A 7 24C01B 41 24FC32A 8 24C01C 42 24LC32 9 24LC01B 43 24LC32A 10 24AA02 44 24LCS52 11 24C02 45 24AA64 12 24C02A 46 24C64 13 24C02B 47 24LC64 14 24C02C 48 24AA65 15 24LC02B 49 24C65 16 24AA04 50 24FC65 17 24C04 51 24LC65 18 24C04A 52 24AA128 19 24LC04B 53 24C128 20 24AA08 54 24CS128 21 24C08 55 24FC128 22 24C08A 56 24LC128 23 24C08B 57 24C256 24 24LC08B 58 24AA256 25 24C16 59 24CS256 26 24C16B 60 24FC256 27 24AA16 61 24LC256 28 24LC16B 62 24C512 29 24C164 63 24C1024 30 24C21 64 93AA46 31 24LC21 65 93C46 32 24LC21A 66 93C46A 33 24LCS21 67 93C46B 34 24LCS21A 68 93C46C FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 2 Supported Devices fn OO I ES IA IIS S ASA 69 93LC46 81 93C66B 70 93LC46A 82 93LC66 71 93LC46B 83 93LC66A 72 93AA56 84 93LC66B 73 93C56 85 93LCS66 74 93C56A 86 93AA76 75 93C56B 87 93C76 76 93LC56 88 93LC76 77 93LCS56 89 93AA86 78 93AA66 90 93C86 79 93C66 91 93C86 80 93C66A 92 93LC86 2 2 1 Up gradation of the Programmer We have found the availability of following microcontrollers of Philips from many sources With careful analyzing we have incorporated up gradation facility meant for these devices in the programmer These devices will be automatically included into the existing list as and when we complete testing them And the new version
19. 8 66 93AA86 21 24LC21 44 24AA256 67 93C86 22 24LC21A 45 24FC256 68 93LC86 23 24LCS21 46 24LC256 To select the Microcontroller or EEPROM device click Device gt Selection A dialog box comes up for your convenience FRONTLINE ELECTRONICS 48 Topview Programmer A Software User Guide Chapter 6 Programming Operation brr pa LEO ACSIA PETAD PERE e Select the Device Type MCU or EEPROM e For microcontrollers you need to select the type of memory OTP or Flash e Select the programming mode for microcontroller Parallel ISP or ICP e For some devices you need to key in frequency of the crystal connected to the microcontroller in the circuit You can enter the information in Crystal box This is required only when you use ISP mode e For EEPROM device select the manufacturer Atmel or Microchip e For 93Cxx family EEPROM select 8 bits or 16 bits organization When you select the target device the dialog box automatically indicates device insertion position in the ZIF socket To keep your old selection as such press ESC key or Cancel button FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation 6 6 Auto programming Mode This mode is the time saving one to enable you to decide the features you want to include in the programming sequence You can even configure the programming sequence for multiple devices suitable for production
20. This will open a dialog box as shown below for the devices having only flash memory FRONTLINE ELECTRONICS 38 Topview Programmer A Software User Guide Chapter 6 Programming Operation Initially select the file format as either Inter Hex or Binary If the selected file format is binary then enter the starting address To select the filename click over Browse button This will prompt for filename as shown below e DIE LS D Aone ropena biah ai babin Pipe ario Biri dae h tipa Progr 0 OPC Preparer VD Dig Fe hers CEE Projects JIRAN Fi pra tar na rd bor iriad Ma Fla Has Select the file and click Open to select the file FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation eee Click Load button to load the selected file into the flash buffer For OTP devices whenever the Load File command is activated the dialog box shown below will be displayed for selecting the file format and buffer Us Pareto Ta First select the file format as either Intel hex or binary Enter the filename or select the file using Browse button Next select the buffer to which the data from file is to be loaded After selecting the buffer click over Load button to load the file data into the selected buffer If the Auto option is selected under the heading Buffer then the data will be loaded to all the buffers available to the selected device acco
21. ame in the target hardware In short the programming environment is total and complete in all respects and you can confidentially use the programmer in your demanding applications FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 1 Introduction fa _____ _______ 1 4 Hardware The programmer consists of a PCB mounted in a sleek wooden box a separate power supply and all required cables The Power Supply provides a set of DC voltages like 9V 500mA and 18V 100mA The programmer has on board regulator to generate operating voltage and the programming voltages The programmer sports a 40 pin ZIF socket to program DIP devices in 40 20 16 and 8 pins A connector marked as Power is used to connect the power supply to the programmer and the termination of the connector is given here e Pins1 amp 2 9V e Fins3 4 Ground e Pins6 amp 7 18V Similarly another connector Serial port is meant for connecting the programmer with the host personal computer through the serial port The connector terminations are given here e Pini NC e Pin2 RXD e Pin3 TXD e Pin4 NC e PinS Ground e Pin6 NC e Pin7 NC e Ping NC e Ping NC FRONTLIN ELECTRONICS KE Topview Programmer A Software User Guide Chapter 1 Introduction RIJ ISO UIK IU KO IOV IV SEE A switch RESET is meant for resetting the programmer Another 10 pin connector ISP ICP Connecto
22. cha Cia V ELkdapa Haha Lei Ga Cunari Can gunai u Fm Daatcu ox Cars For 89LPC9XX devices the available options are FRONTLINE ELECTRONICS 56 Topview Programmer A Software User Guide Chapter 6 Programming Operation IE ii ss i rare Laniiginai ra Whig Tie et ohig Tash Dil Dusi Dmh Ertis Enabled Bee ar V eee m isdi Eriatiad Kr ukk i Cecilie Talacharn Hgh Frega Cresta iz Rre Ms to 1i Get eed Corfu ston Peon Lira Since the programmer automatically selects the required configuration information you just select required choice in the dialog box depending upon your project needs 6 6 7 Set Boot Vector and Status Byte This feature is available in the ISP devices 89C51RX 89C51RX2 89C66X etc When you select this button following dialog box comes up to get your choice FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation Beet Tectia and Stalin pl fet Yerkes FE Britu El nu funle Perce ber WDH Km Al ret Pair Ba CY T Mar Bed Lasis fore CP Alien Pease pisia Diets H Gaede l k ber Deane Lewd Dei a Viste Ca Cara 6 6 8 Set Protection Bits Using this facility you can protect your device flash memory from the curious eyes Device Projection Pe PRC Freja d buu a d Ct A F e Fiya F Dibia vau pi enable Cimma Exeoutor Security bit 1 When this bitis set accessing the
23. ck This command is available only for P89LPC9xx series microcontrollers In this series of microcontrollers there is no facility to read the program memory area after programming To check the proper programming this facility is provided by the manufacturer To activate this command select Cyclic Redundancy Check from Device menu This command will read the Global CRC and Sector CRCs from the device FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation esse _ __ and calculates the Global CRC and Sector CRCs of the buffer data and displays them as shown below For P89LPC91 2 yrilr Bas du ndancy beck Cte ack Tobia DOH ne RR HI Sector 000K to LFF HI Sacha DOD iz DPT aeb CORI ip EFTE Sect UC OH bo FFH CRT R smj bara The number of sectors will vary from device to device If device CRC matches with the buffer CRC then the programming is OK Also note that the blank data in the device is OOH Hence the buffer should also contain 00H where code is not present 6 20 Program Device Configuration For P89CRx2 P89C5xX2 and P89C66x devices the configuration parameter is only the machine cycle of the CPU either as 12 clocks or 6 clocks For these of devices the dialog box shown below will be displayed FRONTLINE ELECTRONICS 82 Topview Programmer A Software User Guide Chapter 6 Programming Operation i ss i Device Canigo arna Diah Foe
24. ddress of this table starts from FCEOH to FCFFH in the device Use this setting to define the starting and ending address of buffer meant for the user parameter table Lk s Farsrrei r Tahle Ful Tadia Tata Timi ddis 50 Takis Krii dek rsur F 6 6 6 Set Device Configuration The configuration parameter of a device differs from families to families The standard configuration parameters of a device are setting the device to operate either in 6 or 12 clocks per machine cycle enabling or disabling the internal watchdog timer You can select these parameters and this configuration information can be programmed during flash programming The figure shown below is meant for 89LPC76X family devices Apart from selecting watchdog timer and number of clocks per machine cycle you have other options like FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation e External Reset pin enable disable e Setting port lines high low after reset e Oscillator selection e Brownout voltage selection De Carl ip iil ate het Rata m 14 Ciz k pe lie Cpe C Choise par Harha Cpe Grn Oot Sng g E hg Enid T Poi etry Los feengerd die feet Hyung orl ee Har au eect intra RC Goch Ge 33 Da Curent Coipo F ar Dare Lai For 89C51RX2 89C5XX2 89C66X family devices the available options are shown here Device Cantigu ta Dri Fine V 12 Dedu pa He
25. defined by the Philips OTP Devices 1 P87C51 12 P87C51RA 2 P87C52 13 P87C51RB 3 P87C54 14 P87C51RC 4 P87C58 15 P87C51RD 5 P87C51X2 16 P87LPC760 6 P87C52X2 17 P87LPC761 7 P87C54X2 18 P87LPC762 8 P87C58X2 19 P87LPC764 9 P87C51FA 20 P87LPC767 10 P87C51FB 21 P87LPC768 11 P87C51FC 22 P87LPC769 FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 2 Supported Devices RU TI PI O DU SO A OO AA Flash Devices 1 P89C51B 30 P89C668 2 P89C52B 31 P89LPC901 3 P89C54B 32 P89LPC902 4 P89C58B 33 P89LPC903 5 P89C51U 34 P89LPC904 6 P89C52U 35 P89LPC906 7 P89C54U 36 P89LPC907 8 P89C58U 37 P89LPC908 9 P89C51X2 38 P89LPC912 10 P89C52X2 39 P89LPC913 11 P89C54X2 40 P89LPC914 12 P89C58X2 41 P89LPC915 13 P89C51RB 42 P89LPC916 14 P89C51RC 43 P89LPC917 15 P89C51RD 44 P89LPC920 16 P89C51RB2H 45 P89LPC921 17 P89C51RC2H 46 P89LPC922 18 P89C51RD2H 47 P89LPC924 19 P89C51RA2 48 P89LPC925 20 P89C51RB2 49 P89LPC930 21 P89C51RC2 50 P89LPC931 22 P89C51RD2 51 P89LPC932 23 P89V51RD2 52 P89LPC932A1 24 P89LV51RD2 53 P89LPC933 25 P89C60X2 54 P89LPC934 26 P89C61X2 55 P89LPC935 27 P89C660 56 XA G49 28 P89C662 57 XA G39 29 P89C664 FRONTLINE ELECTRONICS 8 Topview Programmer A Software User Guide Chapter 2 Supported Devices RI II a S O A M S SEA EEPROM Devices 1 24AA00 35 24LC024 2 24C00 36 24LC025 3 24LC00 37 24AA32 4
26. ected device During programming memory buffers play an important role in the programming functions Working knowledge on all the operations of these buffers will make your programming tasks as easy and comfortable You may need to refer the chapter 4 to know about different setting required to start the programming operations 6 2 Buffer Operations As you know programmer provides many buffers to keep track of flash programming code Program Encryption Table User Parameter Table meant for the microcontrollers as well as an exclusive buffer for serial EEPROM devices In the following paragraphs you are going to see more about various operations meant for these buffers 6 2 1 Flash Buffer Operations The Flash Buffer Supports the Following Functions e Edit Flash Buffer e Locate Flash Buffer e Clear Flash Buffer e Fill Flash Buffer FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation ee e Copy Flash Buffer e Checksum Flash Buffer e Flash Buffer Disassembly e Flash Buffer Enter Program 6 2 1 1 Edit Flash Buffer You can activate this Edit command as shown here 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 formats as shown here FRONTLINE ELECTRONICS 28 Topvi
27. ereeees 43 6 6 Auto programming Mode 50 6 6 1 Erasunen aatis 51 6 6 2 Prodf ti xssa saduitnisu sided tas ti 53 6 6 3 VerificatiON ices csscectescrsabescceesevesecoseavssvverdece eettnsseseecenevvareest 53 6 6 4 Set Encryption Table Address aa 54 6 6 5 Set User Parameter Table ccceceeceeseeseeeeeeeeneeeeeeeeereees 55 6 6 6 Set Device Configuration seese 55 6 6 7 Set Boot Vector and Status Byte ii a 57 6 6 8 Set Protection Bits iadi s 58 6 6 9 Multiple Device Programming iiid as 62 6 7 Er se DeViCe ticama cars r des seat e iniaeeai 64 6 8 Blank Check Device 0 ee eeeeceeceeceeeeeeeeeeeeeeeeeeseeaeeaeeaesaeeeeseeeeaeeaeeaees 66 6 9 Program the Device ccecsscescscsterssesesceserseeesescssensesessscesersesenesoes 68 6 10 Read Device uesasensiesa s sedis is ticis s s si is t tis 70 6 11 Verify Device eke eceecccstcesenseteneceneeeseceseeceeensesenesceuensetesesseeeoneteneteees 71 6 12 Protect DOVICE narei arpei aiSia earar ideian reiini 72 6 13 Initialize DOVICE iniruuru ia 76 6 14 Program Encryption Table ssssssesiseeeiseresrnernsrnernsrnrrnsrneinsrnernernsrent 77 6 15 Program User Parameter Table i adiid a 78 6 16 Read User Parameter Table sssessssseseeieereesesrneresrnernernsrnernereernereet 79 6 17 Read and Display the Signature Byte of the Device 79 FRONTLINE ELECTRONICS Topview Programmer A Software User Guide 6 18 Read and Display the Secu
28. eset Circuit Lines used for Data Transfer e P04 P0 5 GND No Special Registers and Boot ROM Device can be erased even if the device is protected The programming commands and data transferred serially in bytes No such Boot Vector In ICP no such monitor is available Software User Guide Chapter 7 Programming the Soldered Device in the Target Hardware cz sii I S S S S SDS IAP mode is for embedding the on chip programming facility in your tar get application You may include this in your application to provide a kind of self upgradation facility or to get latest calibration information and etc You need to refer the Philips Documentation to know more on this IAP mode and such a discussion is beyond the scope of this manual Topview Device Programmer A has required facility to program these microcontrollers in Parallel Mode You may use this Parallel Programming facility to restore the Boot ROM in the device after it is erased 7 3 Power on Reset Code Execution The controllers with ISP facility contain a Special flash Register Status Byte which indicates the starting address of the program code At the falling edge of reset the controller examines the Status Byte and if the Status Byte is set to zero power up execution starts at location 0000H which is the normal start address of user application code When the Status Byte is set to a value other than zero the factory masked ROM ISP Boot loader is invoked
29. ew Programmer A Software User Guide Chapter 6 Programming Operation The status bar gives current editing address You can use arrow Keys Page Up and Page Down Keys to move the cursor to any desired position in the screen Home and End Key take you to the first and last locations displayed on the screen To edit in the ASCII part of the display click your mouse over any place on the right side The address of that location gets indicated in the status bar When you change any thing in the ASCII area the corresponding Hex code also gets modified in the left side The location you edit is displayed in red colour When you load the buffer from a file then you can see the contents in blue colour When you read the flash contents of the target the same will be displayed in the buffer window in green colour FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation TIIRI I S I I U I I ET STD T OE S AI I OE IIS ee When you clear the buffer using Clear command the contents get black colour 6 2 1 2 Locate Flash Buffer Use this command to set the starting address for the flash Buffer When you activate this command small dialog box opens upon the screen to getthe address This Locate command can also be activated by double clicking over any address field displayed at the left side of the window You can enter the right address in the pop up window Then the screen gets updated w
30. g and loading operations respective memory areas are properly saved or read from the files automatically 5 2 3 Flash Memory Area Normally flash memory of any microcontroller is mapped into the program memory space Most of the time this memory contains only programming code along with reguired data FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 5 Programming Environment 5 3 Device Project File The programmer gives you the facility to keep all the relevant program and data information generated for the specific device in an exclusive project file So you need not worry about keeping flash memory User Parameter Table and Program Encryption Table at their respective address blocks You can easily save device project file and load the same from files using simple commands 5 4 Buffer Operation The programming environment sports few buffers which play an important role during programming Available Buffers are e Flash Buffer e Program Encryption Table Buffer e User Parameter Table Buffer e EEPROM Buffer for serial EEPROM device 5 4 1 Flash Buffer Normally the buffer space will be made equal to the size of the selected device s flash memory capacity For an example for the device P89C51 the buffer space goes up to 4K OFFFH If the target file exceeds this space an error message will be FRONTLINE ELECTRONICS 24 Topview Programmer A Software User Guide
31. ices 2 1 Introduction sssessesssiessssiereerreisrrerieriernsrierinrietanirernntternntnernerternsrrernene 7 2 2 List of supported Devices iii aaa 7 2 2 1 Up gradation of the Programmer c a 10 Chapter 3 Getting Started 3 1 Introduction issart iiien edatia 13 3 2 System Requirements ia esse 13 3 3 Installing Software oo ee eeeececceeeeseeneeeeeeeeeeeeeeeeeeaesaeeaeeeeeeeseeseeeeeeeaees 13 3 4 Installing Hardware lt cccccccvsscscescentevecceteescetesaveueas coueieteescevedveeresee 14 3 5 Programming Software oo ee ceeeeeeeeeeeeeeeeeeeeneeneseeeeeeeeesaeeareeeeeeees 15 3 6 Uninstalling Software 0 eeeceeceeseeseeeeeeeseeeereeeceeeeeeeeetaeeaeeaeeeeeesenees 16 Chapter4 Programmer Setting 4 1 Introductionis iseni a aana AT 17 4 2 Serial Port Setge aitas ata a S edit 17 4 3 Buffer and Programming Options iaaa 18 4 4 NerilicatlONi x s ssttsstsvat api oesessb sets svvend cusntvsensctseedi A 19 FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter5 Programming Environment 5 1 Introduction siisd aaa 21 5 2 Types of Programming Data i iiia 21 5 2 1 OTP ROM with Program Encryption Table s s s 22 5 2 2 OTP ROM with User Parameter Table aseene 22 5 2 3 Flash Memory Area ceeeeeccee aa 23 5 3 Device Project File scsi wesnseovccrisrcctecscenssncetesancevecebesecevedveereses 24 5 4 Buffer Operation eee eeeeeeceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeaesaeeee
32. ins executing from address 0000H If the Status Byte is not 0 FFH is preferred the program jumps to the address pointed to by the Boot Vector The pointed address is the beginning of the ISP code After programming the flash memory the Status Byte should be erased to OOH in order to allow the execution user s code beginning at address 0000H Some devices may have the Status Byte and some may sport Status Bit FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 7 Programming the Soldered Device in the Target Hardware 7 7 Boot Vector The Boot Vector is located in the flash memory After Reset the program jumps to the address pointed to by the Boot Vector The ISP program usually located at address FCOOH So the Boot Vector contains the address FCOOH Do not change this unless an ISP program is located elsewhere After programming your application code in the flash area you have to program the Boot Vector to the Boot ROM starting address FCOOH and the Status Byte to zero to enable the ISP programming RESET ROM 64K L_B00T ROM BOOT ROM pox ISP CODE g y Block 4 lt STATUS YES BYTE 0 48K Sui Le NO 4 Block 3 YES PSEN LOW e BOOT VECTOR ALE EA HIGH 32K at RESET rising FORCE edge ISP X Block 2 NON 16K _ 8k a Block 0 GO TO ADDRESS 0 User Code Execution 7 8 Basic Requirements in Target Hardware to get ISP facility The
33. ith the data starting from that given address 6 2 1 3 Clear Flash Buffer When you activate this command you can notice all the contents of the flash buffer becoming FFH 00H for P89LPC9xx family and change the colour to black to indicate the completion of the operation 6 2 1 4 Fill Flash Buffer You can use this command to fill the flash buffer with a given data When you get into this operation you should see a dialog box coming up to prompt you for Starting and Ending address along with the Fill data as shown here FRONTLINE ELECTRONICS EJ Topview Programmer A Software User Guide Chapter 6 Programming Operation ii sss HU Fleri Beiter Sark idden im Ere iedams FF F Da u TI 6 2 1 5 Copy Flash Buffer This command copies a block of data from one location to other in the flash buffer You need to key in Starting Ending and Destination addresses in the dialog box that comes up Successful completion is indicated by another window 6 2 1 6 Checksum Flash Buffer You can get the checksum of the flash buffer giving Starting and Ending addresses of the buffer You need to Key in these addresses in the dialog box Then the calculated checksum is displayed in another window FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation is i A ee is 6 2 1 7 Flash Buffer Disassembly This command is meant for viewing the contents of the fla
34. lose this About box The software presents a menu bar and also a tool bar Like any other Windows 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 the current selected device COM port status and mode of operation These details are updated each time when there is a any change in the selection FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 3 Getting Started Et 3 6 Uninstalling Software Use control panel of windows operating system to remove the programming software from your computer FRONTLINE ELECTRONICS IET Topview Programmer A Software User Guide Chapter 4 Programmer Setting 4 1 Introduction This chapter is for defining various settings meant for different programming operations like Auto Programming mode multiple device programming and etc These features basically combine many steps of programming into a single task to save your time during repeated programming needs 4 2 Serial Port Setting This command is to select a COM port from the possible options COM1 to COM4 to establish the required communication link with the device programmer Click Setting gt Serial Port A dialog box opens up on the screen to invite you to select the COM port Now selected COM port is configured for the com
35. make programming operations simple convenient and also interesting 1 2 Features of the programmer e Supports more than 75 popular and widely available Philips Microcontrollers e Also supports around 100 EEPROM devices from both Atmel and Microchip e Single 40pin ZIF socket to accommodate DIP devices e Devices with operating voltages 3 3V and 5V can be programmed e Facility also available to program through ICP for LPC9XX series and ISP mode after soldering the device in the target board using a 10 pin cable This cable is made available along with the programmer e Verification at various voltages can be done as per Philips specification e Programmer can be upgraded to support new devices at your premises e LED indicators are provided for Power and Busy status FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 1 Introduction RU USI UIK O e Programmer can be connected through serial port of the personal computer e The programmer is mounted in a sleek and eye catching wooden jewel box e Programmer comes with a separate power supply and serial port cable and also ICP ISP programming cable Programming Features e Supports both Binary and Hex formats e Commands and functions as per Philips specification e Major Commands are m Erase m Blank Check m Protect the Device against copying m Read the Device signature Read the Protection status Device Configuration
36. mbly facility When you activate this 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 FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 5 Programming Environment sa a sasar eee you can edit your program code or insert new program lines using built in single line assembler 5 4 2 Program Encryption Table Buffer For some OTP devices Philips provides a Program Encryption Table of 64 32 bytes in length A separate buffer is made available for this table Like flash buffer this also has all the features except the disassembly facility since it contains only data 5 4 3 User Parameter Table Buffer In P87LPC76X family of controllers this is an area of 32 bytes in the memory meant for keeping User Parameter Table This User Parameter Table lies between FCEOH and FCFFH An exclusive buffer is made available for this table Like other buffers this has all the features except the disassembly facility 5 4 4 EEPROM Buffer for Serial EEPROM Devices Depends upon the selected EEPROM device a suitable buffer area is available during programming operations FRONTLINE ELECTRONICS 26 Topview Programmer A Software User Guide Chapter 6 Programming Operation _ S I TU OO EK ISO ISK AES O S OSI TIES S 6 1 Introduction Now you are going to know all the operations required to program the sel
37. ming the Soldered Device in the Target Hardware i el The 87LPC76X devices have facility to program serially using ICP mode This feature facilitates In Circuit Programming The diagram gives total picture about incorporating programming facility in the target hardware VDD pz RST Vpp EEEE S mon CON3 P87LPC76x ICP ISP Connector vss Topview Programmer A L Target Board You should maintain the connector at the target hardware for programming The specified pins of the device should be properly isolated from the rest of the circuit during programming Otherwise damage may occur to the controller as well as to rest of the circuits For P87LPC76X devices if the Vpp pin is not isolated from other circuits in the target hardware the high voltage 10 75V delivered from the programmer may damage your target Connect the programmer to this target hardware through the ICP ISP cable provided along with the programmer FRONTLINE ELECTRONICS 92 Topview Programmer A Software User Guide
38. mmer Setting i ees will be erased before getting programmed Similarly the devices are verified with the contents of the buffer when you enable the Verify after Programming option 4 4 Verification Verification of the device after programming can be carried in 5V normally For some of the devices like 89C51RX2 89C66X 87C76X require facility to verify the programmed data giving different supply voltages This command can be used to select the verification voltages Click Setting gt Verification The following dialog box indicates all the possible voltages meant for the verification Per lication Siling Sebo Veri rotori Voller lt TV Pw F nv FRONTLINE ELECTRONICS Topview Programmer A Software User Guide FRONTLINE ELECTRONICS 20 Topview Programmer A Software User Guide Chapter 5 Programming Environment PIESAISTI a SS EJ 5 1 Introduction The programmer maintains a buffer area eguivalent to target controller s flash memory area Program Encryption Table User Parameter Table and Target serial EEPROM area Keeping your program code or data inside of the respective buffer you can edit modify as per your reguirement before programming You can also incorporate changes in your target program code without going back to the original development tools thanks to the built in assembling facility This is one important facility reguired during field up gradation of the finished applications 5 2 Ty
39. mming e Reading from the device Verify e External execution If you select the security bit 3 other security bits 1 and 2 will also automatically be activated Similarly when you select the bit 2 other bit 1 also automatically enabled Facility is also available to protect selected flash memory sectors in few families of controllers You can define and protect individual sectors For the 89LPC900 devices the sector protection is given here FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation Un programmed value 00H L das be E ee BIT SYMBOL SECx 7 3 SECx 2 EDISx SECx 1 SPEDISx SECx 0 MOVCDISx FUNCTION Reserved Always keep them atzero Erase Disable x Disables the ability to perform an erase of sector x in ISP or IAP mode When activated this bit and sector x can only be erased by a global erase command using parallel mode programming This bit and sector x cannot be erased in ISP or IAP modes Sector Program Erase Disable x Disables program or erase of all or part of sector x This bit and sector x are erased by either a sector erase command ISP IAP or Parallel Programming or a global erase command in parallel programming MOVC Disable Disables the MOVC instruction for the sector x Any MOVC that attempts to read a byte in a MOVC protected sector will return invalid data This bit can only be erased when sector x is e
40. munication link and the same is indicated in the status bar Baslar LOM Port FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 4 Programmer Setting ees 4 3 Buffer and Programming Options This command enables you to define your selections meant for the buffer operations and also the programming Click Setting gt Options Define your choice in the popup Window Salling KI prli ra E Oes F aitas kris boating rata iz Dien Bahh fo iei berie pie l a Fris he dace bas Prora 7 Poet cm epre ia ia E First option Clear buffer before loading new file will clear the buffer contents to FFH 00H for P89LPC9xx family whenever you load a new file into the buffer This option should be disabled before loading multiple files to a single buffer Otherwise this option will clear the buffer contents when loading each file to buffer The second option Clear Buffer for new device selection clears the buffer contents after the selection of a new device OTP devices will not have the option of erasing the device In this case the option Erasing the device before Programming will be disabled The programming option will come into effect when the mode of programming is normal and not in Auto Programming Mode When you enable this option every time when you program the device the device FRONTLINE ELECTRONICS E Topview Programmer A Software User Guide Chapter 4 Progra
41. nts of the selected device against unauthorized reading Some of the microcontrollers are having two levels of program memory lock and remaining devices have three level program memory security Apart from two and three level protection some devices are having sector wise three level protection P89LPC9xx family devices are having that kind of protection facility In this family each sector is having three bits for protection To protect the contents of flash memory click Protect from the Device menu Now a dialog box for protection setting opens up Device Pr ir t r aishie ictal omy BAPAT eee ki aiin Tier cee kr Pues Pigeon F Dibe wie F Cubi lima Eein Security bit 1 When this bit is set accessing the internal flash memory area from the external program memory using MOVC instruction will be disabled and further programming is also disabled FRONTLINE ELECTRONICS 72 Topview Programmer A Software User Guide Chapter 6 Programming Operation Security bits 1 and 2 If both of these bits are set following functions are disabled e Accessing the internal flash memory area from external program memory using MOVC instruction e Further Programming e Reading from the device Verify operation Security bits 1 2 and 3 If all the security bits are enabled following functions are disabled e Accessing the internal flash memory from the external programs using MOVC instruction e Further Progra
42. of the programming software will be kept in our website for your convenience Keep visiting our download section for the latest software updates The programmer s software has built in facility to check for upgrades on its own Whenever it finds a new update it automatically updates the programmer s built in monitor program to accept the new devices If you need to add an immediate support to any of these devices kindly send sample devices along with your purchase order enabling us to complete the testing for your requirement FRONTLINE ELECTRONICS 10 Topview Programmer A Software User Guide Chapter 2 Supported Devices fe S SOS O SI a Since we have conceived designed and manufactured these Device Programmers ourselves you are assured of our wholehearted dedicated support for your future up gradations OTP Devices 1 87C51MB2 11 87C575 2 87C51MC2 12 87C654X2 3 87C51RA2 13 87C660X2 4 87C51RB2 14 87C661X2 5 87C51RC2 15 87C748 6 87C51RD2 16 87C749 7 87C524 17 87C750 8 87C528 18 87C754 9 87C552 19 87CL52X2 10 87C554 20 87CL54X2 Flash Devices 1 89C535 5 89C669 2 89C536 6 89C738 3 89C538 7 890739 4 89C557E4 EEPROM Devices 1 AT25010 7 AT25256 2 AT25020 8 AT25320 3 AT25040 9 AT25640 4 AT25080 10 AT25HP256 5 AT25128 11 AT25HP512 6 AT25160 We at Frontline Electronics are trying our best to give maximum utility to our Topview Device Programmers with our wholehearted effo
43. pes of Programming Data You can load any specific buffer with the program data from any file Program can be loaded in both Intel Hex and Binary formats The programming code can be loaded from any file to any specific buffer or to many buffers at the same time using both of these formats In the Intel Hex format the information on address of the locations comes in the file itself In Binary format you need to Key in respective address during buffer operations Following are the types of programming code data handled by the device programmer e One Time Programmable ROM with Program Encryption Table e One Time Programmable ROM with User Parameter Table e Flash memory area FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 5 Programming Environment iE 5 2 1 OTP ROM with Program Encryption Table The OTP devices of the Philips microcontrollers except P87LPC76X have OTP memory area to store Program code and 32 64 bytes of Program Encryption Table The OTP memory starts from 0000H and the ending address varies according to the device capacity The address of the Program Encryption Table starts from the next address after OTP area For an example in P87C51 the OTP memory of 4K starts from 0000H to OFFFH and the Program Encryption Table is available from 1000H to 103FH When you load the buffer meant for this device using the file all the program code between 0000H and OFFFH is transferred to
44. ptions e Erase Full Device and Security Bits e Erase Only Used Blocks As per Data in Buffer e Erase Select Blocks First option will erase full flash area where as the second and third options will erase part or full device according to the selection of blocks In the second option the blocks for erasing are selected by the programmer itself automatically according to the data loaded in the buffer All the blocks that contain any data other than FFH 00H for P89LPC9xx family are considered as the block containing the program or code If any block has only FFH 00H for P89LPC9xx family in all the locations it will not be selected for erasing The last option is user selectable Also the second and third options are not available if the security bit is programmed already In this case only full chip erase is possible After selecting required options and blocks click over OK button to start erase operation The erasing operation is indicated by another window Derc Erig Ei irii Cirat 5 mae eha FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation IES S is 6 8 Blank Check Device When using this command the device contents are read and compared with the blank data FFH After erasing the device ensure that the device is blank by using the blank check command Do not start programming immediately after erase You can make the programmer to check for the full
45. r is used to program the target microcontrollers soldered in the application hardware using either ISP or ICP mode For more information on this refer the Chapter 7 Programming the soldered Device in the Target Hardware Two point LEDs indicate Power On and Busy conditions of the programmer 1 5 Packaging Your package contains the following e Programmer Hardware mounted in the sleek wooden box e Power supply e Serial port cable e ICP ISP programming cable e Programmer user Guide e CD containing programmer software and other useful information FRONTLINE ELECTRONICS Topview Programmer A Software User Guide FRONTLINE ELECTRONICS 6 Topview Programmer A Software User Guide Chapter 2 Supported Devices fn ________ A V AA AS SS 2 1 Introduction Topview Programmer A is an exclusive professional programming environment to support as many 8031 Derivative microcontrollers as possible manufactured by the Philips Semiconductor This chapter gives you the list of devices supported by the programmer Built in facility is available to support many other microcontrollers from the Philips stable in future Apart from these controllers the programmer supports 24XX 25XX and 93XX families of EEPROM devices from both Atmel and Microchip 2 2 List of supported Devices The following list gives all the supported devices meant for Topview Programmer A All these devices are extensively tested to the exact specification
46. r key or OK button to initiate read operation and you can watch this operation Hrad iran Deve Repi fe PLEA DH Dy ist Damai FRONTLINE ELECTRONICS 70 Topview Programmer A Software User Guide Chapter 6 Programming Operation 6 11 Verify Device Verify command enables you to verify device flash memory contents with flash buffer for confirmation For the most of the devices the verifying voltage is 5V Some of the devices have verifying voltage as 2 7V 5V and 6V These verification voltages can be selected from Verification command from Setting menu Select Verify command from Device menu You can see a window popping up to prompt you to select either the complete device for verification or a block of flash memory Click OK button or Enter key to start the operation 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 Per tly Draka tat ri teu Hoes Taine Siting Aedes i bers Tag ace FFH Fiia Guia dike OH hiie Dice Dt Faia Cud M APP I gatis LF mr komu Saeras at Bey aj ar I Sai Sa at IG Wek pii OF aj This window also sports a facility to store all this mismatch information in a file FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation IE SSS ss is 6 12 Protect Device This protection command helps you to secure the flash memory conte
47. ram the Device This is the main command enabling you to program flash memory in the selected microcontroller or EEPROM device Basically this command programs the flash memory space with the contents of the flash buffer There are two options available for programming First is erasing the device before programming and other option is verifying the flash contents after programming You can set these options in Setting gt Options When the programming command is activated a dialog box will appear hiim Hrga Fie ea irg er TO Dirven Eria iaiia Une Dft Gatirguddmau jon Opie dae Peopereng z Page State Bere ka JL eat Veica tr FEH ieiet oo 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 For the devices having Boot Vector and Status Byte or Bit one more option is available Programming Status Byte or Bit to zero and Boot Vector to default value after programming the flash area Check the FRONTLINE ELECTRONICS 68 Topview Programmer A Software User Guide Chapter 6 Programming Operation eee corresponding check box to program these bytes After selection click over OK button to start programming operation Again the programming operation is indicated in a dialog box with a progress bar Pare riga Deve Pager Situ Chip Erna OF Humber ol vies Fugramad 75s a S tirdaruj Cen cht
48. range is used for other relevant operations like blank check verify operations Bother A gr Ful nr Dreamer I miera Geter TO Doras E rg Batini wF DF Sharing Sten DUE 6 6 3 Verification Verification of the device after programming can be carried out in 5V normally For some of the devices likes 89C51RX2 89C66X 87C76X have facility to verify the programmed data giving different supply voltages The following dialog box indicates all the possible voltages meant for the verification FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation Per lather kill 1 Seles Feed ram Voll ge ri a re ov E w 6 6 4 Set Encryption Table Address In most of the OTP devices an Encryption Table is present inside the controller For the devices which have this table the Set Encryption Table Address button will be enabled Using this button chose the Encryption Table start address and end address or enable the full table Few of the tables have 32 bytes and others have 64 bytes in the Encryption Table FRONTLINE ELECTRONICS EJ Topview Programmer A Software User Guide Chapter 6 Programming Operation FEE SS ss eae 6 6 5 Set User Parameter Table User Parameter Table is available only in the 89LPC76X family devices For other devices this setting will be disabled A maximum of 32 bytes are present Your user data can be stored in this area The a
49. rased The dialog box meant for this sector protection selection is given here FRONTLINE ELECTRONICS EZE Topview Programmer A Software User Guide Chapter 6 Programming Operation Urco Prolection aci Priman tr ITT EHEH ka OTT I adie HILU Sector IDE to PH z kariri eee g D la Pushes grama ad Vaga burg ke aai Sabu E Lpi ims Dope I Di esaii UPC kaki Fiji Bree ira aka E Lie i Desbr PAL retrace Page Brace aed eta Eu Dinka HOC Iniciar Pap Cr ed Seks Ce MD ckls HOC beirut Page Eee ed ee ee This box indicates all the possible sectors and also the protection options available for these sectors You can select different protection for each sector The selected settings for each sector are displayed in the list box You can get same setting for all sectors by choosing All Sectors option and picking up the protection bits Now all sectors will have the same protection setting For 87LPC76X series of controllers the available security bits are as shown here Uere Praiection FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation IES i ar Security Bit 1 If itis set then no further programming can be done Security Bit 1 and 2 If both the bits are enabled then further programming and read back Verify facilities are disabled If you read the protected device you will get only FFH from all the locations After selecting the lock bit
50. rding to the addresses in the file When a particular buffer is selected then the data in the file will be loaded to that buffer only FRONTLINE ELECTRONICS 40 Topview Programmer A Software User Guide Chapter 6 Programming Operation i ao a ais K As an example consider the device P87LPC760 which has 1K Bytes of program memory and 32 bytes of User Parameter Table When a file is loaded with Auto option then the data in the address range shown below will be loaded to respective buffers For Intel Hex format Program Memory 0000H to O3FFH User Parameter Table FCEOH to FCFFH User Configuration Register 1 FDOOH User Configuration Register 2 FDO1H When you use Binary file format Program Memory 0000H to O3FFH User Parameter Table 0400H to 041FH User Configuration Register 1 0420H User Configuration Register 2 0421H The loading process is displayed in window as shown below Lariang Laidrg rece D rp kar SSS After the completion of command the loaded details is displayed in a small window FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation 1 Fie Leader Sarco ai Deal F kar Buren DH ia FFH 6 4 Save Buffers This command can be used to store the buffer contents to a file To acti vate this command select Save As from File menu When this command is activated a dialog box will come at the centre of the sc
51. reen to get parameters like filename buffers starting address and ending address and file format File Fami irisi rie Bree Firrt ui Pidie Euaig iii T T ren Conga ir Fagen Eripe Fr Ene Fimer Eirg tas C FRONTLINE ELECTRONICS 42 Topview Programmer A Software User Guide Chapter 6 Programming Operation EE lt aaa II a ae Here you can select full flash buffer area or a part However for both Encryption Table and User Parameter Table only full buffer can be stored in a file After selecting the buffers and file format enter the address range and filename Use Browse button to select the existing file Click over Save button to store the selected buffer contents to a file The storing process is displayed in a small window as shown below Gejin i rap kris aver Flees bitimi Corie The completion of the storing process is indicated in a dialog box rt Ment Ly Ceddin tel See ay as 6 5 Device Selection Topview Programmer A supports 1 OTP versions of 8051 family Philips microcontrollers 2 Flash versions of 8051 family Philips microcontrollers 3 Atmel EEPROM of both 24Cxx and 93Cxx devices 4 Microchip EEPROM of both 24Cxx and 93Cxx devices FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation The microcontrollers can be programmed in Parallel or ISP or ICP mode as applicable to the selected device Devices suppor
52. rity Bit Status iid aaa 80 6 19 Cyclic Redundancy Check 1iaisss esse 81 6 20 Program Device Configuration ec eeeeeeeeeeeseeeeeeeeeeteeeeeeeeeeeeees 82 6 21 Program Boot Vector and Status Bytes eeen 83 Chapter 7 Programming the soldered Device in the Target Hardware 7 1 IntroductiON ssesesassmes steam aties teeidiseisst distdtu iui b si 85 7 2 ICP ANd ISP Modes iidda esse 85 7 3 Poweron Reset Code Execution ceccecseceseeeeereeeeeeeeeeenreeeeeeees 88 7 4 Hardware Activate of the Boot Loader iid aaa 88 9 Boot ROM tx 20 09 Scrat ae aee ar is sr ai akas 89 76 Status Byt Bits 4 4 eid k i AS Arts 89 TA BOOtNGCIOF eocvccccccsesctesncateevecaveevs colicencenecarcasechcesnccasuedcedenteubtewe tin debe de 90 7 8 Basic Requirements in Target Hardware to get ISP facility 90 7 9 Connecting the Target Hardware to the Programmer 00 91 FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 1 Introduction SS SS I S S I SSS OS S III SEA 1 1 Welcome Thank you for purchasing Topview Programmer A The Topview Device programmer is meant for programming many 8031 Derivatives manufactured by the Philips Semiconductor The list of devices supported by this programmer is available elsewhere in this manual The programmer is an add on card to the standard personal computer througt the serial port Suitable software is made available to
53. rts Programmer s Hardware and software come with built in facility to take care up gradations in future FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 2 Supported Devices DIEVU EU VI SES O SED IU eT As of now this Topview Programmer A is the most advanced device Programmer available for this cost anywhere If by chance any of the future Philips device demands any special facility not possible in the existing hardware and software we at Frontline Electronics don t assume any responsibility for the same FRONTLINE ELECTRONICS 12 Topview Programmer A Software User Guide Chapter 3 Getting Started e IU VESS TS OU IET O SIA ESIEE 3 1 Introduction This chapter gives you the complete picture on the programmer and takes you to install the same in your personal computer 3 2 System Reguirements The Minimum configuration is e Personal computer with win 9X 2000 XP e A Serial port e Free hard Disk space of about 7MB e Internet Explorer of version 4 0 or above 3 3 Installing Software Insert the CDROM supplied with the programmer pack If the CD drive is enabled with Auto Execution facility a batch file starts executing and the Frontline Electronics Home page opens up A link to Topview Programmer A exe is provided in the first page Just click the link to install Topview Programmer A for Philips Controllers software Otherwise run the executable file Setup exe a
54. s Pija v rti 1 After completing all the operations selected for the first device the programmer will prompt you to insert next device Cinli i J heen tr liet canoe Click OK button or press Enter Key to program next device The total copies and the programmed copies are displayed in the dialog box Otherwise press ESC or click over Cancel button to quit the auto programming operation FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation IE ss is 6 7 Erase Device This Erase command can be used to erase whole of flash area ora part of flash memory in the selected microcontrollers In few microcontrollers the total flash memory area is divided into many blocks and sectors or pages This erasing operation is not possible in OTP controllers for the obvious reason that these devices are one time programmable and not re programmable Sector and Page Erase For the devices which support only full chip erasing the erase command directly goes to erase whole of flash memory without asking any option For the devices with block erase options the command will prompt a dialog box to enable you to select the blocks for erasing as shown here ime pil t Opin C Erie Fal Dre dod 5 mouv ti Bat TO Erse ds Liimid rege las dirs m Eras Daci inchs FRONTLINE ELECTRONICS 64 Topview Programmer A Software User Guide eee The dialog box gives you following o
55. s click OK button to protect the device The lock bits are properly programmed as per your requirement and the status is displayed in a small window mierna LJ manim impi Smed DE 6 13 Initialize Device The initialize command erases the whole flash memory area security bits Boot Vector and Status Byte into their initial erased states This command is available only for P89CRx P89CRx2H P89CRx2 and P89C66x family microcontrollers To activate this command select Initialize command from Device Menu The progress and completion of the command is indicated by a progress bar as shown below FRONTLINE ELECTRONICS 76 Topview Programmer A Software User Guide Chapter 6 Programming Operation ce Fi a Le Deve kiiij 3 ores 6 14 Program Encryption Table This command can be used to program the Encryption Table array Hrapram irerygiien ladle d Tate Pate mr Micke U Takin End Adder F When the Program Encryption Table command is activated a dialog box mentioned above will appear After entering the Starting and Ending addresses or selecting the full table option click over OK button to start programming of Encryption Table The command completion is displayed as shown below niera ALA Eroa Robie prsa hara DE FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation IEEE S S SA 6 15 Program User Parameter Table This command
56. s will not be activated Both Hex and Binary format data files can be read into this buffer from the disk The contents of this buffer can also be saved in the disk Following commands enable you to interact with this buffer during programming operations e Edit e Locate e Clear e Fill e Copy e Checksum 6 2 2 1 Load Data into EEPROM Buffer A file can be loaded into the EEPROM buffer by using Load File command in the File menu Two file formats are supported here to load the data into the EEPROM buffer 6 2 2 2 Storing Data in EEPROM Buffer to File The contents of EEPROM buffer can be stored in a file in either Intel Hex or Binary format using Save as command from File menu FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation 6 2 2 3 Edit EEPROM Buffer The contents of the EEPROM buffer can be viewed using this command You can see a window coming up indicating the contents of the buffer You can also see the contents displayed both in Binary and ASCII formats These contents can also be edited for any modification 6 2 2 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 scroll bar at the right side of the window When you activate this command from the tool bar you may notice a window popping up asking you for the starting address FRONTLINE
57. sh buffer as program rather than as data You can use this facility to modify the program lines at the given address or change modify the data When you select this command a window with the name Buffer Disassembly View will be opened up and the contents are displayed as program lines as shown here When you see this window then you can modify any instruction by double clicking over that instruction Now you should see a dialog box appearing with the current instruction at the address as shown here FRONTLINE ELECTRONICS EN Topview Programmer A Software User Guide Chapter 6 Programming Operation Lil Prog ran Line Kriks the Hes Prge Las You can enter a new instruction or change the data or address and press Enter Key or click over Store button to record the changes in the buffer Note that you cannot change an one byte instruction into a two or three bytes instruction for obvious reasons An error message may indicate this condition A three byte instruction can be converted into 1 2 byte instruction with NOPSs 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 clicking anywhere in the window and then select the required command from the floating window 6 2 1 8 Flash Buffer Enter Program This command is meant for
58. sneeeeeeeeeaees 24 5 4 1 Flash Buffer nnaman nahan man 24 5 4 2 Program Encryption Table Buffer oo eee eeeeeeeeee 26 5 4 3 User Parameter Table Buffer cee a 26 5 4 4 EEPROM Buffer for Serial EEPROM Devices 26 Chapter6 Programming Operation 6 1 Introductions snina anaa yE IE 27 6 2 Buffer Operations user vate d tad aijo tt 27 6 2 1 Flash Buffer Operations s 27 6 2 1 1 Edit Flash Buffer aeee 28 6 2 1 2 Locate Flash Buffer 0 aaa 30 6 2 1 3 Clear Flash Buffer eeen 30 6 2 1 4 Fill Flash Buffer cee eeeeeeeseeeeeeeeneeeeeeeeeeeees 30 6 2 1 5 Copy Flash Buffer seses 31 6 2 1 6 Checksum Flash Buffer seses 31 6 2 1 7 Flash Buffer Disassembly eee 32 6 2 1 8 Flash Buffer Enter Program eee 33 6 2 2 EEPROM Buffer 0 0 eceeceeceeeeeeeeeeeeareneceeeeeeeaeeateneeeeeees 35 6 2 2 1 Load Data into EEPROM Buffer seee 35 6 2 2 2 Storing Data in EEPROM Buffer to File 35 6 2 2 3 Edit EEPROM Buffer eee eeeeeeeeeeeeeeeneees 36 FRONTLINE ELECTRONICS Topview Programmer A Software User Guide 6 2 2 4 Locate EEPROM Buffer sssr 36 6 2 2 5 Clear EEPROM Buffer neee 37 6 2 2 6 Fill EEPROM Buffer essees 37 6 2 2 7 Copy EEPROM Buffer eeen 38 6 2 2 8 Checksum EEPROM Buffer seee 38 6 3 Load BUTEIS k nnman innnan a seiserseestesent 38 6 4 Save BUE S see aaa tt gts ss 42 6 5 Device Selection oo eeecceeeseeeeeeeeeeeeeeeeeeeeeeaeeeeaeeneseeseeeeaeeaeeaee
59. t I O lines for communicating with the host system FRONTLINE ELECTRONICS 86 Topview Programmer A Software User Guide Chapter 7 Programming the Soldered Device in the Target Hardware C KARI US SIT S ID S DU OO a I S II S I SO ____ _ The following table gives more clear picture about both ISP and ICP In ISP mode programming is done by serial port with the help of programming software kept atthe Boot ROM Basic Reguirements Reset Circuit Clock Circuit Serial portlevelshifter for programming using PC serial port Lines used for Data Transfer TXD RXD GND Associated with Special Registers BootVector and Status Byte Bit and Boot ROM For some devices the device cannot be erased if the device is protected The programming commands and data are transferred in Intel Hex format BootVector should have the starting address of the Boot ROM for proper operationof ISP mode In P89LPC9XX devices the ISP monitor is placed in the last 1K Byte space When you erase full device this ISP monitor also gets erased For proper ISP mode operation you need to program last 1K Byte with proper monitorto start ISP again FRONTLINE ELECTRONICS Topview Programmer A In ICP mode a separate hardware provided in the device itself takes responsibility to programthe device using two I O port lines One line is for serial clock and other line is for data transfer Basic Requirements R
60. ted by Topview Programmer A Version 1 0 OTP version devices of 8051 family Philips microcontrollers Programming Mode Availability Parallel C U P87C51 z z z z P87C51FA P87C51FB zz P87C51FC P87C51RA P87C51RB Zz Zz P87C51RD P87C51X2 z z P87C52X2 P87C54X2 zz Z P87C58X2 P87LPC760 P87LPC761 s z N lt o 0 Z P87LPC762 P87LPC764 lt o 0 No No No No No No No No No No No No No No No No No No No P87C51RC lt o 0 FRONTLINE ELECTRONICS 44 Topview Programmer A Software User Guide Chapter 6 Programming Operation Programming Mode Availability Device Flash version devices of 8051 family Philips microcontrollers Programming Mode Availability rari sp ee 1 Device FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation Programming Mode Availability Parallel C P89C51RC P89C51RD P89C51RB2H z z z o o P89C51RC2H P89C51RD2H P89C51RA2 z z z P89C51RB2 P89C51RC2 P89C51RD2 ziz P89C660 P89C662 P89C664 Zz Zz P89C668 P89C60X2 P89C61X2 z z z XA G39 XA G49 P89LPC901 2 Z Zz lt o 0 P89LPC902 P89LPC903 P89LPC904 i o o 0 0 lt oO n P89LPC906 P89LPC907 P89LPC908 Zz Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No No No No No No No FRONTLINE
61. ted timing requirements all by itself along with the programming software kept at the higher location ISP mode uses the serial port of the device for programming and you can program the flash memory area keeping the controller mounted in the target hardware The device can be programmed with the application code without removing the device from the PCB Also all the programming FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 7 Programming the Soldered Device in the Target Hardware fn DSSS SSS functions are available A previously programmed device can be erased and reprogrammed Since these devices come with non erasable built in subroutines located in ROM area you can easily download your application code through the serial port by calling relevant routines To incorporate this ISP facility in your hardware you need to keep a connector exclusively meant for this in your hardware The ISP function uses five pins TXD RXD VSS VCC and VPP The basic circuit required for ISP mode is given here 5V 12V Tolerant XTAL2 TxD P89C60X2 Vss P89C61X2 The ISP mode is closely associated with the Boot ROM which contains the programming routines and special registers Status Byte Bit and Boot Vector You are going to see how to use this ISP mode effectively in the coming paragraphs ICP mode is almost similar to ISP except it does not use the device s serial port for communication It uses two por
62. the flash buffer and the data between 1000H and 103FH will be made available in the buffer of Program Encryption Table Similarly during file storage operation contents of all the buffers will be stored in the respective memory location meant for that selected microcontroller 5 2 2 OTP ROM with User Parameter Table The P87LPC76X family devices have OTP ROM and 32 bytes of User Parameter Table The program memory address starts from OOOOH The ending address depends upon the capacity of the selected device The actual physical address of User Parameter Table lies between FCEOH and FCFFH In Hex file format the actual address of the User Parameter Table is FRONTLINE ELECTRONICS 22 Topview Programmer A Software User Guide Chapter 5 Programming Environment aE always defined as the one from FCEOH to FCFFH When using binary format the actual address is mapped to the location immediately after the program memory space As an example consider the device P87LPC760 which has 1K Bytes of program memory and 32 bytes of User Parameter Table For Intel Hex format Program Memory 0000H to 03FFH User Parameter Table FCEOH to FCFFH User Configuration Register 1 FDOOH User Configuration Register 2 FDO1H When you use Binary file format Program Memory 0000H to 03FFH User Parameter Table 0400H to 041FH User Configuration Register1 0420H User Configuration Register 2 0421H During buffer storin
63. tings for each sector are displayed in the list box You can get same setting for all sectors by choosing All Sectors option and picking up the protection bits Now all sectors will have the same protection setting For 87LPC76X series of controllers the available security bits are as shown here ere Pralection FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation DIEVU DU SEA U ISIN III S Security Bit 1 If it is set then no further programming can be done Security Bit 1 and 2 If both the bits are enabled then further programming and read back Verify facilities are disabled If you read the protected device you will get only FFH from all the locations 6 6 9 Multiple Device Programming More than one device can be programmed one after the other using Multiple Copies option To program more than one copy check the box with Multiple Copies and enter the number of copies in the Number of Copies space After completing all settings click OK button to start auto programming During programming all the selected functions are sequentially completed and indicated in a separate window for your convenience The window also sports a progress bar FRONTLINE ELECTRONICS 62 Topview Programmer A Software User Guide Chapter 6 Programming Operation Progar Drie Caiga or Prepa Bori econ L Siain Epin Masi Wank Protechon Hulda Copa
64. urrently selected For some devices it will be two bytes and for others it will be three bytes To activate this command select Read Signature Bytes from Device menu FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 6 Programming Operation nn When the command is activated the signature bytes are read from device and displayed as shown below For P87LPC767 device hiami Lira 1 DOH Drie OF Press Space Bar Esc or Enter key or click over OK button to come out of this command 6 18 Read and Display the Security Bit Status This command can be used to view the status of the lock bits provided for the protection of the program stored in the device To activate this command select Read Security Bits from Device menu This command will read and display the security bit status as shown below For two level protection eg umiiy Ole src tri Durpe kapere lepre puie Seater mmol Enabled q FRONTLINE ELECTRONICS 80 Topview Programmer A Software User Guide Chapter 6 Programming Operation For three level protection Rec uriiy Kita IET p Prepni BIMI irsincion Fretum Progumrurg For sector wise protection Sacuri y Hitu ED fire SPEDE t paii s lmnop Hupe AF Pap Prague reisi F a rt Urfrgruei Une iizfregprrei Pag Sonepar ra ged Urfrguaumad Une Page lacus auar ree Liege LrFugaanad LrPrguavami Prague Sen Pa re 6 19 Cyclic Redundancy Che
65. vailable in the folder Topview Programmer A You may select the destination path during installation The installer package will guide you through the installation process FRONTLINE ELECTRONICS Topview Programmer A Software User Guide Chapter 3 Getting Started CIR J KIA II ea eee 3 4 Installing Hardware Connect the power supply to the programmer hardware at power connector Connect the programmer to the host computer using serial port cable Switch on the power supply to the programmer Execute the application Topview Programmer A from the Start gt Program gt Topview Programmer A An opening screen comes up with an About dialog box If the PC is not able to establish communication through the serial port COM2 is default it will give an error message Cannot Establish Communication This indicates that the assigned COM port is not available for this application Now select the Settings option and use Serial Port to change the COM port to start communication If the selected COM port is free the communication is established and the device programming can be started FRONTLINE ELECTRONICS Era Topview Programmer A Software User Guide Chapter 3 Getting Started IE i i 3 5 Programming 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 manufacturers reference Press OK button to c

Download Pdf Manuals

image

Related Search

Related Contents

AtoM Work in Progress_Manual de Utilizador  Acer Aspire AZC-606-MO22  813 05 00_Rev2_ManualUnificado_DVD GAME  平成23年第8回小金井市教育委員会定例会議事日程 平成23年8月9日  調達要求番号 DP245 ー 6422 ー 007 作成部課名 資材計画部 資材  2009 - Austin Al-Anon  取り扱い説明書  Descargar ficha técnica  

Copyright © All rights reserved.
Failed to retrieve file