资料
  • 资料
  • 专题
PIC18微控制器的堆栈操纵
推荐星级:
时间:2019-12-24
大小:247.84KB
阅读数:280
上传用户:238112554_qq
查看他发布的资源
下载次数
0
所需E币
4
ebi
新用户注册即送 300 E币
更多E币赚取方法,请查看
close
资料介绍
Traditionally, the microcontroller stack has only been used as a storage space for return addresses of sub- routines or interrupt routines, where all ‘push’ and ‘pop’ operations were hidden. For the most part, users had no direct access to the information on the stack. The PIC18 microcontroller diverges from this tradition slightly. With the new PIC18 core, users now have access to the stack and can modify the stack pointer and stack data directly. Having such levels of access to the stack allows for some unique and interesting programming possibilities. This application note describes specific information, registers, and instructions related to accessing the stack. An example is also included demonstrating a very simple task manager, an essential element for a real-time operating system (RTOS).M AN818 Manipulating the Stack of the PIC18 Microcontroller Author: Ross M. Fosler The pointer to the top of the stack is provided in register Microchip Technology Inc. STKPTR. The pointer is only five-bits wide, which accounts for a stack depth of 32 words. However, the first location is not counted, since it is not physically a INTRODUCTION memory location in the stack. The first location always Traditionally, the microcontroller s……
版权说明:本资料由用户提供并上传,仅用于学习交流;若内容存在侵权,请进行举报,或 联系我们 删除。
PARTNER CONTENT
相关评论 (下载后评价送E币 我要评论)
没有更多评论了
  • 可能感兴趣
  • 关注本资料的网友还下载了
  • 技术白皮书