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

HT45R38 参数 Datasheet PDF下载

HT45R38图片预览
型号: HT45R38
PDF下载: 下载PDF文件 查看货源
内容描述: C / R键F型8位OTP MCU [C/R to F Type 8-Bit OTP MCU]
分类和应用:
文件页数/大小: 49 页 / 347 K
品牌: HOLTEK [ HOLTEK SEMICONDUCTOR INC ]
 浏览型号HT45R38的Datasheet PDF文件第5页浏览型号HT45R38的Datasheet PDF文件第6页浏览型号HT45R38的Datasheet PDF文件第7页浏览型号HT45R38的Datasheet PDF文件第8页浏览型号HT45R38的Datasheet PDF文件第10页浏览型号HT45R38的Datasheet PDF文件第11页浏览型号HT45R38的Datasheet PDF文件第12页浏览型号HT45R38的Datasheet PDF文件第13页  
HT45R38
therefore occur. In other words, using the table read
instruction in the main routine and also in the ISR
should be avoided. However, if the table read instruc-
tion has to be used in both the main routine and in the
ISR, the interrupt should be disabled prior to the table
read instruction execution. The interrupt should not be
re-enabled until the TBLH has been backed up. All ta-
ble related instructions require two cycles to complete
the operation. These areas may function as normal
program memory depending upon the requirements.
Stack Register
-
STACK
This is a special part of the memory which is used to save
the contents of the program counter only. The stack is
organised into 6-levels and is neither part of the data nor
part of the program space, and is neither readable nor
writable. The activated level is indexed by the stack
pointer (SP) and is neither readable nor writeable. At a
subroutine call or interrupt acknowledgment, the con-
tents 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 program counter
is restored to its previous value from the stack. After a de-
vice reset, the SP will point to the top of the stack.
If the stack is full and a non-masked interrupt takes
place, the interrupt request flag will be recorded but the
acknowledgment will be inhibited. When the stack
pointer is decremented, by RET or RETI, the interrupt
will be serviced. This feature prevents stack overflow al-
lowing the programmer to use the structure more easily.
In a similar case, if the stack is full and a
²CALL²
is sub-
sequently executed, stack overflow occurs and the first
entry will be lost as only the most recent 6 return ad-
dresses are stored.
Data Memory
-
RAM
The data memory has a capacity of 230´8 bits. The data
memory is divided into two functional groups: special
function registers and general purpose data memory
(192´8). Most are read/write, but some are read only.
The special function registers include the Indirect ad-
dressing registers (00H, 02H), Timer/Event Counter 0
(TMR;0DH), Timer/Event Counter 0 control register
(TMR0C;0EH), Timer/Event Counter 1 (TMR1;10H),
Timer/Event Counter 1 control register (TMR1C;11H),
Program counter lower-order byte register (PCL;06H),
Memory pointer registers (MP0;01H, MP1;03H), Accu-
mulator (ACC;05H), Table pointer (TBLP;07H), Table
higher-order byte register (TBLH;08H), Watchdog Timer
option setting register (WDTS;09H), Status register
(STATUS;0AH), Interrupt control register 0 (INTC0;
0BH), Interrupt control register 1 (INTC1;1EH), Analog
switch control register (ASCR;1CH), PWM data register
(PWM0;1AH, PWM1;1BH), the Timer/Event Counter A
higher-order byte register (TMRAH;20H), the
Timer/Event Counter A lower-order byte register
0 0 H
0 1 H
0 2 H
0 3 H
0 4 H
0 5 H
0 6 H
0 7 H
0 8 H
0 9 H
0 A H
0 B H
0 C H
0 D H
0 E H
0 F H
1 0 H
1 1 H
1 2 H
1 3 H
1 4 H
1 5 H
1 6 H
1 7 H
1 8 H
1 9 H
1 A H
1 B H
1 C H
1 D H
1 E H
1 F H
2 0 H
2 1 H
2 2 H
2 3 H
2 4 H
2 5 H
2 6 H
2 7 H
2 8 H
2 9 H
2 A H
2 B H
2 C H
3 F H
4 0 H
F F H
A D R L
A D R H
A D C R
A C S R
T M R A H
T M R A L
R C O C C R
T M R B H
T M R B L
R C O C R
O P A C
IN T C 1
T M R 1
T M R 1 C
P A
P A C
P B
P B C
P C
P C C
P E
P E C
P W M 0
P W M 1
A S C R
S p e c ia l P u r p o s e
D a ta M e m o ry
T M R 0
T M R 0 C
A C C
P C L
T B L P
T B L H
W D T S
S T A T U S
IN T C 0
In d ir e c t A d d r e s s in g R e g is te r 0
M P 0
In d ir e c t A d d r e s s in g R e g is te r 1
M P 1
G e n e ra l P u rp o s e D a ta M e m o ry
(1 9 2 B y te s )
: U n u s e d ,
re a d a s "0 0 "
RAM Mapping
(TMRAL;21H), the RC oscillation converter control reg-
ister (RCOCCR;22H), the Timer/Event Counter B
higher-order byte register (TMRBH;23H), the
Timer/Event Counter B lower-order byte register
(TMRBL;24H), and the RC oscillator control register
(RCOCR;25H), the A/D result lower-order byte register
(ADRL;28H), the A/D result higher-order byte register
(ADRH;29H), the A/D control register (ADCR;2AH), the
9
December 13, 2006
Rev. 1.00