参数资料
型号: STM32W108HBU7
厂商: STMICROELECTRONICS
元件分类: 微控制器/微处理器
英文描述: SPECIALTY MICROPROCESSOR CIRCUIT, QCC40
封装: 6 X 6 MM, 0.50 MM PITCH, ROHS COMPLIANT, VFQFPN-40
文件页数: 59/198页
文件大小: 2871K
代理商: STM32W108HBU7
第1页第2页第3页第4页第5页第6页第7页第8页第9页第10页第11页第12页第13页第14页第15页第16页第17页第18页第19页第20页第21页第22页第23页第24页第25页第26页第27页第28页第29页第30页第31页第32页第33页第34页第35页第36页第37页第38页第39页第40页第41页第42页第43页第44页第45页第46页第47页第48页第49页第50页第51页第52页第53页第54页第55页第56页第57页第58页当前第59页第60页第61页第62页第63页第64页第65页第66页第67页第68页第69页第70页第71页第72页第73页第74页第75页第76页第77页第78页第79页第80页第81页第82页第83页第84页第85页第86页第87页第88页第89页第90页第91页第92页第93页第94页第95页第96页第97页第98页第99页第100页第101页第102页第103页第104页第105页第106页第107页第108页第109页第110页第111页第112页第113页第114页第115页第116页第117页第118页第119页第120页第121页第122页第123页第124页第125页第126页第127页第128页第129页第130页第131页第132页第133页第134页第135页第136页第137页第138页第139页第140页第141页第142页第143页第144页第145页第146页第147页第148页第149页第150页第151页第152页第153页第154页第155页第156页第157页第158页第159页第160页第161页第162页第163页第164页第165页第166页第167页第168页第169页第170页第171页第172页第173页第174页第175页第176页第177页第178页第179页第180页第181页第182页第183页第184页第185页第186页第187页第188页第189页第190页第191页第192页第193页第194页第195页第196页第197页第198页
STM32W108CB, STM32W108HB
Analog-to-digital converter
Doc ID 16252 Rev 3
151/198
11.1.4
Offset/gain correction
When a conversion is complete, the 16-bit converted data is processed by offset/gain
correction logic:
The basic ADC conversion result is added to the 16-bit signed (two’s complement)
value of the ADC offset register (ADC_OFFSET).
The offset-corrected data is multiplied by the 16-bit ADC gain register, ADC_GAIN, to
produce a 16-bit signed result. If the product is greater than 0x7FFF (32767), or less
than 0x8000 (-32768), it is limited to that value and the INT_ADCSAT bit is set in the
INT_ADCFLAG register.
ADC_GAIN is an unsigned scaled 16-bit value: ADC_GAIN[15] is the integer part of the gain
factor and ADC_GAIN[14:0] is the fractional part. As a result, ADC_GAIN values can
represent gain factors from 0 through (2 – 2-15).
Reset initializes the offset to zero (ADC_OFFSET = 0) and gain factor to one (ADC_GAIN =
0x8000).
11.1.5
DMA
The ADC DMA channel writes converted data, which incorporates the offset/gain correction,
into a DMA buffer in RAM.
The ADC DMA buffer is defined by two registers:
ADC_DMABEG is the start address of the buffer and must be even.
ADC_DMASIZE specifies the size of the buffer in 16-bit samples, or half its length in
bytes.
To prepare the DMA channel for operation, reset it by writing the ADC_DMARST bit in the
ADC_DMACFG register, then start the DMA in either linear or auto wrap mode by setting
the ADC_DMALOAD bit in the ADC_DMACFG register. The ADC_DMAAUTOWRAP bit in
the ADC_DMACFG register selects the DMA mode: 0 for linear mode, 1 for auto wrap mode.
In linear mode the DMA writes to the buffer until the number of samples given by
ADC_DMASIZE has been output. Then the DMA stops and sets the
INT_ADCULDFULL bit in the INT_ADCFLAG register. If another ADC conversion
completes before the DMA is reset or the ADC is disabled, the INT_ADCOVF bit in the
INT_ADCFLAG register is set.
In auto wrap mode the DMA writes to the buffer until it reaches the end, then resets its
pointer to the start of the buffer and continues writing samples. The DMA transfers
continue until the ADC is disabled or the DMA is reset.
When the DMA fills the lower and upper halves of the buffer, it sets the INT_ADCULDHALF
and INT_ADCULDFULL bits, respectively, in the INT_ADCFLAG register. The current
location to which the DMA is writing can also be determined by reading the ADC_DMACUR
register.
11.1.6
ADC configuration register
The ADC configuration register (ADC_CFG) sets up most of the ADC operating parameters.
相关PDF资料
PDF描述
STP506C-2IW-012V SINGLE COLOR DISPLAY CLUSTER, WHITE, 152.4 mm
SUGR47M DUAL COLOR LED, RED/GREEN, 5 mm
SUR76D SINGLE COLOR LED, RED, 3 mm
SUY17D SINGLE COLOR LED, YELLOW, 3.9 mm
SY405T SINGLE COLOR LED, AMBER, 2.7 mm
相关代理商/技术参数
参数描述
STM32WC-RFCKIT 功能描述:Zigbee/802.15.4开发工具 STM32W Low-Cost RF STM32F103 MCU Kit RoHS:否 制造商:Silicon Labs 产品:Development Kits 工具用于评估:EM35x 频率:2.4 GHz 接口类型:USB 工作电源电压:
STM32W-RFCKIT 功能描述:开发板和工具包 - 无线 STM32W RF CNTRL KIT STM32F103 USB JTAG RoHS:否 制造商:Arduino 产品:Evaluation Boards 工具用于评估:AT32UC3L 核心:AVR32 频率: 接口类型:USB 工作电源电压:5 V
STM3-3 制造商:RINO MECH.(GENGARELL 功能描述:
STM330 制造商:EnOcean GmbH 功能描述:Temperature energy harvester, 868MHz
STM330U 制造商:EnOcean GmbH 功能描述:Temperature energy harvester, 315MHz 制造商:EnOcean GmbH 功能描述:Temperature energy harvester, 902MHz