基于STM32嵌入式系统四种编程方法的探究  被引量:3

Probe Into Four Programming Methods Based on STM32 Embedded System

在线阅读下载全文

作  者:高瑞丽[1] 张爱荣[1] 刘霞 GAO Ruili;ZHANG Airong;LIU Xia(Binzhou Polytechinc,College of Mechanical and Electrical Engineering,Binzhou Shandong 256603)

机构地区:[1]滨州职业学院机电工程学院,山东滨州256603

出  处:《软件》2022年第4期158-161,共4页Software

摘  要:STM32嵌入式系统一般采用固件库函数编程,虽然有利于处理复杂问题,但不易被学生理解,将简单问题复杂化,STM32嵌入式系统可以直接操作寄存器来编写程序,处理简单问题更直观方便。本文探究用经典寄存器直接操作、库函数操作和库函数与寄存器混合操作等四种编程方法实现任务要求,并且采用Proteus 8.6软件仿真。给出了利用不同编程方法的特点处理适合任务的编程策略,实现程序的简化或优化,使得学生易于接受和理解的目的。STM32 embedded system generally adopts firmware library function programming.Although it is helpful to deal with complex problems,it is not easy to be understood by students,which complicates simple problems.STM32 embedded system can directly operate registers to write programs,which makes it more intuitive and convenient to deal with simple problems.This paper explores four programming methods to achieve the task requirements,including classical register direct operation,library function operation and library function and register mixed operation,and uses Proteus 8.6 software for simulation.In this paper,the author gives some programming strategies that make use of the characteristics of different programming methods to deal with the tasks,so as to simplify or optimize the program and make it easy for students to accept and understand.

关 键 词:固件库 寄存器 PROTEUS仿真 流水灯控制 STM32嵌入式系统 

分 类 号:TP368.1[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象