-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
67 additions
and
33 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# 初识STM32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# 寄存器编程 | ||
|
||
> 本节主要介绍操作 **寄存器** 来操作底层硬件 | ||
## 1. 寄存器(Register)概念 | ||
|
||
计算机中央处理器(CPU)内部的高速存储单元,用于临时存储数据和指令。它们是CPU执行指令过程中不可或缺的一部分,因为它们可以提供比内存更快的访问速度,从而加快数据处理速度。 | ||
|
||
寄存器的种类和数量因CPU架构的不同而有所差异。常见的寄存器类型包括: | ||
|
||
1. **通用寄存器**:用于存储操作数和中间结果,如EAX、EBX、ECX、EDX等(在x86架构中)。 | ||
2. **程序计数器(PC)**:存储下一条要执行的指令的地址。 | ||
3. **堆栈指针(SP)**:指向当前堆栈的顶部。 | ||
4. **基址指针(BP)**:用于访问堆栈中的局部变量和函数参数。 | ||
5. **指令寄存器(IR)**:存储当前正在执行的指令。 | ||
6. **标志寄存器(FLAGS)**:存储执行指令后的状态标志,如零标志、符号标志、进位标志等。 | ||
7. **段寄存器**:在实模式下用于存储代码段、数据段和堆栈段的基地址。 | ||
|
||
寄存器的设计和优化对计算机的性能有着重要影响,因此现代CPU通常会有大量的寄存器,并且会采用各种技术来提高它们的访问速度和效率。 | ||
|
||
## 2. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# MdrHAL 项目概述 | ||
|
||
## 项目介绍 | ||
|
||
## 教程目录 | ||
|
||
- [引言](/教程/正文/Embedded/引言.md) | ||
- [环境搭建](/教程/正文/Embedded/环境搭建.md) | ||
- [程序下载与调试](/教程/正文/Embedded/程序下载与调试.md) | ||
- [初识STM32](/教程/正文/Embedded/初识STM32.md) | ||
- [寄存器编程](/教程/正文/Embedded/寄存器编程.md) | ||
- [自己写库——构建库函数雏形](/教程/正文/Embedded/库函数雏形.md) | ||
- [初识HAL库](/教程/正文/Embedded/初识HAL库.md) | ||
- [操作GPIO](/教程/正文/Embedded/操作GPIO.md) | ||
- [RCC——使用时钟](/教程/正文/Embedded/操作时钟.md) | ||
- [术语表](/教程/正文/Embedded/术语表.md) |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# 程序下载 |
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.