数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

EM357-RTR 数据表(PDF) 181 Page - List of Unclassifed Manufacturers

部件名 EM357-RTR
功能描述  High-Performance, Integrated ZigBee/802.15.4 System-on-Chip
PDF  240 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  ETC2 [List of Unclassifed Manufacturers]
网页  
标志 ETC2 - List of Unclassifed Manufacturers

EM357-RTR 数据表(HTML) 181 Page - List of Unclassifed Manufacturers

Back Button EM357-RTR Datasheet HTML 177Page - List of Unclassifed Manufacturers EM357-RTR Datasheet HTML 178Page - List of Unclassifed Manufacturers EM357-RTR Datasheet HTML 179Page - List of Unclassifed Manufacturers EM357-RTR Datasheet HTML 180Page - List of Unclassifed Manufacturers EM357-RTR Datasheet HTML 181Page - List of Unclassifed Manufacturers EM357-RTR Datasheet HTML 182Page - List of Unclassifed Manufacturers EM357-RTR Datasheet HTML 183Page - List of Unclassifed Manufacturers EM357-RTR Datasheet HTML 184Page - List of Unclassifed Manufacturers EM357-RTR Datasheet HTML 185Page - List of Unclassifed Manufacturers Next Button
Zoom Inzoom in Zoom Outzoom out
 181 / 240 page
background image
EM351 / EM357
Five 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).
INT_ADCDATA – there is data ready in the ADC_DATA register.
Bits in INT_ADCFLAG register may be cleared by writing a 1 to their position. Writing 0 to any bit in the
INT_ADCFLAG register is ineffectual.
The INT_ADCCFG register controls whether or not INT_ADCFLAG register bits actually propagate the ADC
interrupt to the NVIC. Only the events whose bits are 1 in the INT_ADCCFG register can do so.
For non-interrupt (polled) ADC operation set the INT_ADCCFG register to zero, and read the bit flags in the
INT_ADCFLAG register 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 sampled data in the DMA buffer switched 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.
10.3
Operation
Setting the ADC_EN bit in the ADC_CFG register enables the ADC. Once the ADC is enabled, it performs
conversions continuously until it is disabled. If the ADC had previously been disabled, a 21 µs analog startup
delay is automatically imposed before the ADC starts conversions. The delay timing is performed in hardware
and is simply added to the time until the first conversion result is output.
When the ADC is first enabled, and or if any change is made to ADC_CFG after it is enabled, the time until a
result is output is double the normal sample time. This is because the ADC’s internal design requires it to
discard the first conversion after startup or a configuration change. This is done automatically and is hidden
from software. Switching the system clock between OSCHF and OSC24M also causes the ADC to go through this
startup cycle. If the ADC was newly enabled, the analog delay time is added to the doubled sample time.
If the DMA is running when the ADC_CFG register is modified, the DMA does not stop, so the DMA buffer may
contain conversion results from both the old and new configurations.
The following procedure illustrates a simple polled method of using the ADC without DMA. This assumes that
any GPIOs and the voltage reference have already been configured.
1. Disable all ADC interrupts: Write 0 to the INT_ADCCFG register.
2. Write the desired offset and gain correction values to the ADC_OFFSET and ADC_GAIN registers.
3. Write the desired conversion configuration, with the ADC_EN bit set, to ADC_CFG register.
4. Clear the ADC data flag: Write the INT_ADCDATA bit to INT_ADCFLAG register.
5. Wait until the INT_ADCDATA bit is set in INT_ADCFLAG register, then read the result, as a 16-bit signed
variable, from the ADC_DATA register.
The following procedure illustrates a simple polled method of using the ADC with DMA. After completing the
procedure, the latest conversion results are available in the location written to by the DMA. This assumes that
any GPIOs and the voltage reference have already been configured.
10-6
120-035X-000D
Preliminary



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


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
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