欢迎访问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文件第90页浏览型号7906的Datasheet PDF文件第91页浏览型号7906的Datasheet PDF文件第92页浏览型号7906的Datasheet PDF文件第93页浏览型号7906的Datasheet PDF文件第95页浏览型号7906的Datasheet PDF文件第96页浏览型号7906的Datasheet PDF文件第97页浏览型号7906的Datasheet PDF文件第98页  
INTERRUPTS
6.7 Sequence from acceptance of interrupt request until execution of interrupt routine
6.7.2 Push operation for registers
The push operation for registers performed in the INTACK sequence depends on whether the contents of
the stack pointer (S) at acceptance of an interrupt request are even or odd.
When the contents of the stack pointer (S) are even, the contents of the program counter (PC) and the
processor status register (PS) are simultaneously pushed in a unit of 16 bits. When the contents of the
stack pointer (S) are odd, each of PC and PS is pushed in a unit of 8 bits. Figure 6.7.3 shows the push
operation for registers.
In the INTACK sequence, only the contents of the program bank register (PG), program counter (PC), and
processor status register (PS) are pushed onto the stack area. Other necessary registers must be pushed
by software at the start of the interrupt routine.
By using the
PSH
instruction, all CPU registers, except the stack pointer (S), can be pushed with 1
instruction.
(1) When contents of stack pointer (S) are even
Address
[S] – 5 (odd)
[S] – 4 (even)
[S] – 3 (odd)
[S] – 2 (even)
[S] – 1 (odd)
[S] (even)
Low-order byte of processor status register (PS
L
)
Order for push
Pushed in a unit of 16 bits.
High-order byte of processor status register (PS
H
)
Low-order byte of program counter (PC
L
)
High-order byte of program counter (PC
H
)
Pushed in a unit of 16 bits.
Pushed in 3 times.
Program bank register (PG)
(2) When contents of stack pointer (S) are odd
Address
[S] – 5 (even)
[S] – 4 (odd)
[S] – 3 (even)
[S] – 2 (odd)
[S] – 1 (even)
[S] (odd)
Low-order byte of processor status register (PS
L
)
High-order byte of processor status register (PS
H
)
Order for push
Pushed in 5 times.
Pushed in a unit of 8 bits.
Low-order byte of program counter (PC
L
)
High-order byte of program counter (PC
H
)
Program bank register (PG)
�½
[S] is the initial address that the stack pointer (S) indicates at acceptance of an interrupt request.
The S’s contents become “[S] – 5” after all of the above registers are pushed.
Fig. 6.7.3 Push operation for registers
7906 Group User’s Manual Rev.2.0
6-15