ArmV7-M 内核

本文详细探讨了ArmV7-M架构,包括其M3、M4、M7的不同版本特性,工作模式(Threadmode和Handlermode)、堆栈指针寄存器的使用,控制寄存器的功能,以及PendSV和SysTick系统中断的分类。还涉及VectorTable的可重定位和特殊用途的程序状态寄存器xPSR。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一,ArmV7-M版本:

ArmV7-M 有ArmV7-M和ArmV7E-M  2个版本,

M3 基于ArmV7-M, M4,M7是基于ArmV7E-M架构

ArmV7E-M比ArmV7-M多了DSP和FPU

二,ArmV7-M工作模式:

Thread mode:Is entered on reset, and can be entered as a result of an exception return.
Handler mode:Is entered as a result of an exception. The processor must be in Handler mode to issue an exception return

三,ArmV7-M堆栈指针寄存器

Stack pointer:The processor implements a banked pair of stack pointers, the Main stack pointer, and the Process stack pointer;
In Handler mode, the processor uses the Main stack pointer. In Thread mode it can use either stack pointer.

四,Control 寄存器描述:

标识特权模式,stack模式,浮点是否active

五,中断分类

PendSV和SysTick是2个系统中断,属于中断

六,Vector Table

Vector Table地址可以被重新指定。

七,The special-purpose mask registers

八,The special-purpose Program Status Registers, xPSR

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值