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

正文內(nèi)容

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

2025-05-08 07:26 本頁面
   

【正文】 *函數(shù)說明參考 課本 附錄 C表 , p335頁 18 STM32的 ADC介紹 ? ADC 轉(zhuǎn)換率達(dá) 1 MHz,精度為 12位 ? ADC 電源要求 : to V ? ADC 輸入范圍 : VREF ≤ VIN ≤ VREF+ (VREF+ and VREF available only in LQFP100 package) ? Dual mode (on devices with 2 ADCs): 8 conversion mode ? 多達(dá) 18個(gè)通道 : ? 16 external channels ? 2 internal channels: 與溫度傳感器和內(nèi)部參考電壓連接 (Bandgap voltage) ? Channels conversion groups: ? Up to 16 channels regular group ? Up to 4 channels injected group ? Single and continuous conversion modes 19 STM32的 ADC介紹 ? 自動(dòng)從通道 0 到通道 ‘n’ 進(jìn)行轉(zhuǎn)換的掃描模式 ? Channel by channel programmable sampling time and conversion order ? Discontinuous mode on regular and injected groups ? Selfcalibration ? Left or right Data alignment with inbuilt data coherency ? Analog Watchdog on high and low thresholds ? Interrupt generation on: ? End of Conversion ? End of Injected conversion ? Analog watchdog ? DMA capability (only on ADC1) 20 ADC Block Diagram TIM1_CC1 TIM1_CC2 TIM1_CC3 TIM2_CC2 TIM3_TRGO TIM4_CC4 TIM1_TRGO TIM1_CC4 TIM1_TRGO TIM2_CC1 TIM3_CC4 TIM4_TRGO ANALOG MUX GPIO Ports Temp Sensor VREFINT ADC Up to 4 Up to 16 Injected Channels Regular Channels JEXTRIG bit Start Trigger (injected group) VREF+ VREF VDDA VSSA ADC_IN0 ADC_IN1 ADC_IN15 . . . Ext_IT_15 Ext_IT_11 EXTRIG bit Start Trigger (regular group) JEXTSEL[2:0] bits EXTSEL[2:0] bits Injected data registers (4x12bits) Address/data bus Regular data register (12bits) DMA Request ADCCLK ADC Prescalers: Div2, Div4, Div6 and Div8 PCLK2 Analog Watchdog High Threshold register (12bits) Low Threshold register (12bits) AWD EOC JEOC AWDIE EOCIE JEOCIE Flags Interrupt enable bits Analog watchdog event End of injected conversion End of conversion ADC interrupt to NVIC 21 ADC Regular channels group ? Programmable number of regular channels: Up to 16 channels ? Programmable sample time and order of each channel in the conversion sequence ? Conversion started by: ? Software through start bit ? External trigger generated by: ? Timer1 CC1 ? Timer1 CC2 ? Timer1 CC3 ? Timer2 CC2 ? Timer3 TRGO ? Timer4 CC4 ? EXTI Line11 22 ADC Injected channels group ? Programmable number of injected channels: Up to 4 channels ? Programmable sample time and order of each channel in the conversion sequence ? Conversion started by: ? JAUTO: automatic injected conversion after regular channels conversion ? Software through start bit ? External trigger generated by: ? Timer1 TRGO ? Timer1 CC4 ? Timer2 TRGO ? Timer2 CC1 ? Timer3 CC4 ? Timer4 TRGO ? EXTI Line15 23 Analog sample time ? ADCCLK, up to 14MHz, taken from PCLK2 through a prescaler (Div2, Div4, Div6 and Div8) ? Three bits programmable sample time cycles for each channel: ? cycles ? cycles ? cycles ? cycles ? cycles ? cycles ? cycles ? cycles ? Total conversion = Sample time + cycles (fixed time) 14MHz and Sample time= ? total conversion: 1181。 ? FlagStatus ADC_GetFlagStatus(ADC_TypeDef* ADCx, uint8_t ADC_FLAG)。 ? void ADC_AnalogWatchdogCmd(ADC_TypeDef* ADCx, uint32_t ADC_AnalogWatchdog)。 ? void ADC_InjectedChannelConfig(ADC_TypeDef* ADCx, uint8_t ADC_Channel, uint8_t Rank, uint8_t ADC_SampleTime)。 ? void ADC_ExternalTrigInjectedConvConfig(ADC_TypeDef* ADCx, uint32_t ADC_ExternalTrigInjecConv)。 ? uint16_t ADC_GetConversionValue(ADC_TypeDef* ADCx)。 ? void ADC_DiscModeChannelCountConfig(ADC_TypeDef* ADCx, uint8_t Number)。 ? void ADC_StartCalibration(ADC_TypeDef* ADCx)。 ? void ADC_DMACmd(ADC_TypeDef* ADCx, FunctionalState NewState)。 15 ADC庫函數(shù) ? void ADC_DeInit(ADC_TypeDef* ADCx)。 /* Start ADC1 calibaration */ ADC_StartCalibration(ADC1)。 /* ADC1 regular channel10 configuration */ ADC_RegularChannelConfig(ADC1, ADC_Channel_10, 1, ADC_SampleTime_55Cycles5)。 = ADC_DataAlign_Right。 13 使用 STM32 ADC的步驟 ? ADC_Init()初始化 , ADC_RegularChannelConfig()設(shè)置通道和轉(zhuǎn)
點(diǎn)擊復(fù)制文檔內(nèi)容
醫(yī)療健康相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1