Part Number Hot Search : 
2FTR20SG SE7905 1N4620C PJF7N65 1N4114 LM144 1N8158E3 T311021
Product Description
Full Text Search
 

To Download HT-IDE3000 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 HT-IDE3000
Copyright 2005 by HOLTEK SEMICONDUCTOR INC.

http://www.holtek.com.tw
.............................................................. 1
.................................................................................... 3 HT-IDE ................................................................................3 (HT-ICE) ......................................................................5 HT-ICE ....................................................................................5 OTP ..........................................................................................5 OTP ..........................................................................................5 ......................................................................................................6 ..............................................................................................................7 ..............................................................................................7 ..............................................................................................7 ..............................................................................................8 ...................................................................................... 13 ................................................................13 ................................................13 ............................................................................13 OTP ...............................................................14 Holtek ....................................14
- //// ........................................... 15 HT-IDE3000 .............................................................................15 ....................................................................................................18 ....................................................................................................19 ....................................................................................................20
i
....................................................................................................21 Mask Option .......................................................................................21 Diagnose.............................................................................................22 Writer..................................................................................................23 Library Manager.................................................................................23 Voice/VROM Editor ...........................................................................24 Voice/Download .................................................................................24 LCD Simulator ...................................................................................25 Virtual Peripheral Manager ................................................................25 Data EEPROM Editor ........................................................................25 ....................................................................................................26 Project Command ...............................................................................26 Debug Command................................................................................27 Directories Command.........................................................................29 Editor Command ................................................................................30 Color Command .................................................................................30 Font Command ...................................................................................30
- ................................................................................ 31 ................................................................................................31 ........................................................................................32 ....................................................................................33 ................................................................33 ................................................................34 ................................................34 ................................................................................34 ........................................................................35 ........................................................................35 ............................................................................................................35 ............................................................................................35 Print Option Table Command ....................................................................36 Generate Demo File (.DMO) Command....................................................36 - ................................................................................ 37 HT-IDE3000 .............................................................................38 HT-IDE3000 .........................................................................39 ............................................................................39 ................................................................................40 ............................................................................40 ....................................................................40 ........................................................40 ....................................................41 ....................................................................................................41
ii
............................................................................................................43 ............................................................................................43 ................................................................................43 ....................................................................................45 ............................................................................................47 ................................................................................47 ............................................................................................49 ............................................................................49 ................................................................................52 ....................................................................................54 ........................................................54 ....................................................................54 Log .....................................................................................61 HT-COMMAND ................................................................62
- ................................................................................ 63 ............................................................................................64 ...................................................................................... 69 ....................................................................................................70 OTP ..................................................................................... 71 ............................................................................................................71 ............................................................................................................72 ............................................................................................72 HT-HandyWriter OTP .................................................73 ....................................................................................................81
........................................................ 83
...................................................................... 85 ....................................................................................................85 ....................................................................................................86 ....................................................................................................86 ................................................................................................86 ............................................................................................86 ....................................................................................................86 ................................................................................................87 ................................................................................87 ................................................................................88 ........................................................................................90 ................................................................................94
iii
................................................................................................96 ..........................................................................................100 ..................................................................................................100 ..............................................................................................100 ..............................................................100 ..........................................................................................................103 ..........................................................................................103 ..........................................................................................103 ..............................................................................104 ..............................................................................................105 ..................................................................................105 ......................................................................................105 ..........................................................................................106 ..................................................................................................106
C ............................................................................... 109 ..........................................................................................................109 C .................................................................................. 110 .................................................................................................. 110 .................................................................................................. 110 ...................................................................................................... 111 .............................................................................................. 111 .................................................................................................. 111 .............................................................................. 111 .................................................................................................. 112 .......................................................................................................... 113 .......................................................................................... 113 ...................................................................................... 114 ...................................................................................... 114 .......................................................................................... 114 ...................................................................................................... 115 ...................................................................................... 115 ...................................................................................... 115 ...................................................................................... 115 ...................................................................................... 116 .......................................................................................... 116 .............................................................................. 116 .......................................................................... 117 ...................................................................................... 117 ...................................................................................... 117 .............................................................. 118 .......................................................................................... 119 ..........................................................................................120 ..........................................................................................................124 ..........................................................................................124
iv
..........................................................................................124 ..............................................................................................125 ..................................................................................................125 ..................................................................................................125 (Structures and Unions)................................................126 ......................................................................................127 C .............................................................132 ..............................................................................................132 (memory bank) .............................................................132 ......................................................................................133 ..............................................................................133 ..................................................................................................134 ..................................................................................................135 ..........................................................................................135 ..................................................................................................135 ..................................................................................................135 ..................................................................................................136 ..................................................................................................136 ..................................................................................................136 ..............................................................................................136 //....................................................................................137 ..........................................................................................137 ..................................................................................................138
................................................................................ 139 Little Endian.............................................................................................139 ..........................................................................140 ..........................................................................................140 ..........................................................................................140 ..................................................................................................141 ......................................................................................142 ..............................................................................................142 ......................................................................................................142 ..................................................................................142 C .................................................................143 C .........................................................................144 ISR ..................................................................146 .................................................................................... 147 ..........................................................................................147 ..........................................................................................147 ......................................................................................147 ......................................................................................148 ..........................................................................148 ..........................................................................................148 ..............................................................149
v
.................................................................. 151
........................................................................ 153 ..............................................................................153 ......................................................................................153 ......................................................................155 ......................................................155 ......................................................155 ..........................156 ..............................................................................156 LCD .......................................................................... 157 ..........................................................................................................157 LCD .................................................................................157 ..................................................158 HT-LCDS.................................................................................158 LCD .................................................................................159 LCD ........................................................................160 ......................................................................160 ......................................................................161 ..................................................................................161 ..........................................................................................162 ..........................................................................................162 ..................................................................................162 ..............................................................163 Panel Editor ............................................................164 ..................................................165 LCD ....................................................................165 VFD ............................................................166 LCD .................................................................................................167 ..........................................................................................167 VPM........................................... 169 ..........................................................................................................169 VPM ................................................................................................170 VPM ................................................................................................171 ..........................................................................................171 ..........................................................................................172 VPM ........................................................................................174 LED ..................................................................................................174 Button/Switch ...................................................................................175 Seven Segment Display ....................................................................176 ......................................................................................178 ..............................................................................................178
vi
.......................................................................... 181
A ................................................................ 183 ......................................................................................183 ......................................................................................................184 B C D .................................................................... 187 .................................................................... 191 .................................................................... 197
E C ....................................................... 199 ......................................................................................................199 ......................................................................................................204 ......................................................................................................205
vii
viii

1
HT-IDE3000
2

1
HT-IDE HT-IDE3000 HT-ICE HT-IDE
HT-IDE
HT-IDE(Holtek Integrated Development Environment) 8 8 HT-IDE HT-ICEIn-Circuit Emulator 8 HT-ICE OTP HT-IDE3000 HT-IDE3000 HT-ICE 8 HT-ICE
3
HT-IDE3000
HT-IDE3000 HT-IDE HT-IDE3000 (Service Pack) HT-IDE3000 HT-IDE3000 HT-IDE3000
*
* * * * * HT-ICE * I/O HT-ICE * HT-ICE OTP
* * () * (
)
* (Mask ROM
file OTP file)
* * HT-ICE * (VPM) * LCD LCD
4
(HT-ICE)
8 ICE 8 HT-IDE3000 HT-ICE
HT-ICE HT-ICE ( 1-1) HI-ICE CN1 CN2
1-1
OTP OTP OTP OTP OTP HT-ICE OTP HT-ICE OTP OTP OTP OTP OTP
5
HT-IDE3000
HT-IDE 1-2 Pentium Windows 95/98/NT/2000/XP ) Windows NT/2000/XP HT-IDE3000 Supervisor Privilege HT-IDE3000
P o w e r A d a p te r
E m u la to r F la t C a b le P r in te r C a b le E m u la to r B o x H T -IC E O T P W r ite r In te rfa c e C a rd T a rg e t B o a rd
1-2
HT-IDE
* HT-ICE PCB
I/O LED 1-3
* HT-ICE I/O * ( 16V) * D 25 * OTP
P r in te r P o r t
R eset
DC +
16V
H T -IC E R e a r V ie w
CN2
CN1
H T -IC E F r o n t V ie w 1-3
6
HT-IDE3000 * Pentium CPU PC/AT * SVGA * 32M RAM * CD ROM () * 20M * PC HT-ICE * Windows 95/98/NT/2000/XP
* Window 95/98/NT/2000/XP Microsoft
* 1 HT-ICE * 2 I/O HT-ICE * 3 HT-ICE HT-ICE LED
16V HT-ICE HT-ICE
7
HT-IDE3000
* 1 HT-IDE3000 CD CD ROM
1-4
<HT-IDE3000>
1-5
<HT-IDE3000> <HT-IDE3000><HT-IDE3000>
8
* 2
()()
1-6
* 3
1-7 9
HT-IDE3000
1-8
1-9
* 4
HT-IDE3000
10
* 5
SETUP
1-10
* 6
1-11
11
HT-IDE3000
* 7
HT-IDE3000 SETUP (BININCLUDELIBSAMPLE)BIN (EXE)(DLL)(CFGFMT)INCLUDE (.H.INC)LIB (.LIB)SAMPLE HT-IDE3000 1-12 HT-IDE3000
1-12
12

2
HT-IDE3000
: * Project New * * OK * SAVE : * File/New * TEST.ASM * Project Edit * Edit Project * TEST.ASM Add * OK : * Project Build * - - HT-ICE *
13
HT-IDE3000
: OTP * .OTP * Tools Writer OTP : Holtek * Project Print Option Table * .COD
.IN C .H .A S M .C P r o je c t// A s s e m b le /C o m p ile .F M T .L S T
P r o je B u ild Rebu 1.As 2 . L in 3.Lo 4.C o /
c t// ild se ke ad de A ll m b le /C o m p ile r er G e n e ra to r
.O B J T o o ls // L ib r a r y M a n a g e r .L IB D e b u g // Go G o to C u rs o r J u m p to C u rs o r S to p /T ra c e S to p R eset P o w e r-o n R e s e t R e s e t T ra c e S te p In to /O v e r/O u t S te p p in g T o o ls // H a n d y W r ite r L in k e r C r e a te T a s k F ile .M A P .D B G
.C F G
.T S K
Loader D o w n lo a d to IC E
T o o ls // M a s k O p tio n
.O P T
C o d e G e n e ra to r
T o o ls // P r in t O p tio n T a b le
.C O D
.O T P
O p tio n A p p ro v a l S h e e t
H o lte k
M ask IC s
OTP IC s
2-1
14
- ////
- ////
3
HT-IDE3000
HT-IDE3000
3-1
15
HT-IDE3000
* [][] Holtek HT-IDE3000
- HT-IDE3000
* HT-IDE3000 HT-ICE
3-2 - HT-ICE - HT-ICE
3-2
"YES" HT-ICE 3-3 HT-IDE3000 HT-ICE
3-3
* HT-IDE3000
3-4 HT-IDE3000
3-4
16
- ////
HT-IDE3000 -(File)(Edit)(View)(Project) (debug)(Tools)(Options)(Windows)(Help) 3-5 3-5 PC=0001H
3-5
()
17
HT-IDE3000
* New
* Open
* Close
* Save
* Save As
* Save All
* Print
* Print Setup
* Recent Files
* Exit
HT-IDE3000 Windows
18
- ////
* Undo
* Redo
* Cut
clipboard
* Copy
* Paste
* Delete
* Find
* Replace
19
HT-IDE3000
HT-IDE3000 3-6
* Line
* Cycle Count
65535
* Toolbar
Toggle Breakpoint
* Status Bar
3-6
20
- ////
Mask Option Diagnose HandyWriter Library Manager Voice tools LCD Simulator virtual peripheral manager
3-7
Mask Option () Project Build Mask Option Build
HT-ICE HT-ICE I/O JP1
* I/O X1
I/O JP1 2 3
* RC VR1 I/O JP1
12
21
HT-IDE3000
HT-ICE HT-IDE3000 HT-ICE
Diagnose 9 HT-ICE 3-8 Test Test All * MCU resource option space HT-ICE * Code space HT-ICE * Trace space HT-ICE * Data space HT-ICE * System space HT-ICE * I/O EV 0 HT-ICE 0 I/O * I/O EV 1 HT-ICE 1 I/O * I/O EV 2 HT-ICE 2 I/O * I/O EV 3 HT-ICE 3 I/O
22
- ////
3-8
Writer HT-ICE OTP/MTP Handywriter Holtek OTP MCU HT-MTPWriter Holtek MTP MCU HT-Writer Library Manager 3-9 Library Manager Option Project Options Project Cross Linker Library Manager * * * Library Manager
23
HT-IDE3000
3-9
Voice/VROM Editor HT86 VROM Voice/Download .VOC HT-ICE HT-ICE VROM .VOC 3-10 VROM .VOC Bytes HT-ICE ROM .VOC VROM
24
- ////
3-10
LCD Simulator LCD HT-LCDS LCD HT-LCDS LCD simulator Virtual Peripheral Manager Virtual Peripheral Manager VPM HT-IDE3000 Data EEPROM Editor MCU HT48E Data EEPROM Data EEPROM HT-ICE
3-11
25
HT-IDE3000
3-12
Project Command Project Project Build HT-IDE3000 Project Build 3-13 Project
: Build
3-12
3-13 26
* Micro Controller
- ////

* Enter free run modedebug options disabledafter build
HT-IDE3000
* Language Tool Option
MCU C Hi-Tech
* Assembler/Compiler Options
Define Symbol symbol1[=value1] [,symbol2 [=value2] [,...]]
debugflag=1, newver=3
(Generate listing file)
* Cross Linker options
Libraries
libfile1, libfile2
Browse (Section address) ROM/RAM
codesec=100, datasec=40
(Generate map file)
Debug Command Debug HT-IDE3000 - 3-14 OK Debug
27
HT-IDE3000
3-14
* Trace Record Fields
(trace) Window Trace List program counter machine code de-assembled instruction source line execution data fileline number external signal status external signal status
* Auto Stepping Command
Step Into Step Over
28
* Connection Port
- ////
HT-ICE LPT1 LPT2 LPT3 HT-ICE
* Mode
HT-IDE3000 HT-ICE HT-IDE3000
* Detect Stack Overflow
Directories Command 3-15
3-15
* Executable files path
HT-IDE3000
* Include files path
* Library files path
* Output files path
.obj .list .tsk .map .dbg
29
HT-IDE3000
Editor Command TAB Undo Save Before Assemble Maximum Undo Count
3-16
Color Command 3-17 Text Selection Edit Current Line Breakpoint Line Trace Line Stack Line Debug Error Line
3-17
Font Command
30
-
-
4
HT-IDE3000 HT-IDE3000 HT-IDE3000
4-1
Project 4-1 New Project Name Micro Controller 4-2 Browse
31
HT-IDE3000
: .PRJ
4-2
HT-IDE3000 Project Open 4-1 Close
: HT-IDE3000 HT-IDE3000 HT-IDE3000
32
-
Project Edit [Move Up][Move Down] 4-3 Project Edit
4-3
* Edit Project File name * Files of type - Drives Directories ( Look in ) - (File name) - [Add] (Files in Project)
33
HT-IDE3000
* Files in Project * Delete
:
* Files in Project * [Move Up][Move Down]
* * * * Tools
Build Rebuild All Build
* .asm .c C
* C
* HT-ICE
HT-ICE
* HT-IDE3000
: Build
* / Build
C
* / Build
34
-
Build HT-ICE Rebuild All Build Rebuild All / Build Rebuild Output
* Project Open * Project Build Build 4-1 * Project Open * Project Rebuild All Rebuild All 4-1
HT-IDE3000 -
Output
* File Open * Project Assemble/Compile Assemble .asm .c C
35
HT-IDE3000
.OBJ Output Files Path Options Directories Output
* * Output
Print Option Table Command
HT-ICE HT-ICE Project Build
Generate Demo File (.DMO) Command
HT-DEMO .dmo HT-DEMO .dmo HT-IDE3000
36
-
-
5
HT-IDE3000 5-1
5-1 37
HT-IDE3000
HT-IDE3000
HT-IDE3000
* Power-on resetPOR HT-ICE
HT-ICE
* * HT-IDE3000 Debug 5-2 Reset * HT-IDE3000 Debug 5-2 Power-on Reset
5-2
38
5-1
Reset Item Clear Registers Clear Options Clear PDTO PC Value Emulation Stop Check Stand-Alone Power-On Reset (*) Yes Yes (**) (**) Yes Target Board Reset (*) No No 0 No(***) No Software Reset Command (*) No No 0 Yes No
-
Software Power-On Reset Command (*) No Yes 0 Yes No
5-1 : (*) (**)PC 0 (***) PC- PD- TO-WDT
HT-IDE3000 * Debug Reset Reset * Debug Power-on Reset Power-On Reset DIN _RES pin 03-C 5-1
39
HT-IDE3000
Build Rebuild HT-ICE 5-1 HT-IDE3000
:
* Debug Go F5 Go HT-IDE3000 HT-ICE Stop Stop Stop Stop Stop * * Debug Stop Alt+F5 * Stop * * Debug Go to Cursor F7 Go to Cursor
40
-
* * Debug Jump to Cursor
HT-IDE3000 HT-IDE3000 HT-IDE3000 Debug Stop FAST0.51234 5 Step IntoStep Over Step Out
* Step Into CALL
* Step Over
CALL CALL
* Step out
RET RET CALL
: Step out
Options Debug Step Into Step Over
41
HT-IDE3000
*
Debug Stepping Stepping Speed Options Debug : Step Into Step Over
*
Debug Stop
*
- Options Debug - Stepping Step Into Step Over
* Step Into
Debug Step Into F8 Step Into
* Step Over
Debug Step Over F10 Step Over
* Step Out
Debug Step Out Shift + F7 Step Out
42
-
HT-IDE3000
HT-IDE3000 * 3 * Breakpoints * 20 21 20 * don't care * HT-ICE HT-ICE Data SpaceRAM HT-ICE 5-3 * Space * Location * Content Read Write * Externals ET0ET1ET2 ET3 I/O JP3
43
HT-IDE3000
--
*
"H""h"(don't-care bits) 20, 14h , 00010100b , 10xx0011 20 14h 00010100b 4 5
: Don't-care bits
*
[source_file_name!].line_number
source_file_name ""." "
C:\HIDE\USER\GE.ASM!.42
C \HIDE\USER GE.ASM 42
.48
48
*
[source_file_name!].symbol_name
line_number symbol_name - Label name - Section name - Procedure name - Dynamic data symbols defined in data section
44
-
-
*
"H""h" (don't-care bits)
Add Delete
{, , , }
"+""-" "C" "D/R" "D/W" "D/RW"
/ Debug Breakpoint Toggle Breakpoint * 5-3 * * OK * Toggle Breakpoint Toggle Breakpoint Toggle Breakpoint
45
HT-IDE3000
* Debug Breakpoint Ctrl+B
5-3
*
SpaceLocation Space Content Read/Write External Signals
* Add * OK
: 3 20 Add
5-3
* Debug Breakpoint Ctrl+B
5-3
* * Delete * OK
46
-
* Debug Breakpoint Ctrl+B
5-3
* Clear All * OK * Clear All Breakpoint
* Debug Breakpoint Ctrl+B
5-3
* * EnableDisable() * OK
HT-IDE3000 (qualifier) (trigger) (trigger point)
: HT-IDE3000
(Trace Mode) (qualify)
* Normal
* Trace Main
47
HT-IDE3000
* Trace INT
No Qualify Trace Mode Qualify Trigger Mode Forward Rate Trigger Mode Forward Rate Trigger Mode
* No Trigger
* Trigger at Condition A
A
* Trigger at Condition B
B
* Trigger at Condition A or B
A B
* Trigger at Condition B after A
B A
* Trigger when meeting condition A for k times
A k
* Trigger at Condition B after meeting A for k times
B A k A B Loop Count A Trigger Mode
48
-
Forward Rate (trace record)(trace buffer) (trigger point)(stop trace point) Forward Rate Forward Rate 0 100%
: Forward Rate Forward Rate Forward Rate
Qualify Trace Mode 20 6 Qualify Breakpoints Breakpoints
* Trigger Mode Forward Rate * * Debug 5-2 Trace Stop 5-4 Debug Trace
* Debug Trace
Trace 5-4
* Trace Mode * OK
49
HT-IDE3000
5-4
* Debug Trace
Trace 5-4
* Trigger Mode * OK
Forward Rate
* Debug Trace
Trace 5-4
* Forward Rate * OK
A B
* Debug Trace
Trace 5-4
* Condition A Condition B * Set Condition
Set Condition 5-5
* A B
50
* OK Set Condition * OK Trace
-
5-5
* Debug Trace
Trace 5-4
* Qualify * Set Qualify
Set Qualify 5-5
* * OK Set Qualify * Add Qualify List * OK Trace
* Debug Trace
Trace 5-4
* Qualify List * Delete * OK
51
HT-IDE3000
* Debug Trace
Trace 5-4
* Clear All * OK
:
* Debug Trace
Trace 5-4
* Qualify List * EnableDisable * OK
: 6
Window Trace List Options Debug Window Trace List Trace No. 5-6 5-7 Debug
5-6 52
* No.
-
+0 Options Debug Option 5-7 No trigger mode -00001 1 5-6
* PC
* CODE
* INSTRUCTION
HT-IDE3000
* DAT

* 0 1 2 3
0~3 ET0~ET3
* FILE-LINE
* SOURCE

5-7 : Options Debug Window Trace List
53
HT-IDE3000
Debug Reset Trace Reset Power-On Reset
HT-IDE3000 (Command Mode)
HT-IDE3000 Debug "Command Mode" "HT8>" 5-8
* * "HT8>" * * "HT8>xxxx"
5-9 "HT8>"
( x ) Q[uit]

BP dd BP{-C|-D|-E|-L}[list|*]. list=11 12...
54
BP DB DR FA FB GO JP H HIS LF LP Q R POR S TR W ASCII (Into/Over/Out) //
-
BP S[,RW],Location [,Data][,Ext Sig] DB[bank.address[,range]] DR[bank]address[,range] FA {bank.address|symbol}list. 11 12... FB {bank.address|symbol}list. 11 12... GO [address] JP address H HIS LF [-V] [LogFileName] LP ProjectName Q R POR S [-I|-V|-O] default option "-I" TR [-L][length] W {-S|-C}[LogFileName]
|
5-8
55
HT-IDE3000

* BP - Breakpoint Clear/Enable/Disable/List
BP [-C | -D | -E | -L] [list |*] -C 1 20 1 3 8 13 8 Debug/Breakpoint Delete * Debug/Breakpoint Clear All
PROJECT NAME
COMMAND LINE COMMAND SYNTAX 5-9
-D Debug/Breakpoint Disable * -E Debug/Breakpoint Enable *
56
-
-L Debug/Breakpoint BP -CBP -D BP -E list
: 1. BP -L list 2. HT-IDE3000 3
CDE L
* BP - Breakpoint Set
BP S[,RW] ,Location [,Data][,Ext Sig] S Space C D C D RAM D S[,RW] R W RW C S RW "Location" [SourceFileName!].LineNumber [SourceFileName!].SymbolName D S"Data" Ext Sig HT-IDE3000
* ; comment string
Log ;
57
HT-IDE3000
* DB bank.address ,range
DB range DB bank number 16 2000h 1.0f00 1 0f00h
* DR bank.address ,range
DR address 16 100h

* FB {bank.address | symbol} ,list
list bank.address list list
* FA {bank.address | symbol} ,string
FA FB string ASCII symbol .var filename!.var path\ filename!.var
:
* FA"d:\tmp\test cmd\test1.asm!.count""test1"
58
-
/
* GO [address]

* JP address
* H
* HIS
20 HIS
* !dd
dd HIS "!"
* LF [-V] [LogFileName]
Log LogFileName Log LogFileName LogFileName -V LF -V Log .res Log (W) HT-IDE3000
: 1. LogFileName 2. Log LFW Q
59
HT-IDE3000
* Q
: 1. Log 2. "LF""W -S"
* R
Debug Reset
* POR
Debug Power-On Reset
PC STATUS ACC
* S {-I-O-V}
-I Step Into Debug Step Into -O Step Over Debug Step Over -V Step Out Debug Step Out "S -V"
* TR [-L] [length]
-L -L "length" 0 Forward Rate 5 HT-IDE3000
60
-
* W [-S-C] [LogFileName]
Log W -C Q Log -S Log -C Log Log Log LogFileName LogFileName Log Log .CMD
: 1. LogFileName 2. W -S LF W -S
Log Log HT-IDE3000 Edit
W -S LogFileName Log W -S Log Log Log Log "W -S" " " Log
61
HT-IDE3000
HT-COMMAND
Invalid Command Can not find HT-IDE Syntax error No project for debug ROM bank Out of range RAM bank Out of range Can not run xxx command in emulation mode Can not run xxx command in load file mode Can not run xxx command in write file mode Unterminated string No Command in history buffer Open xxx log file error Close xxx log file error Read xxx log file error Write xxx log file error Not in emulation status Sources have been modifiedplease rebuild Stop by user Get PC failed Stack overflow No debug info Cannot find the symbol Cannot find the register HT-IDE3000 HT-IDE3000 Program Memory Data Memory xxx xxx write file xxx History buffer Log Log Log Log emulation mode Program Counter
62
-
-
6
HT-IDE3000 6-1 RAM ROM
6-1
63
HT-IDE3000
* RAM
RAM 6-2 RAM RAM
6-2
* ROM
ROM 6-3 ROM 0 ROM ROM
6-3
64
* Trace List
-
Trace List 6-4 Options Debug Trace List
6-4
* Register
Register 6-5 HT48C70-1 Register
6-5
65
HT-IDE3000
* Watch
Watch RAM
[source_file_name!].symbol_name
(.) Enter
:[address]=data contents
6-6 HT-IDE3000 Watch Delete Watch Watch
6-6
* Stack
Stack 6-7 Stack 0 1 CALL 1RET RETI 6-7 01 RET RETI 134 00 Stack
Stack_level: program_counter source_file_name(line_number)
66
-
stack_level program_counter source_file_name 0 line_number line_number
6-7
* Program
Program ROM 0
* Output
Output Build Rebuild All
67
HT-IDE3000
68

7
HT-IDE3000 HT-ICE HT-ICE HT-IDE3000 HT-ICE IC HT-ICE
69
HT-IDE3000
HT-IDE3000 HT-IDE3000 HT-IDE3000
* HT-ICE * HT-ICE
Options Debug HT-IDE3000 7-1 Debug
7-1 VPM PC VPM
70
OTP
OTP
8
OTP writer OTPOne-Time Programmable OTP HT-ICE HT-ICE 8-1
8-1 71
HT-IDE3000
HT-ICE HT-ICE HT-IDE3000 HT-IDE3000 HT-ICE
HT-ICE 40-pin TEXTOOL 8-2 HT-ICE
8-2
72
OTP
HT-HandyWriter OTP
HT-HandyWriter Holtek Development System HT-HandyWriter 8-3
8-3
LPT HT-HandyWriter 8-4 "LPT" 8-5 LPT1LPT2 LPT3 OTP writer HT-ICE HT-ICE HT-ICE LPT1 8-5 LPT1 OTP writer
73
HT-IDE3000
8-4
8-5 74
OTP
Body OTP MCU "!Body" 8-6 [Set Body] OTP
8-6
MCU
* Option
[Option]/Option 8-7 OTP writer OTP
* Print
OTP
8-7
75
HT-IDE3000
HT-HandyWriter Programming Functions 8-4 HT-HandyWriter HT-HandyWriter 9 buttons
* Open
.OTP Open Read Checksum
* Program
OTP writer OTP OTP HT-HandyWriter
* Verify
OTP OTP HT-HandyWriter
* Blank Check
OTP writer OTP IC
* Lock
OTP writer OTP OTP Program OTP
* Auto
Blank Check Program Verify Lock Auto
* Read
OTP writer OTP Read Checksum .OTP
76
* Chip Info
OTP
Power-On ID Software ID ROM size Option size "Get Info from chip" !Body "Get Info from ini"
HT-HandyWriter
* Duplicate OTP
Duplicate OTP HT-HandyWriter Open .OTP OTP TEXTOOL HT-HandyWriter .OTP OTP 8-8 [Duplicate]/Setup 8-9 Duplicate Setup Blank Check ProgramVerifyLock 8-10 [Duplicate]/Enable OTP OTP 8-10 [Duplicate]/Enable
77
HT-IDE3000
8-8
8-9
78
OTP
8-10
* S/NSerial Number
[S/N] Setup 8-11 Serial Number [S/N]/Enable 8-12 8-12 [S/N] Setup
79
HT-IDE3000
8-11
8-12 80
OTP
OTP writer connect to LPT1
OTP writer LPT1
Cannot connect to ICE
OTP writer HT-ICE printer port
Invalid EV Chip
OTP writer HT-ICE EV chip IC HT-ICE
Connect to HT-HandyWtiter through ICE
OTP writer ICE
Cannot find HT-HandyWtiterplease connect it to ICE Or this HT-HandyWtiter is an old version
HT-ICE Print Port OTP writer HT-ICE OTP writerTHANDYOTP-A OTP writer ICE
File PIDADhOID50h
power-on ID ADhSoftware ID 50h
Invalid OTP file format
The chip PIDADhOID50h doesn't match with the file PIDADhOID51h Are you sure to continue?
OTP
Chip ROM size0400hFile ROM size0800h. System will set ROM size as 0400h. Are you sure to continue?
OTP 400h 800hOTP writer 400h OTP
AddrxxxxhDatayyyyhRdatazzzz Program/Option Verify failed!!
Program Option OTP xxxxh zzzzh yyyyh
81
HT-IDE3000
AddrxxxxhDatazzzzh Not Blank!
OTP xxxxh zzzzh
Chip mismatched!
OTP writer OTP .OTP OTP
Chip is locked!
OTP writer OTP
No data to verify / program!
Verify Program .OTP HT-HandyWriter Open
82

83
HT-IDE3000
84

9
HASM [options] filename [;]
(Holtek Assembler) (Object File)(Linker)(Task File) (source program)(statement)(look up table) (mnemonic) (operand)(comment)
[optional items]
[options][;] filename {choice1 | choice2} Repeating elements... PUBLIC name1 [,name2 [,...]] name2
85
HT-IDE3000
[ ] [ ] [ ] [ ; ]
* * tab *

AZ az 09
* 09 * ? * 31
_
@

86


IF statements [ELSE statements] ENDIF
IF expression IFE expression * IF IFE expression expression IF ELSE IF ENDIF ELSE expression IFE ELSE IFE ENDIF ELSE
*
IF debugcase ACC1 extern equ 5 username: byte
ENDIF
debugcase ACC1 5 username
87
HT-IDE3000
IFDEF name IFNDEF name * IFDEF IFNDEF name name IFDEF ENDIF name IFNDEF ENDIF 7
*
IFDEF ENDIF buf_flag buffer DB 20 dup (?)
buf_flag buffer
INCLUDE file-name INCLUDE "file-name" * file-name 7
*
INCLUDE macro.def
macro.def
PAGE size * (program listing file) 10 255 60
*
PAGE 57
57
88
.LIST .NOLIST * .LIST .NOLIST (program listing file) .NOLIST .LIST .LIST
*
.NOLIST mov a, 1 mov b1, a .LIST
.NOLIST .LIST
.LISTMACRO .NOLISTMACRO * .LISTMACRO .NOLISTMACRO .NOLISTMACRO
.LISTINCLUDE .NOLISTINCLUDE * .LISTINCLUDE (included files) .NOLISTINCLUDE .NOLISTINCLUDE
MESSAGE `text-string' * MESSAGE text-string `text-string'
89
HT-IDE3000
ERRMESSAGE `error-string' * ERRMESSAGE `error-string'
; text * (semicolon)/
name .SECTION [align] [combine] `class' * .SECTION (program section)(data section) name name (complete name) name class align BYTE (byte) WORD (word,) PARA (paragraph16 ) PAGE (page256 ) CODE (class)BYTE WORD PARA 16 PAGE 256 DATA 8 / BYTE WORD PARA
90
16 PAGE 256 combine - COMMON - AT address address (label)(variable) address (forward reference) address ROM/RAM ROM/RAM combine Class CODE (program memoryROM) DATA (data memoryRAM)
ROMBANK banknum section-name [,section-name,...] * (program memory)(bank) banknum 0 section-name 8K CODE 0bank 0 CODE 0
91
HT-IDE3000
RAMBANK banknum section-name [,section-name,...] * ROMBANK (data memory) (data section) 256
END * (included file)
ORG expression * expression (location counter) expression ORG ( )
*
ORG 8 mov A, 1
mov A, 1 8
92
PUBLIC name1 [,name2 [,...]] EXTERN name1:type [,name2:type [,...]] * PUBLIC EXTERN BYTE WORDBIT NEAR
*
PUBLIC start, setflag EXTERN tmpbuf:byte CODE .SECTION `CODE' start: mov a, 55h call setflag ... setflag proc mov tmpbuf, a ret setflag endp end
start setflag tmpbuf tmpbuf byte
name PROC name ENDP * PROC ENDP name PROC (procedure)
*
toggle mov mov xorm mov ret toggle PROC tmpbuf, a a, 1 a, flag a, tmpbuf ENDP 93
HT-IDE3000
[label:] DC expression1 [,expression2 [,...]] * DC expression1 expression2 CODE expression1 expression2 expression1
*
table: DC 0128H, 025CH
ROM 0128H 025CH
( )()
B O D H 01 01234567 0123456789 0123456789ABCDEF
94
[name] [name] [name] [name] [name] *
DB value1 [,value2 [,...]] DW value1 [,value2 [,...]] DBIT DB repeated-count DUP(?) DW repeated-count DUP(?)
(data memory) name ( name) value1 value2 "?" DBIT 8 DBIT 8 DBIT
*
DATA tbuf chksum flag1 sbuf cflag .SECTION DB ? DW ? DBIT DB ? DBIT `DATA'
0 tbuf 1 2 chksum 3 0 flag1 4 sbuf 3 1 cflag
95
HT-IDE3000
name LABEL {BITBYTEWORD} * name
*
lab1 d1 d2 LABEL DB ? DB ? WORD
d1 lab1 d2 lab1
name EQU expression * name expressionEQU (name) expression 16 name expression
*
accreg bmove EQU EQU 5 mov
accreg 5 bmove mov
()
7
name MACRO [dummy-parameter [,...]] statements ENDM LOCAL
96
name LOCAL dummy-name [,...] * LOCAL MACRO dummy-name dummy-name ??digit digit 0000 FFFF MACRO/ENDM (label) LOCAL MACRO , tmp1 tmp2 label1 label2 LOCAL MACRO ??0000 ??0001 LOCALlabel1 label2
Delay MACRO LOCAL mov mov label1: mov label2: clr clr sdz jmp sdz jmp ENDM tmp1, tmp2 label1, label2 a, 70h tmp1, a tmp2, a wdt1 wdt2 tmp2 label2 tmp1 label1
97
HT-IDE3000
Delay
; T.ASM ; Sample program for MACRO. .ListMacro Delay MACRO tmp1, tmp2 LOCAL label1, label2 mov a, 70h mov tmp1, a label1: mov tmp2, a label2: clr wdt1 clr wdt2 sdz tmp2 jmp label2 sdz tmp1 jmp label1 ENDM data .section `data' BCnt db ? SCnt db ? code .section at 0 Delay BCnt, SCnt end `code'
Delay 4 17 (offset) 0000 24 Delay , 11 11 (line number) 24 tmp1 tmp2 BCnt SCnt
98
File: T.asm 1 0000 2 0000 3 0000 4 0000 5 0000 6 0000 7 0000 8 0000 9 0000 10 0000 11 0000 12 0000 13 0000 14 0000 15 0000 16 0000 17 0000 18 0000 19 0000 20 0000 00 21 0001 00 22 0002 23 0000 24 0000 24 0000 0F70 24 0001 0080 24 0002 24 0002 0080 24 0003 24 0003 0001 24 0004 0005 24 0005 1780 24 0006 2803 24 0007 1780 24 0008 2802 25 0009 0 Errors
Holtek Cross-Assembler Version 2.80 ; T.ASM ; Sample Program for MACRO. .ListMacro Delay MACRO tmp1, tmp2 LOCAL label1, label2 mov a, 70h mov tmp1, a label1: mov tmp2, a label2: clr wdt1 clr wdt2 sdz tmp2 jmp label2 sdz tmp1 jmp label1 ENDM data .section `data' BCnt db ? SCnt db ? code .section at 0 `code' Delay BCnt, SCnt mov a, 70h mov BCnt, a ??0000: mov SCnt, a ??0001: clr wdt1 clr wdt2 sdz SCnt jmp ??0001 sdz BCnt jmp ??0000 end
Page 1
1 R1 1 R1 1 1 1 R1 1 R1 1
99
HT-IDE3000
[name:] mnemonic [operand1 [,operand2] ] [; comment] name: mnemonic operand1 operand2
(label) (colon) $
,
100
*
+ - * / %MOD
* SHL SHR
- expression SHR count expression SHL count expression count (SHR)(SHL) 0
mov A, 01110111b SHR 3 ; result ACC=00001110b mov A, 01110111b SHL 4 ; result ACC=01110000b
* NOTANDORXOR
- NOT expression expression1 AND expression2 expression1 OR expression2 expression1 XOR expression2 NOT 1 AND AND OR OR XOR XOR
*
- OFFSET expression OFFSET expression expression OFFSET
* LOWMID HIGH
- LOW expression MID expression HIGH expression expression LOW/MID/HIGH expression // expression LOW/MID/HIGH //
101
HT-IDE3000
* BANK
- BANK name BANK name name ROM name RAM BP BP 1:
mov A, BANK start mov BP, A jmp start
2:
mov mov mov mov mov A, BANK var BP, A A, OFFSET var MP1, A A, R1
*
1(Highest) 2 3 4 5 6 7 8 9(Lowest) ( ), [ ] + , - (unary), LOW, MID, HIGH, OFFSET, BANK *, /, %, SHL, SHR +, - (binary) > (greater than), >= (greater than or equal to), < (less than), <= (less than or equal to) = = (equal to), != (not equal to) ! (bitwise NOT) & (bitwise AND) | (bitwise OR), ^ (bitwise XOR)
102
() EQU $number number 0 29 30
Label1: $1: $2: $3: Label2: $0: Label3: $1: ; label1 ;; local label ;; local label ;; local label ; label ;; local label
mov a, 1 jmp $3 mov a, 2 jmp $1 jmp $2 Jmp $1 jmp Label1 jmp $0
103
HT-IDE3000
*
$ * + . / = ? [] AND BANK BYTE DB DBIT DC DUP DW ELSE END ENDIF ENDM ENDP EQU ERRMESSAGE EXTERN HIGH IF IFDEF IFE IFNDEF INCLUDE LABEL .LIST .LISTINCLUDE .LISTMACRO LOCAL LOW MACRO MESSAGE MID MOD NEAR .NOLIST .NOLISTINCLUDE .NOLISTMACRO NOT OFFSET OR ORG PAGE PARA PROC PUBLIC RAMBANK ROMBANK .SECTION SHL SHR WORD XOR
*
ADC ADCM ADD ADDM AND ANDM CALL CLR CPL CPLA DAA DEC DECA HALT INC INCA JMP MOV NOP OR ORM RET RETI RL RLA RLC RLCA RR RRA RRC RRCA SBC SBCM SDZ SDZA SET SIZ SIZA SNZ SUB SUBM SWAP SWAPA SZ SZA TABRDC TABRDL XOR XORM
*
A WDT WDT1 WDT2
104
HT-IDE3000 Options Project Project Option 3-12 (Define Symbol)
symbol1 [=value1] [,symbol2 [=value2 ] [,...]] *
debugflag=1, newver=3
(Listing file)

[line-number] offset [code] statement * Line-number (4 ) * offset-(4 )
105
HT-IDE3000
* code-(machine code)
4 code code R E = --- () () EQU ()
code code nn[xx] DUP nn DUP(?)
* statement-
n C
*
0 1 2 3 4 5 6 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 ... l l l l o o o o h h h h h h h h E C s o u r c e -p r o g ra m - s t a te m e n t Rn
(INCLUDE )
IIII 4 oooo 4 hhhh 4- E C R n

106
File: SAMPLE.ASM 1 2 3 4 5 6 7 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 33 33 33 33 34 35 36 37 38 39 40 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001 0002 0003 0000 0000 0001 0002 0003 0004 0005 0005 0006 0007 0007 0008 0009 000A 000B 000C 000C 0010 C C C C C C C Holtek Cross-Assembler Version 2.86 page 60 message `Sample Program 1' Page 1
.listinclude .listmacro #include "sample.inc" pa pac pb pbc pc pcc equ equ equ equ equ equ [12h] [13h] [14h] [15h] [16h] [17h]
extern extlab : near extern extb1 : byte clrpb macro clr pb endm clrpa macro mov a, 00h mov pa, a clrpb endm 00 00 00 0F55 0080 0080 0FAA 0093 0F00 0092 1F14 0700 0F00 0F00 2800 1234 5678 ABCD EF12 data b1 b2 bit1 .section `data' db ? db ? bit
R E
1 1 1 2 R E E E
code .section `code' mov a, 055h mov b1, a mov extb1, a mov a, 0aah mov pac, a clrpa mov a, 00h mov [12h], a clrpb clr [14h] mov a, b1 mov a, bank extlab mov a, offset extb1 jmp extlab dw 1234h, 5678h, 0abcdh, 0ef12h end
0 Errors 107
HT-IDE3000
108
C
C
10
C ANSI C ANSI C C C
* C * * * * * * * * * * C
109
HT-IDE3000
C
C
* * * * C
void main () { /* user application source code */ }
main main
C C (nest) C
/**/
/* this is a block comment */
*//* /**/ C
//
// this is a line comment 110
C
* * 31 * *
C auto bit break case char const continue default do else enum extern for goto if int long return short signed static struct switch typedef union unsigned void volatile while C doublefloat register
C bit char int void

const long short signed unsigned
any int int char, int char, int
111
ROM 16 8
HT-IDE3000

bit char unsigned char int unsigned short int unsigned short int long unsigned long
1 8 8 8 8 8 8 16 16
0, 1 -128~127 0~255 -128~127 0~255 -128~127 0~255 -32768~32767 0~65535

data_type variable_name [,variable_name...]; data_type variable_name const const ROM const const @ data_type variable_name @ memory_location; memory_location RAM 0 RAM memory_location RAM
int v1 @ 0x40; // declare v1 in the RAM bank 0 offset 0x40 int v2 @ 0x160; // declare v2 in the RAM bank 1 offset 0x60 112
int port [8] @ 0x20;
C
// array port takes memory location // 0x20 through 0x27
C C
:
int l L u U ul UL 0b 0B 0 0x 0X
113
HT-IDE3000
ANSI C (escape sequence)

\a \b \f \n \r \t \v \\ \? \' \"

07 08 0C 0A 0D 09 0B 5C 3F 27 22
ANSI C 1
enum {PORTA, PORTB, PORTC};
int -128~127
enum {BIG=10, SMALL=20};
0 1
enum boolearn {NO, YES};
NO 0 1
114
C

+ * / % % TURE FALSE > >= < <= = = !=
115
HT-IDE3000
AND OR NOT TURE FALSE && (TRUE) 1 0! 0 1 1 0 && AND OR ! NOT >><< ~ 1 (one's complement) 1 0 0 1 & AND OR ^ XOR ~ 1's >> << 10 += expr -= expr *= expr /= expr %= expr &= expr AND = expr OR ^= expr XOR >>= expr <<= expr
116
C
++ 1 ++ 1 -- 1 -- 1 ? ? :
f (a, (t=3, t+2), c);
5
117
HT-IDE3000
unary operator

[] () . sizeof ++ -~ ! + & * * / % + << >> < <= > >= == != & ^ && ?
1 1 1 AND XOR OR AND OR

118
C
= *= /= %= += -= <<= >>= &= = ^= ,
AND OR XOR
char long cast
(type-name) expression
expression type-name
119
HT-IDE3000

if-else
* if (expression) statement1; [else statement2; ] *
if-else expression expression else else else
*
if { (word_count> 80) word_count=1; line++; } else word_count++;
for
* for (initial-expression; condition-expression; update-expression) statement; *
initial-expression for condition-expression update-expression for
*
for (i=0; i<10;i++) a[i]=b[i]; // copy elements from an array to another array 120
C
while
* while (condition-expression) statement; *
while condition-expression while statement statement condition-expression
*
i= 0; while (b[i]!=0) { a [i]=b[i]; i++; }
do-while
* do
statement; while (condition-expression); * do-while while statement condition-expression condition-expression statement
*
i=0; do { a [i]= b [i]; i++; } while (i<10);
121
HT-IDE3000
break continue
* break; continue; *
break while for do-while switch break Continue while do-while Continue condition-expression for update-expression
*
char a[10], b[10], i, j; for (i=j=0;i<10;i++)//copy data from b[ ] to a[ ],skip blanks { if (b[i]== 0) break; if (b[i]== 0x20) continue; a[j++]= b[i]; }
goto
* goto label; *

*
switch
122
C
switch
* switch (variable) { case constant1: statement1; break; case constant2: statement2; goto Label1; case constant3: statement3; break; default: statement; Label1: statement4; break; } *
switch variable break break switch default if-else switch if-else switch switch
*
for (i=j=0;i<10;i++) { switch (b[i]) { case 0: goto outloop; case 0x20: break; default: a[j]=b[i]; j++; break; } } outloop: 123
HT-IDE3000
C C (bank) (bank)(Linker) ROM
return-type function-name (arg1, arg2, ...) var-type arg1; var-type arg2;
return-type function-name (var-type arg1, var-type arg2, ...)
return-type return-type void function-name arg1, arg2
// classic form return-type function-name (arg1, arg2, ...); // modern form return-type function-name (var-type arg1, var-type arg2, ...);
// classic form return-type function-name (arg1, arg2, ...) var-type arg1; var-type arg2; { statements; } // modern form return-type function-name (var-type arg1, var-type arg2, ...) { statements; } 124
C

*

*

return return-type void return return return
varpoint var varpoint var data-type *var_name; data-type C var_name var_name * C var_name *& &* *& +++- .
0 1 (one-dimension) C C
125
HT-IDE3000

(Structures and Unions)
* struct struct-name { data-type member1; data-type member2; ... data-type membern; } [variable-list]; *
C struct struct-name data-type variable-list struct-name struct struct-name variable-list; variable.member1 variable member1 (nested structure)
*
struct person_id { char id_num [6]; char name [3]; unsigned long birth_date; } mark; 126
C
* union union-name { data-type member1; data-type member2; ... data-type memberm; } [variable-list]; *
union union-name variable-list
*
union common_area { char name [ 3 ]; int id; long data; } cdata;
C #line # #
127
HT-IDE3000
#define
* #define name replaced-text #define name [(parameter-list)] replaced-text *
#define replaced-text(\)
*
#define #define #define #define TOTAL_COUNT USERNAME MAX(a,b) SWAP(a,b) 40 Henry (((a)>(b))?(a):(b)) {int tmp;\ tmp=b;\ b=a;\ a=tmp;}
#error
* #error "message-string" *
#error message-string
*
#if #error #endif TOTAL_COUNT > 100 "Too many count."
#if
#else
#endif
* #if expression source codes1 [#else source codes2] #endif *
#if #endif expression #else expression source codes1 source codes2 source code2
128
*
#define MODE 2 #if MODE > 0 #define DISP_MODE MODE #else #define DISP_MODE 7 #endif
C
#ifdef
* #ifdef symbol source codes1 [#ifdef source codes2] #endif *
#ifdef #if symbol #else symbol source codes1 source codes2
*
#ifdef DEBUG_MODE #define TOTAL_COUNT 100 #endif
#ifndef
* #ifndef symbol source codes1 [#else source codes2] #endif *
#ifndef #ifdef #else symbol source codes1 source codes2
*
#ifndef DEBUG_MODE #define TOTAL_COUNT 50 #endif
129
HT-IDE3000
#elif
* #if expression1 source codes1 #elif expression2 source codes2 [#else source codes3] #endif *
#elif #if expression1 source codes1 expression1 expression2 source codes2 source codes3 source codes3
*
#if MODE==1 #define DISP_MODE 1 #elif MODE==2 #define DISP_MODE 7 #endif
defined
* #if defined symbol source code1 [#else source code2 #endif * defined #if #elif #ifdef symbol #if defined symbol #ifndef symbol #if !defined symbol *
#if defined DEBUG_MODE #define TOTAL_COUNT 50 #endif
130
C
#undef
* #undef symbol *
#undef #undef
*
#define TOTAL_COUNT 100 ... #undef TOTAL_COUNT #define TOTAL_COUNT 50
#include
* #include or #include "file-name" * #include INCLUDE file-name INCLUDEC "file-name" C file-name *
#include #include "my.h"
131
HT-IDE3000
C
C ANSIC
C @ bit norambank double float Register
rambank0
vector
(memory bank) 0 0 C rambank0 0 * #pragma rambank0 //data declarations #pragma norambank * rambank0 C 0 norambank *
#pragma rambank0 unsigned int i, j; long len; #pragma norambank unsigned int iflag #pragma rambank0 int tmp; ... i=1; iflag=1 // i, j 0 // len 0 // iflag // norambank // tmp 0 //MOV A, 1 () //MOV _i, A //MOV //MOV //MOV //MOV //MOV //MOV 132 A, BANK_iflag [04H], A A, OFFSET_iflag [03H], A A, 1 [02H], A
C
C C RAM/ROM RAM 0 #pragma rambank0 *
#pragma rambank0 bit test_flag; bit testfunc( bit f1, bit f2) { ... return 0; } // 0 //bit function //bit arguments
//return bit value
*
- -
* #asm [label:] opcode [operands] ... #endasm * #asm #endasm C #asm (#asm #endasm ) *
//convert low nibble value in the accumulator to ASCII #asm ; this is an inline assembly comment and a, 0fh sub a, 09h sz c add a, 40h-30h-9 add a, 30h+9 #endasm
133
HT-IDE3000
C #pragma ISRs #pragma vector ISR #pragma vector return RETI *
#pragma vector symbol @ address
*
symbol address 0 main( )
*
ISR - ISR void - ISR ISR - ISR - ISR C C (built-in function) ISR
*
#pragma vector timer0 @ 0x8 extern void ASM_FUNCTION(); void setbusy(){ ... } void timer0(){ ... ASM_FUNCTION(); _delay(3) setbusy(); }
//The ASM_FUNCTION should be an //assembly function //Ok; built-in function //Wrong! Do not call function
134
"@" *
data_type variable_name @ memory_location
*
C
memory_location RAM/ROM memory_location RAM/ROM memory_location RAM
*
int v1 @ 0x5B; int v2 @ 0x2F0; // v1 RAM bank 0, offset 0x5B // v2 RAM bank 2, offset 0xF0
C *
static i; void f1 () { i=1; } void f2 () { static int j; // , // OK
// , // local static variable is not supported
... }
C 0b 0B *
0b101=5 0b1110=14

135
HT-IDE3000
256
const char carray [ ]={1,2,3}; // , const char carray [3]={1,2,3}; //
main( ) C
//test.c void f1 (char *s); void f2 () { f1 ("abcd") //"abcd" // test.c main( ) // Holtek C ... } ... void main(){ ... }
*
unsigned int i1=0; unsigned int i2; const unsigned int i3; // ; , // // ; ,
const unsigned int i4=5; // const char a1[5]; // ; , const const const const char char char char a2[5]={0x1 0x2 0x3 0x4 0x5}; // a2[4]="abc"; //={`a', `b', `c', 0} a2[3]="abc"; //={`a', `b', `c'} a2[2]="abc"; //
136
C
// "*","/","%" * WDT & halt & nop C
void_clrwdt ( ) void_clrwdt1 ( ) void_clrwdt2 ( ) void_halt ( ) void_nop ( ) CLR WDT CLR WDT1 CLR WDT2 HALT NOP //rotate //rotate //rotate //rotate //rotate //rotate //rotate //rotate 8 bits data right 8 bits data right through carry 16 bits data right 16 bits data right through carry 8 bits data left 8 bits data left through carry 16 bits data left 16 bits data left through carry
* /
void_rr (int*); void_rrc (int*); void_lrr (long*); void_lrrc (long*); void_rl (int*); void_rlc (int*); void_lrl (long*); void_lrlc (long*);
* /
void_swap (int*); //swap nibbles of 8 bits data //delay n instruction cycle
*
void_delay(unsigned long);
_delay _delay
* 1
// watch dog timer // void error (){ delay (0); // , while(1); } void dotest(){ unsigned int ui; ui =0x1; rr(&ui); //rotate right if (ui != (unsigned int)0x80) error(); ui =0xab; swap(&ui); if (ui != (unsigned int)0xba) error(); } 137
HT-IDE3000
void main(){ unsigned int i; for(i=0; i<100; i++){ _clrwdt(); _delay(10); // 10 dotest(); } }
* 2
// watch dog timer // void do test(){ ... } void main(){ unsigned int i; for(i=0; i<100; i++){ _clrwdt1(); _clrwdt2(); dotest(); } }
"call"
/ main() _clrwdt() _clrwdt1() _clrwdt2() _halt() _nop() _rr(int*); _rrc(int*); _lrr(long*); _lrrc(long*); _rl(int*); _rlc(int*); _lrl(long*); _lrlc(long*); _delay(unsigned long) * / % constant array 138 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1

11
C C C C C * Little endian * * * * * C * C * ISR
Little Endian
C little-Endian WORD WORD (least significant byte)(most significant byte)
long var @ 0x40; var = 0x1234;
0x40 0x34 0x41 0x12
139
HT-IDE3000
Assembler C C C C (underscore) C C C
C
TimerCt TMP
_TimerCt _TMP
C
void main(){ int i, j, k; long m; char c; i = j = m = c = 2; #asm set CR3[1].2 #endasm } ; k
; set bit 10 of m, i.e. m= 0x400
140
#line 2 "C:\Holtek IDE\SAMPLE\NAME.C" LOCAL CR1 DB ? ; i #pragma debug variable 2 CR1 i #line 2 "C:\Holtek IDE\SAMPLE\NAME.C" LOCAL CR2 DB ? ; j #pragma debug variable 2 CR2 j #line 3 "C:\Holtek IDE\SAMPLE\NAME.C" LOCAL CR3 DB 2 DUP (?) ; m #pragma debug variable 2 CR3 m #line 4 "C:\Holtek IDE\SAMPLE\NAME.C" LOCAL CR4 DB ? ; c #pragma debug variable 2 CR4 c
i CR1 j CR2m CR3 c CR4k
:
(memory bank) set CR3 [1].2 CR3 LOCAL 0
C
GetKey IsBusy
_GetKey _IsBusy
141
HT-IDE3000
C 0
GetKey (int row, long col)
row GetKey0 col GetKey1
C RAM 0 0
void function (int a, int b)
a function0 b function1 BYTE WORD 2 "DB 2 DUP(?)"
C A RH charunsigned charintunsigned intshortunsigned short A long unsigned longpointer RH A
: RH RAM 0
ISR ISR ISR ISR
142
C
C C
* RH * (public) * 0
* A RH
C
* (external) *
C long KEYIN( int row, long col );
;; RH EXTERN RH:BYTE ;; PUBLIC _KEYIN, KEYIN0, KEYIN1 ;; 0 RAMBANK0 KEYINDATA ; ram (bank) KEYINDATA .section `data' KEYIN0 DB? ;row KEYIN1 DB 2 DUP (?) ;col, `KEYIN1 DW ?' ;function body CODE .section `code' _KEYIN: ... MOV A, KEYIN0 ; row ... MOV A, KEYIN1 ; col ... MOV A, KEYIN1[ 1 ] ; col ... ;; A RH MOV A, 0A0H ; 0xA010 MOV RH, A ; 0xA0 RH MOV A, 10H ; 0x10 A RET 143
HT-IDE3000
C
// , extern long KEYIN(int row, long col); long rc; ... // rc = KEYIN(10, 20L);
C
C ROM BP
C
*
* RH * *
* * C RAM/ROM
C RAM/ROM BP C
144
* A RH
C long KEYIN(int row, int col); ROM
//--------------------------------------------------// In C file, //--------------------------------------------------long KEYIN(int row, long col){ ... } void main( ){ ... } ;;--------------------------------------------------;; In assembly file ;;--------------------------------------------------;; RH EXTERN RH:BYTE ;; extern _KEYIN:near ;;underscore and function name ;; extern _KEYIN0:byte ; row extern _KEYIN1:byte ; col, 2 bytes, ; BYTE code_ki .section `code' ;; , KEYIN(0x10, 0x200L) mov a, 10H mov KEYIN0, a ; row 10H mov a, 2H mov KEYIN1[1], a ; col 02H, 00H clr KEYIN1 ; ;; C call _KEYIN ;; A RH ;; A , RH
C long KEYIN(int row, int col);
145
HT-IDE3000
ROM
//--------------------------------------------------// In C file, //--------------------------------------------------long KEYIN(int row, long col){ ... } ;--------------------------------------------------; In assembly file ;--------------------------------------------------; RH EXTERN RH:BYTE ; extern_KEYIN:near ;; extern_KEYIN0:byte ; row extern_KEYIN1:byte ; col, 2 bytes, ; BYTE code_ki .section `code' ;; , KEYIN(0x10, 0x200L) mov a, 10 mov KEYIN0,a ; row mov a, 2 mov KEYIN1[ 1 ],a ; col clr KEYIN1 ; col ;; ROM ;; BP mov a, bank _KEYIN mov bp, a ; bank number call _KEYIN ; ;; A RH ;; A , RH
ISR
ISR ISR C ISR ISR C ISR C
146

12
C ROM/RAM (task file) IDE HT-ICE
Options Project
* libfile1[,libfile2...]
147
HT-IDE3000
* section_name=address[,section_name=address]... section_name address xxxx

Holtek (R) Cross Linker Version 7.34 Copyright (C) HOLTEK Microelectronics INC. 2002-2003.All rights reserved. Input Object File: C:\SAMPLE\T2.OBJ Input Object File: C:\SAMPLE\T1.OBJ Start End Length Class Name 0000h 00F2h 00F3h CODE TEXT (C:\SAMPLE\T1.OBJ) 00F3h 0114h 0022h CODE SUB (C:\SAMPLE\T2.OBJ) 0000h 0063h 0064h DATA DAT (C:\SAMPLE\T1.OBJ) Address Public by Name 001Ch BREAKL 00A4h CHKSTACK 0042h FAC_DB Address Public by Value 001Ch BREAKL 0042h FAC_DB 00A4h CHKSTACK HLINK: Program entry point at section code (address 0) of file C:\SAMPLE\T1.OBJ
148
IDE IDE IDE
149
HT-IDE3000
150

8 LCD LCD
151
HT-IDE3000
152

13
(Linker) PUBLIC .OBJ
* * *
153
HT-IDE3000
13-1 Tools Library Manamger 13-2
13-1
13-2
154
13-2 Open 13-3
File Name [N] OK 13-4 YES
13-3
13-4
"Object in Directory"[ADD] "Object in Library"[Delete]
155
HT-IDE3000
"Object in Library"[ExTract] "Object in Directory" Open 13-3 File Name OK 13-2 "Object in Library" "Objects Information" * (ROM) (code section) * (ROM) * (RAM) (data section) * (RAM) *
156
LCD
LCD
14
LCD HT-LCDS LCD HT-LCDS LCD LCD LCD
LCD
LCD LCD HT-LCDS LCD LCD HT-LCDS LCD LCD LCD LCD (Tools menu) LCD Simulator LCD 14-1 LCD HT-LCDS
14-1 157
HT-IDE3000
.lcd (current project)HT-LCDS HT-LCDS File New New File Save Save
HT-LCDS HT-LCDS File New Open LCD
HT-LCDS Tools LCD simulator LCD 14-2 COM/SEG (bitmap) LCD COM/SEG
14-2
158
HT-LCDS
O pen Cut P a s te S im u la te
LCD
New
S ave
Copy
Panel In fo r m a tio n
About
14-3
New Open Save Cut Copy Paste I S
LCD
LCD
LCD .bmp HT-LCDS Edit Panel Editor LCD LCD LCD
159
HT-IDE3000
LCD
* LCD segment common
()
* COM/SEG
HT-LCDS File New 14-4 LCD COM/SEG [OK] Tools LCD 14-2
14-4
*
COM SEG LCD COMMON SEGMENT LCD LCD
* * *
Browse LCD 14-5
160
LCD
14-5 LCD COM SEG
* HT-LCDS File New Pattern Information 14-6 COM/SEG "" * HT-LCDS File Open 14-2 14-2 COM/SEG * HT-LCDS Edit Panel Editor " Panel Editor " * LCD 14-2 COM/SEG 14-6 Pattern List .bmpSize Com Seg COM/SEG * Pattern List Browse HT-LCDS * X/Y * [OK] LCD 14-2 File Save Save
161
HT-IDE3000
14-6
* 14-2 COM/SEG [Delete] Cut * * 14-2 COM/SEG 14-6 Pattern List [OK] * 14-2(Select-drag-drop) * 14-2 COM/SEG 14-6 X Y [OK] LCD 14-2 HT-LCDS File Save Save
162
LCD
COM/SEG ROW/COL HT-LCDS File Import user matrix 2 COMs 6 SEGs LCD 3 ROWs x 4 COLs
COM0-SEG0 COM1-SEG0 COM0-SEG4 COM0-SEG1 COM1-SEG1 COM0-SEG5 COM0-SEG2 COM1-SEG2 COM1-SEG4 COM0-SEG3 COM1-SEG3 COM1-SEG5
; MATRIX.DEF ; Comment line ROW=3 COLUMN=4 ; mapping syntaxROW,COL=>COM,SEG 0,0 => 0,0 ; Map Row0 co10 to COM0 0,1 => 0,1 ; Map Row0 co11 to COM0 0,2 => 0,2 ; Map Row0 co12 to COM0 0,3 => 0,3 ; Map Row0 co13 to COM0 1,0 => 1,0 ; Map Row0 co10 to COM1 1,1 => 1,1 ; Map Row0 co11 to COM1 1,2 => 1,2 ; Map Row0 co12 to COM1 1,3 => 1,3 ; Map Row0 co13 to COM1 2,0 => 0,4 ; Map Row0 co10 to COM0 2,1 => 0,5 ; Map Row0 co11 to COM0 2,2 => 1,4 ; Map Row0 co12 to COM1 2,3 => 1,5 ; Map Row0 co13 to COM1
SEG0 SEG1 SEG2 SEG3 SEG0 SEG1 SEG2 SEG3 SEG4 SEG5 SEG4 SEG5
163
HT-IDE3000
Panel Editor HT-LCDS LCD
14-7
LCD
* Edit Panel Editor Panel
Editor
* Panel Editor File Open .bmp
Panel Editor .BMP ()
* Panel Editor 14-7 * COM/SEG
Save Pattern
* * Panel Editor File
Save
* Panel Editor HT-LCDS
164
LCD
Edit Add Item Batch HT-LCDS .BTH Menu Add Item Batch HT-LCDS .BTH
; this is a comment line. ; item syntax: BMPfile.bmp, COM, SEG, X, Y CRYSTAL.BMP, 0, 2, 120, 30 FION.BMP, 2, 3, 200, 50 CLIN.BMP, 3, 2, 130, 90 STEVE.BMP, 4, 4, 20, 040
LCD HT-LCDS 14-8 HT-LCDS Configure Set Panel Color
14-8 : ECB HTG21X0 LCD
165
HT-IDE3000
VFD HT-LCDS MCU HT49CVX Configure Set VFD pattern Colour
166
LCD
LCD
LCD HT-LCDS Tools LCD Simulator HT-LCDS * S HT-LCDS LCD
* S
HT-LCDS LCD HT-LCDS LCD LCD
LCD HT-LCDS
14-11
167
HT-IDE3000
168
(VPM)
(VPM)
15
VPM HT-IDE VPM
169
HT-IDE3000
VPM
15-1 VPM VPM VPM (current component) Mode Current Component Time Cycle VPM (configuration)(running) VPM VPM
15-1 170
(VPM)
VPM
File 15-2 15-3
15-2
15-3
New VPM VPM VPM
Open VPM
Save
Save As
Recent File 4
171
HT-IDE3000
Exit VPM
Function 15-4 15-5
15-4
15-5
Add Add Add Peripheral 15-6 OK
15-6
172
(VPM)
Del Del
Connect Connect 15-7 Connect/Disconnect
15-7
15-7 LED_0 LED LED_0Select combo LED_0 Select List Register Bit LED LED_0 CPU A bit0
173
HT-IDE3000
CONFIG Configure CONFIG 15-8 LED CONFIG
15-8
Mode VPM Mode Function Mode VPM Add/Del/CONFIG VPM IDE
VPM
LED
15-9
LED 0 1 LED (Configure) LED
174
Button/Switch
(VPM)
15-10
BUTTON/SWITCH debounce time switch status Debounce BUTTON non-latching SWITCH latching DipSwitch switch
15-11
175
HT-IDE3000
Seven Segment Display
15-12
LED ABCDEFG ptr LED LED
Resistor
15-13
VCC VSS (pull-up) (pull-down)
Logic gate
15-14
Add 15-14 Pin Number
176
(VPM)
Matrix key Matrix key debounce time (column) VCC VSS
15-15
4 4 Matrix key 4 4 4 4
Rectangle wave generator
15-16
2 2 (machine cycle) 2
177
HT-IDE3000
IDE3000
HT-IDE 3000 * HT48C10-1 Project/New * scanning.asm Project/Edit Holtek IDE\SAMPLE\CHAP15 * Holtek IDE Options/Debug/Mode * Project/Build VPM
* VPM * Add LED 8 8 LED * REGISTER Add VCC * LED VCC LED PA bit n n=0~7 LED_0 VCC LEC_0 PA bit 0 - LED_0 LED_0 - LED_0 15-18 - LED_0 PA bit0 - LED_n PA bit_n * Mode VPM
178
(VPM)
HT-IDE3000 LED VPM
15-17
15-18
179
HT-IDE3000
180

181
HT-IDE3000
182
A
A
A
INCLUDE LABEL .LIST .LISTINCLUDE .LISTMACRO LOCAL LOW MACRO MESSAGE MID MOD NEAR .NOLIST .NOLISTINCLUDE .NOLISTMACRO NOT OFFSET OR ORG PAGE PARA PROC PUBLIC RAMBANK ROMBANK .SECTION SHL SHR WORD XOR
*
$ * + . / = ? [] AND BANK BYTE DB DBIT DC DUP DW ELSE END ENDIF ENDM ENDP EQU ERRMESSAGE EXTERN HIGH IF IFDEF IFE IFNDEF
183
HT-IDE3000
*
ADC ADCM ADD ADDM AND ANDM CALL CLR CPL CPLA DAA DEC DECA HALT INC INCA JMP MOV NOP OR ORM RET RETI RL RLA RLC RLCA RR RRA RRC RRCA SBC SBCM SDZ SDZA SET SIZ SIZA SNZ SUB SUBM SWAP SWAPA SZ SZA TABRDC TABRDL XOR XORM
*
A WDT WDT1 WDT2
ADD A, [m] ADDM A, [m] ADD A, x ADC A, [m] ADCM A, [m] SUB A, x SUB A, [m] SUBM A, [m] SBC A, [m] SBCM A, [m] DAA [m] AND A, [m] OR A, [m] XOR A, [m] ANDM A, [m] ORM A, [m] XORM A, [m] AND A, x OR A, x XOR A, x CPL [m] CPLA [m] ACC ACC ACC ACC ACC ACC ACC ACC ACC ACC ACC ACC ACC ACC ACC ACC ACC
ACC "" ACC ACC "" ACC ACC "" ACC ACC "" ACC "" ACC "" ACC "" ACC ACC "" ACC ACC "" ACC ACC
184
A
INCA [m] 1 ACC INC [m] 1 DECA [m] 1 ACC DEC [m] 1 RRA [m] RR [m] RRCA [m] RRC [m] RLA [m] RL [m] RLCA [m] RLC [m]
1 ACC 1 1 ACC 1 1 ACC 1 1 ACC 1
MOV A, [m] MOV [m], A MOV A, x CLR [m].i SET [m].i JMP addr SZ [m] SZA [m] SZ [m].i SNZ [m].i SIZ [m] SDZ [m] SIZA [m] SDZA [m] CALL addr RET RET A, x RETI
ACC ACC ACC
1
0 0 i 0 i 0 1 0 1 0 1 0 ACC 1 0 ACC
185
HT-IDE3000
TABRDC [m] TABRDL [m] NOP CLR [m] SET [m] CLR WDT CLR WDT1 CLR WDT2 SWAP [m] SWAPA [m] HALT
ROM TBLH ROM TBLH
4 4 4 4 ACC
186
B
B
B
A0005
Undefined symbol
A0010 Unexpected symbol
A0011 Symbol already defined elsewhere
A0012 Undefined symbol in EQU directive
EQU
A0013 Expression syntax error
A0014 Cross Assembler internal stack overflow
A0016 Duplicated MACRO argument
MACRO
A0017 Syntax error in MACRO parameters
MACRO
A0018 Wrong number of parameters
MACRO MACRO
A0019 Redefined EQU
EQU
187
HT-IDE3000
A0020 Multiple section defined

A0021 DBIT could be used in data section only
DBIT
A0022 DB could be used in data section only
DB
A0024 Syntax error
A0025 MACRO too deep
MACRO 7 MACROs
A0026 INCLUDE too deep
INCLUDE 7
A0027 IF too deep
IF/ENDIF 7
A0028 ELSE without IF
ELSE IFIF/ELSE/ENDIF
A0029 ELSE after ELSE
ELSE ENDIF IFIF/ELSE/ENDIF
A0030 ENDIF without IF
ENDIF IFIF/ELSE/ENDIF
A0031 Open conditional
IF/IFE/ENDIF
A0032 expected
A0033 ORG overlay
ORG
A0034 Value out of range
A0035 RAM-space limit exceeded
RAM
188
B
A0036 ROM-space limit exceeded
ROM
A0037 DC could be used in code section only
DC
A0038 End of file encountered in MACRO definition
MACRO ENDM
A0039 Constant expected
A0040 Open procedure
ENDP PROC
A0041 Block nesting error
PROC/ENDP
A0042 expected

A0043 Non-digit in number
A0044 EXTERN needs an identifier
EXTERN
A0045 Data type expected
A0046 Unknown data type
A0047 "" expected
""
A0048 Too many local labels
30
A0049 Redefined Section in ROMBANK is inconsistent
ROMBANK
A0050 Bank out of range
ROMBANK
A0051 Section Undefined in ROMBANK directive
ROMBANK
189
HT-IDE3000
A0052 Too many errors
A0053 LABEL could be used in data section only
LABEL
A0054 ROMBANK/RAMBANK shall be defined before SECTION is declared
ROMBANK/RAMBANK
A0055 Record length overflow
A4001 Incorrect command line option
A4002 Redefined symbol
A4003 No source file name
A4004 Incorrect command line syntax
A4005 Could not find file
A4007 Bad instruction format file
A4008 Cross Assembler internal fatal error
A4009 Out of memory
190
C
C
C
L1001
No object files specified

L1002 Object file filename.obj is not found on pass1
pass1 filename.obj filename.obj
L1003 Out of memory

L1004 Illegal section address "dddd"
/ADDR dddd
L1005 Illegal command option "option"
option
L1006 Batch file "lbatch.bat" is not found
"lbatch.bat" lbatch.bat
L1007 Illegal file name "filename.obj"
filename.obj filename.obj
L1008 Command line syntax error
191
HT-IDE3000
L1009 Illegal object file "filename.obj", RecType=xx
filename.obj
L1010 Cannot close object file "filename.obj"

L1011 Record "xx" H check sum error
xxH
L1012 MCU information mismatch
file "filename1.obj" and "filename2.obj"
L1013 Library file "libname.lib" does not exist
libname.lib libname.lib
L1014 Cannot close the library file "filename.lib"

L1015 Library file "libname.lib"is not found
libname.lib
L1016 Object file "filename.obj" is not found on pass2
pass2 filename.obj
L1017 Cannot write the checksum of record "xx" H
xxH
L1018 Cannot write data of record "xx" H
xxH PC
L1019 Cannot open the debug file "debugname.dbg"
debugname.dbg PC
192
C
L1020 Cannot open the task file "taskname.tsk"
taskname.tsk PC
L1021 Cannot open the map file "mapname.map"
mapname.map PC
L1022 Cannot create the debug file "debugname.dbg"
debugname.dbg PC
L1023 Cannot create the task file "taskname.tsk"
taskname.tsk PC
L1024 Cannot create the map file "mapname.map"
mapname.map PC
L1025 Program code is too large
ROM CODE
L1026 Program data is too large
RAM DATA RAM
L1027 Syntax error in batch file "batch.bat"
L1028 Cannot close the batch file "batch.bat"

L1029 L1030 L1031 Cannot open the binary file Cannot create the binary file Public symbols are duplicated
Public symbol "sym1" in module "mod-name1" Public symbol "sym1"in module "mod-name2" "sym1""mod-name1""mod-name2"
193
HT-IDE3000
L1032 Internal error for File Record

L1033 Internal error when obtaining the global index

L1034 Illegal class type for section "sec-name" in the file "filename.obj"
filename.objsec-name CODE DATA (filename.obj) Holtek
L1035 Internal error when section "sec-name" of the file "filename.obj" is located
sec-name
L1036 The absolute address for the section is illegal
L1037 Two sections are overlapping
Section "sec-name1" in the file "filename1.obj" Section "sec-name2" in the file "filename2.obj" "filename1.obj""sec-name1" ROM RAM "filename2.obj""sec-name2" ROM RAM
L1038 ROM/RAM (Bank xx) memory allocation failed for section "sec-name"
(size) xxH in the file "filename.obj" (filename.obj)(sec-name) ROM RAM
L1039 Internal error, failed to get SECDEF

L1040 L1041 Illegal ROM bank number A section in ROM bank is not defined
194
C
L1042 Failed to move the write pointer for task file

L1043 Illegal Fixupp record in the file "binary.obj"

L1044 L1045 L1046 L1047 L1048 L1049 L1050 L1051 L1052 L1053 L1054 L1055 L1056 L1057 L1058 L1059 L1060 L2001 Illegal LIBHED record in the file Illegal LIBNAM record in the file Illegal LIBDIC record in the file Caller is not a local section Procedure ("proc-name")is redefined Illegal extern index Local section name not in LNAMES No corresponding section for extern index Fail to get the global block ID MCU RAM information mismatch Illegal RAM bank number A section in RAM bank is not defined Both banks "bank-no1" and "bank-no2" contains the section "sec-name" Total length of combined sections exceeds the bank size The specified section address conflicts with the absolute section The bank number of specified section address conflicts with the section Error Fixmth data is referred by bank Fixupp Unresolved external symbol "ext-symbol" in file "filename.obj"
filename.obj "ext-symbol" ext-symbol ext-symbol
195
HT-IDE3000
L2002 Symbol type mismatch
Public symbol "symbol1" in module "mod-name1" External symbol "symbol1" in module "mod-name2"
L3001 Specified section "sec-name" does not exist
/ADDR sec-name
L3002 Specified address "xxxx" for the code section "sec-name" is illegal
/ADDR sec-name
L3003 L3004 Specified address "xxxx" for the data section "sec-name" is illegal Recursive situation occurred in procedure "proc-name"
196
D
D
D
U0001 U0002 U0003 U0004 U0005 U0006 U0007 U0008 U0009 U0010 U0011 U0012 U0013 U0014
No library file name Library file does not exist Library file exists already The contents of the library file will be discarded if operation is executed Can't open the library file Can't create a library file Can't create a TMP library file Incorrect library file Can't open the list file Can't insert a new module to library Can't open the object file Delete operation fails Replace operation fails A module with the same name exists in library already
ADD
U0015 The module doesn't exist in library
DELETE , REPLACE , EXTRACT
197
HT-IDE3000
U0016 No enough memory
U0017 Bad object file
U0018 No public name in the specified module
PUBLIC
U0019 U0020 U0021 Illegal operation Fail to close a file Check sum is incorrect
U0022 Fail to out record to the library file
U0023 Out checksum error
U0024 Fail to seek file
198
E C
E
C
E
C1000 C1001 C1002 C1003 C1004 C1005 C1007 C1008 C1009 C1010 C1011 C1012 C1013 C1014 C1015 C1016 C1017 C1018 C1019 C1020 C1021 C1022 C1024 C1025 C1026 C1027 Unterminated conditional in #include Unterminated #if/#ifdef/#ifndef Unidentifiable control line Could not find include file filename Illegal operator * or & in #if/#elsif Bad operator (operator) in #if/#elsif #elif with no #if #elif after #else #else with no #if #else after #else #endif with no #if #define token is not a name #define token token cannot be redefined Incorrect syntax for "defined" Bad syntax for control line Preprocessor control control not yet implemented Duplicate macro argument Syntax error in macro parameters macro redefinition on macro-name Disagreement in number of macro arguments EOF in macro argument list # not followed by macro parameter macro argument is too long Unknown internal macro Unterminated string or char const Undefined expression value
199
HT-IDE3000
C1028 C1030 C1031 C1034 C1035 C1036 C1037 C1038 C1040 C1042 C1043 C1044 C1045 C1046 C1047 C1048 C1049 C2001 C2002 C2004 C2005 C2006 C2007 C2008 C2009 C2010 C2011 C2012 C2013 C2014 C2015 C2016 C2017 C2018 C2019 C2020 C2021 C2022 C2023 C2024 Bad ?: in #if/#endif Bad number number in #if/#elsif Empty character constant String in #if/#elsif Syntax error in #undef Syntax error in #else Syntax error in #line Syntax error in #ifdef/#ifndef Syntax error in #if/#elsif Syntax error in #include Syntax error in #if#endif Syntax error in #endif Lexical error in preprocessor Internal error in #if/#elsif EOF inside comment #error directive: "err-string" #line specifies number out of range unrecognized declaration invalid use of auto/register invalid use of specifier invalid type specification invalid use of typedef missing identifier redeclaration of identifier empty declaration invalid storage class redeclaration of identifier previously declared at file_line_no redefinition of identifier previously defined at file_line_no illegal initialization for identifier undefined size for type identifier extraneous identifier identifier size is an illegal array size illegal formal parameter types missing parameter type expecting an identifier extraneous old-style parameter list illegal initialization for parameter identifier invalid operator field declarations missing operator tag type is an illegal bid-field type
200
E C
C2025 C2026 C2027 C2028 C2029 C2030 C2031 C2032 C2033 C2034 C2035 C2036 C2037 C2038 C2039 C2040 C2041 C2042 C2043 C2044 C2045 C2046 C2047 C2048 C2049 C2050 C2051 C2053 C2054 C2055 C2056 C2057 C2059 C2060 C2061 C2062 C2063 C2064 C2065 C2067 size is an illegal bit-field size field name missing type is an illegal field type undefined size for field type identifier size of type exceeds number bytes illegal use of incomplete type type conflicting argument declarations for function identifier missing name for parameter number in function identifier undefined size for parameter type identifier declared parameter identifier is missing undefined static type identifier undefined label identifier expecting an enumerator identifier underflow/overflow in value for enumeration constant identifier unknown enumeration identifier type error in argument number to identifier, found type1 expected type2 too many arguments in identifier insufficient number of arguments in identifier unknown size for type type assignment to const identifier identifier assignment to const location addressable object required operands of identifier have illegal types type1 and type2 operand of unary operator has illegal type type syntax error; found token1 expecting token2 too many errors skipping token invalid operand of unary &; identifier is declared resister invalid type argument type to sizeof sizeof applied to a bit field cast from type1 to type 2 is illegal found type expected a function field name expected left operand of -> has incompatible type type illegal use of type name type illegal use of argument illegal expression lvalue required unknown field identifier of type intializer must be constant
201
HT-IDE3000
C2068 C2069 C2070 C2071 C2072 C2073 C2074 C2075 C2076 C2077 C2078 C2079 C2080 C2081 C2082 C2083 C2084 C2085 C2086 C2087 C2088 C2089 C2090 C2091 C2092 C2093 C2094 C2095 C2096 C2097 C2098 C2099 C2100 C2101 C2102 C2103 C2104 C2105 C2106 C2107 cast from type1 to type2 is illegal in constant expressions invalid initialization type; found type1expected type2 cannot initialize undefined type missing { in initialization of type number of initializers not matched illegal character @ invalid hexadecimal constant identifier invalid binary constant identifier invalid octal constant identifier missing character idertifier literal too long missing ' illegal character character idertifir1 is a preprocessing number but an invalid identifie2 constant invalid floating constant identifier ill-formed hexadecimal escape sequence integer expression must be constant illegal break statement illegal continue statement illegal case statement case label must be a constant integer expression illegal default label extra default label extraneous return value missing label in goto unrecognized statement illegal statement termination redefinition of label identifier previously defined at life_line_no illegal type type in switch expression duplicate case label value illegal return type; found type1 expected type2 type error: pointer expected illegal type "array of type" missing array size type error: array expected illegal type type type error: function expected duplicate field name identifier in type illegal initialization of extern identifier #endasm expected
202
E C
C2109 C2110 C2111 C2112 C2113 C2114 C2115 C2116 C2117 C2118 C2119 C2120 C2121 C2122 C2123 C2124 C2125 C2126 C2127 C2128 C2129 C2130 C2131 C2132 C2133 C2134 C2135 C2136 C2137 C2138 C2200 C2201 C2202 variable with initialized value must be declared as constant ROM constant variable must be initialized constant variable must be declared as global overflow in octal escape sequence bit variable cannot be declared as constant unclosed comment illegal operation for bit variable bit pointer not allowed invalid pragma string bit member in structure not allowed ROM constant variable must not be declared as extern vector function must not have parameters vector function must be void type const string must be used in the C file having main function array should specify the size size of "array of type" exceeds n bypte should specify ROM address RAM address "@" cannot be used with constant variables variable with specific RAM address "@" should be declared as global left operand of . has incompatible type undeclared identifier array size exceeds 255 more than 255 bytes in type invalid initial value bit array not allowed redefinition of vector invalid vector vector is used syntax error; redundant token after #asm/#endasm in-line asm should be put with a function internal error insufficient memory read error
203
HT-IDE3000
C4001 C4002 C4003 C4004 C4006 C4008 C4009 C4010 C4011 C4012 C4013 C4014 C4015 C4016 C4017 C4018 C4019 C4020 C4021 C4022 C4023 C4024 C4026 C4027 C4028 C4029 C4030 C4031 C4033 C4034 C4035 C4036 C4037 C4039 C4041 C4042 C4043 empty declaration empty input file missing prototype inconsistent linkage for identifier previously declared at file_line_no declaration of identifier does not match previous declaration at file_line_no register declaration ignored for type identifier extraneous 0-width bit field type identifier ignored more than 127 fields in type more than 31 parameter in function identifier old-style function definition for identifier compatibility of type1 and type2 is compiler dependent identifier is a non-ANSI definition missing return value static type identifier is not referenced parameter type identifier is not referenced local type identifier is not referenced register declaration ignored for type identifier more than 127 enumeration constants in type non-ANSI trailing coma in enumerator list more than 31 arguments in a call to identifier assignment between type1 and type2 is compiler-dependent identifier used in a conditional expression conversion from type1 to type2 is compiler-dependent type used as an lvalue conversion from type1 to type2 is undefined more than 511 external identifiers initializer exceeds bit-field width missing ' in preprocessor line unrecognized control line more than 509 characters in a string literal string/character literal contains non-portable characters excess characters in multibyte character literal token ignored overflow in constant token overflow in hexadecimal escape sequence unrecognized character escape sequence character overflow in constant expression result of unsigned comparison is constant
204
E C
C4044 C4045 C4046 C4047 C4048 C4049 C4050 C4051 C4052 C4053 C4054 C4055 C4056 C4057 shifting a type by number bits is undefined unreachable code more than 15 levels of nested statements switch statement with no cases more than 257 cases in a switch switch generates a huge table pointer to a parameter/local identifier is an illegal return value source code specifies an infinite loop more than 127 identifiers declared in a block reference to type elided reference to volatile type elided declaring type array of type is undefined qualified function type ignored unnamed operator in prototype
C6001 function not supported yet
205
HT-IDE3000
206
3 : 886-3-563-1999 : 886-3-563-1189 : www.holtek.com.tw 3 2 4 2 : 886-2-2655-7070 : 886-2-2655-7373 : 886-2-2655-7383 (International sales hotline) 889 2 7 200233 : 021-6485-5560 : 021-6485-0313 : www.holtek.com.cn 43 518031 : 0755-8346-5589 : 0755-8346-5590 ISDN: 0755-8346-5591 1291721100031 : 010-6641-00306441-77516441-7752 : 010-6641-0125 Holmate Semiconductor, Inc. 46712 Fremont Blvd., Fremont, CA 94538 : 510-252-9880 : 510-252-9885 : www.holmate.com
Copyright 2005 by HOLTEK SEMICONDUCTOR INC. http://www.holtek.com.tw
HT-IDE3000
Amendments


▲Up To Search▲   

 
Price & Availability of HT-IDE3000

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X