freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

嵌入式系統(tǒng)應(yīng)用--adc--模擬電壓采集-肖迎春-wenkub

2023-05-23 07:26:34 本頁面
 

【正文】 化順序及時(shí)間, ADC_Cmd()使能 /* ADC1 configuration */ = ADC_Mode_Independent。 ?調(diào)用 GPIO_Init()配置 IO口的模式 //PC0 作為模擬通道 10輸入引腳 = GPIO_Pin_0。通道和轉(zhuǎn)換順序在 ADC注入系列寄存器 (ADC_JSQR)中選擇。 STM32的 16個(gè)外部 ADC通道可分為兩組 :規(guī)則的和注入的。CLK控制器為 ADC時(shí)鐘提供一個(gè)專用的可編程預(yù)分頻器,預(yù)分頻值為: STM32的 ADC允許的最高時(shí)鐘頻率為 14MHz,若超過會(huì)降低精度,因此需要對 CLK進(jìn)行分頻。采樣時(shí)間越長,轉(zhuǎn)換結(jié)果越穩(wěn)定。 ? ADC 電源要求 : to V 。 ? ADC 輸入范圍 : VREF ≤ VIN ≤ VREF+ (VREF+ and VREF available only in LQFP100 package) ? 精度: 12位。采樣時(shí)間可設(shè)置為: / / / ADC時(shí)鐘周期。 最快轉(zhuǎn)換時(shí)間: 最高轉(zhuǎn)換速率: 00 2分頻(默認(rèn)) 01 4分頻 10 6分頻 11 8分頻 usMTT A D Cc on v 114 1*14*)( ????MH zusf 111 ??5 STM32的 A/D轉(zhuǎn)換器 ? 轉(zhuǎn)換模式: 單次 /連續(xù) /掃描 /間斷 /雙重。每個(gè)組可以是這 16個(gè)通道中的任意一些通道以任意順序進(jìn)行的組合。 6 STM32的 A/D轉(zhuǎn)換器 ? ADC端口: PA0~PA7:ADC_IN0~ADC_IN7 PB0~PB1:ADC_IN8~ADC_IN9 PC0~PC5:ADC_IN10~ADC_IN15 ? 輸入信號(hào)量程: VREF~VREF+(0~) ? 本電路板的模擬電壓(電位器)連在 PC0端口。 = GPIO_Mode_AIN。 = ENABLE。 = 1。 /* Enable ADC1 */ ADC_Cmd(ADC1, ENABLE)。 /* Check the end of ADC1 calibration */ while(ADC_GetCalibrationStatus(ADC1))。 ? void ADC_Init(ADC_TypeDef* ADCx, ADC_InitTypeDef* ADC_InitStruct)。 ? void ADC_ITConfig(ADC_TypeDef* ADCx, uint16_t ADC_IT, FunctionalState NewState)。 ? FlagStatus ADC_GetCalibrationStatus(ADC_TypeDef* ADCx)。 ? void ADC_DiscModeCmd(ADC_TypeDef* ADCx, FunctionalState NewState)。 ? uint32_t ADC_GetDualModeConversionValue(void)。 ? void ADC_ExternalTrigInjectedConvCmd(ADC_TypeDef* ADCx, FunctionalState NewState)。 ? void ADC_InjectedSequencerLengthConfig(ADC_TypeDef* ADCx, uint8_t Length)。 ? void ADC_AnalogWatchdogThresholdsConfig(ADC_TypeDef* ADCx, uint16_t HighThreshold, uint16_t LowThreshold)。 ? void ADC_ClearFlag(ADC_TypeDef* ADCx, uint8_t ADC_FLAG)。s (14 cycles) ADC ADCCLK ADC Prescalers: Div2, Div4, Div6 and Div8 PCLK2 cycles cycles cycles cycles cycles cycles cycles cycles Sample Time Selection SMPx[2:0] 24 ADC conversion modes ? Four conversion mode are available: CHx Start Stop CHx Start Stop . . . CHn CHx Start CHx Start . . . CHn Single channel single conversion mode Multichannels (Scan) single conversion mode Multichannels (Scan) continuous conversion mode Single channel continuous conversion mode 25 ADC discontinuous conversion mode ? Split channels conversion sequence into subsequences ? Available for both regular and injected groups: ? Up to 8 conversion for regular channel ? 1 conversion for injected channel Example: Conversion of channels: 0, 1, 2, 4, 5, 8, 9, 11, 12, 13, 14 and 15 Discontinuous mode Number of channel is 3 Channel0 Channel1 Channel2 Channel4 Channel5 Channel8 Channel9 Channel11 Channel12 Channel13 Channel14 Channel15 1st trigger 2nd trigger 3rd trigger 4th trigger End of Conversion Channel0 Channel1 Channel2 5th trigger … Note: Do not use discontinuous mode for both regular and injected together. It can be used only for one group channel 26 ADC Data alignment ? One bit data align selection: right or left ? For injected channel conversion negative value after subtraction of the offset the sign is extended in right alignment SEXT SEXT SEXT SEXT D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 Right alignment 0 0 0 0 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 SEXT 0 0 0 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 Left alignment 0 0 0 0 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 Regular group Injected group Regular group Injected group 27 ADC Analog Watchdogs ? 12bit programmable analog watchdog low and high thresholds ? Enabled on one, some or all converted channels: one regular or/and injected channel, all injected or/and regular channels. ? Interrupt generation on low or high thresholds detection Status Register Analog Watchdog Low Threshold Temp Sensor VREFINT ADC_IN0 ADC_IN1 ADC_IN15 . . . AWD High Threshold 28 DMA ? DMA available only on ADC1 ? DMA re
點(diǎn)擊復(fù)制文檔內(nèi)容
醫(yī)療健康相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1