欢迎访问ic37.com |
会员登录 免费注册
发布采购

HT36B0(28SOP-A) 参数 Datasheet PDF下载

HT36B0(28SOP-A)图片预览
型号: HT36B0(28SOP-A)
PDF下载: 下载PDF文件 查看货源
内容描述: [Microcontroller]
分类和应用: LTE微控制器
文件页数/大小: 42 页 / 284 K
品牌: HOLTEK [ HOLTEK SEMICONDUCTOR INC ]
 浏览型号HT36B0(28SOP-A)的Datasheet PDF文件第4页浏览型号HT36B0(28SOP-A)的Datasheet PDF文件第5页浏览型号HT36B0(28SOP-A)的Datasheet PDF文件第6页浏览型号HT36B0(28SOP-A)的Datasheet PDF文件第7页浏览型号HT36B0(28SOP-A)的Datasheet PDF文件第9页浏览型号HT36B0(28SOP-A)的Datasheet PDF文件第10页浏览型号HT36B0(28SOP-A)的Datasheet PDF文件第11页浏览型号HT36B0(28SOP-A)的Datasheet PDF文件第12页  
HT36B0
other type is for wavetable code, which is addressed by
the start address ST15~0. On the program type,
WA17~0= PF4~0
´
2
13
+ PC 12~0. On the wave table
ROM type, WA17~0=ST15~0
´
2
5
.
Program Memory
-
ROM
The program memory is used to store the program in-
structions which are to be executed. It also contains
data, table, and interrupt entries, and is organized into
8192´16 bits, addressed by the bank pointer, program
counter and table pointer.
Certain locations in the program memory of each bank
are reserved for special usage:
·
Location 000H on bank0
0 0 0 0 H
0 0 0 4 H
0 0 0 8 H
0 0 0 C H
D e v ic e in itia liz a tio n p r o g r a m
E x te rn a l In te rru p t
T im e r /e v e n t C o u n te r 0 in te r r u p t s u b r o u tin e
T im e r /e v e n t C o u n te r 1 in te r r u p t s u b r o u tin e
P ro g ra m
R O M
L o o k - u p ta b le ( 2 5 6 w o r d s )
n 0 0 H
n F F H
1 F F F H
L o o k - u p ta b le ( 2 5 6 w o r d s )
1 6 b its
N o te : n ra n g e s fro m
0 0 to 1 F .
This area is reserved for the initialization program. Af-
ter chip reset, the program always begins execution at
location 000H on bank0.
·
Location 008H
Program Memory for Each Bank
be placed in TBLP. The TBLH is read only and cannot
be restored. If the main routine and the ISR (Interrupt
Service Routine) both employ the table read instruc-
tion, the contents of the TBLH in the main routine are
likely to be changed by the table read instruction used
in the ISR. Errors can occur. In this case, using the ta-
ble read instruction in the main routine and the ISR si-
multaneously should be avoided. However, if the table
read instruction has to be applied in both the main rou-
tine and the ISR, the interrupt should be disabled prior
to the table read instruction. It will not be enabled until
the TBLH has been backed up. All table related in-
structions need 2 cycles to complete the operation.
These areas may function as normal program mem-
ory depending upon user requirements.
·
Bank pointer
This area is reserved for the Timer/Event Counter 0 in-
terrupt service program on each bank. If timer interrupt
results from a timer/event counter 0 overflow, and if the
interrupt is enabled and the stack is not full, the program
begins execution at location 008H corresponding to its
bank.
·
Location 00CH
This area is reserved for the Timer/Event Counter 1
interrupt service program on each bank. If a timer in-
terrupt results from a Timer/Event Counter 1 overflow,
and if the interrupt is enabled and the stack is not full,
the program begins execution at location 00CH corre-
sponding to its bank.
·
Table location
Any location in the ROM space can be used as
look-up tables. The instructions
²TABRDC
[m]² (the
current page, 1 page=256 words) and
²TABRDL
[m]²
(the last page) transfer the contents of the lower-order
byte to the specified data memory, and the
higher-order byte to TBLH (08H). Only the destination
of the lower-order byte in the table is well-defined, the
higher-order byte of the table word are transferred to
the TBLH. The Table Higher-order byte register
(TBLH) is read only. The Table Pointer (TBLP) is a
read/write register (07H), which indicates the table lo-
cation. Before accessing the table, the location must
The program memory is organized into 32 banks and
each bank into 8192´16 of bits program ROM. PF4~0
is used as the bank pointer only when PFC is config-
ured as output mode. PFC is the control register for
PF and is used to control the input/output configura-
tion. To function as an output, the corresponding bit of
the control register must be
²0².
After an instruction
has been executed to write data to the PF register to
select a different bank, note that the new bank will not
be selected immediately. It is not until the following in-
struction has completed execution that the bank will
be actually selected. It should be note that the PF reg-
ister has to be cleared before setting to output mode.
Table Location
Instruction(s)
TABRDC [m]
TABRDL [m]
*17~*13
P17~P13
P17~P13
*12
P12
1
*11
P11
1
*10
P10
1
*9
P9
1
*8
P8
1
*7
@7
@7
*6
@6
@6
*5
@5
@5
*4
@4
@4
*3
@3
@3
*2
@2
@2
*1
@1
@1
*0
@0
@0
Table Location
Note:
*12~*0: Bits of table location
P12~P8: Bits of current Program Counter
@7~@0: Bits of table pointer
P17~P13: Bits of bank PF4~PF0
Rev. 1.10
8
July 3, 2008