參數(shù)資料
型號: HT48RA3
廠商: Holtek Semiconductor Inc.
英文描述: 8-Bit Remote Type OTP MCU
中文描述: 8位單片機的遠程型檢察官辦公室
文件頁數(shù): 5/36頁
文件大?。?/td> 245K
代理商: HT48RA3
HT48RA3
Rev. 1.20
5
May 12, 2003
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 3 banks, addressed by the program coun-
ter and table pointer.
Certain locations in the program memory are reserved
for special usage:
Location 000H
This area is reserved for program initialization. After
chip reset, the program always begins execution at lo-
cation 000H.
Location 004H
This area is reserved for the external interrupt service
program. If the INT input pin is activated, the interrupt
isenabledandthestackisnotfull,theprogrambegins
execution at location 004H.
Location 008H
ThisareaisreservedfortheTimer/EventCounter0in-
terrupt service program. If a timer interrupt results
from a Timer/Event Counter 0 overflow, and if the in-
terrupt is enabled and the stack is not full, the program
begins execution at location 008H .
Location 00CH
This location is reserved for the Timer/Event Counter
1 interrupt service program. If a timer interrupt results
from a Timer/Event Counter 1 overflow, and the inter-
rupt is enabled and the stack is not full, the program
begins execution at location 00CH.
Table location
Any location in the program memory can be used as
look-up tables. The instructions TABRDC [m] (page
specified by TBHP) 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). The higher-order byte table pointer
TBHP (1FH) and lower-order byte table pointer TBLP
(07H)areread/writeregisters,whichindicatethetable
locations. Before accessing the table, the location has
to be placed in TBHP and TBLP. The TBLH is read
only and cannot be restored. If the main routine and
the ISR (interrupt service routine) both employ the ta-
ble read instruction, the contents of TBLH in the main
routine are likely to be changed by the table read in-
struction used in the ISR. Errors are thus brought
about. Given this, using the table read instruction in
the main routine and the ISR simultaneously should
be avoided. However, if the table read instruction has
to be applied in both main routine and the ISR, the in-
terrupt(s) is supposed to be disabled prior to the table
read instruction. It (They) will not be enabled until the
TBLH in the main routine has been backup. All table
related instructions require 2 cycles to complete the
operation.
Stack Register
STACK
This is a special part of the memory which is used to
save the contents of the program counter (PC) only. The
stack is organized into 8 levels and is neither part of the
data nor part of the program space, and is neither read-
able nor writeable. The activated level is indexed by the
stack pointer (SP) and is neither readable nor writeable.
At a subroutine call or interrupt acknowledge signal, the
contents of the program counter are pushed onto the
stack. At the end of a subroutine or an interrupt routine,
signaled by a return instruction (RET or RETI), the pro-
gram counter is restored to its previous value from the
stack.Afterachipreset,theSPwillpointtothetopofthe
stack.
If the stack is full and a non-masked interrupt takes
place, the interrupt request flag will be recorded but the
acknowledge signal will be inhibited. When the stack
3 , < # !
0
=
=
&
> #
, # ! #
#
! # ,
8 !
, !
" ! ,
<
! #
#
>
! ,
!
,
!
" ! ,
<
! #
,
(
; 9 " ,
<
, 6 0 3 , @
'
7
(
; 9 " ,
<
, 6 0 3 , @
'
7
! A , ,
,
, , ! , 0
=
=
2 =
1 =
=
#
>
! ,
!
,
!
" ! ,
<
! #
,
Program memory
Instruction
Table Location
*14~*8
*7
*6
*5
*4
*3
*2
*1
*0
TABRDC [m]
TBHP
@7
@6
@5
@4
@3
@2
@1
@0
TABRDL [m]
1011111
@7
@6
@5
@4
@3
@2
@1
@0
Table location
Note: *14~*0: Table location bits
@7~@0: Table pointer bits
相關PDF資料
PDF描述
HT48RB8 8-Bit USB Type OTP MCU
HT49C10 8-BIT MICROCONTROLLER
HT49C30L HDSP-A101 RED DISPLAY, LED,
HT49R30 DISPLAY 7 SEGMENT
HT49R30A-1 DISPL 7 SEG YELLOW
相關代理商/技術參數(shù)
參數(shù)描述
HT48RA3_07 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:Remote Type 8-Bit MCU
HT48RA3_09 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:HT48RA3/HT48CA3
HT48RA5 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:Remote Type 8-Bit MCU
HT48RA5_07 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:Remote Type 8-Bit MCU
HT48RA5_09 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:Remote Type 8-Bit MCU