STCubeMX翻译

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

1ADCConfigurationADC配置ParameterSettings参数设置NVICSettings中断优先级设置DMASettingsDMA模式设置GPIOSettingsGPIO设置Configurethebelowparameters:配置以下参数ADCSettingsADC设置ClockPrescaler时钟分频Asynchronousclockmode不同步时钟模式Synchronousclockmodedividedby2同步时钟模式除以2Synchronousclockmodedividedby4同步时钟模式除以4ResolutionADC采样分辨率ADC12-bitresolutionADC12位采样分辨率ADC10-bitresolutionADC10位采样分辨率ADC8-bitresolutionADC8位采样分辨率ADC6-bitresolutionADC6位采样分辨率DataAlignment数据对齐Rightalignment数据右对齐模式Leftalignment数据左对齐模式ScanConversionMode扫描转换模式Forward扫描通道从第一个通道到最后一个通道Backward扫描通道从最后一个通道到第一个通道ContinuousConversionMode连续转换模式Disabled关闭Enabled打开DiscontinuousConversionMode间断转换模式Disabled关闭Enabled打开DMAContinuousRequestsDMA连续请求Disabled关闭Enabled打开EndofConversionSelection转换结束选择Endofsingleconversion单通道转换结束Endofsequenceofconversion序列转换结束Endofsingleorsequenceofconversion单通道或序列结束OverrunbehaviourOverrundatapreservedOverrundataoverwrittenLowPowerAutoWait低电压自动等待Disabled关闭Enabled打开LowPowerAutoPowerOff低电压ADC自动关闭Disabled关闭Enabled打开ADC_Regular_ConversionModeADC规则通道转换模式NumberOfConversion转换的通道个数ExternalTriggerConversionEdge外部触发转换边沿None没有外部触发Triggerdetectionontherisingedge上升沿触发检测Triggerdetectionontherisingedge下降沿触发检测Triggerdetectionontherisingorfallings上升沿和下降沿触发ExternalTriggerConversionSource外部触发转换源Timer1TriggerOutevent定时器1触发Timer1CaptureCompare4event定时器1输出比较4事件Timer3TriggerOutevent定时器3触发输出事件Timer15TriggerOutevent定时器15触发输出事件SoftwareTrigger软件触发转换Rank转换序列号Watchdog看门狗EnableAnalogWatchDogMode打开模拟看门狗WatchdogModeSingleregularchannel单一规则通道上打开看门狗Allregularchannel所有规则通道上打开看门狗None关闭看门狗HighThreshold看门狗高临界值LowThreshold看门狗低临界值InterruptMode中断模式Disabled关闭Enabled打开ADCglobalinterruptADC全局中断2TIM1ConfigurationTIM1配置Prescaler时钟分频数CounterMode计数模式UP向上计数Down向下计数CenterAlignedmode1中间对齐模式1CenterAlignedmode2中间对齐模式2CenterAlignedmode3中间对齐模式3CounterPeriod计数周期InternalClockDivision(CKD)内部时钟分割NoDivision内部时钟不分频Divisionby2时钟除以2Divisionby4时钟除以4RepetitionCounter重复计数SlaveModeController从模式控制器Slavemodedisable关闭从模式TriggerOutput(TRGO)Parameters触发输出参数设置Master/SlaveMode主从模式Disable(nosyncbetweenthisTIM(Master)anditsslaves)Enable(syncbetweenthisTIM(Master)anditsslaves)TriggerEventSelection触发事件选择Reset(UGbitfromTIMx_EGR)复位Enable(CNT_EN)使能从定时器UpdateEvent更新事件ComparePulse(OC1)比较脉冲OutputCompare(OC1REF)输出比较1OutputCompare(OC2REF)输出比较2OutputCompare(OC3REF)输出比较3OutputCompare(OC4REF)输出比较4Breakanddeadtimemanagement刹车死区时间管理BRKState刹车状态Disable关闭Enable打开BRKPolarity刹车极性High高电平Low低电平AutomaticOutputState自动输出状态Disabled关闭Enabled打开OffStateSelectionforRunMode(OSSR)Disabled关闭Enabled打开OffStateSelectionforIdleMode(OSSI)Disabled关闭Enabled打开LockConfiguration定时器锁定配置Off关闭LockLevel1锁定1LockLevel2锁定2LockLevel3锁定3Outputcomparenooutputchannel2输出比较输出通道2NMode模式Frozen(usedforTimingbase)冻结ActiveLevelonmatch匹配输出高电平InactiveLevelonmatch匹配输出低电平ToggleLevelonmatch匹配翻转电平ForcedActive强制输出高电平ForcedInactive强制输出低电平Pulse(16bitsvalue)脉冲宽度(16位)CHPolarity输出通道极性High高Low低CHIdleState输出通道闲置状态Set置高Reset复位低Outputcomparechannel3输出比较通道3Mode模式Frozen(usedforTimingbase)冻结ActiveLevelonmatch匹配输出高电平InactiveLevelonmatch匹配输出低电平Toggleonmatch匹配翻转电平ForcedActive强制输出高电平ForcedInactive强制输出低电平Pulse(16bitsvalue)脉冲宽度(16位)CHPolarity输出通道极性High高Low低CHIdleState输出通道闲置状态Set置高Reset复位低3USART1Configuration串口1配置BaudRate波特率WordLength数据长度8bits(includingparity)8位(包含校验位)9bits(includingparity)9位(包含校验位)Parity检验位None没有校验Even偶校验Odd奇校验StopBits停止位11个停止位22个停止位AdvancedParameters高级参数设置DataDirection数据传输方向ReceiveandTransmit接收和发送ReceiveOnly仅接收TransmitOnly仅发送OverSampling过采样16Samples采样16次8Samples采样8次SingleSampleDisable关闭Enable打开AdvancedFeatures高级特性AutoBaudrate自动波特率Disabled关闭Enabled打开TXPinActiveLevelIsInvertedDisabled关闭Enabled打开RXPinActiveLevelIsInvertedDisabled关闭Enabled打开DataAreInvertedDisabled关闭Enabled打开TXandRXPinsAreSwapped发送和接收引脚交换Disabled关闭Enabled打开OverrunDisable关闭数据覆盖Disabled关闭Enabled打开DMADisableonRXErrorRX脚错误关闭DMADisabled关闭Enabled打开MSBIsSentFirst最高位先发送Disabled关闭Enabled打开SPI1ConfigurationSPI1配置FrameFormat帧格式MotorolaDataSize传输数据大小4Bits4位5Bits5位6Bits6位7Bits7位8Bits8位9Bits9位10Bits10位11Bits11位ClockParameters(时钟参数)Prescaler(forBaudRate)分频(针对波特率)22分频44分频88分频1616分频BaudRate波特率ClockPolarity(CPOL)数据采样时时钟极性Low低High高ClockPhase(CPHA)数据采样时时钟相位1Edge第一个边沿2Edge第二个边沿AdvancedParameters高级参数设置CRCCalculationCRC计算Disabled关闭Enabled打开4I2C1ConfigurationI2C1配置I2CSpeedModeStandardMode标准模式FastMode快速模式FastModePlus快速模式+I2CSpeedFrequency(KHz)I2C速度RiseTime(ns)上升时间FallTime(ns)下降时间CoefficientofDigitalFilterAnalogFilter模拟滤波器Disabled关闭Enabled打开Slavefeatures从模式特性ClockNoStretchMode时钟没有扩展模式ClockStretchDisabled关闭时钟扩展ClockStretchEnabled打开时钟扩展GeneralCallAddressDetection通用呼叫检测Disabled关闭Enabled打开PrimaryAddressLengthselection原始地址长度检测7-bit7位10-bit10位Primaryslaveaddress原始从地址DualAddressAcknowledged双地址确认Disabled关闭Enabled打开IWDGConfiguration独立看门狗设置IWDGcounterclockprescaler独立看门狗计数时钟分频器48163264128256IWDGwindowvalue独立看门狗值IWDGdown-counterreloadvalue独立看门狗向下重装载值PinConfigurationGPIO口配置GPIOModeGPIO模式analogmode模拟输入端口Nopull-upandnopull-down既不上拉也不下拉AlternateFunctionOpenDrain复用开漏输出AlternateFunctionPushPull复用推挽Maximumoutputspeed最大输出速度Low低Medium中High高5

1 / 5
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功