\n

ADC

Peripheral Memory Blocks

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

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

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

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

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

Registers

ADC_ADDR0 (ADDR0)

ADC_ADDR4 (ADDR4)

ADC_ADPDMA (ADPDMA)

ADC_ADDR5 (ADDR5)

ADC_ADDR6 (ADDR6)

ADC_ADDR7 (ADDR7)

ADC_ADDR8 (ADDR8)

ADC_ADDR9 (ADDR9)

ADC_ADDR10 (ADDR10)

ADC_ADDR11 (ADDR11)

ADC_ADDR12 (ADDR12)

ADC_ADDR13 (ADDR13)

ADC_ADDR14 (ADDR14)

ADC_ADDR15 (ADDR15)

ADC_ADDR1 (ADDR1)

ADC_ADDR16 (ADDR16)

ADC_ADDR26 (ADDR26)

ADC_ADDR27 (ADDR27)

ADC_ADDR29 (ADDR29)

ADC_ADDR30 (ADDR30)

ADC_ADDR2 (ADDR2)

ADC_ADCR (ADCR)

ADC_ADCHER (ADCHER)

ADC_ADCMPR0 (ADCMPR0)

ADC_ADCMPR1 (ADCMPR1)

ADC_ADSR0 (ADSR0)

ADC_ADSR1 (ADSR1)

ADC_ADSR2 (ADSR2)

ADC_ADTDCR (ADTDCR)

ADC_ADDR3 (ADDR3)


ADC_ADDR0 (ADDR0)

ADC Data Register 0
address_offset : 0x0 Bytes (0x0)
size : -1 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

ADC_ADDR0 ADC_ADDR0 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 RSLT OVERRUN VALID

RSLT : A/D Conversion Result (Read Only) This field contains conversion result of ADC.
bits : 0 - 15 (16 bit)
access : read-only

OVERRUN : Overrun Flag (Read Only) If converted data in RSLT bits has not been read before new conversion result is loaded to this register, OVERRUN bit is set to 1. It is cleared by hardware after ADDR register is read.
bits : 16 - 16 (1 bit)
access : read-only

Enumeration:

#0 : 0

Data in RSLT bits is not overwrote

#1 : 1

Data in RSLT bits is overwrote

End of enumeration elements list.

VALID : Valid Flag (Read Only) This bit will be set to 1 when the conversion of the corresponding channel is completed. This bit will be cleared to 0 by hardware after ADDR register is read.
bits : 17 - 17 (1 bit)
access : read-only

Enumeration:

#0 : 0

Data in RSLT bits is not valid

#1 : 1

Data in RSLT bits is valid

End of enumeration elements list.


ADC_ADDR4 (ADDR4)

ADC Data Register 4
address_offset : 0x10 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_ADDR4 ADC_ADDR4 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_ADPDMA (ADPDMA)

ADC PDMA Current Transfer Data Register
address_offset : 0x100 Bytes (0x0)
size : -1 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

ADC_ADPDMA ADC_ADPDMA 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 CURDAT

CURDAT : ADC PDMA Current Transfer Data Register (Read Only) When PDMA transferring, read this register can monitor current PDMA transfer data. Current PDMA transfer data could be the content of ADDR0 ~ ADDR16 and ADDR26, ADDR27, and ADDR29, ADDR30 registers.
bits : 0 - 17 (18 bit)
access : read-only


ADC_ADDR5 (ADDR5)

ADC Data Register 5
address_offset : 0x14 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_ADDR5 ADC_ADDR5 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_ADDR6 (ADDR6)

ADC Data Register 6
address_offset : 0x18 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_ADDR6 ADC_ADDR6 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_ADDR7 (ADDR7)

ADC Data Register 7
address_offset : 0x1C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_ADDR7 ADC_ADDR7 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_ADDR8 (ADDR8)

ADC Data Register 8
address_offset : 0x20 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_ADDR8 ADC_ADDR8 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_ADDR9 (ADDR9)

ADC Data Register 9
address_offset : 0x24 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_ADDR9 ADC_ADDR9 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_ADDR10 (ADDR10)

ADC Data Register 10
address_offset : 0x28 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_ADDR10 ADC_ADDR10 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_ADDR11 (ADDR11)

ADC Data Register 11
address_offset : 0x2C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_ADDR11 ADC_ADDR11 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_ADDR12 (ADDR12)

ADC Data Register 12
address_offset : 0x30 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_ADDR12 ADC_ADDR12 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_ADDR13 (ADDR13)

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

ADC_ADDR13 ADC_ADDR13 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_ADDR14 (ADDR14)

ADC Data Register 14
address_offset : 0x38 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_ADDR14 ADC_ADDR14 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_ADDR15 (ADDR15)

ADC Data Register 15
address_offset : 0x3C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_ADDR15 ADC_ADDR15 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_ADDR1 (ADDR1)

ADC Data Register 1
address_offset : 0x4 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_ADDR1 ADC_ADDR1 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_ADDR16 (ADDR16)

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

ADC_ADDR16 ADC_ADDR16 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_ADDR26 (ADDR26)

ADC Data Register 26
address_offset : 0x68 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_ADDR26 ADC_ADDR26 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_ADDR27 (ADDR27)

ADC Data Register 27
address_offset : 0x6C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_ADDR27 ADC_ADDR27 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_ADDR29 (ADDR29)

ADC Data Register 29
address_offset : 0x74 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_ADDR29 ADC_ADDR29 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_ADDR30 (ADDR30)

ADC Data Register 30
address_offset : 0x78 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_ADDR30 ADC_ADDR30 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_ADDR2 (ADDR2)

ADC Data Register 2
address_offset : 0x8 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_ADDR2 ADC_ADDR2 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_ADCR (ADCR)

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

ADC_ADCR ADC_ADCR 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 ADEN ADIE ADMD TRGS TRGCOND TRGEN PTEN DIFFEN ADST SMPTSEL DMOF

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

Enumeration:

#0 : 0

A/D converter Disabled

#1 : 1

A/D converter Enabled

End of enumeration elements list.

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

Enumeration:

#0 : 0

A/D interrupt function Disabled

#1 : 1

A/D interrupt function Enabled

End of enumeration elements list.

ADMD : A/D Converter Operation Mode Control Note 1: When changing the operation mode, software should clear ADST bit first. Note 2: In Burst mode, the A/D result data is always at ADC Data Register 0.
bits : 2 - 3 (2 bit)
access : read-write

Enumeration:

#00 : 0

Single conversion

#01 : 1

Burst conversion

#10 : 2

Single-cycle Scan

#11 : 3

Continuous Scan

End of enumeration elements list.

TRGS : Hardware Trigger Source Note: Software should clear TRGEN bit and ADST bit to 0 before changing TRGS bits.
bits : 4 - 5 (2 bit)
access : read-write

Enumeration:

#00 : 0

A/D conversion is started by external STADC pin

#01 : 1

Timer0 ~ Timer3 overflow pulse trigger

#10 : 2

Reserved.

#11 : 3

A/D conversion is started by PWM trigger

End of enumeration elements list.

TRGCOND : External Trigger Condition These two bits decide external pin STADC trigger event is level or edge. The signal must be kept at stable state at least 8 PCLKs for level trigger and at least 4 PCLKs for edge trigger.
bits : 6 - 7 (2 bit)
access : read-write

Enumeration:

#00 : 0

Low level

#01 : 1

High level

#10 : 2

Falling edge

#11 : 3

Rising edge

End of enumeration elements list.

TRGEN : External Trigger Enable Control Enable or disable triggering of A/D conversion by external STADC pin, PWM trigger and Timer trigger. If external trigger is enabled, the ADST bit can be set to 1 by the selected hardware trigger source. Note: The ADC external trigger function is only supported in Single-cycle Scan mode.
bits : 8 - 8 (1 bit)
access : read-write

Enumeration:

#0 : 0

External trigger Disabled

#1 : 1

External trigger Enabled

End of enumeration elements list.

PTEN : PDMA Transfer Enable Bit When A/D conversion is completed, the converted data is loaded into ADDR0~16 ADDR26, ADDR27, ADDR29, ADDR30. Software can enable this bit to generate a PDMA data transfer request.
bits : 9 - 9 (1 bit)
access : read-write

Enumeration:

#0 : 0

PDMA data transfer Disabled

#1 : 1

PDMA data transfer in ADDR0~16, ADDR26, ADDR27, ADDR29, ADDR30 Enabled

End of enumeration elements list.

DIFFEN : Differential Input Mode Control
bits : 10 - 10 (1 bit)
access : read-write

Enumeration:

#0 : 0

Single-end analog input mode

#1 : 1

Differential analog input mode

End of enumeration elements list.

ADST : A/D Conversion Start ADST bit can be set to 1 from four sources: software, external pin STADC, PWM trigger and Timer trigger. ADST bit will be cleared to 0 by hardware automatically at the ends of Single mode and Single-cycle Scan mode. In Continuous Scan mode and Burst mode, A/D conversion is continuously performed until software writes 0 to this bit or chip is reset.
bits : 11 - 11 (1 bit)
access : read-write

Enumeration:

#0 : 0

Conversion stops and A/D converter enters idle state

#1 : 1

Conversion starts

End of enumeration elements list.

SMPTSEL : ADC Internal Sampling Time Selection
bits : 16 - 18 (3 bit)
access : read-write

Enumeration:

#000 : 0

4 ADC clock for sampling 16 ADC clock for complete conversion

#001 : 1

5 ADC clock for sampling 17 ADC clock for complete conversion

#010 : 2

6 ADC clock for sampling 18 ADC clock for complete conversion

#011 : 3

7 ADC clock for sampling 19 ADC clock for complete conversion

#100 : 4

8 ADC clock for sampling 20 ADC clock for complete conversion

#101 : 5

9 ADC clock for sampling 21 ADC clock for complete conversion

#110 : 6

10 ADC clock for sampling 22 ADC clock for complete conversion

#111 : 7

11 ADC clock for sampling 23 ADC clock for complete conversion

End of enumeration elements list.

DMOF : Differential Input Mode Output Format If user enables differential input mode, the conversion result can be expressed with binary straight format (unsigned format) or 2's complement format (signed format).
bits : 31 - 31 (1 bit)
access : read-write

Enumeration:

#0 : 0

A/D Conversion result will be filled in RSLT at ADDRx registers with unsigned format (straight binary format)

#1 : 1

A/D Conversion result will be filled in RSLT at ADDRx registers with 2's complement format

End of enumeration elements list.


ADC_ADCHER (ADCHER)

ADC Channel Enable Register
address_offset : 0x84 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_ADCHER ADC_ADCHER 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 CHEN

CHEN : Analog Input Channel Enable Control Set ADC_ ADCHER[16:0] bits to enable the corresponding analog input channel 16 ~ 0. If DIFFEN bit is set to 1, only the even number channel needs to be enabled. Besides, set ADC_ ADCHER[26], ADC_ ADCHER[27], ADC_ ADCHER[29], ADC_ ADCHER[30] bits will enable internal channel for internal reference voltage, DAC0_OUT, band-gap voltage and temperature sensor respectively. Other bits are reserved. Note 1: If the internal channel for band-gap voltage (CHEN[29]) is active, the maximum sampling rate will be 300k SPS. Note 2: If the internal channel for temperature sensor (CHEN[30]) is active, the maximum sampling rate will be 300k SPS.
bits : 0 - 31 (32 bit)
access : read-write

Enumeration:

0 : 0

Channel Disabled

1 : 1

Channel Enabled

End of enumeration elements list.


ADC_ADCMPR0 (ADCMPR0)

ADC Compare Register 0
address_offset : 0x88 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_ADCMPR0 ADC_ADCMPR0 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 CMPEN CMPIE CMPCOND CMPCH CMPMATCNT CMPWEN CMPD

CMPEN : Compare Enable Control Set this bit to 1 to enable ADC controller to compare CMPD (ADCMPRx[27:16]) with specified channel conversion result when converted data is loaded into ADDR register.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

Compare function Disabled

#1 : 1

Compare function Enabled

End of enumeration elements list.

CMPIE : Compare Interrupt Enable Control If the compare function is enabled and the compare condition matches the setting of CMPCOND and CMPMATCNT, CMPFx bit will be asserted, in the meanwhile, if CMPIE bit is set to 1, a compare interrupt request is generated.
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Compare function interrupt Disabled

#1 : 1

Compare function interrupt Enabled

End of enumeration elements list.

CMPCOND : Compare Condition Note: When the internal counter reaches to (CMPMATCNT +1), the CMPFx bit will be set.
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

Set the compare condition as that when a 12-bit A/D conversion result is less than the 12-bit CMPD bits, the internal match counter will increase one

#1 : 1

Set the compare condition as that when a 12-bit A/D conversion result is greater than or equal to the 12-bit CMPD bits, the internal match counter will increase one

End of enumeration elements list.

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

Enumeration:

#00000 : 0

Channel 0 conversion result is selected to be compared

#00001 : 1

Channel 1 conversion result is selected to be compared

#00010 : 2

Channel 2 conversion result is selected to be compared

#00011 : 3

Channel 3 conversion result is selected to be compared

#00100 : 4

Channel 4 conversion result is selected to be compared

#00101 : 5

Channel 5 conversion result is selected to be compared

#00110 : 6

Channel 6 conversion result is selected to be compared

#00111 : 7

Channel 7 conversion result is selected to be compared

#01000 : 8

Channel 8 conversion result is selected to be compared

#01001 : 9

Channel 9 conversion result is selected to be compared

#01010 : 10

Channel 10 conversion result is selected to be compared

#01011 : 11

Channel 11 conversion result is selected to be compared

#01100 : 12

Channel 12 conversion result is selected to be compared

#01101 : 13

Channel 13 conversion result is selected to be compared

#01110 : 14

Channel 14 conversion result is selected to be compared

#01111 : 15

Channel 15 conversion result is selected to be compared

#10000 : 16

Channel 16 conversion result is selected to be compared

#11010 : 26

Internal reference voltage conversion result is selected to be compared

#11011 : 27

DAC0 output conversion result is selected to be compared

#11101 : 29

Band-gap voltage conversion result is selected to be compared

#11110 : 30

Temperature sensor conversion result is selected to be compared

End of enumeration elements list.

CMPMATCNT : Compare Match Count When the specified A/D channel analog conversion result matches the compare condition defined by CMPCOND bit, the internal match counter will increase 1. When the internal counter reaches the value to (CMPMATCNT +1), the CMPFx bit will be set.
bits : 8 - 11 (4 bit)
access : read-write

CMPWEN : Compare Window Mode Enable Bit Note: This bit is only presented in ADCMPR0 register.
bits : 15 - 15 (1 bit)
access : read-write

Enumeration:

#0 : 0

Compare Window Mode Disabled

#1 : 1

Compare Window Mode Enabled

End of enumeration elements list.

CMPD : Comparison Data The 12-bit data is used to compare with conversion result of specified channel. Note: CMPD bits should be filled in unsigned format (straight binary format).
bits : 16 - 27 (12 bit)
access : read-write


ADC_ADCMPR1 (ADCMPR1)

ADC Compare Register 1
address_offset : 0x8C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_ADCMPR1 ADC_ADCMPR1 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_ADSR0 (ADSR0)

ADC Status Register0
address_offset : 0x90 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_ADSR0 ADC_ADSR0 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 ADF CMPF0 CMPF1 BUSY VALIDF OVERRUNF CHANNEL

ADF : A/D Conversion End Flag A status flag that indicates the end of A/D conversion. Software can write 1 to clear this bit. ADF bit is set to 1 at the following three conditions: When A/D conversion ends in Single mode. When A/D conversion ends on all specified channels in Single-cycle Scan mode and Continuous Scan mode. When more than or equal to 8 samples in FIFO in Burst mode.
bits : 0 - 0 (1 bit)
access : read-write

CMPF0 : Compare Flag 0 When the A/D conversion result of the selected channel meets setting condition in ADCMPR0 register then this bit is set to 1. This bit is cleared by writing 1 to it.
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Conversion result in ADDR does not meet ADCMPR0 setting

#1 : 1

Conversion result in ADDR meets ADCMPR0 setting

End of enumeration elements list.

CMPF1 : Compare Flag 1 When the A/D conversion result of the selected channel meets setting condition in ADCMPR1 register then this bit is set to 1 it is cleared by writing 1 to it
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

Conversion result in ADDR does not meet ADCMPR1 setting

#1 : 1

Conversion result in ADDR meets ADCMPR1 setting

End of enumeration elements list.

BUSY : BUSY/IDLE (Read Only) This bit is a mirror of ADST bit in ADCR register.
bits : 7 - 7 (1 bit)
access : read-only

Enumeration:

#0 : 0

A/D converter is in idle state

#1 : 1

A/D converter is busy at conversion

End of enumeration elements list.

VALIDF : Data Valid Flag (Read Only) If any one of VALID (ADDRx[17]) is set, this flag will be set to 1. Note: When ADC is in burst mode and any conversion result is valid, this flag will be set to 1.
bits : 8 - 8 (1 bit)
access : read-only

OVERRUNF : Overrun Flag (Read Only) If any one of OVERRUN (ADDRx[16]) is set, this flag will be set to 1. Note: When ADC is in burst mode and the FIFO is overrun, this flag will be set to 1.
bits : 16 - 16 (1 bit)
access : read-only

CHANNEL : Current Conversion Channel (Read Only)
bits : 27 - 31 (5 bit)
access : read-only


ADC_ADSR1 (ADSR1)

ADC Status Register1
address_offset : 0x94 Bytes (0x0)
size : -1 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

ADC_ADSR1 ADC_ADSR1 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 VALID

VALID : Data Valid Flag (Read Only) VALID[30:29], VALID[27:26], VALID[16:0] are the mirror of the VALID bits in ADDR30[17], ADDR29[17], ADDR27[17], ADDR26[17], ADDR16[17]~ ADDR0[17]. The other bits are reserved. Note: When ADC is in burst mode and any conversion result is valid, VALID[30:29], VALID[27:26], VALID[16:0] will be set to 1.
bits : 0 - 31 (32 bit)
access : read-only


ADC_ADSR2 (ADSR2)

ADC Status Register2
address_offset : 0x98 Bytes (0x0)
size : -1 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

ADC_ADSR2 ADC_ADSR2 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 OVERRUN

OVERRUN : Overrun Flag (Read Only) OVERRUN[30:29], OVERRUN[27:26], OVERRUN[16:0] are the mirror of the OVERRUN bit in ADDR30[16], ADDR29[16], ADDR27[16], ADDR26[16], ADDR16[16] ~ ADDR0[16]. The other bits are reserved. Note: When ADC is in burst mode and the FIFO is overrun, OVERRUN[30:29], OVERRUN[27:26], OVERRUN[16:0] will be set to 1.
bits : 0 - 31 (32 bit)
access : read-only


ADC_ADTDCR (ADTDCR)

ADC Trigger Delay Control Register
address_offset : 0x9C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADC_ADTDCR ADC_ADTDCR 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 PTDT

PTDT : PWM Trigger Delay Time Set this field will delay ADC start conversion time after PWM trigger. PWM trigger delay time is (4 * PTDT) * system clock
bits : 0 - 7 (8 bit)
access : read-write


ADC_ADDR3 (ADDR3)

ADC Data Register 3
address_offset : 0xC Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

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