嵌入式系统应用--ADC--模拟电压采集-肖迎春课件

上传人:阳*** 文档编号:113947668 上传时间:2022-06-27 格式:PPT 页数:38 大小:424.50KB
收藏 版权申诉 举报 下载
嵌入式系统应用--ADC--模拟电压采集-肖迎春课件_第1页
第1页 / 共38页
嵌入式系统应用--ADC--模拟电压采集-肖迎春课件_第2页
第2页 / 共38页
嵌入式系统应用--ADC--模拟电压采集-肖迎春课件_第3页
第3页 / 共38页
资源描述:

《嵌入式系统应用--ADC--模拟电压采集-肖迎春课件》由会员分享,可在线阅读,更多相关《嵌入式系统应用--ADC--模拟电压采集-肖迎春课件(38页珍藏版)》请在装配图网上搜索。

1、嵌入式系统应用-ADC-模拟电压采集-肖迎春1嵌入式系统应用肖迎春 Email: QQ:787522366 Tel:嵌入式系统应用-ADC-模拟电压采集-肖迎春2目录l任务1:ADC-模拟电压采集lSTM32 ADC介绍嵌入式系统应用-ADC-模拟电压采集-肖迎春3STM32的A/D转换器STM32单片机有2个独立的ADC控制器,有18个通道,可测量16个外部信号和2个内部信号源:内部温度传感器和内部参考电压(Bandgap voltage) 。lADC 电源要求: 2.4V to 3.6 V 。lADC 输入范围: VREF- VIN VREF+ (VREF+ and VREF- avail

2、able only in LQFP100 package)l精度:12位。结果可按左对齐或右对齐的方式存放在16位寄存器中。lA/D转换的过程:采用、保持、量化、编程。采样时间越长,转换结果越稳定。采样时间可设置为:1.5个/7.5个/13.5个/28.5个ADC时钟周期。lADC转换时间 采用时间+转换时间l转换时间:12.5个时钟周期。CONVT嵌入式系统应用-ADC-模拟电压采集-肖迎春4STM32的A/D转换器l转换速率: ADC1和ADC2连在APB2总线上(其最高速率72MHz)。CLK控制器为ADC时钟提供一个专用的可编程预分频器,预分频值为: STM32的ADC允许的最高时钟频

3、率为14MHz,若超过会降低精度,因此需要对CLK进行分频。 最快转换时间: 最高转换速率:002分频(默认)014分频106分频118分频usMTTADCconv1141*14*)5 .125 . 1 (MHzusf111嵌入式系统应用-ADC-模拟电压采集-肖迎春5STM32的A/D转换器l转换模式: 单次/连续/扫描/间断/双重。 扫描模式如果没有启动,则启动一次AD转换只会转换第一个通道;扫描模式如果启动,则启动一次AD转换会对所有通道进行转换。 如果是单次模式,启动后一次转换完成后不再转换,如果是连续模式,则一次转换完后继续反复转换。 STM32的16个外部ADC通道可分为两组:规则

4、的和注入的。每个组可以是这16个通道中的任意一些通道以任意顺序进行的组合。 规则组最多有16个通道,通道和转换顺序在ADC规则系列寄存器x(ADC_JSQR)中选择。 注入组最多有4个通道。通道和转换顺序在ADC注入系列寄存器(ADC_JSQR)中选择。嵌入式系统应用-ADC-模拟电压采集-肖迎春6STM32的A/D转换器lADC端口: PA0PA7:ADC_IN0ADC_IN7 PB0PB1:ADC_IN8ADC_IN9 PC0PC5:ADC_IN10ADC_IN15l输入信号量程:VREF-VREF+(03.3V)l本电路板的模拟电压(电位器)连在PC0端口。 嵌入式系统应用-ADC-模拟

5、电压采集-肖迎春7任务1:ADC模拟电压采集l任务:编程从STM32的ADC采集电位器上的模拟电压,通过串口输出到PC上,串口终端接收显示出来l目的:掌握STM32 ADC的应用及库函数的使用l步骤:l建立自己的项目文件夹l建立Keil工程项目,命名为ADC.uvproj,保存到MDK目录下l项目中添加main.c、retarget.c和标准外设库STM32StdPeriphLib.libl配置好C/C+头文件路径和调试工具参数l将实验板上的跳线J61, J62接到RS232&RS485端,跳线J59,J60接到RS232端;l连接好仿真器和实验板l编译、下载程序 l打开PC机上的串口终端,选

6、择正确的端口和波特率l调整电位R2,观察串口接收窗口的数据 l修改代码,将ADC的数值转换为实际电压值,通过串口将结果发回PC,同时在电压值2.5V时蜂鸣器报警; 嵌入式系统应用-ADC-模拟电压采集-肖迎春8任务1:配置l头文件路径配置:1、C/C+配置2、H文件路径3、添加路径:.App.INC.INCCMSIS_INC嵌入式系统应用-ADC-模拟电压采集-肖迎春9任务1:配置lDebug配置:1、Debug配置嵌入式系统应用-ADC-模拟电压采集-肖迎春10任务1:配置l下载工具配置:1、下载工具配置2、设置3、添加下载算法:Stm32F10 x Connectivity Line嵌入式

7、系统应用-ADC-模拟电压采集-肖迎春11ADC库函数库函数功能描述lUSART标准库函数的说明参考课本p335表C.9l在软件开发时,adc标准库函数的参数使用,可以参考头文件lstm32f10 x.h、stm32f10 x_adc.h嵌入式系统应用-ADC-模拟电压采集-肖迎春12使用STM32 ADC的步骤l调用RCC_APB2PeriphClockCmd()库函数使能对应IO口的时钟RCC_APB2PeriphClockCmd( RCC_APB2Periph_GPIOC |RCC_APB2Periph_ADC1|RCC_APB2Periph_GPIOD| RCC_APB2Periph_

8、AFIO , ENABLE );l调用GPIO_Init()配置IO口的模式/PC0 作为模拟通道10输入引脚 GPIO_InitStructure.GPIO_Pin = GPIO_Pin_0; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AIN; GPIO_Init(GPIOC, &GPIO_InitStructure);嵌入式系统应用-ADC-模拟电压采集-肖迎春13使用STM32 ADC的步骤lADC_Init()初始化, ADC_RegularChannelConfig()设置通道和转化顺序及时间,ADC_Cmd()使能 /* ADC1 confi

9、guration -*/ ADC_InitStructure.ADC_Mode = ADC_Mode_Independent; ADC_InitStructure.ADC_ScanConvMode = ENABLE; ADC_InitStructure.ADC_ContinuousConvMode = ENABLE; ADC_InitStructure.ADC_ExternalTrigConv = ADC_ExternalTrigConv_None; ADC_InitStructure.ADC_DataAlign = ADC_DataAlign_Right; ADC_InitStructure

10、.ADC_NbrOfChannel = 1; ADC_Init(ADC1, &ADC_InitStructure); /* ADC1 regular channel10 configuration */ ADC_RegularChannelConfig(ADC1, ADC_Channel_10, 1, ADC_SampleTime_55Cycles5); /* Enable ADC1 */ ADC_Cmd(ADC1, ENABLE); 嵌入式系统应用-ADC-模拟电压采集-肖迎春14使用STM32 ADC的步骤l重置校验寄存器,等待重置完成,开始校验,等待校验完成 /* Enable ADC1

11、 reset calibaration register */ ADC_ResetCalibration(ADC1); /* Check the end of ADC1 reset calibration register */ while(ADC_GetResetCalibrationStatus(ADC1); /* Start ADC1 calibaration */ ADC_StartCalibration(ADC1); /* Check the end of ADC1 calibration */ while(ADC_GetCalibrationStatus(ADC1); /* Sta

12、rt ADC1 Software Conversion */ ADC_SoftwareStartConvCmd(ADC1, ENABLE);l调用ADC_GetConversionValue获取结果AD_value=ADC_GetConversionValue(ADC1);嵌入式系统应用-ADC-模拟电压采集-肖迎春15ADC库函数lvoid ADC_DeInit(ADC_TypeDef* ADCx);lvoid ADC_Init(ADC_TypeDef* ADCx, ADC_InitTypeDef* ADC_InitStruct);lvoid ADC_StructInit(ADC_InitT

13、ypeDef* ADC_InitStruct);lvoid ADC_Cmd(ADC_TypeDef* ADCx, FunctionalState NewState);lvoid ADC_DMACmd(ADC_TypeDef* ADCx, FunctionalState NewState);lvoid ADC_ITConfig(ADC_TypeDef* ADCx, uint16_t ADC_IT, FunctionalState NewState);lvoid ADC_ResetCalibration(ADC_TypeDef* ADCx);lFlagStatus ADC_GetResetCali

14、brationStatus(ADC_TypeDef* ADCx);lvoid ADC_StartCalibration(ADC_TypeDef* ADCx);lFlagStatus ADC_GetCalibrationStatus(ADC_TypeDef* ADCx);lvoid ADC_SoftwareStartConvCmd(ADC_TypeDef* ADCx, FunctionalState NewState);lFlagStatus ADC_GetSoftwareStartConvStatus(ADC_TypeDef* ADCx);lvoid ADC_DiscModeChannelCo

15、untConfig(ADC_TypeDef* ADCx, uint8_t Number);lvoid ADC_DiscModeCmd(ADC_TypeDef* ADCx, FunctionalState NewState);嵌入式系统应用-ADC-模拟电压采集-肖迎春16ADC库函数lvoid ADC_RegularChannelConfig(ADC_TypeDef* ADCx, uint8_t ADC_Channel, uint8_t Rank, uint8_t ADC_SampleTime);lvoid ADC_ExternalTrigConvCmd(ADC_TypeDef* ADCx,

16、FunctionalState NewState);luint16_t ADC_GetConversionValue(ADC_TypeDef* ADCx);luint32_t ADC_GetDualModeConversionValue(void);lvoid ADC_AutoInjectedConvCmd(ADC_TypeDef* ADCx, FunctionalState NewState);lvoid ADC_InjectedDiscModeCmd(ADC_TypeDef* ADCx, FunctionalState NewState);lvoid ADC_ExternalTrigInj

17、ectedConvConfig(ADC_TypeDef* ADCx, uint32_t ADC_ExternalTrigInjecConv);lvoid ADC_ExternalTrigInjectedConvCmd(ADC_TypeDef* ADCx, FunctionalState NewState);lvoid ADC_SoftwareStartInjectedConvCmd(ADC_TypeDef* ADCx, FunctionalState NewState);lFlagStatus ADC_GetSoftwareStartInjectedConvCmdStatus(ADC_Type

18、Def* ADCx);lvoid ADC_InjectedChannelConfig(ADC_TypeDef* ADCx, uint8_t ADC_Channel, uint8_t Rank, uint8_t ADC_SampleTime);lvoid ADC_InjectedSequencerLengthConfig(ADC_TypeDef* ADCx, uint8_t Length);嵌入式系统应用-ADC-模拟电压采集-肖迎春17ADC库函数lvoid ADC_SetInjectedOffset(ADC_TypeDef* ADCx, uint8_t ADC_InjectedChannel

19、, uint16_t Offset);luint16_t ADC_GetInjectedConversionValue(ADC_TypeDef* ADCx, uint8_t ADC_InjectedChannel);lvoid ADC_AnalogWatchdogCmd(ADC_TypeDef* ADCx, uint32_t ADC_AnalogWatchdog);lvoid ADC_AnalogWatchdogThresholdsConfig(ADC_TypeDef* ADCx, uint16_t HighThreshold, uint16_t LowThreshold);lvoid ADC

20、_AnalogWatchdogSingleChannelConfig(ADC_TypeDef* ADCx, uint8_t ADC_Channel);lvoid ADC_TempSensorVrefintCmd(FunctionalState NewState);lFlagStatus ADC_GetFlagStatus(ADC_TypeDef* ADCx, uint8_t ADC_FLAG);lvoid ADC_ClearFlag(ADC_TypeDef* ADCx, uint8_t ADC_FLAG);lITStatus ADC_GetITStatus(ADC_TypeDef* ADCx,

21、 uint16_t ADC_IT);lvoid ADC_ClearITPendingBit(ADC_TypeDef* ADCx, uint16_t ADC_IT);*函数说明参考 课本 附录C表C.9,p335页嵌入式系统应用-ADC-模拟电压采集-肖迎春18STM32的ADC介绍lADC 转换率达 1 MHz,精度为12位lADC 电源要求: 2.4V to 3.6 VlADC 输入范围: VREF- VIN VREF+ (VREF+ and VREF- available only in LQFP100 package)lDual mode (on devices with 2 ADCs)

22、: 8 conversion model多达18个通道:l 16 external channelsl 2 internal channels: 与温度传感器和内部参考电压连接 (Bandgap voltage)lChannels conversion groups:lUp to 16 channels regular grouplUp to 4 channels injected grouplSingle and continuous conversion modes嵌入式系统应用-ADC-模拟电压采集-肖迎春19STM32的ADC介绍l自动从通道 0 到通道 n 进行转换的扫描模式lCha

23、nnel by channel programmable sampling time and conversion orderlDiscontinuous mode on regular and injected groupslSelf-calibrationlLeft or right Data alignment with inbuilt data coherencylAnalog Watchdog on high and low thresholdslInterrupt generation on:lEnd of ConversionlEnd of Injected conversion

24、lAnalog watchdoglDMA capability (only on ADC1) 嵌入式系统应用-ADC-模拟电压采集-肖迎春20ADC Block DiagramTIM1_CC1TIM1_CC2TIM1_CC3TIM2_CC2TIM3_TRGOTIM4_CC4TIM1_TRGOTIM1_CC4TIM1_TRGOTIM2_CC1TIM3_CC4TIM4_TRGOGPIOPortsTemp SensorVREFINTUp to 4Up to 16Injected ChannelsRegular ChannelsJEXTRIG bitStart Trigger (injected gr

25、oup)VREF+VREF-VDDAVSSAADC_IN0ADC_IN1ADC_IN15.Ext_IT_15Ext_IT_11EXTRIG bitStart Trigger (regular group)JEXTSEL2:0 bitsEXTSEL2:0 bitsInjected data registers (4x12bits)Address/data busRegular data register (12bits)ADC Prescalers: Div2, Div4, Div6 and Div8Analog WatchdogHigh Threshold register (12bits)L

26、ow Threshold register (12bits)AWD EOC JEOCAWDIE EOCIE JEOCIEFlagsInterrupt enable bitsAnalog watchdog eventEnd of injected conversionEnd of conversionADC interrupt to NVIC嵌入式系统应用-ADC-模拟电压采集-肖迎春21ADC Regular channels grouplProgrammable number of regular channels: Up to 16 channelslProgrammable sample

27、 time and order of each channel in the conversion sequencelConversion started by:lSoftware through start bitlExternal trigger generated by:lTimer1 CC1 lTimer1 CC2lTimer1 CC3lTimer2 CC2 lTimer3 TRGOlTimer4 CC4lEXTI Line11嵌入式系统应用-ADC-模拟电压采集-肖迎春22ADC Injected channels grouplProgrammable number of injec

28、ted channels: Up to 4 channelslProgrammable sample time and order of each channel in the conversion sequencelConversion started by:lJAUTO: automatic injected conversion after regular channels conversionlSoftware through start bitlExternal trigger generated by:lTimer1 TRGO lTimer1 CC4lTimer2 TRGOlTim

29、er2 CC1 lTimer3 CC4lTimer4 TRGOlEXTI Line15嵌入式系统应用-ADC-模拟电压采集-肖迎春23Analog sample timelADCCLK, up to 14MHz, taken from PCLK2 through a prescaler (Div2, Div4, Div6 and Div8) lThree bits programmable sample time cycles for each channel:l1.5 cycles l7.5 cyclesl13.5 cyclesl28.5 cyclesl41.5 cyclesl55.5 cy

30、clesl71.5 cyclesl239.5 cycleslTotal conversion = Sample time + 12.5 cycles (fixed time) 14MHz and Sample time=1.5cycle total conversion: 1s (14 cycles)ADC Prescalers: Div2, Div4, Div6 and Div855.5 cycles7.5 cycles71.5 cycles41.5 cycles13.5 cycles28.5 cycles1.5 cycles239.5 cyclesSMPx2:0嵌入式系统应用-ADC-模拟

31、电压采集-肖迎春24ADC conversion modeslFour conversion mode are available:CHxStartStopCHxStartStop.CHnCHxStartCHxStart.CHn嵌入式系统应用-ADC-模拟电压采集-肖迎春25ADC discontinuous conversion modelSplit channels conversion sequence into sub-sequenceslAvailable for both regular and injected groups:lUp to 8 conversion for reg

32、ular channell1 conversion for injected channelExample: - Conversion of channels: 0, 1, 2, 4, 5, 8, 9, 11, 12, 13, 14 and 15 - Discontinuous mode Number of channel is 3Channel0Channel1Channel2Channel4Channel5Channel8Channel9Channel11Channel12Channel13Channel14Channel151st trigger2nd trigger3rd trigge

33、r4th triggerEnd of ConversionChannel0Channel1Channel25th trigger Do not use discontinuous mode for both regular and injected together. It can be used only for one group channel嵌入式系统应用-ADC-模拟电压采集-肖迎春26ADC Data alignmentlOne bit data align selection: right or leftlFor injected channel conversion negat

34、ive value after subtraction of the offset the sign is extended in right alignmentSEXT SEXT SEXT SEXT D11D10D9D8D7D6D5D4D3D2D1D00000D11D10D9D8D7D6D5D4D3D2D1D0SEXT000D11D10D9D8D7D6D5D4D3D2D1D00000D11D10D9D8D7D6D5D4D3D2D1D0嵌入式系统应用-ADC-模拟电压采集-肖迎春27ADC Analog Watchdogsl12-bit programmable analog watchdog

35、 low and high thresholdslEnabled on one, some or all converted channels: one regular or/and injected channel, all injected or/and regular channels.lInterrupt generation on low or high thresholds detectionStatus RegisterAnalog Watchdog Temp SensorVREFINTADC_IN0ADC_IN1ADC_IN15.AWD嵌入式系统应用-ADC-模拟电压采集-肖迎

36、春28DMAlDMA available only on ADC1lDMA request generated on each ADC1 end of regular channel conversion (Not in injected channels)Example: - Conversion of regular channels: 0, 1, 2, 3, 4, 5, 6, 7 and 8 - Converted ata stored in ConvertedValue_Tab9 - DMA transfer enabled (destination address auto incr

37、emented) Channel0Channel1Channel2Channel3Channel4Channel5Channel6Channel7Channel8DMA RequestChannel0 conversion resultChannel1 conversion resultChannel2 conversion resultChannel3 conversion resultChannel4 conversion resultChannel5 conversion resultChannel6 conversion resultChannel7 conversion result

38、Channel8 conversion resultADC1 DR register.DMA RequestDMA RequestDMA RequestDMA RequestDMA RequestDMA RequestDMA RequestDMA RequestConvertedValue_Tab9Note: EOC flag cleared at end of regular channels conversion due to DMA access to ADC1 DR register嵌入式系统应用-ADC-模拟电压采集-肖迎春29ADC dual modes (1/9)lAvailab

39、le in devices with two ADCs: ADC1 master and ADC2 slavelADC1 and ADC2 triggers are synchronized internally for regular and injected channels conversionl8 ADC dual modesGPIOPortsTemp SensorVREFINTUp to 4 injected channelsUp to 16 regular channelsADC_IN0ANALOG MUXADC_IN1ADC_IN15ADC1AnalogADC2AnalogDig

40、ital MasterDigital SlaveExternal event synchronizationExternal event (Regular group)External event (Injected group)Data registerEOC/JEOC嵌入式系统应用-ADC-模拟电压采集-肖迎春30ADC dual modes (2/9)Injected simultaneous modeCH0CH1CH2CH3CH15CH13CH1CH2lConverts an injected channel group lThe external trigger source, wh

41、ich start the conversion, comes from ADC1 (simultaneous trigger provided to ADC2)lAn end of injected conversion is generated at the end of all channels conversionlResults stored on injected data registers of each ADC. Do not convert the same channel on the two ADCsTrigger for injected channelsEnd of

42、 Injected Conversion on ADC1 and ADC2嵌入式系统应用-ADC-模拟电压采集-肖迎春31ADC dual modes (3/9)Regular simultaneous modeCH0CH1CH2CH3CH15CH14CH13CH12lConverts a regular channel group lThe external trigger source, which start the conversion, comes from ADC1 (simultaneous trigger provided to ADC2)lAn end of conversi

43、on is generated at the end of all channels conversionlResults stored on ADC1 regular data register (32bits) Do not convert the same channel on the two ADCsTrigger for regular channelsEnd of Conversion on ADC1 and ADC2CH15CH0嵌入式系统应用-ADC-模拟电压采集-肖迎春32ADC dual modes (4/9)Fast Interleaved modeCH0CH0lConv

44、erts a regular channel group (usually one channel)lThe external trigger source, which start the conversion, comes from ADC1:lADC2 starts immediately on ADC1 triggerlADC1 starts after a delay of 7 ADC clock cycleslAn end of conversion is generated at the end of all channels conversionlResults stored

45、on ADC1 regular data register (32bits)Trigger for regular channelsEnd of Conversion on ADC17 ADCCLK cyclesCH0CH0CH0CH0End of Conversion on ADC2 - The maximum sampling time allowed is less than 7 ADC clock cycles嵌入式系统应用-ADC-模拟电压采集-肖迎春33ADC dual modes (5/9)Slow Interleaved modeCH0CH0lConverts a regula

46、r channel group (only one channel)lThe external trigger source, which start the conversion, comes from ADC1:lADC2 starts immediately on ADC1 triggerlADC1 starts after a delay of 14 ADC clock cycleslAn end of conversion is generated at the end of all channels conversionlResults stored on ADC1 regular

47、 data register (32bits)lA new ADC2 start is automatically generated after 28 ADC clock cycles - The maximum sampling time allowed is less than 14 ADC clock cycles - Continuous conversion mode is not supportedTrigger for regular channelEnd of Conversion on ADC114 ADCCLK cyclesCH0CH028 ADCCLK cyclesEn

48、d of Conversion on ADC1嵌入式系统应用-ADC-模拟电压采集-肖迎春34ADC dual modes (6/9)Alternate Trigger modeCH0lConverts an injected channel group lThe external trigger source, which start the conversion, comes from ADC1 (in case of injected discontinuous mode enabled):lOn 1st trigger, the first injected group channel

49、 in ADC1 is convertedlOn 2nd trigger, the first injected group channel in ADC2 is convertedlOn 3rd trigger, the second injected group channel in ADC1 is convertedllAn end of injected conversion is generated at the end of all channels conversionlResults stored on injected data registers of each ADC.2

50、nd TriggerJEOC on ADC2CH11CH1CH12CH13CH2CH31st Trigger4th Trigger6th Trigger8th Trigger3rd Trigger5th Trigger7th TriggerCH10JEOC on ADC1嵌入式系统应用-ADC-模拟电压采集-肖迎春35ADC dual modes (7/9)Combined Regular/Injected simultaneous modeCH0CH1CH1CH2CH3CH2CH2CH1lConverts an injected and a regular channels groups l

51、The external triggers sources, which start the conversions, comes from ADC1 (simultaneous trigger provided to ADC2): injected simultaneous mode can interrupt the other onelAn end of injected conversion is generated at the end of all injected channels conversion and an end of conversion is generated

52、at the end of all regular channelslResults of injected channels stored on injected data registers of each ADC, and regular channels on ADC1 data register (32bits) Do not convert the same channel on the two ADCsTrigger for regular channelsEnd of Conversion on ADC1 and ADC2CH10CH11CH15CH14Trigger for

53、injected channelsEnd of Injected Conversion on ADC1 and ADC2regular simultaneousmode interrupted byinjected simultaneous oneCH3CH0嵌入式系统应用-ADC-模拟电压采集-肖迎春36ADC dual modes (8/9)Combined Regular simultaneous + Alternate Trigger modeCH0CH1CH1CH3CH3CH2CH2CH0lConverts an injected and regular channels group

54、s lThe external triggers sources, which start the conversions, comes from ADC1 (simultaneous trigger provided to ADC2): alternate trigger mode can interrupt the other onelAn end of injected conversion is generated at the end of all injected channels conversion and an end of conversion is generated a

55、t the end of all regular channelslResults of injected channels stored on injected data registers of each ADC, and regular channels on ADC1 data register (32bits) Do not convert the same channel on the two ADCs for regular simultaneous modeTrigger for regular channelsEnd of Conversion on ADc1 and ADC

56、2End of Injected Conversion on ADC2Regular simultaneous mode interrupted by theAlternate trigger modeCH101st injected TriggerCH112nd injected TriggerCH3CH0End of Injected Conversionon ADC1嵌入式系统应用-ADC-模拟电压采集-肖迎春37ADC dual modes (9/9)Combined Injected simultaneous + Interleaved modeCH0CH0CH0CH0CH0CH0l

57、Converts an injected and regular channels groups lThe external triggers sources, which start the conversions, comes from ADC1 (simultaneous trigger provided to ADC2): Injected simultaneous mode can interrupt the other onelAn end of injected conversion is generated at the end of all injected channels

58、 conversion and an end of conversion is generated at the end of all regular channelslResults of injected channels stored on injected data registers of each ADC, and regular channels on ADC1 data register (32bits)Trigger for regular channelEnd of Conversion on each ADC at the end of CH0 conversionEnd of Injected Conversion on ADc1 and ADC2Interleaved mode interrupted bythe Injected simultaneous oneCH10CH11Trigger for injected channelCH11CH10CH0CH0 Do not convert the same channel on the two ADCs for injected simultaneous mode嵌入式系统应用-ADC-模拟电压采集-肖迎春38Thank!

展开阅读全文
温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!