STCubeMX翻譯

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           高

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章