STM32W108CBU6 STMICROELECTRONICS [STMicroelectronics], STM32W108CBU6 Datasheet - Page 132

no-image

STM32W108CBU6

Manufacturer Part Number
STM32W108CBU6
Description
High-performance, IEEE 802.15.4 wireless system-on-chip
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
STM32W108CBU6
Manufacturer:
ST
Quantity:
20 000
Part Number:
STM32W108CBU61
Manufacturer:
ST
0
Part Number:
STM32W108CBU61TR
Manufacturer:
ST
0
Part Number:
STM32W108CBU63
Manufacturer:
ST
0
Part Number:
STM32W108CBU63TR
Manufacturer:
ST
0
Part Number:
STM32W108CBU63TR
Manufacturer:
ST
Quantity:
20 000
Part Number:
STM32W108CBU64
Manufacturer:
ST
Quantity:
2 330
Part Number:
STM32W108CBU64
Manufacturer:
ST
0
Part Number:
STM32W108CBU64TR
Manufacturer:
IDT
Quantity:
5 803
Part Number:
STM32W108CBU64TR
Manufacturer:
ST
Quantity:
20 000
Analog-to-digital converter
9.1.4
9.1.5
9.1.6
132/179
Offset/gain correction
When a conversion is complete, the 16-bit converted data is processed by offset/gain
correction logic:
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
Reset initializes the offset to zero (ADC_OFFSET = 0) and gain factor to one (ADC_GAIN =
0x8000).
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:
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.
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.
ADC configuration register
The ADC configuration register (ADC_CFG) sets up most of the ADC operating parameters.
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_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.
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.
Doc ID 16252 Rev 2
-15
).
STM32W108CB, STM32W108HB

Related parts for STM32W108CBU6