主要是针对110~240VAC交流信号逻辑输入转化为MCU能识别的逻辑信号,提出一种新的方法,包括:阻容采样,稳压限幅、光电隔离,软件状态机实现。详细介绍此方法实现的原理,着重是对阻容采样和软件状态机的实现方法进行详细的分析。这种方法具有功耗低,抗干扰能力强,可靠性高的特点,符合标准IEC61131—2中的规定,应用广泛。%A new method has been introduced in this paper on 110-240AC to logic signal read by MCU. It includes sampling in (resistance-capacitance) RC circuit, regulator limiting, optical isolation, and software state machine. Introduce the theory of this method in detail and focus on analyzing of the sampling and software implementation. The feathers are low power, high stability and reliability in line with the provisions of IEC61131-2. This method has a wide range of application.
展开▼