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

7906 参数 Datasheet PDF下载

7906图片预览
型号: 7906
PDF下载: 下载PDF文件 查看货源
内容描述: 16位单片机 [16-BIT SINGLE-CHIP MICROCOMPUTER]
分类和应用: 计算机
文件页数/大小: 531 页 / 3056 K
品牌: RENESAS [ RENESAS TECHNOLOGY CORP ]
 浏览型号7906的Datasheet PDF文件第21页浏览型号7906的Datasheet PDF文件第22页浏览型号7906的Datasheet PDF文件第23页浏览型号7906的Datasheet PDF文件第24页浏览型号7906的Datasheet PDF文件第26页浏览型号7906的Datasheet PDF文件第27页浏览型号7906的Datasheet PDF文件第28页浏览型号7906的Datasheet PDF文件第29页  
CENTRAL PROCESSING UNIT (CPU)  
2.1 Central processing unit (CPU)  
2.1.4 Stack pointer (S)  
The stack pointer (S) is a 16-bit register. It is used for a subroutine call or an interrupt. It is also used when  
addressing modes using the stack are executed. The contents of S indicate an address (stack area) for  
storing registers during subroutine calls and interrupts. Bank 016 is specified for the stack area. (Refer to  
section “2.3 Access space.”)  
When an interrupt request is accepted, the microcomputer stores the contents of the program bank register  
(PG) at the address indicated by the contents of S and decrements the contents of S by 1. Then the  
contents of the program counter (PC) and the processor status register (PS) are stored. The contents of  
S after accepting an interrupt request is equal to the contents of S decremented by 5 before accepting of  
the interrupt request. (See Figure 2.1.2.)  
When completing the process in the interrupt routine  
and returning to the original routine, the contents of  
Stack area  
registers stored in the stack area are restored into  
the original registers in the reverse sequence  
(PSPCPG) by executing the RTI instruction. The  
Address  
S5  
contents of S is returned to the state before accepting  
an interrupt request.  
Processor status registers low-order byte (PS  
L)  
S4  
S3  
Processor status registers high-order byte (PS  
H
)
The same operation is performed during a subroutine  
call, however, the contents of PS is not automatically  
stored. (The contents of PG may not be stored.  
This depends on the addressing mode.)  
During interrupts or subroutine calls, the other  
registers are not automatically stored. Therefore, if  
the contents of these registers need to be held on,  
be sure to store them by software.  
Additionally, the Ss contents become 0FFF16at  
reset. The stack area changes when subroutines  
are nested or when multiple interrupt requests are  
accepted. Therefore, make sure of the subroutines  
nesting depth not to destroy the necessary data.  
Program counters low-order byte (PC  
Program counters high-order byte (PC  
Program bank register (PG)  
L)  
S2  
S1  
S
H)  
Sis the initial address that the stack pointer (S)  
indicates at accepting an interrupt request.  
The Ss contents become S 5after storing the  
above registers.  
Fig. 2.1.2 Contents of stack area after accepting  
interrupt request  
Refer to 7900 Series Software Manualfor addressing modes and instructions.  
7906 Group Users Manual Rev.2.0  
2-4  
 复制成功!