This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于比较器的输出口

Other Parts Discussed in Thread: LM20

 我在做比较器实验的时候,使用的是比较器1,通过inhao=ComparatorValueGet(COMP_BASE, 1),可以得到比较值的变化,但是配置比较器输出口确没有跟随变化,配置输出口如下

SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF);

GPIOPinConfigure(GPIO_PF1_C1O);

 GPIOPinTypeComparator(GPIO_PORTF_BASE, GPIO_PIN_1);

是否还需要加其他的配置才可以LM20的板子,比较器输出口为PF1