| Nano102_112 Series BSP V3.03.002 The Board Support Package for Nano102_112 Series

Macros
ACMP Exported Constants
NANO102/112 Device Driver » ACMP Driver

## Macros
#define | ACMP_CR_CN_PIN (0<<24)
| The comparator reference pin CPN0/1 is selected. More...
#define | ACMP_CR_CN_CRV (1<<24)
| The internal comparator reference voltage (CRV) is selected. More...
#define | ACMP_CR_CN_VREFI (2<<24)
| The internal reference voltage (VREFI) is selected. More...
#define | ACMP_CR_CN_AGND (3<<24)
| The AGND is selected */. More...
#define | ACMP_CR_ACMP_HYSTERSIS_ENABLE ACMP_CR_ACMP_HYSEN_Msk
| ACMP hysteresis enable. More...
#define | ACMP_CR_ACMP_HYSTERSIS_DISABLE 0
| ACMP hysteresis disable. More...
#define | ACMP_CR_CPP0SEL_PA1 (3UL<<ACMP_CR_CPP0SEL_Pos)
| The comparator positive input select PA1. More...
#define | ACMP_CR_CPP0SEL_PA2 (2UL<<ACMP_CR_CPP0SEL_Pos)
| The comparator positive input select PA2. More...
#define | ACMP_CR_CPP0SEL_PA3 (1UL<<ACMP_CR_CPP0SEL_Pos)
| The comparator positive input select PA3. More...
#define | ACMP_CR_CPP0SEL_PA4 (0UL<<ACMP_CR_CPP0SEL_Pos)
| The comparator positive input select PA4. More...
#define | ACMP_MODCR0_TMR_TRI_LV_RISING (0UL<<ACMP_MODCR0_TMR_TRI_LV_Pos)
| The comparator output low to high to enable timer. More...
#define | ACMP_MODCR0_TMR_TRI_LV_FALLING (1UL<<ACMP_MODCR0_TMR_TRI_LV_Pos)
| The comparator output high to low to enable timer. More...
#define | ACMP_MODCR0_CH_DIS_PINSEL_PA1 (0UL<<ACMP_MODCR0_CH_DIS_PIN_SEL_Pos)
| The charge/discharge pin select PA1. More...
#define | ACMP_MODCR0_CH_DIS_PINSEL_PA2 (1UL<<ACMP_MODCR0_CH_DIS_PIN_SEL_Pos)
| The charge/discharge pin select PA2. More...
#define | ACMP_MODCR0_CH_DIS_PINSEL_PA3 (2UL<<ACMP_MODCR0_CH_DIS_PIN_SEL_Pos)
| The charge/discharge pin select PA3. More...
#define | ACMP_MODCR0_CH_DIS_PINSEL_PA4 (3UL<<ACMP_MODCR0_CH_DIS_PIN_SEL_Pos)
| The charge/discharge pin select PA4. More...
#define | ACMP_MODCR0_CH_DIS_PINSEL_PA5 (4UL<<ACMP_MODCR0_CH_DIS_PIN_SEL_Pos)
| The charge/discharge pin select PA5. More...
#define | ACMP_MODCR0_CH_DIS_PINSEL_PA6 (5UL<<ACMP_MODCR0_CH_DIS_PIN_SEL_Pos)
| The charge/discharge pin select PA6. More...
#define | ACMP_MODCR0_CH_DIS_PINSEL_PA14 (6UL<<ACMP_MODCR0_CH_DIS_PIN_SEL_Pos)
| The charge/discharge pin select PA14. More...
#define | ACMP_MODCR0_CH_DIS_PINSEL_PF5 (7UL<<ACMP_MODCR0_CH_DIS_PIN_SEL_Pos)
| The charge/discharge pin select PF5. More...
#define | ACMP_MODCR0_MOD_SEL_NORMAL (0UL<<ACMP_MODCR0_MOD_SEL_Pos)
| The comparator mode select normal mode. More...
#define | ACMP_MODCR0_MOD_SEL_SIGAMA_DELTA (1UL<<ACMP_MODCR0_MOD_SEL_Pos)
| The comparator mode select sigma-delta mode. More...
#define | ACMP_MODCR0_MOD_SEL_SLOPE (2UL<<ACMP_MODCR0_MOD_SEL_Pos)
| The comparator mode select slope mode. More...
#define | ACMP_TIMER01 (0UL<<ACMP_MODCR0_TMR_SEL_Pos)
| ACMP use timer0 and timer1. More...
#define | ACMP_TIMER23 (1UL<<ACMP_MODCR0_TMR_SEL_Pos)
| ACMP use timer2 and timer3. More...

## Detailed Description

## Macro Definition Documentation

## ◆ ACMP_CR_ACMP_HYSTERSIS_DISABLE

#define ACMP_CR_ACMP_HYSTERSIS_DISABLE 0

ACMP hysteresis disable.

Definition at line 39 of file acmp.h.

## ◆ ACMP_CR_ACMP_HYSTERSIS_ENABLE

#define ACMP_CR_ACMP_HYSTERSIS_ENABLE ACMP_CR_ACMP_HYSEN_Msk

ACMP hysteresis enable.

Definition at line 38 of file acmp.h.

## ◆ ACMP_CR_CN_AGND

#define ACMP_CR_CN_AGND (3<<24)

The AGND is selected */.

Definition at line 36 of file acmp.h.

## ◆ ACMP_CR_CN_CRV

#define ACMP_CR_CN_CRV (1<<24)

The internal comparator reference voltage (CRV) is selected.

Definition at line 34 of file acmp.h.

## ◆ ACMP_CR_CN_PIN

#define ACMP_CR_CN_PIN (0<<24)

The comparator reference pin CPN0/1 is selected.

Definition at line 33 of file acmp.h.

## ◆ ACMP_CR_CN_VREFI

#define ACMP_CR_CN_VREFI (2<<24)

The internal reference voltage (VREFI) is selected.

Definition at line 35 of file acmp.h.

## ◆ ACMP_CR_CPP0SEL_PA1

#define ACMP_CR_CPP0SEL_PA1 (3UL<<ACMP_CR_CPP0SEL_Pos)

The comparator positive input select PA1.

Definition at line 41 of file acmp.h.

## ◆ ACMP_CR_CPP0SEL_PA2

#define ACMP_CR_CPP0SEL_PA2 (2UL<<ACMP_CR_CPP0SEL_Pos)

The comparator positive input select PA2.

Definition at line 42 of file acmp.h.

## ◆ ACMP_CR_CPP0SEL_PA3

#define ACMP_CR_CPP0SEL_PA3 (1UL<<ACMP_CR_CPP0SEL_Pos)

The comparator positive input select PA3.

Definition at line 43 of file acmp.h.

## ◆ ACMP_CR_CPP0SEL_PA4

#define ACMP_CR_CPP0SEL_PA4 (0UL<<ACMP_CR_CPP0SEL_Pos)

The comparator positive input select PA4.

Definition at line 44 of file acmp.h.

## ◆ ACMP_MODCR0_CH_DIS_PINSEL_PA1

#define ACMP_MODCR0_CH_DIS_PINSEL_PA1 (0UL<<ACMP_MODCR0_CH_DIS_PIN_SEL_Pos)

The charge/discharge pin select PA1.

Definition at line 50 of file acmp.h.

## ◆ ACMP_MODCR0_CH_DIS_PINSEL_PA14

#define ACMP_MODCR0_CH_DIS_PINSEL_PA14 (6UL<<ACMP_MODCR0_CH_DIS_PIN_SEL_Pos)

The charge/discharge pin select PA14.

Definition at line 56 of file acmp.h.

## ◆ ACMP_MODCR0_CH_DIS_PINSEL_PA2

#define ACMP_MODCR0_CH_DIS_PINSEL_PA2 (1UL<<ACMP_MODCR0_CH_DIS_PIN_SEL_Pos)

The charge/discharge pin select PA2.

Definition at line 51 of file acmp.h.

## ◆ ACMP_MODCR0_CH_DIS_PINSEL_PA3

#define ACMP_MODCR0_CH_DIS_PINSEL_PA3 (2UL<<ACMP_MODCR0_CH_DIS_PIN_SEL_Pos)

The charge/discharge pin select PA3.

Definition at line 52 of file acmp.h.

## ◆ ACMP_MODCR0_CH_DIS_PINSEL_PA4

#define ACMP_MODCR0_CH_DIS_PINSEL_PA4 (3UL<<ACMP_MODCR0_CH_DIS_PIN_SEL_Pos)

The charge/discharge pin select PA4.

Definition at line 53 of file acmp.h.

## ◆ ACMP_MODCR0_CH_DIS_PINSEL_PA5

#define ACMP_MODCR0_CH_DIS_PINSEL_PA5 (4UL<<ACMP_MODCR0_CH_DIS_PIN_SEL_Pos)

The charge/discharge pin select PA5.

Definition at line 54 of file acmp.h.

## ◆ ACMP_MODCR0_CH_DIS_PINSEL_PA6

#define ACMP_MODCR0_CH_DIS_PINSEL_PA6 (5UL<<ACMP_MODCR0_CH_DIS_PIN_SEL_Pos)

The charge/discharge pin select PA6.

Definition at line 55 of file acmp.h.

## ◆ ACMP_MODCR0_CH_DIS_PINSEL_PF5

#define ACMP_MODCR0_CH_DIS_PINSEL_PF5 (7UL<<ACMP_MODCR0_CH_DIS_PIN_SEL_Pos)

The charge/discharge pin select PF5.

Definition at line 57 of file acmp.h.

## ◆ ACMP_MODCR0_MOD_SEL_NORMAL

#define ACMP_MODCR0_MOD_SEL_NORMAL (0UL<<ACMP_MODCR0_MOD_SEL_Pos)

The comparator mode select normal mode.

Definition at line 59 of file acmp.h.

## ◆ ACMP_MODCR0_MOD_SEL_SIGAMA_DELTA

#define ACMP_MODCR0_MOD_SEL_SIGAMA_DELTA (1UL<<ACMP_MODCR0_MOD_SEL_Pos)

The comparator mode select sigma-delta mode.

Definition at line 60 of file acmp.h.

## ◆ ACMP_MODCR0_MOD_SEL_SLOPE

#define ACMP_MODCR0_MOD_SEL_SLOPE (2UL<<ACMP_MODCR0_MOD_SEL_Pos)

The comparator mode select slope mode.

Definition at line 61 of file acmp.h.

## ◆ ACMP_MODCR0_TMR_TRI_LV_FALLING

#define ACMP_MODCR0_TMR_TRI_LV_FALLING (1UL<<ACMP_MODCR0_TMR_TRI_LV_Pos)

The comparator output high to low to enable timer.

Definition at line 48 of file acmp.h.

## ◆ ACMP_MODCR0_TMR_TRI_LV_RISING

#define ACMP_MODCR0_TMR_TRI_LV_RISING (0UL<<ACMP_MODCR0_TMR_TRI_LV_Pos)

The comparator output low to high to enable timer.

Definition at line 47 of file acmp.h.

## ◆ ACMP_TIMER01

#define ACMP_TIMER01 (0UL<<ACMP_MODCR0_TMR_SEL_Pos)

ACMP use timer0 and timer1.

Definition at line 63 of file acmp.h.

## ◆ ACMP_TIMER23

#define ACMP_TIMER23 (1UL<<ACMP_MODCR0_TMR_SEL_Pos)

ACMP use timer2 and timer3.

Definition at line 64 of file acmp.h.