-
Notifications
You must be signed in to change notification settings - Fork 12
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
1 parent
329a5a2
commit 77e107b
Showing
5 changed files
with
191 additions
and
16 deletions.
There are no files selected for viewing
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,107 @@ | ||
--- | ||
title: (限选)嵌入式系统 | ||
weight: 109 | ||
toc: true | ||
editURL: "https://github.com/HITSZ-OpenAuto/AUTO3024/edit/main/README.md" | ||
math: true | ||
--- | ||
最近由 oliver-wu 更新于 2024.7.21,更新内容:更新README,更新实验报告版本 | ||
|
||
该课程属于专业限选课程。21级和22级的限选课学分要求不同。 | ||
<br> | ||
如果你是21级学生,请查阅[21级限选课选课指南](https://hoa.moe/blog/distributive-guidance-for-21/)。 | ||
<br> | ||
如果你是22级学生,请查阅[22级限选课选课指南](https://hoa.moe/blog/distributive-guidance-for-22/)。 | ||
|
||
|
||
![考查课](https://img.shields.io/badge/%E8%80%83%E6%9F%A5%E8%AF%BE-green) | ||
![学分](https://img.shields.io/badge/%E5%AD%A6%E5%88%86-2-moccasin) | ||
|
||
![成绩构成](https://img.shields.io/badge/%E6%88%90%E7%BB%A9%E6%9E%84%E6%88%90-gold) | ||
![作业10%](https://img.shields.io/badge/%E4%BD%9C%E4%B8%9A-10%25-wheat) | ||
![实验50%](https://img.shields.io/badge/实验-50%25-wheat) | ||
![期末考试40%](https://img.shields.io/badge/%E6%9C%9F%E6%9C%AB%E8%80%83%E8%AF%95-40%25-wheat) | ||
|
||
本课程是将《自动控制实践 B》中嵌入式(STM32)部分独立出来,从22级开始开设。部分考试资料可以去 [自动控制实践 B](https://hoa.moe/docs/junior-spring/auto3002b/) 的页面下载。 | ||
|
||
## 教材与参考书 | ||
|
||
- 教材:课程ppt、实验指导书。 | ||
- 参考资料: | ||
- [南工骁鹰嵌入式软件培训](https://www.bilibili.com/video/BV1VT411N7dK),某学长锐评:真想学 STM32 还是它的含金量高。包含了许多本课程中未包含的内容(CAN等)。 | ||
|
||
|
||
## 授课教师 | ||
|
||
- 黄瑞宁 | ||
- 这位老师参与过18、19级学生的《自动控制实践 B》教学,彼时他就负责其中嵌入式部分的讲授。后来由于不明原因不再讲授该课程,现在复出。 | ||
- 授课风格: | ||
- 听课建议: | ||
|
||
## 学时安排 | ||
|
||
理论课共20学时,内容详见[osa网盘](https://open.osa.moe/openauto/AUTO3024/slides)中的ppt。 | ||
|
||
主要分为:嵌入式系统概述;Cubemx 配置与 Keil 编程环境;GPIO;中断【中断及复位启动,中断优先级及配置(嵌套中断向量控制机制)、中断服务函数、外部中断/事件控制器】;串口与 DMA;AD/DA;定时器【systick 定时器、基本定时器、通用定时器;定时器的特殊模式:输入捕获、输出比较等功能】;高级定时器【编码器接口、霍尔传感器接口……】。 | ||
|
||
实验课共 12 学时: | ||
|
||
共设置基础实验 12 个(共 8 学时,每 2 个学时完成 3 个实验),具体内容见“资料下载”中的实验指导书。在基础实验里,记得把 SYS 中的 Debug 设置成 JTAG(4pins),指导书里没提这一点。 | ||
|
||
1. 单个LED闪烁实验(GPIO) | ||
2. LED流水灯实验(GPIO) | ||
3. 按键控制LED实验(GPIO) | ||
4. 外部中断实验(EXTI) | ||
5. 定时器定时应用实验(TIM) | ||
6. DAC 基本实验 | ||
7. TFT 屏基本实验 | ||
8. 串行通讯基本实验(UART) | ||
9. DMA 直接内存访问实验 | ||
10. DMA-UART 收发实验 | ||
11. ADC 采集实验 | ||
12. AD 转换及定时器 PWM 输出实验 | ||
|
||
基础实验完成后是电机控制调速实验(共4学时,相比于原先的8学时有了大幅度的压缩,所以请提前写好代码。之前基础实验中部分代码可以复用)。具体内容可以参考“资料下载”中的实验指导书。 | ||
|
||
> 文/[Oliver Wu](https://github.com/oliverwu515) | ||
## 学习建议 | ||
|
||
实验课的内容是 STM32 开发,实验涵盖了:GPIO、外部中断、串口通信、DMA 等功能的上手。开发板的 MCU 型号是 STM32F407ZGT6,软件是 MDK v5 + CubeMX。 | ||
|
||
实验软件所使用的 CubeMX 是 STM32Cube —— 目前 STM32 最主流的开发方式的重要一环。而2019年推出的 STM32CubeIDE,则是这个生态系统的集大成者。 | ||
|
||
与 MDK 不同的是,STM32CubeIDE 还提供对 MacOS 或者 Linux 操作系统的支持。我非常推荐大家使用 STM32CubeIDE 这个 All in one 的软件(包含了 CubeMX,可以不用单独下载)进行使用。 | ||
|
||
以下是一些有用的链接: | ||
|
||
- [STM32StepByStep:Step2 Blink LED](https://wiki.stmicroelectronics.cn/stm32mcu/wiki/STM32StepByStep:Step2_Blink_LED):通过点灯,快速熟悉 IDE 的开发流程。 | ||
- [CH341 串口驱动](https://www.wch-ic.com/downloads/CH341SER_EXE.html):除了老师一般会发的 Windows 版本外,还含有 MacOS 和 Linux 的版本。 | ||
- [printf 重定向](https://github.com/STMicroelectronics/STM32CubeH7/blob/master/Projects/STM32H743I-EVAL/Examples/UART/UART_Printf/Src/main.c): STM32 官方文档中的重定向方法。 | ||
|
||
> 文/[Kowyo](https://github.com/kowyo) | ||
## 资料下载 | ||
|
||
{{< filetree/container >}} | ||
{{< filetree/folder name="exams" state="closed" >}} | ||
{{< filetree/file name="☆老师官方版stm32题库★.pdf" url="https://gh.hoa.moe/github.com/HITSZ-OpenAuto/AUTO3024/raw/main/exams/%E2%98%86%E8%80%81%E5%B8%88%E5%AE%98%E6%96%B9%E7%89%88stm32%E9%A2%98%E5%BA%93%E2%98%85.pdf" >}} | ||
{{< /filetree/folder >}} | ||
{{< filetree/folder name="labs" state="closed" >}} | ||
{{< filetree/file name="2024_STM32基础实验指导书20240327.pdf" url="https://gh.hoa.moe/github.com/HITSZ-OpenAuto/AUTO3024/raw/main/labs/2024_STM32%E5%9F%BA%E7%A1%80%E5%AE%9E%E9%AA%8C%E6%8C%87%E5%AF%BC%E4%B9%A620240327.pdf" >}} | ||
{{< filetree/file name="2024_电机调速实验指导书v1.3.pdf" url="https://gh.hoa.moe/github.com/HITSZ-OpenAuto/AUTO3024/raw/main/labs/2024_%E7%94%B5%E6%9C%BA%E8%B0%83%E9%80%9F%E5%AE%9E%E9%AA%8C%E6%8C%87%E5%AF%BC%E4%B9%A6v1.3.pdf" >}} | ||
{{< filetree/folder name="ljh_version" state="closed" >}} | ||
{{< filetree/file name="电机调速实验报告.pdf" url="https://gh.hoa.moe/github.com/HITSZ-OpenAuto/AUTO3024/raw/main/labs/ljh_version/%E7%94%B5%E6%9C%BA%E8%B0%83%E9%80%9F%E5%AE%9E%E9%AA%8C%E6%8A%A5%E5%91%8A.pdf" >}} | ||
{{< /filetree/folder >}} | ||
{{< /filetree/folder >}} | ||
{{< /filetree/container >}} | ||
|
||
如果你是校内学生,可移步至 <a href='https://open.osa.moe/openauto/AUTO3024'>open.osa.moe</a> 查看本门课程的电子书、课件和实验软件等。 | ||
|
||
## 参与 | ||
|
||
《HITSZ 自动化课程攻略共享计划》是所有同学都可以参与编写的,如果你有好的笔记或者资料,欢迎前往我们的 [GitHub](https://github.com/HITSZ-OpenAuto) 进行参与,也可以发邮件至 [📮[email protected]](mailto:[email protected]) 联系我们,我们会在收到的第一时间进行答复。 | ||
|
||
{{< callout type="" >}} | ||
© 版权声明:[知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议](https://creativecommons.org/licenses/by-nc-sa/4.0/) | ||
{{< /callout >}} |
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,51 @@ | ||
--- | ||
title: (限选)模式识别 | ||
weight: 110 | ||
toc: true | ||
editURL: "https://github.com/HITSZ-OpenAuto/AUTO5024/edit/main/README.md" | ||
math: true | ||
--- | ||
最近由 oliver-wu 更新于 2024.7.21,更新内容:上线新课程 | ||
|
||
该课程属于专业限选课程。21级和22级的限选课学分要求不同。 | ||
<br> | ||
如果你是21级学生,请查阅[21级限选课选课指南](https://hoa.moe/blog/distributive-guidance-for-21/)。 | ||
<br> | ||
如果你是22级学生,请查阅[22级限选课选课指南](https://hoa.moe/blog/distributive-guidance-for-22/)。 | ||
|
||
![考查课](https://img.shields.io/badge/%E8%80%83%E6%9F%A5%E8%AF%BE-green) | ||
![学分](https://img.shields.io/badge/%E5%AD%A6%E5%88%86-2-moccasin) | ||
|
||
![成绩构成](https://img.shields.io/badge/%E6%88%90%E7%BB%A9%E6%9E%84%E6%88%90-gold) | ||
![作业40%](https://img.shields.io/badge/%E4%BD%9C%E4%B8%9A-未知%25-wheat) | ||
![期末考试60%](https://img.shields.io/badge/%E6%9C%9F%E6%9C%AB%E8%80%83%E8%AF%95-未知%25-wheat) | ||
|
||
![总学时 32](https://img.shields.io/badge/总学时-32-gold) | ||
![授课 24](https://img.shields.io/badge/授课-24-wheat) | ||
![实验 8](https://img.shields.io/badge/实验-8-wheat) | ||
|
||
## 授课教师 | ||
|
||
- 胡靓 | ||
- 授课风格: | ||
- 听课建议: | ||
- …… | ||
|
||
## 关于考试 | ||
|
||
半开卷,可带一张A4纸。 | ||
|
||
## 学习建议 | ||
|
||
## 资料下载 | ||
|
||
|
||
如果你是校内学生,可移步至 <a href='https://open.osa.moe/openauto/AUTO5024'>open.osa.moe</a> 查看本门课程的电子书、课件和实验软件等。 | ||
|
||
## 参与 | ||
|
||
《HITSZ 自动化课程攻略共享计划》是所有同学都可以参与编写的,如果你有好的笔记或者资料,欢迎前往我们的 [GitHub](https://github.com/HITSZ-OpenAuto) 进行参与,也可以发邮件至 [📮[email protected]](mailto:[email protected]) 联系我们,我们会在收到的第一时间进行答复。 | ||
|
||
{{< callout type="" >}} | ||
© 版权声明:[知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议](https://creativecommons.org/licenses/by-nc-sa/4.0/) | ||
{{< /callout >}} |
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