A switch control signal input circuit, which is characterized mainly by the exclusion of RA1, the 74HC245 bus driver and a pull-up resistor RA3, capacitor and other components, the switch control signal input P1 1, 2, 3, 4, 5, 6, 7, 8 feet by exclusion RA1 respectively with 74HC245 bus drive on the 2, 3, 4, 5, 6, 7, 8, 9 foot connected with the 74HC245 bus driver on B1, B2, B3, B4, B5, B6, B7, B8 feet are connected with the data bus 18, 17, 16, 15, 14, 13, 12, 11 COM interface; DIR interface and 74HC245 bus driver on the resistance of RA4 are respectively connected with VDD, strobe signal by 74 HC245 on the 19 foot; C1, C2, end of the capacitor C3, C4 between RA1 and 74HC245 are respectively connected with the 9, 8, 7, 6 lines, the other end is grounded; one end of capacitor C5, C6, C7, C8 and 74HC245 are respectively connected between RA1 and 2, 3, 4, 5 and the other end is grounded; RA3 2, 3, 4, 5, 6, 7, 8, 9 feet on RA4 and D8, D7, D6, D5, D4, D3, D2 and D1 pins are respectively connected with the switch control signal input terminal P1 and between the exclusion of RA1 8, 7 6, 5, 4, 3, 2, 1 lines; RA3 resistance COM is connected to 24V power supply.
【技术实现步骤摘要】
本技术涉及一种控制信号输入电路。
技术介绍
当前在行程开关控制信号输入电路方面的电路比较复杂,并且有价格较高的光耦,而且这样的电路存在成本高,抗于扰性差的缺点。
技术实现思路
本技术的专利技术目的是提供一种成本低,抗干扰性高,能直接将24V输入开关信号转换的5V数字信号的行程开关控制信号输入电路。为达到上述目的,本技术采用以下技术方案该电路主要由排阻RA1、74HC245总线驱动器、上拉电阻RA3、滤波电容等组成,开关控制信号输入端P1的1、2、3、4、5、6、7、8脚通过排阻RA1分别与74HC245总线驱动器上的2、3、4、5、6、7、8、9脚相接,74HC245总线驱动器上的B1、B2、B3、B4、B5、B6、B7、B8脚分别与数据总线18、17、16、15、14、13、12、11相接;74HC245总线驱动器的DIR接口和电阻RA4上的COM接口分别与VDD相接,选通信号通过74HC245上的19脚;电容C1、C2、C3、C4的一端分别与RA1和74HC245之间的9、8、7、6线相接,另一端接地;电容C5、C6、C7、C8的一端分别与RA1和74HC245之间的2、3、4、5线相接,另一端接地;RA3上的2、3、4、5、6、7、8、9脚和RA4上的D8、D7、D6、D5、D4、D3、D2、D1脚分别与开关控制信号输入P1端和排阻RA1之间的8、7、6、5、4、3、2、1线相连接;电阻RA3上的COM脚接24V电源正极。采用以上方案后,电路抗干扰性好,能直接将24v输入开关信号转换为5v数字信号,与传统的输入电路相比,本电路省出了价格较高的光耦,节省了成 ...
【技术保护点】
【技术特征摘要】
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。