64void ACMP_Open(
ACMP_T *acmp, uint32_t u32ChNum, uint32_t u32NegSrc, uint32_t u32HysteresisEn)
67 ACMP->CMPRVCR = u32NegSrc;
82 ACMP->CMPCR[u32ChNum] &= (~ACMP_CMPCR_ACMPEN_Msk);
Mini51 series peripheral access layer header file. This file contains all the peripheral register's d...
#define ACMP_VNEG_PIN
Selecting the voltage of ACMP negative input pin as the source of ACMP V-.
void ACMP_Open(ACMP_T *acmp, uint32_t u32ChNum, uint32_t u32NegSrc, uint32_t u32HysteresisEn)
Configure the specified ACMP module.
void ACMP_Close(ACMP_T *acmp, uint32_t u32ChNum)
This function close comparator.
#define ACMP
Pointer to ACMP register structure.
#define ACMP_CMPCR_NEGSEL_Msk
#define ACMP_CMPCR_HYSEN_Msk
#define ACMP_CMPCR_ACMPEN_Msk