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

M3455AGCFP 参数 Datasheet PDF下载

M3455AGCFP图片预览
型号: M3455AGCFP
PDF下载: 下载PDF文件 查看货源
内容描述: 单片4位微机的CMOS [SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER]
分类和应用: 计算机
文件页数/大小: 148 页 / 3576 K
品牌: RENESAS [ RENESAS TECHNOLOGY CORP ]
 浏览型号M3455AGCFP的Datasheet PDF文件第15页浏览型号M3455AGCFP的Datasheet PDF文件第16页浏览型号M3455AGCFP的Datasheet PDF文件第17页浏览型号M3455AGCFP的Datasheet PDF文件第18页浏览型号M3455AGCFP的Datasheet PDF文件第20页浏览型号M3455AGCFP的Datasheet PDF文件第21页浏览型号M3455AGCFP的Datasheet PDF文件第22页浏览型号M3455AGCFP的Datasheet PDF文件第23页  
455A Group  
(5) Stack registers (SKs) and stack pointer (SP)  
Stack registers are 14-bit registers.  
Program counter (PC)  
Executing BM instruction Executing RT instruction  
Stack registers (SKs) are used to temporarily store the contents of  
program counter (PC) just before branching until returning to the  
original routine when;  
• branching to an interrupt service routine (referred to as an  
interrupt service routine),  
• performing a subroutine call, or  
SK0  
SK1  
SK2  
SK3  
SK4  
SK5  
SK6  
SK7  
(SP) = 0  
(SP) = 1  
(SP) = 2  
(SP) = 3  
(SP) = 4  
(SP) = 5  
(SP) = 6  
(SP) = 7  
• executing the table reference instruction (TABP p).  
Stack registers (SKs) are eight identical registers, so that  
subroutines can be nested up to 8 levels. However, one of stack  
registers is used respectively when using an interrupt service  
routine and when executing a table reference instruction.  
Accordingly, be careful not to over the stack when performing  
these operations together. The contents of registers SKs are  
destroyed when 8 levels are exceeded.  
The register SK nesting level is pointed automatically by 3-bit  
stack pointer (SP). The contents of the stack pointer (SP) can be  
transferred to register A with the TASP instruction.  
Figure 16 shows the stack registers (SKs) structure.  
Figure 17 shows the example of operation at subroutine call.  
Stack pointer (SP) points “7” at reset or  
returning from power down mode.  
It points “0” by executing the first BM  
instruction, and the contents of program  
counter is stored in SK0.  
When the BM instruction is executed after  
eight stack registers are used ((SP) = 7), (SP)  
= 0 and the contents of SK0 is destroyed.  
(6) Interrupt stack register (SDP)  
Interrupt stack register (SDP) is a 1-stage register. When an  
interrupt occurs, this register (SDP) is used to temporarily store  
the contents of data pointer, carry flag, skip flag, register A, and  
register B just before an interrupt until returning to the original  
routine.  
Unlike the stack registers (SKs), this register (SDP) is not used  
when executing the subroutine call instruction and the table  
reference instruction.  
Fig 16. Stack registers (SKs) structure  
(SP) 0  
(SK0) 000116  
(PC) SUB1  
Main program  
Address  
Subroutine  
(7) Skip flag  
Skip flag controls skip decision for the conditional skip  
instructions and continuous described skip instructions. When an  
interrupt occurs, the contents of skip flag is stored automatically  
in the interrupt stack register (SDP) and the skip condition is  
retained.  
SUB1:  
NOP  
000016 NOP  
000116 BM SUB1  
000216 NOP  
RT  
(PC) (SK0)  
(SP) 7  
Note :Returning to the BM instruction execution  
address with the RT instruction, and the BM  
instruction becomes the NOP instruction.  
Fig 17. Example of operation at subroutine call  
Rev.1.01 Feb 15, 2008 Page 19 of 146  
REJ03B0224-0101  
 复制成功!