思澈科技软件开发工具包  2.20
COMP input plus (non-inverting input)

Macros

#define COMP_INPUT_PLUS_IO1   (0x00000000UL)
 
#define COMP_INPUT_PLUS_IO2   (0x00000001UL<<LPCOMP_CR1_INPSEL_Pos)
 

Detailed Description

Macro Definition Documentation

◆ COMP_INPUT_PLUS_IO1

#define COMP_INPUT_PLUS_IO1   (0x00000000UL)

Input plus of Comparator 1 connected to LPCOMP1_P OR Comparator 2 connect to LPCOMP2_P

◆ COMP_INPUT_PLUS_IO2

#define COMP_INPUT_PLUS_IO2   (0x00000001UL<<LPCOMP_CR1_INPSEL_Pos)

Comparator input plus connected to IO2 (pin PB2 for COMP1, pin PB6 for COMP2)