| MINI51DE_BSP V3.02.003 The Board Support Package for Mini51DE Series MCU

Modules | Macros
ADC Exported Constants
MINI51 Device Driver » ADC Driver
Collaboration diagram for ADC Exported Constants:

## Modules
| ADC Exported Functions

## Macros
#define | ADC_CH7_EXT (0UL)
#define | ADC_CH7_BGP (ADC_ADCHER_PRESEL_Msk)
#define | ADC_CMP_LESS_THAN (0UL)
#define | ADC_CMP_GREATER_OR_EQUAL_TO (ADC_ADCMPR_CMPCOND_Msk)
#define | ADC_TRIGGER_BY_EXT_PIN (0UL)
#define | ADC_TRIGGER_BY_PWM (ADC_ADCR_TRGS_Msk)
#define | ADC_FALLING_EDGE_TRIGGER (0UL)
#define | ADC_RISING_EDGE_TRIGGER (ADC_ADCR_TRGCOND_Msk)
#define | ADC_ADF_INT (ADC_ADSR_ADF_Msk)
#define | ADC_CMP0_INT (ADC_ADSR_CMPF0_Msk)
#define | ADC_CMP1_INT (ADC_ADSR_CMPF1_Msk)
#define | ADC_SAMPLE_CLOCK_0 (0UL)
#define | ADC_SAMPLE_CLOCK_1 (1UL)
#define | ADC_SAMPLE_CLOCK_2 (2UL)
#define | ADC_SAMPLE_CLOCK_4 (3UL)
#define | ADC_SAMPLE_CLOCK_8 (4UL)
#define | ADC_SAMPLE_CLOCK_16 (5UL)
#define | ADC_SAMPLE_CLOCK_32 (6UL)
#define | ADC_SAMPLE_CLOCK_64 (7UL)
#define | ADC_SAMPLE_CLOCK_128 (8UL)
#define | ADC_SAMPLE_CLOCK_256 (9UL)
#define | ADC_SAMPLE_CLOCK_512 (10UL)
#define | ADC_SAMPLE_CLOCK_1024 (11UL)

## Detailed Description

## Macro Definition Documentation

## ◆ ADC_ADF_INT

#define ADC_ADF_INT (ADC_ADSR_ADF_Msk)

ADC convert complete interrupt

Definition at line 41 of file adc.h.

## ◆ ADC_CH7_BGP

#define ADC_CH7_BGP (ADC_ADCHER_PRESEL_Msk)

Use internal band-gap voltage (VBG) as channel 7 source.

Definition at line 34 of file adc.h.

## ◆ ADC_CH7_EXT

#define ADC_CH7_EXT (0UL)

Use external input pin as ADC channel 7 source

Definition at line 33 of file adc.h.

## ◆ ADC_CMP0_INT

#define ADC_CMP0_INT (ADC_ADSR_CMPF0_Msk)

ADC comparator 0 interrupt

Definition at line 42 of file adc.h.

## ◆ ADC_CMP1_INT

#define ADC_CMP1_INT (ADC_ADSR_CMPF1_Msk)

ADC comparator 0 interrupt

Definition at line 43 of file adc.h.

## ◆ ADC_CMP_GREATER_OR_EQUAL_TO

#define ADC_CMP_GREATER_OR_EQUAL_TO (ADC_ADCMPR_CMPCOND_Msk)

ADC compare condition greater or equal to

Definition at line 36 of file adc.h.

## ◆ ADC_CMP_LESS_THAN

#define ADC_CMP_LESS_THAN (0UL)

ADC compare condition less than

Definition at line 35 of file adc.h.

## ◆ ADC_FALLING_EDGE_TRIGGER

#define ADC_FALLING_EDGE_TRIGGER (0UL)

External pin falling edge trigger ADC

Definition at line 39 of file adc.h.

## ◆ ADC_RISING_EDGE_TRIGGER

#define ADC_RISING_EDGE_TRIGGER (ADC_ADCR_TRGCOND_Msk)

External pin rising edge trigger ADC

Definition at line 40 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_0

#define ADC_SAMPLE_CLOCK_0 (0UL)

ADC sample time is 0 ADC clock

Definition at line 44 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_1

#define ADC_SAMPLE_CLOCK_1 (1UL)

ADC sample time is 1 ADC clock

Definition at line 45 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_1024

#define ADC_SAMPLE_CLOCK_1024 (11UL)

ADC sample time is 1024 ADC clock

Definition at line 55 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_128

#define ADC_SAMPLE_CLOCK_128 (8UL)

ADC sample time is 128 ADC clock

Definition at line 52 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_16

#define ADC_SAMPLE_CLOCK_16 (5UL)

ADC sample time is 16 ADC clock

Definition at line 49 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_2

#define ADC_SAMPLE_CLOCK_2 (2UL)

ADC sample time is 2 ADC clock

Definition at line 46 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_256

#define ADC_SAMPLE_CLOCK_256 (9UL)

ADC sample time is 256 ADC clock

Definition at line 53 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_32

#define ADC_SAMPLE_CLOCK_32 (6UL)

ADC sample time is 32 ADC clock

Definition at line 50 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_4

#define ADC_SAMPLE_CLOCK_4 (3UL)

ADC sample time is 4 ADC clock

Definition at line 47 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_512

#define ADC_SAMPLE_CLOCK_512 (10UL)

ADC sample time is 512 ADC clock

Definition at line 54 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_64

#define ADC_SAMPLE_CLOCK_64 (7UL)

ADC sample time is 64 ADC clock

Definition at line 51 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_8

#define ADC_SAMPLE_CLOCK_8 (4UL)

ADC sample time is 8 ADC clock

Definition at line 48 of file adc.h.

## ◆ ADC_TRIGGER_BY_EXT_PIN

#define ADC_TRIGGER_BY_EXT_PIN (0UL)

ADC trigger by STADC (P3.2) pin

Definition at line 37 of file adc.h.

## ◆ ADC_TRIGGER_BY_PWM

#define ADC_TRIGGER_BY_PWM (ADC_ADCR_TRGS_Msk)

ADC trigger by PWM events

Definition at line 38 of file adc.h.