8051-ELL库  beta 1.1.6
8051-ELL library API Document Center
COMP_InitType结构体 参考

COMP初始化结构体句柄,初始化时请定义该句柄,并用其地址来传参。 更多...

#include <STC8x_COMP.h>

成员变量

uint8_t PEPin
 
uint8_t NEPin
 
BOOL AC_FTW
 
uint16_t DC_FTW
 
COMPDIRPut_Type DIRPut
 
BOOL Output
 
BOOL Run
 

详细描述

COMP初始化结构体句柄,初始化时请定义该句柄,并用其地址来传参。

The COMP initializes the structure handle. When initializing, please define the handle and use its address to pass parameters.

结构体成员变量说明

◆ AC_FTW

BOOL AC_FTW

模拟滤波控制位。 COMP 0.1us analog filter control bit.

◆ DC_FTW

uint16_t DC_FTW

数字滤波控制时间参数,0为关闭数字滤波。COMP digital filter clock number.

◆ DIRPut

比较结果输出方向。COMP output direction.

◆ NEPin

uint8_t NEPin

正极输入脚。COMP negative input selection bit.

◆ Output

BOOL Output

比较结果输出控制位。COMP result output control bit.

◆ PEPin

uint8_t PEPin

负极输入脚。COMP positive input selection bit.

◆ Run

BOOL Run

比较器运行控制位。 COMP operation control bit.