\n

ADC

Peripheral Memory Blocks

address_offset : 0x0 Bytes (0x0)
size : 0x38 byte (0x0)
mem_usage : registers
protection :

address_offset : 0x3C Bytes (0x0)
size : 0xC byte (0x0)
mem_usage : registers
protection :

Registers

ADC_DAT0 (DAT0)

ADC_DAT4 (DAT4)

ADC_DAT5 (DAT5)

ADC_DAT6 (DAT6)

ADC_DAT7 (DAT7)

ADC_CTL (CTL)

ADC_CHSEQ (CHSEQ)

ADC_CMP0 (CMP0)

ADC_CMP1 (CMP1)

ADC_STATUS (STATUS)

ADC_PDMA (PDMA)

ADC_PGCTL (PGCTL)

ADC_DAT1 (DAT1)

ADC_VMID (VMID)

ADC_HWPARA (HWPARA)

ADC_DAT2 (DAT2)

ADC_DAT3 (DAT3)


ADC_DAT0 (DAT0)

A/D Data Register for the Channel Defined in CHSEQ0
address_offset : 0x0 Bytes (0x0)
size : -1 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

ADC_DAT0 ADC_DAT0 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 RESULT EXTS OV VALID

RESULT : A/D Conversion Result This field contains the 12-bit conversion result. Its data format is defined by ADCFM bit.
bits : 0 - 11 (12 bit)
access : read-only

EXTS : Extension Bits Of RESULT for Different Data Format If ADCFM is 0 , EXTS all are read as 0 . If ADCFM is 1 , EXTS all are read as bit RESULT[11].
bits : 12 - 15 (4 bit)
access : read-only

OV : Over Run Flag If converted data in RESULT[11:0] have not been read before new conversion result is loaded to this register, OV is set to 1. It is cleared by hardware after ADC_DAT register is read.
bits : 16 - 16 (1 bit)
access : read-only

Enumeration:

#0 : 0

Data in RESULT are recent conversion result

#1 : 1

Data in RESULT are overwritten

End of enumeration elements list.

VALID : Valid Flag This bit is set to 1 when corresponding channel analog input conversion is completed and cleared by hardware after ADC_DAT register is read.
bits : 17 - 17 (1 bit)
access : read-only

Enumeration:

#0 : 0

Data in RESULT are not valid

#1 : 1

Data in RESULT are valid

End of enumeration elements list.


ADC_DAT4 (DAT4)

A/D Data Register for the Channel Defined in CHSEQ4
address_offset : 0x10 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_DAT4 ADC_DAT4 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

ADC_DAT5 (DAT5)

A/D Data Register for the Channel Defined in CHSEQ5
address_offset : 0x14 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_DAT5 ADC_DAT5 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

ADC_DAT6 (DAT6)

A/D Data Register for the Channel Defined in CHSEQ6
address_offset : 0x18 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_DAT6 ADC_DAT6 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

ADC_DAT7 (DAT7)

A/D Data Register for the Channel Defined in CHSEQ7
address_offset : 0x1C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_DAT7 ADC_DAT7 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

ADC_CTL (CTL)

A/D Control Register
address_offset : 0x20 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_CTL ADC_CTL 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 ADCEN ADCIE OPMODE PDMAEN SWTRG ADCFM DS_RATE DS_EN HP_FSEL HP_EN

ADCEN : A/D Converter Enable Before starting A/D conversion function, this bit should be set to 1. Clear it to 0 to disable A/D converter analog circuit power consumption.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.

ADCIE : A/D Interrupt Enable A/D conversion end interrupt request is generated if ADCIE bit is set to 1.
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable A/D interrupt function

#1 : 1

Enable A/D interrupt function

End of enumeration elements list.

OPMODE : A/D Converter Operation Mode Note 1: This field will be effective only when DS_EN field in this register is set as 0 . When DS_EN is set as 1 , ADC conversion will be forced to continuous scan mode Note 2: When changing the operation mode, software should disable SWTRG bit firstly.
bits : 2 - 3 (2 bit)
access : read-write

Enumeration:

#00 : 0

Single conversion

#01 : 1

Reserved

#10 : 2

Single-cycle scan

#11 : 3

Continuous scan

End of enumeration elements list.

PDMAEN : PDMA Transfer Enable Bit When A/D conversion is completed, the converted data is loaded into ADC_DATn (n: 0 ~ 7) register, user can enable this bit to generate a PDMA data transfer request.
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

PDMA data transfer Disabled

#1 : 1

PDMA data transfer Enabled

End of enumeration elements list.

SWTRG : A/D Conversion Start Note: SWTRG bit can be reset to 0 by software, or can be cleared to 0 by hardware automatically at the end of single mode and single-cycle scan mode on specified channel. In continuous scan mode, A/D conversion is continuously performed sequentially until software writes 0 to this bit or chip resets.
bits : 11 - 11 (1 bit)
access : read-write

Enumeration:

#0 : 0

Conversion is stopped and A/D converter enters idle state

#1 : 1

Start conversion

End of enumeration elements list.

ADCFM : Data Format Of ADC Conversion Result
bits : 12 - 12 (1 bit)
access : read-write

Enumeration:

#0 : 0

Unsigned

#1 : 1

2'Complemet

End of enumeration elements list.

DS_RATE : Down Sample Rate
bits : 16 - 17 (2 bit)
access : read-write

Enumeration:

#00 : 0

Down sample X2

#01 : 1

Down sample X4

#10 : 2

Down sample X8

#11 : 3

Down sample X16

End of enumeration elements list.

DS_EN : Down Sample Function Enable
bits : 19 - 19 (1 bit)
access : read-write

Enumeration:

#0 : 0

Down sample function is disabled

#1 : 1

Down sample function is enabled. When this field is set, ADC will be forced to continuous scan mode, no matter what is specified in field OPMODE (ADC_CTL[3:2])

End of enumeration elements list.

HP_FSEL : High-pass Filter Frequency Selection:
bits : 20 - 22 (3 bit)
access : read-write

Enumeration:

#000 : 0

Do not remove DC part

#001 : 1

DC part is suppressed by -40dB, -3dB at 0.005 x Sampling Rate

#010 : 2

DC part is suppressed by -40dB, -3dB at 0.010 x Sampling Rate

#011 : 3

DC part is suppressed by -40dB, -3dB at 0.014 x Sampling Rate

#100 : 4

DC part is suppressed by -40dB, -3dB at 0.019 x Sampling Rate

#101 : 5

DC part is suppressed by -40dB, -3dB at 0.023 x Sampling Rate

#110 : 6

DC part is suppressed by -40dB, -3dB at 0.027 x Sampling Rate

#111 : 7

DC part is suppressed by -40dB, -3dB at 0.032 x Sampling Rate

End of enumeration elements list.

HP_EN : High-pass Filter Enable
bits : 23 - 23 (1 bit)
access : read-write

Enumeration:

#0 : 0

High-pass filter is disabled

#1 : 1

High-pass filter is enabled (must in continuous scan mode)

End of enumeration elements list.


ADC_CHSEQ (CHSEQ)

A/D Channel Sequence Register
address_offset : 0x24 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_CHSEQ ADC_CHSEQ 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 CHSEQ0 CHSEQ1 CHSEQ2 CHSEQ3 CHSEQ4 CHSEQ5 CHSEQ6 CHSEQ7

CHSEQ0 : Select Channel N As The 1st Conversion In Scan Sequence
bits : 0 - 3 (4 bit)
access : read-write

CHSEQ1 : Select Channel N As The 2nd Conversion In Scan Sequence The definition of channel selection is the same as CHSEQ0.
bits : 4 - 7 (4 bit)
access : read-write

CHSEQ2 : Select Channel N As The 3rd Conversion In Scan Sequence The definition of channel selection is the same as CHSEQ0.
bits : 8 - 11 (4 bit)
access : read-write

CHSEQ3 : Select Channel N As The 4th Conversion In Scan Sequence The definition of channel selection is the same as CHSEQ0.
bits : 12 - 15 (4 bit)
access : read-write

CHSEQ4 : Select Channel N As The 5th Conversion In Scan Sequence The definition of channel selection is the same as CHSEQ0.
bits : 16 - 19 (4 bit)
access : read-write

CHSEQ5 : Select Channel N As The 6th Conversion In Scan Sequence The definition of channel selection is the same as CHSEQ0.
bits : 20 - 23 (4 bit)
access : read-write

CHSEQ6 : Select Channel N As The 7th Conversion In Scan Sequence The definition of channel selection is the same as CHSEQ0.
bits : 24 - 27 (4 bit)
access : read-write

CHSEQ7 : Select Channel N As The 8th Conversion In Scan Sequence The definition of channel selection is the same as CHSEQ0.
bits : 28 - 31 (4 bit)
access : read-write


ADC_CMP0 (CMP0)

A/D Compare Register 0
address_offset : 0x28 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_CMP0 ADC_CMP0 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 ADCMPEN ADCMPIE CMPCOND CMPCH CMPMCNT CMPDAT

ADCMPEN : Compare Enable Set this bit to 1 to enable the comparison CMPDAT with specified channel conversion result when converted data is loaded into ADC_DAT register.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable compare

#1 : 1

Enable compare

End of enumeration elements list.

ADCMPIE : Compare Interrupt Enable When converted data in RESULT is less (or greater) than the compare data CMPDAT, ADCMPF bit is asserted. If ADCMPIE is set to 1, a compare interrupt request is generated.
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.

CMPCOND : Compare Condition
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

ADCMPFx bit is set if conversion result is less than CMPDAT

#1 : 1

ADCMPFx bit is set if conversion result is greater or equal to CMPDAT,

End of enumeration elements list.

CMPCH : Compare Channel Selection
bits : 3 - 5 (3 bit)
access : read-write

Enumeration:

#000 : 0

Channel 0 conversion result is selected to be compared

#001 : 1

Channel 1 conversion result is selected to be compared

#010 : 2

Channel 2 conversion result is selected to be compared

#011 : 3

Channel 3 conversion result is selected to be compared

#100 : 4

Reserved

#101 : 5

The conversion result of pre-amplifier output is selected to be compared

#110 : 6

Channel 6 conversion result is selected to be compared

#111 : 7

Channel 7 conversion result is selected to be compared

End of enumeration elements list.

CMPMCNT : Compare Match Count When the specified A/D channel analog conversion result matches the comparing condition, the internal match counter will increase 1. When the internal counter achieves the setting, (CMPMCNT+1) hardware will set the ADCMPF bit.
bits : 8 - 11 (4 bit)
access : read-write

CMPDAT : Compare Data This field possessing the 5 MSB of 12-bit compare data, and 7 LSB are treated as 0 , is used to compare with conversion result of specified channel. Software can use it to monitor the external analog input pin voltage transition in scan mode without imposing a load on software. The data format should be consistent with the setting of ADCFM bit.
bits : 23 - 27 (5 bit)
access : read-write


ADC_CMP1 (CMP1)

A/D Compare Register 1
address_offset : 0x2C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_CMP1 ADC_CMP1 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

ADC_STATUS (STATUS)

A/D Status Register
address_offset : 0x30 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_STATUS ADC_STATUS 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 PDMA_RESULT

PDMA_RESULT : ADC PDMA transfer data If DW_EN is 0 and HPF_EN is 0 , transfer SAR output to SRAM If DW_EN is 1 and HPF_EN is 0 , transfer DW output to SRAM If HPF_EN is 1 , transfer HPF output to SRAM
bits : 0 - 15 (16 bit)
access : read-write


ADC_PDMA (PDMA)

ADC PDMA Control Register
address_offset : 0x34 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_PDMA ADC_PDMA 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

ADC_PGCTL (PGCTL)

ADC Pre-amplifier Gain Control Register
address_offset : 0x3C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_PGCTL ADC_PGCTL 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 ZERO_CROSS SAR_VREF EN_PGA PD_IBEN IBGEN_TRIM MICB_EN MICB_VSEL PGA_SEL

ZERO_CROSS : 1: Gain update only on zero crossing. 0: immediate
bits : 3 - 3 (1 bit)
access : read-write

SAR_VREF :
bits : 9 - 9 (1 bit)
access : read-write

EN_PGA : 1: Enable PGA 0: Disable PGA
bits : 10 - 10 (1 bit)
access : read-write

PD_IBEN : 1: Power down analog bias generation
bits : 11 - 11 (1 bit)
access : read-write

IBGEN_TRIM : Set to 0
bits : 12 - 13 (2 bit)
access : read-write

MICB_EN : 1: Enable MIC_BIAS
bits : 16 - 16 (1 bit)
access : read-write

MICB_VSEL : Select MIC BIAS level. 0: 0%,1:65%,2:70%,3:50% of VCCA
bits : 17 - 18 (2 bit)
access : read-write

PGA_SEL :
bits : 24 - 29 (6 bit)
access : read-write


ADC_DAT1 (DAT1)

A/D Data Register for the Channel Defined in CHSEQ1
address_offset : 0x4 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_DAT1 ADC_DAT1 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

ADC_VMID (VMID)

ADC VMID Control Register
address_offset : 0x40 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_VMID ADC_VMID 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 SHCLK_N CONV_N

SHCLK_N : Specify the high level of ADC start signal. Note: Suggested and default value is 0.
bits : 0 - 5 (6 bit)
access : read-write

CONV_N : Specify ADC conversion clock number CONV_N has to be equal to or great than 11. To update this field, programmer can only revise bit [14:8] and keep other bits the same as before. Note: CONV_N valid range is from 11~127
bits : 8 - 14 (7 bit)
access : read-write


ADC_HWPARA (HWPARA)

ADC H/W Parameter Control Register
address_offset : 0x44 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_HWPARA ADC_HWPARA 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

ADC_DAT2 (DAT2)

A/D Data Register for the Channel Defined in CHSEQ2
address_offset : 0x8 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_DAT2 ADC_DAT2 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

ADC_DAT3 (DAT3)

A/D Data Register for the Channel Defined in CHSEQ3
address_offset : 0xC Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_DAT3 ADC_DAT3 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


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.