| Electronic Components Datasheet Search |
|
CMS69P22 Datasheet(PDF) 12 Page - List of Unclassifed Manufacturers |
|
|
|||||||||||||||||||||||||||||
CMS69P22 Datasheet(HTML) 12 Page - List of Unclassifed Manufacturers |
|
12 / 128 page ![]() 中微股份 CMS69P22 www.mcu.com.cn - 7 - 内部试用版 2.1.1.2 中断向量 中断向量地址为 0001H。一旦有中断响应,程序计数器 PC 的当前值就会存入堆栈缓存器并跳转到 0001H 开始执行中断服务程序。所有中断都会进入0001H这个中断向量,具体执行哪个中断将由用户 根据中断请求标志位寄存器(INT_FLAG)的位决定。下面的示例程序说明了如何编写中断服务程序。 ★ 例:定义中断向量,中断程序放在用户程序之后 ORG 0000H ; 系统复位向量 JP START ; 跳至用户程序 ORG 0001H JP INT_START ORG 0002H ; 用户程序起始地址 START: … ; 用户程序 … JP START INT_START: CALL PUSH ;中断入口保护 ACC 及 FLAGS … ;中断处理程序 … ;中断处理程序 INT_EXIT: CALL POP ; 中断出口恢复现场 RETI ; 中断返回 ★ 例:定义中断向量,中断程序放在 0001H 之后 ORG 0000H ; 系统复位向量 JP START ; 跳至用户程序 ORG 0001H INT_START: CALL PUSH ;中断入口保护 ACC 及 FLAGS … ;中断处理程序 … ;中断处理程序 INT_EXIT: CALL POP ; 中断出口恢复现场 RETI ; 中断返回 START: … ; 用户程序 … JP START ; 用户程序结束 注:由于 CMS69P22 系列芯片并未提供专门的出栈、压栈指令,故用户需自己保护中断现场。 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |