HandyWriter User¢s Guide (Fifth Edition) Copyright Ó 2002 by HOLTEK SEMICONDUCTOR INC. All rights reserved. Contents Contents Introduction ..........................................................................................................1 Installation ............................................................................................................2 Programming an OTP Chip with the HT-HandyWriter ......................................3 Run the HT-HandyWriter software...................................................................................3 LPT ¾ Setup the printer port...........................................................................................3 !Body ¾ Select the OTP body type .................................................................................5 Option ¾ Check the IC option .........................................................................................5 HT-HandyWriter programming functions .........................................................................5 HT-HandyWriter additional functions ...............................................................................6 System Messages ..............................................................................................10 The Placement of OTP Chip and OTP Adpater ...............................................12 HT-HandyWriter User¢s Guide Introduction The Holtek HandyWriter was specifically developed to program the range of Holtek OTP MCU devices allowing users to easily and efficiently burn their programming code into the OTP devices. The advantages of this writer include its small and easy to manage size, ease of installation and easy to use special features. The structure of the writer includes the following components and is shown in Figure 1 below: · Single 40 pin DIP TEXTOOL · Single 25 pin printer port D-type female connector · Single 96 pin VME connector To use the HT-HandyWriter requires the following: · 16V power adapter with minimum current rating of 500mA. For best purposes please use the adapter included with the HT-HandyWriter carton. · IBM386 compatible or higher spec. PC · Win95/98/NT/2000/XP Windows operating system · HT-IDE3000 microcontroller development system · If the writer is directly connected to the PC, the HT-ICE is not required. 9 6 P IN V M E C o n n e c to r D C J A C K P o w e r S w itc h 4 0 P IN 2 5 P IN D T y p e C o n n e c to r D IP T e x tto o l Figure 1 1 HT-HandyWriter User¢s Guide Installation · To directly connect to a PC, use the printer cable to connect from the HT-HandyWriter¢s 25 pin D-type connector to the printer port of the PC as shown in Figure 2. To connect via the HT-ICE, first connect the HT-HandyWriter to the VME 96 pin socket CN1 on the HT-ICE then connect the HT-ICE to the PC¢s printer port using the printer cable as shown in Figure 3. · Install the HT-IDE3000 system software, to do so please consult the HT-IDE3000 User¢s Guide P r in te r c a b le O T P H a n d y W r ite r 2 5 P in D P C P r in te r p o r t ty p e c o n n e c to r P C Figure 2 P r in te r c a b le H T -IC E O T P H a n d y W r ite r P C H T -IC E C N 1 O T P H a n d y W r ite r 9 6 P IN C o n n e c to r Figure 3 2 HT-HandyWriter User¢s Guide Programming an OTP Chip with the HT-HandyWriter Run the HT-HandyWriter software Run the HT-HandyWriter software under the Holtek Development System icon in the main Windows programs menu as shown in the Figure 4 below: Figure 4 LPT ¾ Setup the printer port After running the HT-HandyWriter software program, a window as shown in Figure 5 will be shown, however it is first necessary to setup the correct printer port. By selecting ²LPT² command, a sub menu as shown in Figure 6 will be displayed. From here LPT1, LPT2 or LPT3 can be chosen. If the OTP HT-HandyWriter is connected to the HT-ICE, then select the printer port to which the HT-ICE is connected. For example if the HT-ICE is connected to LPT1 then select LPT1 from Figure 6. If the OTP HT-HandyWriter is directly connected to the PC printer port then choose the relevant printer port in the same way. 3 HT-HandyWriter User¢s Guide Figure 5 Figure 6 4 HT-HandyWriter User¢s Guide !Body ¾ Select the OTP body type By clicking on ²!Body², [Set Body] dialog will be shown as Figure 7. If there is no IC type identifier stored in the OTP chip, all the read/write operations will be completed according to the chip type that selected by users. Figure 7 Option ¾ Check the IC option · Option When the [Option]/Option instruction is selected, a pop-up dialog, as shown in Figure 8, will be displayed. It will illustrate the option that comes from opened file or OTP chip content. · Print This instruction will print the option comes from opened file or OTP chip content. Figure 8 HT-HandyWriter programming functions Figure 5 shows the internal functions of the HT-HandyWriter. The 9 buttons shown at the right hand side of this window each represent an instruction, the function of which is explained below: · Open This opens a file with the .OTP suffix, which will load the program contents into the PC ram memory. This data will be accessed when programming the relevant OTP device. After selecting ²Open², the file dialogue box will be displayed from which the correct folder and file name can be chosen. The file content will be displayed in the message window after being opened, and the checksum of the opened file will be shown underneath the ²Read² button. 5 HT-HandyWriter User¢s Guide · Program This instruction encompasses two functions. The first is to place the program data in the PC ram memory into the OTP device, the second is a verification check to verify that the actual data burned into the OTP device is the same as that in the PC ram memory data. After verification the result of this process will be shown on the HT-HandyWriter display. · Verify The contents of the presently loaded OTP device will be read and checked that it is the same as the data loaded into the PC ram memory, the results of which will be displayed on the HT-HandyWriter display. · Blank Check Check that the presently loaded OTP device has not previously been written to. The results of this check will be displayed on the HT-HandyWriter display. If the device is not empty, the memory area that has been written to will also be shown on the display. · Lock This instruction will implement the protect function in the OTP device preventing the contents of this IC from being read. After programming an OTP device, this instruction can then be used to protect the contents. · Auto This instruction will execute in order the three instructions Blank Check, Program and Verify. If any of the instructions do not execute correctly, the process will be halted and the following instruction not executed. There is also a lock function, which can be selected to prevent the data from being read out after programming. This lock function should first be selected before the Auto button pressed. · Read This instruction will read out the contents of the OTP device presently loaded into the HT-HandyWriter and store them in the PC ram memory. This instruction will also cause the file checksum to be displayed underneath the ²Read² button. If required, this data can also be stored in a file with the .OTP file suffix. · Chip Info This instruction will read power-on ID, software ID, ROM size, option size from IC and display ²Get info from chip² message to inform users the listed information comes from IC interior. If there is no such information inside IC, the specification defined by ²!Body² command will be shown. It will display ²Get info from ini² to inform users that above information comes from system setting. HT-HandyWriter additional functions · Duplicate - automatic OTP detection and duplication This function enables multi-OTPs of the same type to be continuously programmed. After opening the file using the Open instruction and inserting the OTP into the TEXTOOL socket, the HT-HandyWriter will automatically detect the device and then proceed to implement the functions that have been setup. In this way, after the desired .OTP file has been opened, it is only necessary to place the correct device in the socket to program a large number of devices. Before using this function, it is first necessary to setup the Auto-Program functions that are required. To setup these functions, select the [duplicate]/Setup instruction as shown in Figure 9. The Auto-Program window as shown in Figure 10 will then be displayed from which the user can select the required functions from the Blank Check, Program, Verify and Lock list. 6 HT-HandyWriter User¢s Guide When the [Duplicate]/Enable instruction is selected as shown in Figure 11, the Auto-Program function will be activated. After this instruction has been activated, it is now possible to proceed with multi-chip programming. After the chips have all been programmed, the Auto-Program function can be switched off, by again selecting the toggle action [Duplicate]/Enable instruction as shown in Figure 11. Figure 9 Figure 10 7 HT-HandyWriter User¢s Guide Figure 11 · S/N Writing Serial Numbers The serial number function allows a user specified serial number to be written into each device. This serial number and its address is specified by the user and is written into the Lower Byte address of the Program ROM for each device. After a serial number is written into a device, an auto-incrementing function ensures that subsequently programmed devices will contain serial numbers incremented by one each time. First it is required to setup the initial data and fixed address of the first serial number. After selecting [S/N]/Setup, the window, as shown in Figure 12, can be used to input the initial serial number¢s data and its corresponding address. After the initial data and address information has been setup, [S/N]/Enable should be selected to activate the serial number function. When the serial number function is activated, the present serial number¢s corresponding address and data will be displayed at the lower right hand side of the main window. During the programming stage the first device to be programmed will contain the previously setup serial number data in its Program ROM at the indicated address. Subsequent devices will contain serial numbers incremented by one for each additional device. To reset the order of serial numbers, again select the [S/N]/Setup function. 8 HT-HandyWriter User¢s Guide Figure 12 Figure 13 9 HT-HandyWriter User¢s Guide System Messages ® HT-HandyWriter Connect to LPT1. OTP HT-HandyWriter already connected to LPT1. ® Cannot connect to ICE Connection problems between the HT-HandyWriter, the HT-ICE and the printer port. ® Invalid EV Chip! The HT-HandyWriter is unable to support the EV chip in the HT-ICE. The HT-ICE must be changed for correct operation to take place. ® Connect to HT-HandyWriter through ICE The HT-HandyWriter is successfully connected via the HT-ICE. ® Cannot find HT-HandyWriter, please connect it to ICE Or this HT-HandyWriter is an old version The HT-ICE is already connected to the printer port, but the HT-HandyWriter is not connected to the HT-ICE. It may also be that an old version of the HT-HandyWriter is being used (THANDYOTP-A) so the system is unable to detect a good connection. If the former case, please connect the HT-HandyWriter directly to the ICE. ® File PID: ADh, OID: 50h The opened files recorded power-on ID is ADh, the software ID is 50h. ® Invalid OTP file format The opened file format is incorrect. ® The chip PID: ADh, OID: 50h doesn¢t match with the file PID: ADh, OID: 51h Are you sure to continue? The type of OTP chip and the chip supported by the opened file does not match. ® Chip ROM size: 0400h, File ROM size: 0800h. System will set ROM size as 0400h. Are you sure to continue? The OTP chip has 400h of writable space, the file content is 800h, so the HT-HandyWriter can only write 400h of data into the contents of the OTP chip. ® Addr: xxxxh, Data: yyyyh, Rdata: zzzzh Program/Option Verify Failed! Errors exist in either the program or option verification information. The reason is because the data zzzzh at the address xxxxh in the OTP chip is not the same as the data yyyyh in the PC ram memory. ® Addr: xxxxh, Data: zzzzh Not Blank! The OTP chip is not blank as the address xxxxh contains the data zzzzh, inhibiting the implementation of further instructions. ® Chip mismatched! The OTP chip presently in the HT-HandyWriter and the OTP chip mentioned in the .OTP file do not match, inhibiting the implementation of further instructions. ® Chip is locked! The OTP chip presently in the HT-HandyWriter is locked, inhibiting the implementation of further instructions. 10 HT-HandyWriter User¢s Guide ® No data to verify/program! Before executing the Verify or Program instruction, the .OTP file must be loaded using the ²Open² function in the HT-HandyWriter system software. 11 HT-HandyWriter User¢s Guide The Placement of OTP Chip and OTP Adpater The available positions of the OTP chip and OTP adapter TEXTOOL 1 A1 2 3 A3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 12 HT-HandyWriter User¢s Guide · To place the OTP chip into the Textool of the HandyWriter, either in position A1 or A3 (no need of OTP adapter). The following table lists the positions. Package OTP Type 18 DIP 20 DIP 24 DIP 28 DIP 40 DIP 24 SKDIP HT46R22 A1 HT46R23 A1 HT46R47 28 SKDIP A1 A3 HT48RA3 A1 HT48R05A-1 A3 HT48R06A-1 A3 HT48R10A-1 A1 HT48R30A-1 A1 HT48R50A-1 A1 HT82K68E A1 13 HT-HandyWriter User¢s Guide · The OTP adapter is needed for programming To place the OTP adapter into the Textool of the HandyWriter, either in position A1 or A3, and place the OTP chip in the pin 1 of the OTP adapter. The following table lists the position of the OTP adapter. (the number in parenthesis indicates which OTP adapter is used). Package OTP Type 16 18 20 SSOP SOP SOP 20 DIP 24 28 SOP SOP HT46R22 A1 HT46R23 A1 HT46R47 40 DIP 48 SOP TSOP2DIP28 A1 TSOP2DIP28 A3 TSOP2DIP28 HT46R63 TADP46R63QF100* HT47R20 T47R20QFP64* HT48RA0A A1 A1 HT48RA3 T48RA0DIPSOP-A A1 TSOP2DIP28 HT48R05A-1 A3(1) A3(2) (1)TADP82K96SOP20 (2)TSOP2DIP32 HT48R06A-1 A3(1) A3(2) HT48RB8 A1(1) HT48R10A-1 A1 HT48R30A-1 A1 HT48R50A-1 HT82K68E A1 A1(1) HT82K96E A3 A1(2) TSOP2DIP28 A1(2) (1)TSOP2DIP28 (2) TADP48R50ASO48 A1(1) (1)TADP48R50ASO48 TADP48R70AQF64* A1 A1(1) A1(2) TSOP2DIP28 (1)TADP82K96SOP20 (2)TADP82K96DIP20 A1(4) A1(3) A1(5) (3)TADP82K96DIP40 (4)TADP82K96SOP28 (5)TADP82K96SS48A HT49R30A-1 A1 HT49R50A-1 A1(1) HT49R50A-1 (1)TADP82K96SOP20 (2)TADP82K96SS48A TSOP2DIP28 HT48R70A-1 Note Type No. of OTP Adapter T49RXSOP48 (1)T49RXSOP48 T49R50QFP100-B* T49R50QFP100-B* *: The OTP adapter of the QFP package type is placed in the position A1 14