Example: S12ZVC192-ACMP-POT-CW107

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Example: S12ZVC192-ACMP-POT-CW107

Example: S12ZVC192-ACMP-POT-CW107

Tested on: DEVKIT-S12ZVC

MCU: S12ZVC192
Development tool: CodeWarrior 10.7

This example shows ACMP - analog comparator, 
which compares voltage from potentiometer and voltage from DAC.
DAC is set at 2.5V and uses the positive input of the comparator.
Potentiometer uses the negative input in the range of 0V - 5V.
When the potentiometer is moved, the output from ACMP will be changed. 
If the voltage at the non-inverting (positive) input > the voltage at the inverting (negative) input,
the output result is in the logic level 1 and the red LED is on.

标记 (1)
附件
无评分
版本历史
最后更新:
‎11-07-2018 07:42 AM
更新人: