STCubeMX翻译
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
ADC Configuration ADC配置
Parameter Settings 参数设置
NVIC Settings 中断优先级设置
DMA Settings DMA模式设置
GPIO Settings GPIO设置
Configure the below parameters:配置以下参数
ADC Settings ADC设置
Clock Prescaler 时钟分频Asynchronous clock mode 不同步时钟模式
Synchronous clock mode divided by 2 同步时钟模式除以2
Synchronous clock mode divided by 4 同步时钟模式除以4 Resolution ADC采样分辨率ADC 12-bit resolution ADC 12位采样分辨率
ADC 10-bit resolution ADC 10位采样分辨率
ADC 8-bit resolution ADC 8位采样分辨率
ADC 6-bit resolution ADC 6位采样分辨率Data Alignment 数据对齐Right alignment 数据右对齐模式
Left alignment 数据左对齐模式
Scan Conversion Mode 扫描转换模式Forward 扫描通道从第一个通道到最后一个通道Backward 扫描通道从最后一个通道到第一个通道
Continuous Conversion Mode 连续转换模式Disabled 关闭Enabled 打开
Discontinuous Conversion Mode
间断转换模式Disabled 关闭Enabled 打开
DMA Continuous Requests DMA连续请求Disabled 关闭Enabled 打开
End of Conversion Selection 转换结束选择End of single conversion 单通道转换结束End of sequence of conversion 序列转换结束
End of single or sequence of conversion单通道或序列结束
Overrun behaviour Overrun data preserved
Overrun data overwritten
Low Power Auto Wait 低电压自动等待Disabled 关闭Enabled 打开
Low Power Auto Power Off 低电压ADC自动关闭Disabled 关闭Enabled 打开
ADC_Regular_ConversionMode ADC规则通道转换模式Number Of Conversion 转换的通道个数
External Trigger Conversion Edge
外部触发转换边沿None 没有外部触发
Trigger detection on the rising edge 上升沿触发检测Trigger detection on the rising edge 下降沿触发检测Trigger detection on the rising or fallings 上升沿和下降沿触发
External Trigger Conversion Source
外部触发转换源Timer1 Trigger Out event 定时器1触发
Timer1 Capture Compare4 event 定时器1输出比较4事件
Timer3 Trigger Out event 定时器3触发输出事件Timer15 Trigger Out event 定时器15触发输出事件Software Trigger 软件触发转换
Rank 转换序列号
Watchdog 看门狗
Enable Analog WatchDog Mode 打开模拟看门狗
Watchdog Mode Single regular channel 单一规则通道上打开看门狗
All regular channel 所有规则通道上打开看门狗
None 关闭看门狗
High Threshold 看门狗高临界值
Low Threshold 看门狗低临界值
Interrupt Mode 中断模式Disabled 关闭Enabled 打开
ADC global interrupt ADC 全局中断
TIM1 Configuration TIM1 配置Prescaler 时钟分频数
Counter Mode 计数模式UP 向上计数
Down 向下计数
Center Aligned mode1 中间对齐模式1 Center Aligned mode2 中间对齐模式2 Center Aligned mode3 中间对齐模式3
Counter Period 计数周期
Internal Clock Division (CKD) 内部时钟分割No Division 内部时钟不分频Division by 2 时钟除以2 Division by 4 时钟除以4
Repetition Counter 重复计数
Slave Mode Controller 从模式控制器Slave mode disable 关闭从模式Trigger Output(TRGO) Parameters 触发输出参数设置
Master/Slave Mode 主从模式Disable(no sync between this TIM(Master)and its slaves) Enable(sync between this TIM(Master)and its slaves)
Trigger Event Selection 触发事件选择Reset(UG bit from TIMx_EGR)复位Enable(CNT_EN) 使能从定时器Update Event 更新事件Compare Pulse(OC1) 比较脉冲Output Compare(OC1REF) 输出比较1 Output Compare (OC2REF) 输出比较2 Output Compare (OC3REF) 输出比较3 Output Compare (OC4REF) 输出比较4
Break and dead time management 刹车死区时间管理BRK State 刹车状态Disable 关闭
Enable 打开BRK Polarity 刹车极性High 高电平
Low 低电平
Automatic Output State 自动输出状态Disabled 关闭Enabled 打开
Off State Selection for Run Mode (OSSR) Disabled 关闭Enabled 打开
Off State Selection for Idle Mode (OSSI) Disabled 关闭Enabled 打开
Lock Configuration 定时器锁定配置Off 关闭Lock Level 1 锁定1 Lock Level 2 锁定2 Lock Level 3 锁定3
Output compare no output channel 2 输出比较输出通道2N Mode 模式Frozen(used for Timing base) 冻结
Active Level on match 匹配输出高电平
Inactive Level on match 匹配输出低电平
Toggle Level on match 匹配翻转电平
Forced Active 强制输出高电平
Forced Inactive 强制输出低电平Pulse (16 bits value) 脉冲宽度(16位)
CH Polarity
输出通道极性High 高Low 低
CH Idle State
输出通道闲置状态
Set 置高
Reset 复位低
Output compare channel 3 输出比较通道3
Mode 模式Frozen(used for Timing base) 冻结
Active Level on match 匹配输出高电平
Inactive Level on match 匹配输出低电平
Toggle on match 匹配翻转电平
Forced Active 强制输出高电平
Forced Inactive 强制输出低电平Pulse (16 bits value) 脉冲宽度(16位)
CH Polarity
输出通道极性High 高Low 低
CH Idle State
输出通道闲置状态Set 置高Reset 复位低
USART1 Configuration 串口1 配置Baud Rate 波特率
Word Length 数据长度8bits(including parity)8位(包含校验位)9bits(including parity)9位(包含校验位)
Parity 检验位None 没有校验Even 偶校验Odd 奇校验
Stop Bits 停止位
1 1个停止位
2 2个停止位Advanced Parameters 高级参数设置
Data Direction 数据传输方向Receive and Transmit 接收和发送Receive Only 仅接收Transmit Only 仅发送
Over Sampling 过采样16 Samples 采样16次8 Samples 采样8次
Single Sample Disable 关闭
Enable 打开
Advanced Features 高级特性
Auto Baudrate 自动波特率Disabled 关闭Enabled 打开
TX Pin Active Level Is Inverted Disabled 关闭
Enabled 打开RX Pin Active Level Is Inverted Disabled 关闭
Enabled 打开Data Are Inverted Disabled 关闭
Enabled 打开
TX and RX Pins Are Swapped 发送和接收引脚交换Disabled 关闭Enabled 打开
Overrun Disable 关闭数据覆盖Disabled 关闭Enabled 打开
DMA Disable on RX Error RX脚错误关闭DMA Disabled 关闭Enabled 打开
MSB Is Sent First 最高位先发送
Disabled 关闭
Enabled 打开SPI1 Configuration SPI1 配置
Frame Format 帧格式Motorola
Data Size
传输数据大小
4 Bits 4位
5 Bits 5位
6 Bits 6位
7 Bits 7位
8 Bits 8位
9 Bits 9位
10 Bits 10位
11 Bits 11位Clock Parameters(时钟参数)
Prescaler (for Baud Rate) 分频(针对波特率)2 2分频4 4分频8 8分频16 16分频
Baud Rate 波特率
Clock Polarity (CPOL) 数据采样时时钟极性Low 低High 高
Clock Phase (CPHA) 数据采样时时钟相位
1 Edge 第一个边沿
2 Edge 第二个边沿Advanced Parameters 高级参数设置
CRC Calculation CRC 计算Disabled 关闭Enabled 打开
I2C1 Configuration I2C1 配置
I2C Speed Mode Standard Mode 标准模式
Fast Mode 快速模式
Fast Mode Plus 快速模式+ I2C Speed Frequency (KHz) I2C速度
Rise Time (ns) 上升时间
Fall Time (ns) 下降时间Coefficient of Digital Filter
Analog Filter 模拟滤波器
Disabled 关闭
Enabled 打开
Slave features 从模式特性
Clock No Stretch Mode 时钟没有扩展模式Clock Stretch Disabled 关闭时钟扩展Clock Stretch Enabled 打开时钟扩展
General Call Address Detection
通用呼叫检测Disabled 关闭Enabled 打开
Primary Address Length selection
原始地址长度检测7-bit 7位10-bit 10位
Primary slave address 原始从地址
Dual Address Acknowledged 双地址确认Disabled 关闭Enabled 打开
IWDG Configuration 独立看门狗设置
IWDG counter clock prescaler 独立看门狗计数时钟分频器4 8 16 32 64 128 256
IWDG window value 独立看门狗值
IWDG down-counter reload value 独立看门狗向下重装载值
Pin Configuration GPIO口配置
GPIO Mode GPIO模式analog mode 模拟输入端口
No pull-up and no pull-down 既不上拉也不下拉
Alternate Function Open Drain 复用开漏输出
Alternate Function Push Pull 复用推挽
Maximum output speed 最大输出速度Low 低Medium 中High 高。