SAADC — Successive approximation analog-to-digital converter

The ADC is a differential successive approximation register (SAR) analog-to-digital converter.

Listed here are the main features of SAADC:

  • 8/10/12-bit resolution, 14-bit resolution with oversampling
  • Up to eight input channels
    • One channel per single-ended input and two channels per differential input
    • Scan mode can be configured with both single-ended channels and differential channels.
  • Full scale input range (0 to VDD)
  • Sampling triggered via a task from software or a PPI channel for full flexibility on sample frequency source from low power 32.768kHz RTC or more accurate 1/16MHz Timers
  • One-shot conversion mode to sample a single channel
  • Scan mode to sample a series of channels in sequence. Sample delay between channels is tack + tconv which may vary between channels according to user configuration of tack.
  • Support for direct sample transfer to RAM using EasyDMA
  • Interrupts on single sample and full buffer events
  • Samples stored as 16-bit 2’s complement values for differential and single-ended sampling
  • Continuous sampling without the need of an external timer
  • Internal resistor string
  • Limit checking on the fly

Shared resources

The ADC can coexist with COMP and other peripherals using one of AIN0-AIN7, provided these are assigned to different pins.

It is not recommended to select the same analog input pin for both modules.

Overview

The ADC supports up to eight external analog input channels, depending on package variant. It can be operated in a one-shot mode with sampling under software control, or a continuous conversion mode with a programmable sampling rate.

The analog inputs can be configured as eight single-ended inputs, four differential inputs or a combination of these. Each channel can be configured to select AIN0 to AIN7 pins, or the VDD pin. Channels can be sampled individually in one-shot or continuous sampling modes, or, using scan mode, multiple channels can be sampled in sequence. Channels can also be oversampled to improve noise performance.

Figure 1. Simplified ADC block diagram

Internally, the ADC is always a differential analog-to-digital converter, but by default it is configured with single-ended input in the MODE field of the CH[n].CONFIG register. In single-ended mode, the negative input will be shorted to ground internally.

The assumption in single-ended mode is that the internal ground of the ADC is the same as the external ground that the measured voltage is referred to. The ADC is thus sensitive to ground bounce on the PCB in single-ended mode. If this is a concern we recommend using differential measurement.

Digital output

The output result of the ADC depends on the settings in the CH[n].CONFIG and RESOLUTION registers as follows:

RESULT = [V(P) – V(N) ] * GAIN/REFERENCE * 2(RESOLUTION - m)

where

V(P)
is the voltage at input P
V(N)
is the voltage at input N
GAIN
is the selected gain setting
REFERENCE
is the selected reference voltage

and m=0 if CONFIG.MODE=SE, or m=1 if CONFIG.MODE=Diff.

The result generated by the ADC will deviate from the expected due DC errors like offset, gain, differential non-linearity (DNL), and integral non-linearity (INL). See Electrical specification for details on these parameters. The result can also vary due to AC errors like non-linearities in the GAIN block, settling errors due to high source impedance and sampling jitter. For battery measurement the DC errors are most noticeable.

The ADC has a wide selection of gains controlled in the GAIN field of the CH[n].CONFIG register. If CH[n].CONFIG.REFSEL=0, the input range of the ADC core is nominally ±0.6 V differential and the input must be scaled accordingly.

The ADC has a temperature dependent offset. If the ADC is to operate over a large temperature range, we recommend running CALIBRATEOFFSET at regular intervals, a CALIBRATEDONE event will be fired when the calibration is complete

Analog inputs and channels

Up to eight analog input channels, CH[n](n=0..7), can be configured.

See Shared resources for shared input with comparators.

Any one of the available channels can be enabled for the ADC to operate in one-shot mode. If more than one CH[n] is configured, the ADC enters scan mode.

An analog input is selected as a positive converter input if CH[n].PSELP is set, setting CH[n].PSELP also enables the particular channel.

An analog input is selected as a negative converter input if CH[n].PSELN is set. The CH[n].PSELN register will have no effect unless differential mode is enabled, see MODE field in CH[n].CONFIG register.

If more than one of the CH[n].PSELP registers is set, the device enters scan mode. Input selections in scan mode are controlled by the CH[n].PSELP and CH[n].PSELN registers, where CH[n].PSELN is only used if the particular scan channel is specified as differential, see MODE field in CH[n].CONFIG register.

Important: Channels selected for COMP cannot be used at the same time for ADC sampling, though channels not selected for use by these blocks can be used by the ADC.
Table 1. Legal connectivity CH[n] vs. analog input
Channel inputSourceConnectivity
CH[n].PSELPAIN0…AIN7Yes(any)
CH[n].PSELPVDDYes
CH[n].PSELNAIN0…AIN7Yes(any)
CH[n].PSELNVDDYes

Operation modes

The ADC input configuration supports one-shot mode, continuous mode and scan mode.

Scan mode and oversampling cannot be combined.

One-shot mode

One-shot operation is configured by enabling only one of the available channels defined by CH[n].PSELP, CH[n].PSELN, and CH[n].CONFIG registers.

Upon a SAMPLE task, the ADC starts to sample the input voltage. The CH[n].CONFIG.TACQ controls the acquisition time.

A DONE event signals that one sample has been taken.

In this mode, the RESULTDONE event has the same meaning as DONE when no oversampling takes place. Note that both events may occur before the actual value has been transferred into RAM by EasyDMA. For more information, see EasyDMA.

Continuous mode

Continuous sampling can be achieved by using the internal timer in the ADC, or triggering the SAMPLE task from one of the general purpose timers through the PPI.

Care shall be taken to ensure that the sample rate fulfils the following criteria, depending on how many channels are active:

fSAMPLE < 1/[tACQ + tconv]

The SAMPLERATE register can be used as a local timer instead of triggering individual SAMPLE tasks. When SAMPLERATE.MODE is set to Timers, it is sufficient to trigger SAMPLE task only once in order to start the SAADC and triggering the STOP task will stop sampling. The SAMPLERATE.CC field controls the sample rate.

The SAMPLERATE timer mode cannot be combined with SCAN mode, and only one channel can be enabled in this mode.

A DONE event signals that one sample has been taken.

In this mode, the RESULTDONE event has the same meaning as DONE when no oversampling takes place. Note that both events may occur before the actual value has been transferred into RAM by EasyDMA.

Oversampling

An accumulator in the ADC can be used to average noise on the analog input. In general, oversampling improves the signal-to-noise ratio (SNR). Oversampling, however, does not improve the integral non-linearity (INL), or differential non-linearity (DNL).

Oversampling and scan should not be combined, since oversampling and scan will average over input channels.

The accumulator is controlled in the OVERSAMPLE register. The SAMPLE task must be set 2OVERSAMPLE number of times before the result is written to RAM. This can be achieved by:

  • Configuring a fixed sampling rate using the local timer or a general purpose timer and PPI to trigger a SAMPLE task
  • Triggering SAMPLE 2OVERSAMPLE times from software
  • Enabling BURST mode

CH[n].CONFIG.BURST can be enabled to avoid setting SAMPLE task 2OVERSAMPLE times. With BURST = 1 the ADC will sample the input 2OVERSAMPLE times as fast as it can (actual timing: <(tACQ+tCONV)×2OVERSAMPLE). Thus, for the user it will just appear like the conversion took a bit longer time, but other than that, it is similar to one-shot mode. Scan mode can be combined with BURST=1, if burst is enabled on all channels.

A DONE event signals that one sample has been taken.

In this mode, the RESULTDONE event signals that enough conversions have taken place for an oversampled result to get transferred into RAM. Note that both events may occur before the actual value has been transferred into RAM by EasyDMA.

Scan mode

A channel is considered enabled if CH[n].PSELP is set. If more than one channel, CH[n], is enabled, the ADC enters scan mode.

In scan mode, one SAMPLE task will trigger one conversion per enabled channel. The time it takes to sample all channels is:

Total time < Sum(CH[x].tACQ+tCONV), x=0..enabled channels

A DONE event signals that one sample has been taken.

In this mode, the RESULTDONE event signals has the same meaning as DONE when no oversampling takes place. Note that both events may occur before the actual values have been transferred into RAM by EasyDMA.

Figure 2 provides an example of results placement in Data RAM, with an even RESULT.MAXCNT. In this example, channels 1, 2 and 5 are enabled, all others are disabled.

Figure 2. Example of RAM placement (even RESULT.MAXCNT), channels 1, 2 and 5 enabled

Figure 3 provides an example of results placement in Data RAM, with an odd RESULT.MAXCNT. In this example, channels 1, 2 and 5 are enabled, all others are disabled. The last 32-bit word is populated only with one 16-bit result.

Figure 3. Example of RAM placement (odd RESULT.MAXCNT), channels 1, 2 and 5 enabled

EasyDMA

After configuring RESULT.PTR and RESULT.MAXCNT, the ADC resources are started by triggering the START task. The ADC is using EasyDMA to store results in a Result buffer in RAM.

The Result buffer is located at the address specified in the RESULT.PTR register. The RESULT.PTR register is double-buffered and it can be updated and prepared for the next START task immediately after the STARTED event is generated. The size of the Result buffer is specified in the RESULT.MAXCNT register and the ADC will generate an END event when it has filled up the Result buffer, see Figure 4. Results are stored in little-endian byte order in Data RAM. Every sample will be sign extended to 16 bit before stored in the Result buffer.

The ADC is stopped by triggering the STOP task. The STOP task will terminate an ongoing sampling. The ADC will generate a STOPPED event when it has stopped. If the ADC is already stopped when the STOP task is triggered, the STOPPED event will still be generated.

Figure 4. ADC

If the RESULT.PTR is not pointing to the Data RAM region, an EasyDMA transfer may result in a HardFault or RAM corruption. See Memory for more information about the different memory regions.

The EasyDMA will have finished accessing the RAM when the END or STOPPED event has been generated.

The RESULT.AMOUNT register can be read following an END event or a STOPPED event to see how many results have been transferred to the Result buffer in RAM since the START task was triggered.

In Scan mode, the size of the Result buffer must be large enough to have room for a minimum one result from each of the enabled channels. To secure this, RESULT.MAXCNT must be specified to RESULT.MAXCNT >= "number of channels enabled". See Scan mode for more information about Scan mode.

Resistor ladder

The ADC has an internal resistor string for positive and negative input.

See Figure 5. The resistors are controlled in the CH[n].CONFIG.RESP and CH[n].CONFIG.RESN registers.

Figure 5. Resistor ladder for positive input (negative input is equivalent, using RESN instead of RESP)

Reference

The ADC can use two different references, controlled in the REFSEL field of the CH[n].CONFIG register.

These are:

  • Internal reference
  • VDD as reference

The internal reference results in an input range of ±0.6 V on the ADC core. VDD as reference results in an input range of ±VDD/4 on the ADC core. The gain block can be used to change the effective input range of the ADC.

Input range = (+- 0.6 V or +-VDD/4)/Gain

For example, choosing VDD as reference, single ended input (grounded negative input), and a gain of 1/4 the input range will be:

Input range = (VDD/4)/(1/4) = VDD

With internal reference, single ended input (grounded negative input), and a gain of 1/6 the input range will be:

Input range = (0.6 V)/(1/6) = 3.6 V

The AIN0-AIN7 inputs cannot exceed VDD, or be lower than VSS.

Acquisition time

To sample the input voltage, the ADC connects a capacitor to the input.

For illustration, see Figure 6. The acquisition time indicates how long the capacitor is connected, see TACQ field in CH[n].CONFIG register. The required acquisition time depends on the source (Rsource) resistance. For high source resistance the acquisition time should be increased, see Table 2.

Figure 6. Simplified ADC sample network
Table 2. Acquisition time
TACQ [µs]Maximum source resistance [kOhm]
310
540
10100
15200
20400
40800

Limits event monitoring

A channel can be event monitored by configuring limit register CH[n].LIMIT.

If the conversion result is higher than the defined high limit, or lower than the defined low limit, the appropriate event will get fired.

Figure 7. Example of limits monitoring on channel 'n'

Note that when setting the limits, CH[n].LIMIT.HIGH shall always be higher than or equal to CH[n].LIMIT.LOW . In other words, an event can be fired only when the input signal has been sampled outside of the defined limits. It is not possible to fire an event when the input signal is inside a defined range by swapping high and low limits.

The comparison to limits always takes place, there is no need to enable it. If comparison is not required on a channel, the software shall simply ignore the related events. In that situation, the value of the limits registers is irrelevant, so it does not matter if CH[n].LIMIT.LOW is lower than CH[n].LIMIT.HIGH or not.

Registers

Table 3. Instances
Base addressPeripheralInstanceDescriptionConfiguration
0x40007000SAADCSAADCAnalog to digital converter  
Table 4. Register Overview
RegisterOffsetDescription
TASKS_START0x000Start the ADC and prepare the result buffer in RAM 
TASKS_SAMPLE0x004Take one ADC sample, if scan is enabled all channels are sampled 
TASKS_STOP0x008Stop the ADC and terminate any on-going conversion 
TASKS_CALIBRATEOFFSET0x00CStarts offset auto-calibration 
EVENTS_STARTED0x100The ADC has started 
EVENTS_END0x104The ADC has filled up the Result buffer 
EVENTS_DONE0x108A conversion task has been completed. Depending on the mode, multiple conversions might be needed for a result to be transferred to RAM. 
EVENTS_RESULTDONE0x10CA result is ready to get transferred to RAM. 
EVENTS_CALIBRATEDONE0x110Calibration is complete 
EVENTS_STOPPED0x114The ADC has stopped 
EVENTS_CH[0].LIMITH0x118Last results is equal or above CH[0].LIMIT.HIGH 
EVENTS_CH[0].LIMITL0x11CLast results is equal or below CH[0].LIMIT.LOW 
EVENTS_CH[1].LIMITH0x120Last results is equal or above CH[1].LIMIT.HIGH 
EVENTS_CH[1].LIMITL0x124Last results is equal or below CH[1].LIMIT.LOW 
EVENTS_CH[2].LIMITH0x128Last results is equal or above CH[2].LIMIT.HIGH 
EVENTS_CH[2].LIMITL0x12CLast results is equal or below CH[2].LIMIT.LOW 
EVENTS_CH[3].LIMITH0x130Last results is equal or above CH[3].LIMIT.HIGH 
EVENTS_CH[3].LIMITL0x134Last results is equal or below CH[3].LIMIT.LOW 
EVENTS_CH[4].LIMITH0x138Last results is equal or above CH[4].LIMIT.HIGH 
EVENTS_CH[4].LIMITL0x13CLast results is equal or below CH[4].LIMIT.LOW 
EVENTS_CH[5].LIMITH0x140Last results is equal or above CH[5].LIMIT.HIGH 
EVENTS_CH[5].LIMITL0x144Last results is equal or below CH[5].LIMIT.LOW 
EVENTS_CH[6].LIMITH0x148Last results is equal or above CH[6].LIMIT.HIGH 
EVENTS_CH[6].LIMITL0x14CLast results is equal or below CH[6].LIMIT.LOW 
EVENTS_CH[7].LIMITH0x150Last results is equal or above CH[7].LIMIT.HIGH 
EVENTS_CH[7].LIMITL0x154Last results is equal or below CH[7].LIMIT.LOW 
INTEN0x300Enable or disable interrupt 
INTENSET0x304Enable interrupt 
INTENCLR0x308Disable interrupt 
STATUS0x400Status 
ENABLE0x500Enable or disable ADC 
CH[0].PSELP0x510Input positive pin selection for CH[0] 
CH[0].PSELN0x514Input negative pin selection for CH[0] 
CH[0].CONFIG0x518Input configuration for CH[0] 
CH[0].LIMIT0x51CHigh/low limits for event monitoring a channel 
CH[1].PSELP0x520Input positive pin selection for CH[1] 
CH[1].PSELN0x524Input negative pin selection for CH[1] 
CH[1].CONFIG0x528Input configuration for CH[1] 
CH[1].LIMIT0x52CHigh/low limits for event monitoring a channel 
CH[2].PSELP0x530Input positive pin selection for CH[2] 
CH[2].PSELN0x534Input negative pin selection for CH[2] 
CH[2].CONFIG0x538Input configuration for CH[2] 
CH[2].LIMIT0x53CHigh/low limits for event monitoring a channel 
CH[3].PSELP0x540Input positive pin selection for CH[3] 
CH[3].PSELN0x544Input negative pin selection for CH[3] 
CH[3].CONFIG0x548Input configuration for CH[3] 
CH[3].LIMIT0x54CHigh/low limits for event monitoring a channel 
CH[4].PSELP0x550Input positive pin selection for CH[4] 
CH[4].PSELN0x554Input negative pin selection for CH[4] 
CH[4].CONFIG0x558Input configuration for CH[4] 
CH[4].LIMIT0x55CHigh/low limits for event monitoring a channel 
CH[5].PSELP0x560Input positive pin selection for CH[5] 
CH[5].PSELN0x564Input negative pin selection for CH[5] 
CH[5].CONFIG0x568Input configuration for CH[5] 
CH[5].LIMIT0x56CHigh/low limits for event monitoring a channel 
CH[6].PSELP0x570Input positive pin selection for CH[6] 
CH[6].PSELN0x574Input negative pin selection for CH[6] 
CH[6].CONFIG0x578Input configuration for CH[6] 
CH[6].LIMIT0x57CHigh/low limits for event monitoring a channel 
CH[7].PSELP0x580Input positive pin selection for CH[7] 
CH[7].PSELN0x584Input negative pin selection for CH[7] 
CH[7].CONFIG0x588Input configuration for CH[7] 
CH[7].LIMIT0x58CHigh/low limits for event monitoring a channel 
RESOLUTION0x5F0Resolution configuration 
OVERSAMPLE0x5F4Oversampling configuration. OVERSAMPLE should not be combined with SCAN. The RESOLUTION is applied before averaging, thus for high OVERSAMPLE a higher RESOLUTION should be used. 
SAMPLERATE0x5F8Controls normal or continuous sample rate 
RESULT.PTR0x62CData pointer 
RESULT.MAXCNT0x630Maximum number of buffer words to transfer 
RESULT.AMOUNT0x634Number of buffer words transferred since last START 

INTEN

Address offset: 0x300

Enable or disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
Id          VUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARWSTARTED  

Enable or disable interrupt for STARTED event

See EVENTS_STARTED

   Disabled0Disable
   Enabled1Enable
BRWEND  

Enable or disable interrupt for END event

See EVENTS_END

   Disabled0Disable
   Enabled1Enable
CRWDONE  

Enable or disable interrupt for DONE event

See EVENTS_DONE

   Disabled0Disable
   Enabled1Enable
DRWRESULTDONE  

Enable or disable interrupt for RESULTDONE event

See EVENTS_RESULTDONE

   Disabled0Disable
   Enabled1Enable
ERWCALIBRATEDONE  

Enable or disable interrupt for CALIBRATEDONE event

See EVENTS_CALIBRATEDONE

   Disabled0Disable
   Enabled1Enable
FRWSTOPPED  

Enable or disable interrupt for STOPPED event

See EVENTS_STOPPED

   Disabled0Disable
   Enabled1Enable
GRWCH0LIMITH  

Enable or disable interrupt for CH[0].LIMITH event

See EVENTS_CH[0].LIMITH

   Disabled0Disable
   Enabled1Enable
HRWCH0LIMITL  

Enable or disable interrupt for CH[0].LIMITL event

See EVENTS_CH[0].LIMITL

   Disabled0Disable
   Enabled1Enable
IRWCH1LIMITH  

Enable or disable interrupt for CH[1].LIMITH event

See EVENTS_CH[1].LIMITH

   Disabled0Disable
   Enabled1Enable
JRWCH1LIMITL  

Enable or disable interrupt for CH[1].LIMITL event

See EVENTS_CH[1].LIMITL

   Disabled0Disable
   Enabled1Enable
KRWCH2LIMITH  

Enable or disable interrupt for CH[2].LIMITH event

See EVENTS_CH[2].LIMITH

   Disabled0Disable
   Enabled1Enable
LRWCH2LIMITL  

Enable or disable interrupt for CH[2].LIMITL event

See EVENTS_CH[2].LIMITL

   Disabled0Disable
   Enabled1Enable
MRWCH3LIMITH  

Enable or disable interrupt for CH[3].LIMITH event

See EVENTS_CH[3].LIMITH

   Disabled0Disable
   Enabled1Enable
NRWCH3LIMITL  

Enable or disable interrupt for CH[3].LIMITL event

See EVENTS_CH[3].LIMITL

   Disabled0Disable
   Enabled1Enable
ORWCH4LIMITH  

Enable or disable interrupt for CH[4].LIMITH event

See EVENTS_CH[4].LIMITH

   Disabled0Disable
   Enabled1Enable
PRWCH4LIMITL  

Enable or disable interrupt for CH[4].LIMITL event

See EVENTS_CH[4].LIMITL

   Disabled0Disable
   Enabled1Enable
QRWCH5LIMITH  

Enable or disable interrupt for CH[5].LIMITH event

See EVENTS_CH[5].LIMITH

   Disabled0Disable
   Enabled1Enable
RRWCH5LIMITL  

Enable or disable interrupt for CH[5].LIMITL event

See EVENTS_CH[5].LIMITL

   Disabled0Disable
   Enabled1Enable
SRWCH6LIMITH  

Enable or disable interrupt for CH[6].LIMITH event

See EVENTS_CH[6].LIMITH

   Disabled0Disable
   Enabled1Enable
TRWCH6LIMITL  

Enable or disable interrupt for CH[6].LIMITL event

See EVENTS_CH[6].LIMITL

   Disabled0Disable
   Enabled1Enable
URWCH7LIMITH  

Enable or disable interrupt for CH[7].LIMITH event

See EVENTS_CH[7].LIMITH

   Disabled0Disable
   Enabled1Enable
VRWCH7LIMITL  

Enable or disable interrupt for CH[7].LIMITL event

See EVENTS_CH[7].LIMITL

   Disabled0Disable
   Enabled1Enable
 

INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
Id          VUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARWSTARTED  

Write '1' to Enable interrupt for STARTED event

See EVENTS_STARTED

   Set1Enable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
BRWEND  

Write '1' to Enable interrupt for END event

See EVENTS_END

   Set1Enable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
CRWDONE  

Write '1' to Enable interrupt for DONE event

See EVENTS_DONE

   Set1Enable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
DRWRESULTDONE  

Write '1' to Enable interrupt for RESULTDONE event

See EVENTS_RESULTDONE

   Set1Enable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
ERWCALIBRATEDONE  

Write '1' to Enable interrupt for CALIBRATEDONE event

See EVENTS_CALIBRATEDONE

   Set1Enable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
FRWSTOPPED  

Write '1' to Enable interrupt for STOPPED event

See EVENTS_STOPPED

   Set1Enable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
GRWCH0LIMITH  

Write '1' to Enable interrupt for CH[0].LIMITH event

See EVENTS_CH[0].LIMITH

   Set1Enable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
HRWCH0LIMITL  

Write '1' to Enable interrupt for CH[0].LIMITL event

See EVENTS_CH[0].LIMITL

   Set1Enable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
IRWCH1LIMITH  

Write '1' to Enable interrupt for CH[1].LIMITH event

See EVENTS_CH[1].LIMITH

   Set1Enable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
JRWCH1LIMITL  

Write '1' to Enable interrupt for CH[1].LIMITL event

See EVENTS_CH[1].LIMITL

   Set1Enable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
KRWCH2LIMITH  

Write '1' to Enable interrupt for CH[2].LIMITH event

See EVENTS_CH[2].LIMITH

   Set1Enable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
LRWCH2LIMITL  

Write '1' to Enable interrupt for CH[2].LIMITL event

See EVENTS_CH[2].LIMITL

   Set1Enable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
MRWCH3LIMITH  

Write '1' to Enable interrupt for CH[3].LIMITH event

See EVENTS_CH[3].LIMITH

   Set1Enable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
NRWCH3LIMITL  

Write '1' to Enable interrupt for CH[3].LIMITL event

See EVENTS_CH[3].LIMITL

   Set1Enable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
ORWCH4LIMITH  

Write '1' to Enable interrupt for CH[4].LIMITH event

See EVENTS_CH[4].LIMITH

   Set1Enable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
PRWCH4LIMITL  

Write '1' to Enable interrupt for CH[4].LIMITL event

See EVENTS_CH[4].LIMITL

   Set1Enable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
QRWCH5LIMITH  

Write '1' to Enable interrupt for CH[5].LIMITH event

See EVENTS_CH[5].LIMITH

   Set1Enable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
RRWCH5LIMITL  

Write '1' to Enable interrupt for CH[5].LIMITL event

See EVENTS_CH[5].LIMITL

   Set1Enable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
SRWCH6LIMITH  

Write '1' to Enable interrupt for CH[6].LIMITH event

See EVENTS_CH[6].LIMITH

   Set1Enable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
TRWCH6LIMITL  

Write '1' to Enable interrupt for CH[6].LIMITL event

See EVENTS_CH[6].LIMITL

   Set1Enable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
URWCH7LIMITH  

Write '1' to Enable interrupt for CH[7].LIMITH event

See EVENTS_CH[7].LIMITH

   Set1Enable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
VRWCH7LIMITL  

Write '1' to Enable interrupt for CH[7].LIMITL event

See EVENTS_CH[7].LIMITL

   Set1Enable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
 

INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
Id          VUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARWSTARTED  

Write '1' to Disable interrupt for STARTED event

See EVENTS_STARTED

   Clear1Disable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
BRWEND  

Write '1' to Disable interrupt for END event

See EVENTS_END

   Clear1Disable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
CRWDONE  

Write '1' to Disable interrupt for DONE event

See EVENTS_DONE

   Clear1Disable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
DRWRESULTDONE  

Write '1' to Disable interrupt for RESULTDONE event

See EVENTS_RESULTDONE

   Clear1Disable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
ERWCALIBRATEDONE  

Write '1' to Disable interrupt for CALIBRATEDONE event

See EVENTS_CALIBRATEDONE

   Clear1Disable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
FRWSTOPPED  

Write '1' to Disable interrupt for STOPPED event

See EVENTS_STOPPED

   Clear1Disable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
GRWCH0LIMITH  

Write '1' to Disable interrupt for CH[0].LIMITH event

See EVENTS_CH[0].LIMITH

   Clear1Disable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
HRWCH0LIMITL  

Write '1' to Disable interrupt for CH[0].LIMITL event

See EVENTS_CH[0].LIMITL

   Clear1Disable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
IRWCH1LIMITH  

Write '1' to Disable interrupt for CH[1].LIMITH event

See EVENTS_CH[1].LIMITH

   Clear1Disable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
JRWCH1LIMITL  

Write '1' to Disable interrupt for CH[1].LIMITL event

See EVENTS_CH[1].LIMITL

   Clear1Disable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
KRWCH2LIMITH  

Write '1' to Disable interrupt for CH[2].LIMITH event

See EVENTS_CH[2].LIMITH

   Clear1Disable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
LRWCH2LIMITL  

Write '1' to Disable interrupt for CH[2].LIMITL event

See EVENTS_CH[2].LIMITL

   Clear1Disable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
MRWCH3LIMITH  

Write '1' to Disable interrupt for CH[3].LIMITH event

See EVENTS_CH[3].LIMITH

   Clear1Disable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
NRWCH3LIMITL  

Write '1' to Disable interrupt for CH[3].LIMITL event

See EVENTS_CH[3].LIMITL

   Clear1Disable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
ORWCH4LIMITH  

Write '1' to Disable interrupt for CH[4].LIMITH event

See EVENTS_CH[4].LIMITH

   Clear1Disable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
PRWCH4LIMITL  

Write '1' to Disable interrupt for CH[4].LIMITL event

See EVENTS_CH[4].LIMITL

   Clear1Disable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
QRWCH5LIMITH  

Write '1' to Disable interrupt for CH[5].LIMITH event

See EVENTS_CH[5].LIMITH

   Clear1Disable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
RRWCH5LIMITL  

Write '1' to Disable interrupt for CH[5].LIMITL event

See EVENTS_CH[5].LIMITL

   Clear1Disable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
SRWCH6LIMITH  

Write '1' to Disable interrupt for CH[6].LIMITH event

See EVENTS_CH[6].LIMITH

   Clear1Disable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
TRWCH6LIMITL  

Write '1' to Disable interrupt for CH[6].LIMITL event

See EVENTS_CH[6].LIMITL

   Clear1Disable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
URWCH7LIMITH  

Write '1' to Disable interrupt for CH[7].LIMITH event

See EVENTS_CH[7].LIMITH

   Clear1Disable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
VRWCH7LIMITL  

Write '1' to Disable interrupt for CH[7].LIMITL event

See EVENTS_CH[7].LIMITL

   Clear1Disable
   Disabled0Read: Disabled
   Enabled1Read: Enabled
 

STATUS

Address offset: 0x400

Status

Bit number313029282726252423222120191817161514131211109876543210
Id                               A
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARSTATUS  Status
   Ready0ADC is ready. No on-going conversion.
   Busy1ADC is busy. Conversion in progress.
 

ENABLE

Address offset: 0x500

Enable or disable ADC

Bit number313029282726252423222120191817161514131211109876543210
Id                               A
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARWENABLE  Enable or disable ADC
   Disabled0Disable ADC
   Enabled1

Enable ADC

When enabled, the ADC will acquire access to the analog input pins specified in the CH[n].PSELP and CH[n].PSELN registers.

 

CH[0].PSELP

Address offset: 0x510

Input positive pin selection for CH[0]

Bit number313029282726252423222120191817161514131211109876543210
Id                           AAAAA
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARWPSELP  Analog positive input channel
   NC0Not connected
   AnalogInput01AIN0
   AnalogInput12AIN1
   AnalogInput23AIN2
   AnalogInput34AIN3
   AnalogInput45AIN4
   AnalogInput56AIN5
   AnalogInput67AIN6
   AnalogInput78AIN7
   VDD9VDD
 

CH[0].PSELN

Address offset: 0x514

Input negative pin selection for CH[0]

Bit number313029282726252423222120191817161514131211109876543210
Id                           AAAAA
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARWPSELN  Analog negative input, enables differential channel
   NC0Not connected
   AnalogInput01AIN0
   AnalogInput12AIN1
   AnalogInput23AIN2
   AnalogInput34AIN3
   AnalogInput45AIN4
   AnalogInput56AIN5
   AnalogInput67AIN6
   AnalogInput78AIN7
   VDD9VDD
 

CH[0].CONFIG

Address offset: 0x518

Input configuration for CH[0]

Bit number313029282726252423222120191817161514131211109876543210
Id       G   F EEE D CCC  BB  AA
Reset 0x0002000000000000000000100000000000000000
IdRWFieldValue IdValueDescription
ARWRESP  Positive channel resistor control
   Bypass0Bypass resistor ladder
   Pulldown1Pull-down to GND
   Pullup2Pull-up to VDD
   VDD1_23Set input at VDD/2
BRWRESN  Negative channel resistor control
   Bypass0Bypass resistor ladder
   Pulldown1Pull-down to GND
   Pullup2Pull-up to VDD
   VDD1_23Set input at VDD/2
CRWGAIN  Gain control
   Gain1_601/6
   Gain1_511/5
   Gain1_421/4
   Gain1_331/3
   Gain1_241/2
   Gain151
   Gain262
   Gain474
DRWREFSEL  Reference control
   Internal0Internal reference (0.6 V)
   VDD1_41VDD/4 as reference
ERWTACQ  Acquisition time, the time the ADC uses to sample the input voltage
   3us03 us
   5us15 us
   10us210 us
   15us315 us
   20us420 us
   40us540 us
FRWMODE  Enable differential mode
   SE0Single ended, PSELN will be ignored, negative input to ADC shorted to GND
   Diff1Differential
GRWBURST  Enable burst mode
   Disabled0Burst mode is disabled (normal operation)
   Enabled1Burst mode is enabled. SAADC takes 2^OVERSAMPLE number of samples as fast as it can, and sends the average to Data RAM.
 

CH[0].LIMIT

Address offset: 0x51C

High/low limits for event monitoring a channel

Bit number313029282726252423222120191817161514131211109876543210
IdBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAA
Reset 0x7FFF800001111111111111111000000000000000
IdRWFieldValue IdValueDescription
ARWLOW [-32768 to +32767]Low level limit
BRWHIGH [-32768 to +32767]High level limit
 

CH[1].PSELP

Address offset: 0x520

Input positive pin selection for CH[1]

Bit number313029282726252423222120191817161514131211109876543210
Id                           AAAAA
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARWPSELP  Analog positive input channel
   NC0Not connected
   AnalogInput01AIN0
   AnalogInput12AIN1
   AnalogInput23AIN2
   AnalogInput34AIN3
   AnalogInput45AIN4
   AnalogInput56AIN5
   AnalogInput67AIN6
   AnalogInput78AIN7
   VDD9VDD
 

CH[1].PSELN

Address offset: 0x524

Input negative pin selection for CH[1]

Bit number313029282726252423222120191817161514131211109876543210
Id                           AAAAA
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARWPSELN  Analog negative input, enables differential channel
   NC0Not connected
   AnalogInput01AIN0
   AnalogInput12AIN1
   AnalogInput23AIN2
   AnalogInput34AIN3
   AnalogInput45AIN4
   AnalogInput56AIN5
   AnalogInput67AIN6
   AnalogInput78AIN7
   VDD9VDD
 

CH[1].CONFIG

Address offset: 0x528

Input configuration for CH[1]

Bit number313029282726252423222120191817161514131211109876543210
Id       G   F EEE D CCC  BB  AA
Reset 0x0002000000000000000000100000000000000000
IdRWFieldValue IdValueDescription
ARWRESP  Positive channel resistor control
   Bypass0Bypass resistor ladder
   Pulldown1Pull-down to GND
   Pullup2Pull-up to VDD
   VDD1_23Set input at VDD/2
BRWRESN  Negative channel resistor control
   Bypass0Bypass resistor ladder
   Pulldown1Pull-down to GND
   Pullup2Pull-up to VDD
   VDD1_23Set input at VDD/2
CRWGAIN  Gain control
   Gain1_601/6
   Gain1_511/5
   Gain1_421/4
   Gain1_331/3
   Gain1_241/2
   Gain151
   Gain262
   Gain474
DRWREFSEL  Reference control
   Internal0Internal reference (0.6 V)
   VDD1_41VDD/4 as reference
ERWTACQ  Acquisition time, the time the ADC uses to sample the input voltage
   3us03 us
   5us15 us
   10us210 us
   15us315 us
   20us420 us
   40us540 us
FRWMODE  Enable differential mode
   SE0Single ended, PSELN will be ignored, negative input to ADC shorted to GND
   Diff1Differential
GRWBURST  Enable burst mode
   Disabled0Burst mode is disabled (normal operation)
   Enabled1Burst mode is enabled. SAADC takes 2^OVERSAMPLE number of samples as fast as it can, and sends the average to Data RAM.
 

CH[1].LIMIT

Address offset: 0x52C

High/low limits for event monitoring a channel

Bit number313029282726252423222120191817161514131211109876543210
IdBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAA
Reset 0x7FFF800001111111111111111000000000000000
IdRWFieldValue IdValueDescription
ARWLOW [-32768 to +32767]Low level limit
BRWHIGH [-32768 to +32767]High level limit
 

CH[2].PSELP

Address offset: 0x530

Input positive pin selection for CH[2]

Bit number313029282726252423222120191817161514131211109876543210
Id                           AAAAA
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARWPSELP  Analog positive input channel
   NC0Not connected
   AnalogInput01AIN0
   AnalogInput12AIN1
   AnalogInput23AIN2
   AnalogInput34AIN3
   AnalogInput45AIN4
   AnalogInput56AIN5
   AnalogInput67AIN6
   AnalogInput78AIN7
   VDD9VDD
 

CH[2].PSELN

Address offset: 0x534

Input negative pin selection for CH[2]

Bit number313029282726252423222120191817161514131211109876543210
Id                           AAAAA
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARWPSELN  Analog negative input, enables differential channel
   NC0Not connected
   AnalogInput01AIN0
   AnalogInput12AIN1
   AnalogInput23AIN2
   AnalogInput34AIN3
   AnalogInput45AIN4
   AnalogInput56AIN5
   AnalogInput67AIN6
   AnalogInput78AIN7
   VDD9VDD
 

CH[2].CONFIG

Address offset: 0x538

Input configuration for CH[2]

Bit number313029282726252423222120191817161514131211109876543210
Id       G   F EEE D CCC  BB  AA
Reset 0x0002000000000000000000100000000000000000
IdRWFieldValue IdValueDescription
ARWRESP  Positive channel resistor control
   Bypass0Bypass resistor ladder
   Pulldown1Pull-down to GND
   Pullup2Pull-up to VDD
   VDD1_23Set input at VDD/2
BRWRESN  Negative channel resistor control
   Bypass0Bypass resistor ladder
   Pulldown1Pull-down to GND
   Pullup2Pull-up to VDD
   VDD1_23Set input at VDD/2
CRWGAIN  Gain control
   Gain1_601/6
   Gain1_511/5
   Gain1_421/4
   Gain1_331/3
   Gain1_241/2
   Gain151
   Gain262
   Gain474
DRWREFSEL  Reference control
   Internal0Internal reference (0.6 V)
   VDD1_41VDD/4 as reference
ERWTACQ  Acquisition time, the time the ADC uses to sample the input voltage
   3us03 us
   5us15 us
   10us210 us
   15us315 us
   20us420 us
   40us540 us
FRWMODE  Enable differential mode
   SE0Single ended, PSELN will be ignored, negative input to ADC shorted to GND
   Diff1Differential
GRWBURST  Enable burst mode
   Disabled0Burst mode is disabled (normal operation)
   Enabled1Burst mode is enabled. SAADC takes 2^OVERSAMPLE number of samples as fast as it can, and sends the average to Data RAM.
 

CH[2].LIMIT

Address offset: 0x53C

High/low limits for event monitoring a channel

Bit number313029282726252423222120191817161514131211109876543210
IdBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAA
Reset 0x7FFF800001111111111111111000000000000000
IdRWFieldValue IdValueDescription
ARWLOW [-32768 to +32767]Low level limit
BRWHIGH [-32768 to +32767]High level limit
 

CH[3].PSELP

Address offset: 0x540

Input positive pin selection for CH[3]

Bit number313029282726252423222120191817161514131211109876543210
Id                           AAAAA
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARWPSELP  Analog positive input channel
   NC0Not connected
   AnalogInput01AIN0
   AnalogInput12AIN1
   AnalogInput23AIN2
   AnalogInput34AIN3
   AnalogInput45AIN4
   AnalogInput56AIN5
   AnalogInput67AIN6
   AnalogInput78AIN7
   VDD9VDD
 

CH[3].PSELN

Address offset: 0x544

Input negative pin selection for CH[3]

Bit number313029282726252423222120191817161514131211109876543210
Id                           AAAAA
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARWPSELN  Analog negative input, enables differential channel
   NC0Not connected
   AnalogInput01AIN0
   AnalogInput12AIN1
   AnalogInput23AIN2
   AnalogInput34AIN3
   AnalogInput45AIN4
   AnalogInput56AIN5
   AnalogInput67AIN6
   AnalogInput78AIN7
   VDD9VDD
 

CH[3].CONFIG

Address offset: 0x548

Input configuration for CH[3]

Bit number313029282726252423222120191817161514131211109876543210
Id       G   F EEE D CCC  BB  AA
Reset 0x0002000000000000000000100000000000000000
IdRWFieldValue IdValueDescription
ARWRESP  Positive channel resistor control
   Bypass0Bypass resistor ladder
   Pulldown1Pull-down to GND
   Pullup2Pull-up to VDD
   VDD1_23Set input at VDD/2
BRWRESN  Negative channel resistor control
   Bypass0Bypass resistor ladder
   Pulldown1Pull-down to GND
   Pullup2Pull-up to VDD
   VDD1_23Set input at VDD/2
CRWGAIN  Gain control
   Gain1_601/6
   Gain1_511/5
   Gain1_421/4
   Gain1_331/3
   Gain1_241/2
   Gain151
   Gain262
   Gain474
DRWREFSEL  Reference control
   Internal0Internal reference (0.6 V)
   VDD1_41VDD/4 as reference
ERWTACQ  Acquisition time, the time the ADC uses to sample the input voltage
   3us03 us
   5us15 us
   10us210 us
   15us315 us
   20us420 us
   40us540 us
FRWMODE  Enable differential mode
   SE0Single ended, PSELN will be ignored, negative input to ADC shorted to GND
   Diff1Differential
GRWBURST  Enable burst mode
   Disabled0Burst mode is disabled (normal operation)
   Enabled1Burst mode is enabled. SAADC takes 2^OVERSAMPLE number of samples as fast as it can, and sends the average to Data RAM.
 

CH[3].LIMIT

Address offset: 0x54C

High/low limits for event monitoring a channel

Bit number313029282726252423222120191817161514131211109876543210
IdBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAA
Reset 0x7FFF800001111111111111111000000000000000
IdRWFieldValue IdValueDescription
ARWLOW [-32768 to +32767]Low level limit
BRWHIGH [-32768 to +32767]High level limit
 

CH[4].PSELP

Address offset: 0x550

Input positive pin selection for CH[4]

Bit number313029282726252423222120191817161514131211109876543210
Id                           AAAAA
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARWPSELP  Analog positive input channel
   NC0Not connected
   AnalogInput01AIN0
   AnalogInput12AIN1
   AnalogInput23AIN2
   AnalogInput34AIN3
   AnalogInput45AIN4
   AnalogInput56AIN5
   AnalogInput67AIN6
   AnalogInput78AIN7
   VDD9VDD
 

CH[4].PSELN

Address offset: 0x554

Input negative pin selection for CH[4]

Bit number313029282726252423222120191817161514131211109876543210
Id                           AAAAA
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARWPSELN  Analog negative input, enables differential channel
   NC0Not connected
   AnalogInput01AIN0
   AnalogInput12AIN1
   AnalogInput23AIN2
   AnalogInput34AIN3
   AnalogInput45AIN4
   AnalogInput56AIN5
   AnalogInput67AIN6
   AnalogInput78AIN7
   VDD9VDD
 

CH[4].CONFIG

Address offset: 0x558

Input configuration for CH[4]

Bit number313029282726252423222120191817161514131211109876543210
Id       G   F EEE D CCC  BB  AA
Reset 0x0002000000000000000000100000000000000000
IdRWFieldValue IdValueDescription
ARWRESP  Positive channel resistor control
   Bypass0Bypass resistor ladder
   Pulldown1Pull-down to GND
   Pullup2Pull-up to VDD
   VDD1_23Set input at VDD/2
BRWRESN  Negative channel resistor control
   Bypass0Bypass resistor ladder
   Pulldown1Pull-down to GND
   Pullup2Pull-up to VDD
   VDD1_23Set input at VDD/2
CRWGAIN  Gain control
   Gain1_601/6
   Gain1_511/5
   Gain1_421/4
   Gain1_331/3
   Gain1_241/2
   Gain151
   Gain262
   Gain474
DRWREFSEL  Reference control
   Internal0Internal reference (0.6 V)
   VDD1_41VDD/4 as reference
ERWTACQ  Acquisition time, the time the ADC uses to sample the input voltage
   3us03 us
   5us15 us
   10us210 us
   15us315 us
   20us420 us
   40us540 us
FRWMODE  Enable differential mode
   SE0Single ended, PSELN will be ignored, negative input to ADC shorted to GND
   Diff1Differential
GRWBURST  Enable burst mode
   Disabled0Burst mode is disabled (normal operation)
   Enabled1Burst mode is enabled. SAADC takes 2^OVERSAMPLE number of samples as fast as it can, and sends the average to Data RAM.
 

CH[4].LIMIT

Address offset: 0x55C

High/low limits for event monitoring a channel

Bit number313029282726252423222120191817161514131211109876543210
IdBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAA
Reset 0x7FFF800001111111111111111000000000000000
IdRWFieldValue IdValueDescription
ARWLOW [-32768 to +32767]Low level limit
BRWHIGH [-32768 to +32767]High level limit
 

CH[5].PSELP

Address offset: 0x560

Input positive pin selection for CH[5]

Bit number313029282726252423222120191817161514131211109876543210
Id                           AAAAA
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARWPSELP  Analog positive input channel
   NC0Not connected
   AnalogInput01AIN0
   AnalogInput12AIN1
   AnalogInput23AIN2
   AnalogInput34AIN3
   AnalogInput45AIN4
   AnalogInput56AIN5
   AnalogInput67AIN6
   AnalogInput78AIN7
   VDD9VDD
 

CH[5].PSELN

Address offset: 0x564

Input negative pin selection for CH[5]

Bit number313029282726252423222120191817161514131211109876543210
Id                           AAAAA
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARWPSELN  Analog negative input, enables differential channel
   NC0Not connected
   AnalogInput01AIN0
   AnalogInput12AIN1
   AnalogInput23AIN2
   AnalogInput34AIN3
   AnalogInput45AIN4
   AnalogInput56AIN5
   AnalogInput67AIN6
   AnalogInput78AIN7
   VDD9VDD
 

CH[5].CONFIG

Address offset: 0x568

Input configuration for CH[5]

Bit number313029282726252423222120191817161514131211109876543210
Id       G   F EEE D CCC  BB  AA
Reset 0x0002000000000000000000100000000000000000
IdRWFieldValue IdValueDescription
ARWRESP  Positive channel resistor control
   Bypass0Bypass resistor ladder
   Pulldown1Pull-down to GND
   Pullup2Pull-up to VDD
   VDD1_23Set input at VDD/2
BRWRESN  Negative channel resistor control
   Bypass0Bypass resistor ladder
   Pulldown1Pull-down to GND
   Pullup2Pull-up to VDD
   VDD1_23Set input at VDD/2
CRWGAIN  Gain control
   Gain1_601/6
   Gain1_511/5
   Gain1_421/4
   Gain1_331/3
   Gain1_241/2
   Gain151
   Gain262
   Gain474
DRWREFSEL  Reference control
   Internal0Internal reference (0.6 V)
   VDD1_41VDD/4 as reference
ERWTACQ  Acquisition time, the time the ADC uses to sample the input voltage
   3us03 us
   5us15 us
   10us210 us
   15us315 us
   20us420 us
   40us540 us
FRWMODE  Enable differential mode
   SE0Single ended, PSELN will be ignored, negative input to ADC shorted to GND
   Diff1Differential
GRWBURST  Enable burst mode
   Disabled0Burst mode is disabled (normal operation)
   Enabled1Burst mode is enabled. SAADC takes 2^OVERSAMPLE number of samples as fast as it can, and sends the average to Data RAM.
 

CH[5].LIMIT

Address offset: 0x56C

High/low limits for event monitoring a channel

Bit number313029282726252423222120191817161514131211109876543210
IdBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAA
Reset 0x7FFF800001111111111111111000000000000000
IdRWFieldValue IdValueDescription
ARWLOW [-32768 to +32767]Low level limit
BRWHIGH [-32768 to +32767]High level limit
 

CH[6].PSELP

Address offset: 0x570

Input positive pin selection for CH[6]

Bit number313029282726252423222120191817161514131211109876543210
Id                           AAAAA
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARWPSELP  Analog positive input channel
   NC0Not connected
   AnalogInput01AIN0
   AnalogInput12AIN1
   AnalogInput23AIN2
   AnalogInput34AIN3
   AnalogInput45AIN4
   AnalogInput56AIN5
   AnalogInput67AIN6
   AnalogInput78AIN7
   VDD9VDD
 

CH[6].PSELN

Address offset: 0x574

Input negative pin selection for CH[6]

Bit number313029282726252423222120191817161514131211109876543210
Id                           AAAAA
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARWPSELN  Analog negative input, enables differential channel
   NC0Not connected
   AnalogInput01AIN0
   AnalogInput12AIN1
   AnalogInput23AIN2
   AnalogInput34AIN3
   AnalogInput45AIN4
   AnalogInput56AIN5
   AnalogInput67AIN6
   AnalogInput78AIN7
   VDD9VDD
 

CH[6].CONFIG

Address offset: 0x578

Input configuration for CH[6]

Bit number313029282726252423222120191817161514131211109876543210
Id       G   F EEE D CCC  BB  AA
Reset 0x0002000000000000000000100000000000000000
IdRWFieldValue IdValueDescription
ARWRESP  Positive channel resistor control
   Bypass0Bypass resistor ladder
   Pulldown1Pull-down to GND
   Pullup2Pull-up to VDD
   VDD1_23Set input at VDD/2
BRWRESN  Negative channel resistor control
   Bypass0Bypass resistor ladder
   Pulldown1Pull-down to GND
   Pullup2Pull-up to VDD
   VDD1_23Set input at VDD/2
CRWGAIN  Gain control
   Gain1_601/6
   Gain1_511/5
   Gain1_421/4
   Gain1_331/3
   Gain1_241/2
   Gain151
   Gain262
   Gain474
DRWREFSEL  Reference control
   Internal0Internal reference (0.6 V)
   VDD1_41VDD/4 as reference
ERWTACQ  Acquisition time, the time the ADC uses to sample the input voltage
   3us03 us
   5us15 us
   10us210 us
   15us315 us
   20us420 us
   40us540 us
FRWMODE  Enable differential mode
   SE0Single ended, PSELN will be ignored, negative input to ADC shorted to GND
   Diff1Differential
GRWBURST  Enable burst mode
   Disabled0Burst mode is disabled (normal operation)
   Enabled1Burst mode is enabled. SAADC takes 2^OVERSAMPLE number of samples as fast as it can, and sends the average to Data RAM.
 

CH[6].LIMIT

Address offset: 0x57C

High/low limits for event monitoring a channel

Bit number313029282726252423222120191817161514131211109876543210
IdBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAA
Reset 0x7FFF800001111111111111111000000000000000
IdRWFieldValue IdValueDescription
ARWLOW [-32768 to +32767]Low level limit
BRWHIGH [-32768 to +32767]High level limit
 

CH[7].PSELP

Address offset: 0x580

Input positive pin selection for CH[7]

Bit number313029282726252423222120191817161514131211109876543210
Id                           AAAAA
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARWPSELP  Analog positive input channel
   NC0Not connected
   AnalogInput01AIN0
   AnalogInput12AIN1
   AnalogInput23AIN2
   AnalogInput34AIN3
   AnalogInput45AIN4
   AnalogInput56AIN5
   AnalogInput67AIN6
   AnalogInput78AIN7
   VDD9VDD
 

CH[7].PSELN

Address offset: 0x584

Input negative pin selection for CH[7]

Bit number313029282726252423222120191817161514131211109876543210
Id                           AAAAA
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARWPSELN  Analog negative input, enables differential channel
   NC0Not connected
   AnalogInput01AIN0
   AnalogInput12AIN1
   AnalogInput23AIN2
   AnalogInput34AIN3
   AnalogInput45AIN4
   AnalogInput56AIN5
   AnalogInput67AIN6
   AnalogInput78AIN7
   VDD9VDD
 

CH[7].CONFIG

Address offset: 0x588

Input configuration for CH[7]

Bit number313029282726252423222120191817161514131211109876543210
Id       G   F EEE D CCC  BB  AA
Reset 0x0002000000000000000000100000000000000000
IdRWFieldValue IdValueDescription
ARWRESP  Positive channel resistor control
   Bypass0Bypass resistor ladder
   Pulldown1Pull-down to GND
   Pullup2Pull-up to VDD
   VDD1_23Set input at VDD/2
BRWRESN  Negative channel resistor control
   Bypass0Bypass resistor ladder
   Pulldown1Pull-down to GND
   Pullup2Pull-up to VDD
   VDD1_23Set input at VDD/2
CRWGAIN  Gain control
   Gain1_601/6
   Gain1_511/5
   Gain1_421/4
   Gain1_331/3
   Gain1_241/2
   Gain151
   Gain262
   Gain474
DRWREFSEL  Reference control
   Internal0Internal reference (0.6 V)
   VDD1_41VDD/4 as reference
ERWTACQ  Acquisition time, the time the ADC uses to sample the input voltage
   3us03 us
   5us15 us
   10us210 us
   15us315 us
   20us420 us
   40us540 us
FRWMODE  Enable differential mode
   SE0Single ended, PSELN will be ignored, negative input to ADC shorted to GND
   Diff1Differential
GRWBURST  Enable burst mode
   Disabled0Burst mode is disabled (normal operation)
   Enabled1Burst mode is enabled. SAADC takes 2^OVERSAMPLE number of samples as fast as it can, and sends the average to Data RAM.
 

CH[7].LIMIT

Address offset: 0x58C

High/low limits for event monitoring a channel

Bit number313029282726252423222120191817161514131211109876543210
IdBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAA
Reset 0x7FFF800001111111111111111000000000000000
IdRWFieldValue IdValueDescription
ARWLOW [-32768 to +32767]Low level limit
BRWHIGH [-32768 to +32767]High level limit
 

RESOLUTION

Address offset: 0x5F0

Resolution configuration

Bit number313029282726252423222120191817161514131211109876543210
Id                             AAA
Reset 0x0000000100000000000000000000000000000001
IdRWFieldValue IdValueDescription
ARWVAL  

Set the resolution

   8bit08 bit
   10bit110 bit
   12bit212 bit
   14bit314 bit
 

OVERSAMPLE

Address offset: 0x5F4

Oversampling configuration. OVERSAMPLE should not be combined with SCAN. The RESOLUTION is applied before averaging, thus for high OVERSAMPLE a higher RESOLUTION should be used.

Bit number313029282726252423222120191817161514131211109876543210
Id                            AAAA
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARWOVERSAMPLE  Oversample control
   Bypass0Bypass oversampling
   Over2x1Oversample 2x
   Over4x2Oversample 4x
   Over8x3Oversample 8x
   Over16x4Oversample 16x
   Over32x5Oversample 32x
   Over64x6Oversample 64x
   Over128x7Oversample 128x
   Over256x8Oversample 256x
 

SAMPLERATE

Address offset: 0x5F8

Controls normal or continuous sample rate

Bit number313029282726252423222120191817161514131211109876543210
Id                   B AAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARWCC [80..2047]Capture and compare value. Sample rate is 16 MHz/CC
BRWMODE  Select mode for sample rate control
   Task0Rate is controlled from SAMPLE task
   Timers1Rate is controlled from local timer (use CC to control the rate)
 

RESULT.PTR

Address offset: 0x62C

Data pointer

Bit number313029282726252423222120191817161514131211109876543210
IdAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARWPTR  Data pointer
 

RESULT.MAXCNT

Address offset: 0x630

Maximum number of buffer words to transfer

Bit number313029282726252423222120191817161514131211109876543210
Id                 AAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARWMAXCNT  Maximum number of buffer words to transfer
 

RESULT.AMOUNT

Address offset: 0x634

Number of buffer words transferred since last START

Bit number313029282726252423222120191817161514131211109876543210
Id                 AAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IdRWFieldValue IdValueDescription
ARAMOUNT  Number of buffer words transferred since last START. This register can be read after an END or STOPPED event.
 

Electrical specification

SAADC Electrical Specification

SymbolDescriptionMin.Typ.Max.Units
DNLDifferential non-linearity, 10-bit resolution-0.95<1LSB
INLIntegral non-linearity, 10-bit resolution1LSB
VOSDifferential offset error (calibrated), 10-bit resolution a+-2LSB
CEGGain error temperature coefficient0.02%/◦C
fSAMPLEMaximum sampling rate200kHz
tACQ,10kAcquisition time (configurable), source Resistance <= 10kOhm3µs
tACQ,40kAcquisition time (configurable), source Resistance <= 40kOhm5µs
tACQ,100kAcquisition time (configurable), source Resistance <= 100kOhm10µs
tACQ,200kAcquisition time (configurable), source Resistance <= 200kOhm15µs
tACQ,400kAcquisition time (configurable), source Resistance <= 400kOhm20µs
tACQ,800kAcquisition time (configurable), source Resistance <= 800kOhm40µs
tCONVConversion time<2µs
IADC,CONVADC current during ACQuisition and CONVersion700µA
IADC,IDLEIdle current, when not sampling, excluding clock sources and regulator base currents2<5µA
EG1/6Errorb for Gain = 1/6-33%
EG1/4Errorb for Gain = 1/4-33%
EG1/2Errorb for Gain = 1/2-34%
EG1Errorb for Gain = 1-34%
CSAMPLESample and hold capacitance at maximum gain42.5pF
RINPUTInput resistance>1MΩ
ENOBEffective number of bits, differential mode, 12-bit resolution, 1/1 gain, 3 µs acquisition time, crystal HFCLK, 200 ksps9Bit
SNDRPeak signal to noise and distortion ratio, differential mode, 12-bit resolution, 1/1 gain, 3 µs acquisition time, crystal HFCLK, 200 ksps56dB
SFDRSpurious free dynamic range, differential mode, 12-bit resolution, 1/1 gain, 3 µs acquisition time, crystal HFCLK, 200 ksps70dBc
RLADDERLadder resistance160kΩ
Figure 8. Model of SAADC input (one channel)

Note: SAADC average current calculation for a given application is based on the sample period, conversion and acquisition time ( tconv and tACQ) and conversion and idle current (IADC,CONV and IADC,IDLE). For example, sampling at 4kHz gives a sample period of 250µs. The average current consumption would then be:

Figure 9. ADC INL vs Output Code
Figure 10. ADC DNL vs Output Code
Figure 11. FFT of a 2.8 kHz sine at 200 ksps ()

Performance factors

Clock jitter, affecting sample timing accuracy, and circuit noise can affect ADC performance.

Jitter can be between START tasks or from START task to acquisition. START timer accuracy and startup times of regulators and references will contribute to variability. Sources of circuit noise may include CPU activity and the DC/DC regulator. Best ADC performance is achieved using START timing based on the TIMER module, HFXO clock source, and Constant Latency mode.

a Digital output code at zero volt differential input.
2 When tACQ is 10us or longer, and if DC/DC is active, it will be allowed to work in refresh mode if no other resource is requiring a high quality power supply from 1V3. If tACQ is smaller than 10us and DC/DC is active, refresh mode will not be allowed, and it will remain in normal mode from the START task to the STOPPED event. So depending on tACQ and other resources' needs, the appropriate base current needs to be taken into account.
b Does not include temperature drift
4 Maximum gain corresponds to highest capacitance.