\n

ADC

Peripheral Memory Blocks

address_offset : 0x0 Bytes (0x0)
size : 0x1000 byte (0x0)
mem_usage : registers
protection : not protected

Registers

DATA_CONV

OFFSET

CTRL

SR_REG

THRESHOLD_HI

THRESHOLD_LO

CONF

IRQSTAT

IRQMASK


DATA_CONV

Result of the conversion in two complement format:


address_offset : 0x14 Bytes (0x0)
size : 32 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

DATA_CONV DATA_CONV read-only 0 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 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

OFFSET

Offset for correction of converted data
address_offset : 0x18 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

OFFSET OFFSET read-write 0 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 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

CTRL

ADC control register
address_offset : 0x2 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CTRL CTRL read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ON CALEN SWSTART RESET STOP ENAB_COMP RSTCALEN AUTO_OFFSET MIC_ON DMA_EN

ON : Starts ADC analog subsystem. This bit must be set before starting a conversion.


bits : 0 - 0 (1 bit)

Enumeration:

0 : OFF

ADC analog part disable

1 : ON

ADC analog part enable

End of enumeration elements list.

CALEN : Enables the calibration phase when set to 1. This bit is cleared and the calibration is disabled by setting the RSTADCCALEN bit.
bits : 1 - 1 (1 bit)

Enumeration:

0 : CAL_OFF

ADC automatic calibration disable

1 : CAL_ON

ADC automatic calibration enable

End of enumeration elements list.

SWSTART : Starts the ADC conversion phase when set.
bits : 2 - 2 (1 bit)

Enumeration:

1 : START

Starts the ADC conversion phase when set.

End of enumeration elements list.

RESET : Reset all the ADC APB registers when set.
bits : 3 - 3 (1 bit)

Enumeration:

1 : RESET

Reset all the registers content

End of enumeration elements list.

STOP : Permits to stop the continuous conversion.


bits : 4 - 4 (1 bit)

Enumeration:

1 : STOP

Stop the continuous mode conversion

End of enumeration elements list.

ENAB_COMP : Enables the window comparator when set to 1. WDOG flag is ADC_SR register is set if the converted value is between ADCTHRESHOLD_HI and ADCTHRESHOLD_LO value.
bits : 5 - 5 (1 bit)

RSTCALEN : Disable the calibration phase when set to 1. This bit has to be set to disable the calibration each time calibration is enabled.
bits : 6 - 6 (1 bit)

Enumeration:

1 : RESET

Reset the ADCCALEN bit. Disable the automatic calibration when it is enabled

End of enumeration elements list.

AUTO_OFFSET : Enables the update of ADC_OFFSET register.


bits : 7 - 7 (1 bit)

Enumeration:

0 : CAL_OFF

ADC automatic calibration disable

1 : CAL_ON

ADC automatic calibration enable

End of enumeration elements list.

MIC_ON : Enables the filter chain for voice when set to 1.


bits : 8 - 8 (1 bit)

Enumeration:

0 : MIC_OFF

Filter chain disable

1 : MIC_ON

Filter chain enable

End of enumeration elements list.

DMA_EN : Enables the DMA.


bits : 9 - 9 (1 bit)

Enumeration:

0 : DMA_OFF

ADC DMA disable

1 : DMA_ON

ADC DMA enable

End of enumeration elements list.


SR_REG

ADC status register
address_offset : 0x20 Bytes (0x0)
size : 8 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SR_REG SR_REG read-write 0 1 2 3 4 5 6 7 Resets to 0 0 0 0 0 0 0 0 ENDCAL BUSY EOC WDOG

ENDCAL : 1: when the calibration is completed. The result of the calibration is written in the ADC_OFFSET register.
bits : 0 - 0 (1 bit)

BUSY : 1: during conversion.
bits : 1 - 1 (1 bit)

EOC : 1: when the conversion is completed.
bits : 2 - 2 (1 bit)

WDOG : If ENAB_COMP=1, this bit indicates the result of the conversion is between high and low threshold:


bits : 3 - 3 (1 bit)


THRESHOLD_HI

High threshold for window comparator
address_offset : 0x24 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

THRESHOLD_HI THRESHOLD_HI read-write 0 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 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

THRESHOLD_LO

Low threshold for window comparator
address_offset : 0x28 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

THRESHOLD_LO THRESHOLD_LO read-write 0 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 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

CONF

ADC configuration register
address_offset : 0x4 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CONF CONF read-write 0 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 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 EN_DFMODE CHSEL REFSEL DECIM_RATE PGASEL CONT ROUND16 SKIP DIG_FILT_CLK DIS_WKP_WAIT MIC_SEL

EN_DFMODE : Control the current in differential mode:


bits : 0 - 0 (1 bit)

Enumeration:

0 : DFMODE_OFF

Differential mode with DC common mode current not nulled

1 : DFMODE_ON

Differential mode with DC common mode current nulled

End of enumeration elements list.

CHSEL : Select the input channel:


bits : 1 - 3 (3 bit)

Enumeration:

0 : ALL_SWITCH_OPEN

All switch open

1 : SINGLE_VINP

Single ended InP=ANATEST2 pin, InN=VREF (internal)

2 : SINGLE_VINN

Single ended InN=ANATEST3 pin, InP=VREF (internal)

3 : DIFF_INP_INN

Differential InP=ANATEST2 pin, InN=ANATEST3 pin

4 : TEMP_SENS

InP=VTEMPSENS (internal), InN=0.6V (internal)

5 : BATT_SENS

InP=VBATSENS (internal), InN=0.6V (internal)

6 : SHORT

InP=InN=0.6V (internal)

End of enumeration elements list.

REFSEL : Set the VREF for single ended conversion:


bits : 4 - 5 (2 bit)

Enumeration:

0 : RESEL_0V0

Set the VREF at 0.0 V

1 : RESEL_0V4

Set the VREF at 0.4 V

2 : RESEL_0V6

Set the VREF at 0.6 V

3 : RESEL_1V2

Set the VREF at 1.2 V

End of enumeration elements list.

DECIM_RATE : Set the ADC resolution:


bits : 6 - 7 (2 bit)

Enumeration:

0 : DECIM_200

Set the decimation factor to 200

1 : DECIM_100

Set the decimation factor to 100

2 : DECIM_64

Set the decimation factor to 64

3 : DECIM_32

Set the decimation factor to 32

End of enumeration elements list.

PGASEL : Set the input attenuator value:


bits : 8 - 9 (2 bit)

Enumeration:

0 : IN_ATT_0dB0

Input attenuator at 0 dB

1 : IN_ATT_6dB02

Input attenuator at 6.02 dB

2 : IN_ATT_9dB54

Input attenuator at 9.54 dB

End of enumeration elements list.

CONT : Enable the continuous conversion mode:


bits : 11 - 11 (1 bit)

Enumeration:

0 : SINGLE

Single conversion mode

1 : CONT

Continuous conversion mode

End of enumeration elements list.

ROUND16 : Result mapped on 32 or 16 bits:


bits : 17 - 17 (1 bit)

Enumeration:

0 : MAPPED_32

Output result mapped to 32 bits

1 : MAPPED_16

Output result mapped to 16 bits

End of enumeration elements list.

SKIP : It permits to bypass the filter comb to speed up the conversion for signal at low frequency:


bits : 18 - 18 (1 bit)

Enumeration:

0 : FILTER_OFF

Filter for comb not bypassed

1 : FILTER_ON

Filter for comb bypassed

End of enumeration elements list.

DIG_FILT_CLK : Frequency clock selection value on GPIO0 when MIC_SEL=1:


bits : 20 - 20 (1 bit)

Enumeration:

0 : CLK_0MHz8

Frequency clock to 0.8 MHz

1 : CLK_1MHz6

Frequency clock to 1.6 MHz

End of enumeration elements list.

DIS_WKP_WAIT : Disable the wake-up timer before to start the conversion from input:


bits : 21 - 21 (1 bit)

Enumeration:

0 : ENABLE

Do not disable the wake up time before conversion

1 : DISABLE

Disable the wake up time before conversion

End of enumeration elements list.

MIC_SEL : Provides the clock on GPIO:


bits : 22 - 22 (1 bit)

Enumeration:

0 : DISABLE

Do not provided any external clock source

1 : ENABLE

Provide clock source from GPIO

End of enumeration elements list.


IRQSTAT

IRQ masked status register
address_offset : 0x8 Bytes (0x0)
size : 8 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

IRQSTAT IRQSTAT read-only 0 1 2 3 4 5 6 7 Resets to 0 0 0 0 0 0 0 0 ENDCAL BUSY EOC WDOG

ENDCAL : 1: when the calibration is completed. Clear on register read.
bits : 0 - 0 (1 bit)

BUSY : 1: during conversion. Clear on register read if BUSY condition no more active.
bits : 1 - 1 (1 bit)

EOC : 1: when the conversion is completed. Clear on register read.
bits : 2 - 2 (1 bit)

WDOG : 1: when the data is within the thresholds. Clear on register read.
bits : 3 - 3 (1 bit)


IRQMASK

It sets the mask for ADC interrupt
address_offset : 0xC Bytes (0x0)
size : 8 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

IRQMASK IRQMASK read-write 0 1 2 3 4 5 6 7 Resets to 0 0 0 0 0 0 0 0 ENDCAL BUSY EOC WDOG

ENDCAL : Interrupt mask for the end of calibration event:


bits : 0 - 0 (1 bit)

BUSY : Interrupt mask for the ADC busy event:


bits : 1 - 1 (1 bit)

EOC : Interrupt mask for the end of conversion event:


bits : 2 - 2 (1 bit)

WDOG : Interrupt mask for the within the threhsold event:


bits : 3 - 3 (1 bit)



Is something missing? Is something wrong? can you help correct it ? Please contact us at info@chipselect.org !

This website is sponsored by EmbeetleEmbeetle, an IDE designed from scratch for embedded software developers.