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

HD6433846XXXH 参数 Datasheet PDF下载

HD6433846XXXH图片预览
型号: HD6433846XXXH
PDF下载: 下载PDF文件 查看货源
内容描述: 微控制器\n [Microcontroller ]
分类和应用: 微控制器外围集成电路时钟
文件页数/大小: 524 页 / 1465 K
品牌: ETC [ ETC ]
 浏览型号HD6433846XXXH的Datasheet PDF文件第96页浏览型号HD6433846XXXH的Datasheet PDF文件第97页浏览型号HD6433846XXXH的Datasheet PDF文件第98页浏览型号HD6433846XXXH的Datasheet PDF文件第99页浏览型号HD6433846XXXH的Datasheet PDF文件第101页浏览型号HD6433846XXXH的Datasheet PDF文件第102页浏览型号HD6433846XXXH的Datasheet PDF文件第103页浏览型号HD6433846XXXH的Datasheet PDF文件第104页  
3.4  
Application Notes  
3.4.1  
Notes on Stack Area Use  
When word data is accessed in the H8/3887 Series, the least significant bit of the address is  
regarded as 0. Access to the stack always takes place in word size, so the stack pointer (SP: R7)  
should never indicate an odd address. Use PUSH Rn (MOV.W Rn, @–SP) or POP Rn (MOV.W  
@SP+, Rn) to save or restore register values.  
Setting an odd address in SP may cause a program to crash. An example is shown in figure 3-6.  
PCH  
PCL  
SP  
R1L  
PCL  
H'FEFC  
H'FEFD  
SP  
SP  
H'FEFF  
MOV. B R1L, @–R7  
Stack accessed beyond SP Contents of PCH are lost  
BSR instruction  
SP set to H'FEFF  
Notation:  
PCH: Upper byte of program counter  
PCL: Lower byte of program counter  
R1L: General register R1L  
SP: Stack pointer  
Figure 3-6 Operation when Odd Address is Set in SP  
When CCR contents are saved to the stack during interrupt exception handling or restored when  
RTE is executed, this also takes place in word size. Both the upper and lower bytes of word data  
are saved to the stack; on return, the even address contents are restored to CCR while the odd  
address contents are ignored.  
85  
 复制成功!