Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

STM32W108HB Datasheet(PDF) 137 Page - STMicroelectronics

Part # STM32W108HB
Description  High-performance, IEEE 802.15.4 wireless system-on-chip
PDF  179 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

STM32W108HB Datasheet(HTML) 137 Page - STMicroelectronics

Back Button STM32W108HB Datasheet HTML 133Page - STMicroelectronics STM32W108HB Datasheet HTML 134Page - STMicroelectronics STM32W108HB Datasheet HTML 135Page - STMicroelectronics STM32W108HB Datasheet HTML 136Page - STMicroelectronics STM32W108HB Datasheet HTML 137Page - STMicroelectronics STM32W108HB Datasheet HTML 138Page - STMicroelectronics STM32W108HB Datasheet HTML 139Page - STMicroelectronics STM32W108HB Datasheet HTML 140Page - STMicroelectronics STM32W108HB Datasheet HTML 141Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 137 / 179 page
background image
STM32W108CB, STM32W108HB
Analog-to-digital converter
Doc ID 16252 Rev 2
137/179
9.2
Interrupts
The ADC has its own ARM® Cortex-M3 vectored interrupt with programmable priority. The
ADC interrupt is enabled by writing the INT_ADC bit to the INT_CFGSET register, and
cleared by writing the INT_ADC bit to the INT_CFGCLR register. Section 10: Interrupts on
page 143 describes the interrupt system in detail.
Four kinds of ADC events can generate an ADC interrupt, and each has a bit flag in the
INT_ADCFLAG register to identify the reason(s) for the interrupt:
●
INT_ADCOVF – an ADC conversion result was ready but the DMA was disabled (DMA
buffer overflow).
●
INT_ADCSAT– the gain correction multiplication exceeded the limits for a signed 16-bit
number (gain saturation).
●
INT_ADCULDFULL – the DMA wrote to the last location in the buffer (DMA buffer full).
●
INT_ADCULDHALF – the DMA wrote to the last location of the first half of the DMA
buffer (DMA buffer half full).
Bits in INT_ADCFLAG may be cleared by writing a 1 to their position.
The INT_ADCCFG register controls whether or not INT_ADCFLAG bits actually request the
ARM® Cortex-M3 ADC interrupt; only the events whose bits are 1 in INT_ADCCFG can do
so.
For non-interrupt (polled) ADC operation set INT_ADCCFG to zero, and read the bit flags in
INT_ADCFLAG to determine the ADC status.
Note:
When making changes to the ADC configuration it is best to disable the DMA beforehand. If
this isn’t done it can be difficult to determine at which point the sample data in the DMA
buffer switch from the old configuration to the new configuration. However, since the ADC
will be left running, if it completes a conversion after the DMA is disabled, the INT_ADCOVF
flag will be set. To prevent these unwanted DMA buffer overflow indications, clear the
INT_ADCOVF flag immediately after enabling the DMA, preferably with interrupts off.
Disabling the ADC in addition to the DMA is often undesirable because of the additional
analog startup time when it is re-enabled.
Table 20.
Offset and gain correction (ADC_HVSELn=1)
Calculation Type
Corrected Sample
Absolute Voltage
Offset corrected
Offset and gain
corrected using
VREF, normalized to
VREF
Offset and gain
corrected using
VDD_PADSA,
normalized to
VDD_PADSA
)
2
(
2
/
VREF
VREF
X
N
N
N
N
×
−
+
=
)
(
2
16
)
2
(
2
/
2
/
VREF
VREF
VREF
VREF
X
N
N
N
N
N
N
−
×
<<
×
−
+
=
16
2
)
(
VREF
N
V
×
=
)
(
2
16
)
2
(
2
/
_
2
/
VREF
PADSA
VDD
VREF
VREF
X
N
N
N
N
N
N
−
×
<<
×
+
=
−
14
2
)
_
(
PADSA
VDD
N
V
×
=



Html Pages

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  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com