# Parameters:
# instance.parameter=value #(type, mode) default = 'def value' : description : [min..max]
#----------------------------------------------------------------------------------------------
cpu0.FPU=1 # (bool , init-time) default = '1' : Set whether the model has VFP support
cpu0.DSP=1 # (bool , init-time) default = '1' : Set whether the model has the DSP extension
cpu0.semihosting-enable=0 # (bool , init-time) default = '1' : Enable semihosting SVC traps. Applications that do not use semihosting must set this parameter to false.
cpu0.MPU_S=0x8 # (int , init-time) default = '0x8' : Number of regions in the Secure MPU. If Security Extentions are absent, this is ignored : [0x0..0x10]
cpu0.MPU_NS=0x8 # (int , init-time) default = '0x8' : Number of regions in the Non-Secure MPU. If Security Extentions are absent, this is the total number of MPU regions : [0x0..0x10]
cpu0.ITM=0 # (bool , init-time) default = '1' : Level of instrumentation trace supported. false : No ITM trace included, true: ITM trace included
cpu0.IRQLVL=0x3 # (int , init-time) default = '0x3' : Number of bits of interrupt priority : [0x3..0x8]
cpu0.BIGENDINIT=0 # (bool , init-time) default = '0' : Initialize processor to big endian mode
cpu0.INITSVTOR=0x00000000 # (int , init-time) default = '0x10000000' : Secure vector-table offset at reset : [0x0..0xFFFFFF80]
cpu0.INITNSVTOR=0x0 # (int , init-time) default = '0x0' : Non-Secure vector-table offset at reset : [0x0..0xFFFFFF80]
cpu0.SAU=0x0 # (int , init-time) default = '0x4' : Number of SAU regions (0 => no SAU) : [0x0..0x8]
cpu0.SAU_CTRL.ENABLE=0 # (bool , init-time) default = '0' : Enable SAU at reset
cpu0.SAU_CTRL.ALLNS=0 # (bool , init-time) default = '0' : At reset, the SAU treats entire memory space as NS when the SAU is disabled if this is set
cpu0.NUM_IDAU_REGION=0x0 # (int , init-time) default = '0xA' :
cpu0.LOCK_SAU=0 # (bool , init-time) default = '0' : Lock down of SAU registers write
cpu0.LOCK_S_MPU=0 # (bool , init-time) default = '0' : Lock down of Secure MPU registers write
cpu0.LOCK_NS_MPU=0 # (bool , init-time) default = '0' : Lock down of Non-Secure MPU registers write
cpu0.CPIF=1 # (bool , init-time) default = '1' : Specifies whether the external coprocessor interface is included
cpu0.SECEXT=0 # (bool , init-time) default = '1' : Whether the ARMv8-M Security Extensions are included
fvp_mps2.DISABLE_GATING=1 # (bool , init-time) default = '0' : Disable Memory gating logic
fvp_mps2.NUM_IDAU_REGION=0x0 # (int , init-time) default = '0xA' :
fvp_mps2.SCC_ID.Variant=0x0 # (int , init-time) default = '0x0' : SCC_ID[23:20], X in the FGPA version 'rXpY' : [0x0..0xF]
fvp_mps2.SCC_ID.Revision=0x1 # (int , init-time) default = '0x1' : SCC_ID[3:0], Y in the FGPA version 'rXpY' : [0x0..0xF]
fvp_mps2.platform_type=0x0 # (int , init-time) default = '0x0' : 0:MPS2 ; 1:IoT Kit ; 2:Castor : [0x0..0x2]
fvp_mps2.extra_psram=0 # (bool , init-time) default = '0' : Increases PSRAM to 32Mb
fvp_mps2.UART2.out_file="" # (string, init-time) default = '' : Output file to hold data written by the UART (use '-' to send all output to stdout)
fvp_mps2.UART2.in_file="" # (string, init-time) default = '' : Input file for data to be read by the UART
fvp_mps2.UART2.unbuffered_output=0 # (bool , init-time) default = '0' : Unbuffered output
fvp_mps2.UART2.in_file_escape_sequence="##" # (string, init-time) default = '##' : Input file escape sequence
fvp_mps2.UART2.shutdown_on_eot=0 # (bool , init-time) default = '0' : Shutdown simulation when a EOT (ASCII 4) char is transmitted (useful for regression tests when semihosting is not available)
fvp_mps2.UART2.shutdown_tag="" # (string, run-time ) default = '' : Shutdown simulation when a string is transmitted
fvp_mps2.UART1.out_file="" # (string, init-time) default = '' : Output file to hold data written by the UART (use '-' to send all output to stdout)
fvp_mps2.UART1.in_file="" # (string, init-time) default = '' : Input file for data to be read by the UART
fvp_mps2.UART1.unbuffered_output=0 # (bool , init-time) default = '0' : Unbuffered output
fvp_mps2.UART1.in_file_escape_sequence="##" # (string, init-time) default = '##' : Input file escape sequence
fvp_mps2.UART1.shutdown_on_eot=0 # (bool , init-time) default = '0' : Shutdown simulation when a EOT (ASCII 4) char is transmitted (useful for regression tests when semihosting is not available)
fvp_mps2.UART1.shutdown_tag="" # (string, run-time ) default = '' : Shutdown simulation when a string is transmitted
fvp_mps2.mps2_visualisation.rate_limit-enable=1 # (bool , init-time) default = '1' : Rate limit simulation.
fvp_mps2.mps2_visualisation.disable-visualisation=0 # (bool , init-time) default = '0' : Enable/disable visualisation
fvp_mps2.mps2_visualisation.window_title="CLCD %cpu%" # (string, init-time) default = 'CLCD %cpu%' : Window title (%cpu% is replaced by cpu_name)
fvp_mps2.mps2_visualisation.idler.delay_ms=0x32 # (int , init-time) default = '0x32' : Determines the period, in milliseconds of real time, between gui_callback() calls.
fvp_mps2.telnetterminal0.mode="telnet" # (string, init-time) default = 'telnet' : Terminal initialisation mode
fvp_mps2.telnetterminal0.start_telnet=1 # (bool , init-time) default = '1' : Start telnet if nothing connected
fvp_mps2.telnetterminal0.start_port=0x1388 # (int , init-time) default = '0x1388' : Telnet TCP Port Number : [0x0..0xFFFFFFFF]
fvp_mps2.telnetterminal0.quiet=0 # (bool , init-time) default = '0' : Avoid output on stdout/stderr
fvp_mps2.telnetterminal0.terminal_command="" # (string, init-time) default = '' : Commandline to launch a terminal application and connect to the opened TCP port. Keywords %port and %title will be replaced with the opened port number and component name respectively. An empty string (default behaviour) will launch xterm (Linux) or telnet.exe (Windows)
fvp_mps2.telnetterminal1.mode="telnet" # (string, init-time) default = 'telnet' : Terminal initialisation mode
fvp_mps2.telnetterminal1.start_telnet=1 # (bool , init-time) default = '1' : Start telnet if nothing connected
fvp_mps2.telnetterminal1.start_port=0x1388 # (int , init-time) default = '0x1388' : Telnet TCP Port Number : [0x0..0xFFFFFFFF]
fvp_mps2.telnetterminal1.quiet=0 # (bool , init-time) default = '0' : Avoid output on stdout/stderr
fvp_mps2.telnetterminal1.terminal_command="" # (string, init-time) default = '' : Commandline to launch a terminal application
乐迪at9s遥控器stm32f103读取sbus
需积分: 0 72 浏览量
更新于2023-07-02
4
收藏 5.6MB 7Z 举报
标题 "乐迪at9s遥控器stm32f103读取sbus" 描述了一个使用STM32F103微控制器处理S.Bus信号的项目,这通常是在无人机或遥控模型车辆等领域的应用中,为了实现更精确的控制。STM32F103是意法半导体(STMicroelectronics)生产的一款基于ARM Cortex-M3内核的微控制器,具有高性能、低功耗的特点,常用于各种嵌入式系统设计。
在遥控器领域,S.Bus是一种串行通信协议,由FrSky公司开发,用于连接遥控器和接收机,可以同时传输多个通道的信号,相比于传统的PWM信号,它提供了更高的数据传输速率和精度。S.Bus协议通常使用UART(通用异步收发传输器)接口,波特率如描述中提到的为100000,这意味着每秒可以传输100000位数据,远高于常见的9600或115200波特率。
在STM32F103上实现S.Bus信号的读取,首先需要配置UART接口,包括设置合适的波特率、数据位、停止位和校验位。然后,通过中断或者轮询的方式,监听串口接收数据。由于S.Bus协议的数据帧格式特殊,包含一个起始位、8个数据位、一个奇偶校验位和一个停止位,因此在接收到数据后,需要根据协议解析出各个通道的值。
具体步骤可能包括:
1. 初始化STM32F103的UART外设,配置波特率为100000。
2. 开启串口接收中断,当接收到数据时,中断服务函数会被调用。
3. 在中断服务函数中,读取串口接收缓冲区中的数据,并进行校验,确保数据的完整性和正确性。
4. 解析S.Bus数据帧,提取8个通道的值。S.Bus协议中,数据是用二进制补码表示,且通道值是11位的,需要进行转换。
5. 将解析出的通道值更新到相应的舵机或电机控制电路。
压缩包文件名为"szg_at9s",可能包含了项目的源代码、配置文件或其他相关资源。如果你正在尝试理解或修改这个项目,你需要查看这些文件,尤其是与UART和S.Bus相关的部分,例如.c或.h文件中的UART初始化函数、中断服务函数以及数据解析逻辑。
这个项目涉及到STM32微控制器的底层编程,特别是UART通信和串行协议解析,这对于想要深入学习嵌入式系统和遥控设备控制的开发者来说是一个很好的实践案例。在实际操作中,还需要注意电源管理、抗干扰措施以及错误处理,确保整个系统的稳定性和可靠性。
weixin_42416052
- 粉丝: 3
- 资源: 3
最新资源
- 基于django+mysql的商品推荐系统全部资料+详细文档+高分项目.zip
- 基于django-wechat-base的微信信息管理模块全部资料+详细文档+高分项目.zip
- 基于django-xadmin的idc资产管理应用全部资料+详细文档+高分项目.zip
- 基于Django带支付宝支付电商购物商城网站设计毕业源码案例设计全部资料+详细文档+高分项目.zip
- 基于django的电影票比价网全部资料+详细文档+高分项目.zip
- 基于django的简单的cms系统全部资料+详细文档+高分项目.zip
- 基于Django的任务管理追踪平台全部资料+详细文档+高分项目.zip
- 基于Flask+Yolov5+Redis的深度学习在线监测网站详细文档+全部资料+高分项目.zip
- 基于flask-socketio的一个在线答题详细文档+全部资料+高分项目.zip
- 基于flask的后端敏捷开发框架详细文档+全部资料+高分项目.zip
- 基于flask的51商城应用系统设计详细文档+全部资料+高分项目.zip
- 基于flask的记账管理系统后端详细文档+全部资料+高分项目.zip
- 基于flask的人力资源管理系统详细文档+全部资料+高分项目.zip
- 基于flask的企业级开发模板,集成了flask-socketio,mongodb等等详细文档+全部资料+高分项目.zip
- 基于flask的随机故事网站详细文档+全部资料+高分项目.zip
- 基于Django的视频弹幕双创性教育网站:伊甸园的烦恼全部资料+详细文档+高分项目.zip