[go: up one dir, main page]

CN102447464B - Serial port TXD line management check command type 24N/2 groups of household electronic appliances wiring seat - Google Patents

Serial port TXD line management check command type 24N/2 groups of household electronic appliances wiring seat Download PDF

Info

Publication number
CN102447464B
CN102447464B CN 201010503144 CN201010503144A CN102447464B CN 102447464 B CN102447464 B CN 102447464B CN 201010503144 CN201010503144 CN 201010503144 CN 201010503144 A CN201010503144 A CN 201010503144A CN 102447464 B CN102447464 B CN 102447464B
Authority
CN
China
Prior art keywords
circuit
signal input
power supply
terminal
bit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 201010503144
Other languages
Chinese (zh)
Other versions
CN102447464A (en
Inventor
曾艺
曾湘
曾山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Technology and Business University
Original Assignee
Chongqing Technology and Business University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Technology and Business University filed Critical Chongqing Technology and Business University
Priority to CN 201010503144 priority Critical patent/CN102447464B/en
Publication of CN102447464A publication Critical patent/CN102447464A/en
Application granted granted Critical
Publication of CN102447464B publication Critical patent/CN102447464B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electronic Switches (AREA)

Abstract

串行口TXD线管理核对指令式24N/2组家用电子电器接线座,属于计算机与家用电器的接口装置,通过计算机串行口的输入联络线检测3个数字量输出型传感器的状况以及1个传感器状态的变化,串行口的DTR配合二进制计数器把TXD线送出的串行信号生成指令数据,并与预置的指令码比较,管理24N/2组家用电子与电器;包括:RS232C接口、USB接口、USB转串行口电路、4对传感器接口接线端、RS232→TTL/CMOS电平转换电路、4N(N=1,2,3,......)位二进制计数电路、指令匹配电路、数据锁存电路、24N/2组电子开关电路、稳压电源电路以及防雷击和浪涌电路。其中,由4位比较器以两级比较方法扩展成4N(N=1,2,3,......)位数字比较器,第二级的最高位输入端A3与B3用作输出控制,由RTS信号管理,24N个数字比较器组成指令匹配电路。用于家用电子电器的自动化。

Serial port TXD line management check instruction type 2 4N / 2 groups of household electronic appliance terminal blocks, which belong to the interface device between computers and household appliances, detect the status of 3 digital output sensors and 1 through the input connection line of the computer serial port When the state of each sensor changes, the DTR of the serial port cooperates with the binary counter to generate command data from the serial signal sent by the TXD line, and compare it with the preset command code to manage 2 4N /2 groups of household electronics and electrical appliances; including: RS232C interface , USB interface, USB to serial port circuit, 4 pairs of sensor interface terminals, RS232→TTL/CMOS level conversion circuit, 4N (N=1, 2, 3,...) bit binary counting circuit, Command matching circuit, data latch circuit, 2 4N /2 groups of electronic switch circuits, regulated power supply circuit and lightning and surge protection circuit. Among them, the 4-bit comparator is expanded into a 4N (N=1, 2, 3, ...) digital comparator with a two-stage comparison method, and the highest-order input terminals A3 and B3 of the second stage are used as outputs Control, managed by RTS signal, 2 4N digital comparators form an instruction matching circuit. For automation of household electronic appliances.

Description

Serial port TXD spool reason is checked instruction type 2 4N/ 2 groups of home electronic appliance junction blocks
Technical field
The invention belongs to the application electric technology field, particularly relate to the interface arrangement of a kind of computer and home electronic appliance.
Background technology
The utility model patent " serial port sends the home electronic appliance automation junction block of data wire management " of submitting Patent Office of State Intellectual Property Office examination in mid-September, 2010 to is with the output interconnection DTR of the computer serial port reset signal as decade counter CD4017, decimally counter serial signal that the transmission data wire TXD of serial port is sent out converts correct parallel data instruction to, control the output of this director data with output interconnection RTS, manage 4 groups of domestic electronics or electrical equipment.And utility model patent " 2 of the serial port TXD spool reason of submitting to Patent Office of State Intellectual Property Office to examine recently 4N/ 2 groups of home electronic appliance automation junction blocks " with the DTR line of serial port as 4N (N=1; 2,3 ...) reset signal of position binary counter; the serial signal that the TXD line of serial port is sent through 4N (N=1; 2,3 ...) a position binary counter convert to correct 4N (N=1; 2; 3 ...) bit binary data, pass through 4N → 2 again 4NDecoding circuit generates 2 4NThe bit instruction data are used the output of this director data of RTS line traffic control of serial port, management 2 4N/ 2 (N=1,2,3 ...) group domestic electronic or electrical equipment.
Summary of the invention
The object of the present invention is to provide a kind of serial port TXD spool reason to check instruction type 2 4N/ 2 groups of home electronic appliance junction blocks, it is main frame with the computer, four input interconnections by serial port detect the variation of the state of the situation of 3 digital quantity output type transducers and 1 transducer, sending data wire by serial port cooperates binary counter to produce 4N (N=1,2,3 ...) the bit binary data instruction, make comparisons management 2 by comparator and the command code that presets 4N/ 2 groups of domestic electronics or electrical equipment; Comprise: RS232C interface, USB interface, USB change serial port circuit, the 4 pairs of sensor interface terminals, RS232 → TTL/CMOS level shifting circuit, 4N (N=1,2,3 ...) position binary counter circuit, instruction match circuit, data-latching circuit, 2 4N/ 2 groups of electronic switching circuits, voltage-stabilized power supply circuit, anti-lightning strike and surge circuit and power line and plug thereof.
The technical solution adopted for the present invention to solve the technical problems is:
USB interface is connected to the corresponding signal input part that USB changes the serial port circuit, the corresponding port line parallel of the latter's signal output part and RS232C interface; The first pin CD of RS232C interface, the 6th pin DSR, the 8th pin CTS are connected a pull-up resistor respectively to positive source with nine kinds of needles RI, and this four pin and power cathode have constituted 4 pairs of sensor interface terminals respectively; The 3rd pin TXD of RS232C interface, the 4th pin DTR, the 7th pin RTS are connected respectively to three signal input parts of RS232 → TTL/CMOS level shifting circuit, three signal output parts of corresponding level shifting circuit are connected respectively to 4N (N=1,2,3 ...) the output enable end of the position clock signal input terminal of binary counter circuit and reset terminal thereof, instruction match circuit; 4N (N=1,2,3 ...) and the position binary counter circuit 4N (N=1,2,3 ...) and individual signal output part be connected respectively to the instruction match circuit 4N (N=1,2,3.......) individual comparison signal input, the instruction match circuit 2 4NIndividual signal output part A=B is connected respectively to 2 of data-latching circuit 4N/ 2 opposed 1 end S and reset terminal R; 2 of data-latching circuit 4N/ 2 output Q are connected to the control signal input of 1 group of electronic switching circuit separately; The ac input end of voltage-stabilized power supply circuit is received civil power with anti-lightning strike in parallel with the surge circuit by power line and plug thereof, and power cathode links to each other with the 5th pin GND of RS232C interface.
Described voltage-stabilized power supply circuit is made up of power transformer, diode bridge rectifier circuit, capacitor filter and circuit of three-terminal voltage-stabilizing integrated 7812, and two outputs of 7812 have constituted positive source and the power cathode of this device respectively.
Described anti-lightning strike the polyphone by a fuse and a piezo-resistance with the surge circuit formed.
Described RS232 → TTL/CMOS level shifting circuit is divided into three the tunnel, and the structure on each road is identical, comprising: triode, base resistance, collector resistance, schmitt inverter and working station indicator circuit; Wherein, one end of base resistance is as the signal input part of this road level shifting circuit, the other end is connected to the base stage of triode, the collector electrode of positive source and collector resistance, triode, emitter and power cathode are formed series circuit, the collector electrode of triode is also connected to the input of a schmitt inverter, and the output of this schmitt inverter is as the signal output part of this road level shifting circuit; The working station indicator circuit comprises a current-limiting resistance and a light-emitting diode, and positive source is connected with light-emitting diode and current-limiting resistance thereof and received the output of schmitt inverter.
Described 2 4NThe structure of/2 groups of electronic switching circuits is identical, comprises separately: No. 1 alternating current electronic switching circuit and No. 1 direct current relay electronic switching circuit.
Described alternating current electronic switching circuit comprises: 1 NPN triode, 1 PNP triode, 1 base resistance, 1 base biasing resistor, 1 collector resistance, 1 current limliting collector resistance, a light-emitting diode and a solid-state relay; Wherein, the base stage of one termination NPN triode of base resistance, the other end is as the control signal input of this electronic switching circuit, base biasing resistor is connected in parallel on the emitter junction of PNP triode, the emitter of this PNP triode connects positive source, its base stage and collector resistance, light emitting diode string is connected to the collector electrode of NPN triode, the emitter of NPN triode is connected to power cathode, current limliting of the collector electrode of PNP triode series connection is connected to the positive pole in the control signal input of solid-state relay with collector resistance, the negative pole in the control signal input of solid-state relay is connected to power cathode; Two outputs of solid-state relay constitute the output of this alternating current electronic switching circuit.
Described direct current relay electronic switching circuit comprises: triode and base resistance, a diode and a direct current relay; Wherein, the base stage of one termination triode of base resistance, the other end is as the control signal input of this electronic switching circuit, the emitter of triode is connected to power cathode, its collector electrode is connected respectively to an end of the coil of the positive pole of diode and direct current relay, and the other end of the negative pole of diode and the coil of direct current relay all is connected to positive source; Six terminals of two pairs of single-pole double-throw switch (SPDT)s of direct current relay have constituted the output of this direct current relay electronic switching circuit.
Described 4N (N=1,2,3, ...) position binary counter circuit become by N piece tetrad counter stage joint group, every tetrad counter has four count signal outputs, constitutes 4N (N=1,2 altogether, 3, ...) position count signal output, their clock signal input terminal parallel connection is as the clock signal input terminal of this counting circuit, their reset terminal parallel connection is as the reset terminal of this counting circuit.
Described instruction match circuit is by 2 4NIndividual 4N (N=1,2,3 ...) bit digital comparator composition, each digital comparator has a signal output part A=B, constitutes 2 of instruction match circuit altogether 4NIndividual signal output part A=B, each digital comparator has 4N (N=1,2,3 ...) individual comparison signal input, 4N (the N=1 that constitutes the instruction match circuit in parallel, 2,3 ...) individual comparison signal input, they respectively have an output enable end, the output enable end that constitutes the instruction match circuit in parallel.
Described 4N (N=1,2,3, ...) the bit digital comparator adopts the two-stage comparative approach to constitute with the parallel way expansion by 4 bit comparators: the first order is made up of N piece 4 bit comparators, their one group of input A3A2A1A0 constitutes this 4N (N=1 altogether, 2,3, ...) 4N (N=1,2,3 of bit digital comparator, ...) individual comparison signal input, their another group input B3B2B1B0 arranges level according to default command code by switch respectively, and their cascade signal input A>B and A<B are connected to power cathode, and cascade signal input A=B is connected to positive source; The second level by Piece 4 bit comparators are formed, in the formula,
Figure BSA00000297963000032
Be the round numbers function,
Figure BSA00000297963000033
Each piece 4 bit comparator of the expression first order have two comparison output signal A>B, A<B need use one of two group of 4 bit comparison signal input part of partial 4 bit comparators right, 1 expression must use one of two group of 4 bit comparison signal input part of 4 bit comparators to doing the output control of matching result: partial 4 bit comparators are arranged in the P rank according to the height precedence order of binary data, wherein, cascade signal input A>B and the A<B of 4 bit comparators of lowest-order are connected to power cathode, its cascade signal input A=B is connected to positive source, signal output part A>the B of 4 bit comparators of low order, A<B and A=B are connected respectively to the cascade signal input A>B of single order 4 bit comparators, A<B and A=B, one total 4P is to comparing signal input part A3A2A1A0 and B3B2B1B0, wherein, the signal input part A3 of 4 bit comparators of high-order receives positive source, its signal input part B3 and signal output part A=B constitute this 4N (N=1 respectively, 2,3 ...) output enable end and the signal output part A=B of bit digital comparator; The signal input part A3A2A1A0 of all the other 4P-1 of partial 4 bit comparators and B3B2B1B0 are connected to a pair of signal output part A>B and the A<B of each piece 4 bit comparator of the first order respectively in pairs, and not busy surplus each all is connected to power cathode to signal input part.
Described data-latching circuit is by 2 4N/ 2 d type flip flops or rest-set flip-flop are formed.
The present invention has constituted the interface between computer and the home electronic appliance, under the management of program, send out serial signal from the serial data transmitting terminal TXD of serial port, generate director data through the multidigit binary counter circuit, reset terminal by output interconnection DTR control binary counter has guaranteed the correct of director data, and has used output interconnection RTS to confirm whether to export this instruction, guaranteed the safety of director data, management 2 4N/ 2 pairs of light current and forceful electric power electronic switching circuit; Though use 4 bit comparators more, but, its advantage is: two 4N (N=1,2,3, ...) bit digital comparator, a rest-set flip-flop and one group of electronic switching circuit make the unit, give each electronics or electrical equipment, namely give every electronics or electrical equipment two command codes, comprise starting sign indicating number and stop code, do not need singlechip technology also can networking manage a large amount of electronic apparatuss, cooperate digital quantity output type working sensor again, can make home electronic appliance realize the automation on the complete meaning, the technology facility can be for the reference of exploitation household electrical appliance.
Description of drawings
Below in conjunction with accompanying drawing, further specify the present invention.
Fig. 1 is the sensor interface circuitry figure of serial port.
Fig. 2 is the schematic diagram of RS232 → TTL/CMOS level shifting circuit.
Fig. 3 represent 4N (N=1,2,3 ...) and 1 4N in the match circuit of position binary counter circuit, instruction (N=1,2,3 ...) and 1 rest-set flip-flop and 1 group of electronic switching circuit in the bit digital comparator, data-latching circuit, wherein, N=2.
Fig. 4 is the schematic diagram of one group of electronic switching circuit.
Among the figure, 001. one group of electronic switching circuit, 5. voltage-stabilized power supply circuit, 51. anti-lightning strike and surge circuit, the 6.USB interface, 7.USB changes the serial port circuit, 8.RS232C interface, 21.4N (N=1,2,3, ...) position binary counter circuit (N=2), 211. low tetrad counters, 212. high tetrad counters, 22. 4N (N=1,2,3 ...) bit digital comparator (N=2), 221. low four bit comparators of the first order, 222. high four bit comparators of the first order, 223. partial (high-orders), four bit comparators, 23.RS trigger, 31. the single-pole double throw direct current electromagnetic relay, 32. solid-state relay SSR.
Embodiment
The transmission range of the RS232C interface of computer can reach 15 meters, corresponding level+the 3V of logical zero~+ 15V, corresponding level-the 3V of logical one~(15) V, detect the response signal of external equipment by the following event attribute of serial communication control MSComm32.OCX: 1) state of ComEvCTS:Clear_to_Send line changes; 2) state of ComEvDSR:Data_Set_Ready line changes to 0 from 1; 3) state of ComEvCD:Carrier_Detect line changes; 4) ComEvRing: detect bell signal, but, the attribute MSComm32.CTSholding/.DSRholding/.DCDholding that does not possess the serial communication control can't inquire about the height situation that detects its level, and some UART (asynchronous reception-transmitter) may not support this event.
Therefore, as shown in Figure 1, adopt pull-up resistor R1, R2, R3, R4 and transducer Rs1, Rs2, Rs3, the mode of Rs4 ground connection has constituted the serial interface circuit of transducer, the transducer of adaptation comprises: output signal be the switching value type ,+3V~+ the level type of 15V or the transducer of pulse signal type or resistance saltus step type.The working power of family expenses transducer is generally<DC power supply of 15V, be operated in indoorly, and need not consider at transducer Rs1, Rs2, Rs3 arranges the photoelectricity coupling circuit to make electrical isolation between Rs4 and the RS232C interface, reduced cost.But, be parallel with anti-lightning strike and surge circuit (51) at the input of civil power.
HCMOS, the operating voltage of cmos circuit is respectively: 2V-6V and 3V-15V (4500B)-18V (4000B).Therefore, as shown in Figure 2, adopt triode to design RS232 → TTL/CMOS level shifting circuit.Wherein, schmitt inverter is used for signal shaping.
Among Fig. 3,4N (N=2) position binary counter circuit (21) but adopt N=2 four presentable binary counter CD4516 of piece (211), (212) cascade to form, can use the binary counter of other type instead.
Serial port transmission line TXD is in high level when flat.The Settings attribute of serial communication control MSComm32.OCX determines the information format of asynchronous serial communication: " character+parity check bit of (1 low level) start bit+transmission+(1,1.5 or 2 high level) position of rest ".For example, MSComm1.Settings=" 9600, n, 8,1 " is its default parameter value, and the meaning is " employed communication port is not done parity check with the speed transmission of per second 9600Bit, and each data cell is 8 Bit, and position of rest is 1 Bit ".When program need transfer out a character string, use the Output attribute of control MSComm32.OCX that character string is write in the output register, for example: MSComm1.Output=" ABCDE ", this is about to five characters of ABCDE and sends out in regular turn by the RS232C interface, and its front of character of every transmission is superimposed with a low level beginning flag position.For example transmit letter " B ", its ASCII character is " 42H=01000010B ", and the waveform that serial port line TXD sends is:
Figure BSA00000297963000061
Can produce 3 rising edge positive transition pulses; And transmit letter " A "=" 41H=01000001B ", the waveform that serial port line TXD sends is:
Figure BSA00000297963000062
Only produce 2 rising edge positive transition pulses.Therefore, earlier by DTR output high level, 4N (N=1 resets, 2,3, ...) position binary counter circuit (21): q7q6...q1q0=Q3Q2Q1Q0Q3Q2Q1Q0=00000000, then, DTR=0 is set, make the reseting controling end of counting circuit (21) be in the invalid attitude of low level, send out several letters " B " continuously by TXD again, but can cause four presentable binary counter CD4516 of N=2 piece (21), (22) output produces following result: q7q6...q1q0=Q3Q2Q1Q0Q3Q2Q1Q0=00000011 (3) successively, 00000110 (6), 00001001 (9), 00001100 (12), 00001111 (15), 00010010 (18), 00010101 (21), 00011000 (24), 00011011 (27), 00011110 (30), 00100011 (33);As seen, 4N (N=1,2,3 ...) the counting output result of position binary counter circuit can comprise that the various of 8=4 * N bit may situations, one has 2 8=2 4N(N=2) plant.This all possible situation is through 2 in the instruction match circuit 4NIndividual 4N (N=1,2,3 ...) the bit digital comparator, all can make 2 at every turn 4NOne of individual signal output part is in the level available state.1 4N of instruction in the match circuit (N=1,2,3 ...) and the circuit of bit digital comparator (22) as shown in Figure 3, the level of one group of comparison signal input B3B2B1B0B3B2B1B0 of the comparator of its first order (221), (222) need set in advance.
Data-latching circuit is by 2 4N/ 2 d type flip flops or rest-set flip-flop are formed, each has a reset terminal R or puts 1 end S, need separately to use one independently line of instruction data manage, have the function of latch mode, make the electronic switching circuit that its back connects [(001) ... ] according to instruction works.But, the TXD line send serial signal with the process that produces the instruction of correct binary data in, 4N (N=1,2,3, ...) position binary counter circuit (21) and the instruction match circuit (22) that connects thereafter can produce some transitional status datas, their can to data latch cicuit (23) and electronic switching circuit [(001) ... ] exert an influence.For this reason, generally use ternary class device to guarantee in good time output order data.Among Fig. 3, this device is brought in control output with a pair of highest order comparison signal input of comparator: for partial (high-order) comparator (223), and A3=VCC=" 1 ", B3=RTS, the condition that the high level effective status appears in its output signal A=B is 1) RTS=1,2) 4N (N=1 of binary counter circuit (21), 2,3 ...) some 4N (N=1,2 in the output signal and instruction match circuit of position, 3 ...) command code that presets of bit digital comparator (22) is consistent.

Claims (8)

1.串行口TXD线管理核对指令式24N/2组家用电子电器接线座,其特征是,包括:RS232C接口、USB接口、USB转串行口电路、4对传感器接口接线端、RS232→TTL/CMOS电平转换电路、4N位二进制计数电路、指令匹配电路、数据锁存电路、24N/2组电子开关电路、稳压电源电路、防雷击和浪涌电路以及电源线及其插头;其中,USB接口连接到USB转串行口电路的相应的信号输入端,后者的信号输出端与RS232C接口的相应端口线并联;RS232C接口的第一针CD、第六针DSR、第八针CTS与第九针RI分别连接一个上拉电阻到电源正极,这四针与电源负极分别构成了4对传感器接口接线端;RS232C接口的第三针TXD、第四针DTR、第七针RTS分别连接到RS232→TTL/CMOS电平转换电路的三个信号输入端,相应的电平转换电路的三个信号输出端分别连接到4N位二进制计数电路的时钟信号输入端及其复位端、指令匹配电路的输出使能端;4N位二进制计数电路的4N个信号输出端分别连接到指令匹配电路的4N个比较信号输入端,指令匹配电路的24N个信号输出端A=B分别连接到数据锁存电路的24N/2对置1端S与复位端R;数据锁存电路的24N/2个输出端Q各自连接到1组电子开关电路的控制信号输入端;稳压电源电路的交流输入端与防雷击和浪涌电路并联,通过电源线及其插头接到市电,电源负极与RS232C接口的第五针GND相连;所述稳压电源电路由电源变压器、桥式整流电路、电容滤波电路以及三端稳压集成电路组成,三端稳压集成电路的两个输出端分别构成了本装置的电源正极与电源负极;所述指令匹配电路由24N个4N位数字比较器组成,每个数字比较器有一个信号输出端A=B,一共构成指令匹配电路的24N个信号输出端A=B,每个数字比较器有4N个比较信号输入端,并联构成指令匹配电路的4N个比较信号输入端,它们各有一个输出使能端,并联构成指令匹配电路的输出使能端;所述4N位数字比较器由4位比较器采用两级比较方法以并联方式扩展构成:第一级由N块4位比较器组成,它们的一组输入端A3A2A1A0一共构成本4N位数字比较器的4N个比较信号输入端,它们的另一组输入端B3B2B1B0分别按照预设的指令码由开关设置电平,它们的级联信号输入端A>B与A<B都连接到电源负极,级联信号输入端A=B都连接到电源正极;第二级由块4位比较器组成,式中,
Figure FSB00001044063600012
为取整数函数;第二级的4位比较器按照二进制数据的高低位次序排列成P阶,其中,最低阶的4位比较器的级联信号输入端A>B与A<B都连接到电源负极,其级联信号输入端A=B连接到电源正极,低阶的4位比较器的信号输出端A>B、A<B与A=B分别连接到上一阶4位比较器的级联信号输入端A>B、A<B与A=B,一共有4P对比较信号输入端A3A2A1A0与B3B2B1B0,其中,最高阶的4位比较器的信号输入端A3接到电源正极,其信号输入端B3与信号输出端A=B分别构成本4N位数字比较器的输出使能端与信号输出端A=B;第二级的4位比较器的其余4P-1对信号输入端A3A2A1A0与B3B2B1B0分别成对连接到第一级各块4位比较器的一对信号输出端A>B与A<B,闲余的各对信号输入端都连接到电源负极;其中,N为自然数。
1. Serial port TXD line management check command type 2 4N / 2 groups of household electronic appliance terminal blocks, which are characterized by: RS232C interface, USB interface, USB to serial port circuit, 4 pairs of sensor interface terminals, RS232→ TTL/CMOS level conversion circuit, 4N-bit binary counting circuit, instruction matching circuit, data latch circuit, 2 4N /2 sets of electronic switch circuits, regulated power supply circuit, lightning protection and surge protection circuit, power cord and its plug ; Among them, the USB interface is connected to the corresponding signal input end of the USB-to-serial port circuit, and the signal output end of the latter is connected in parallel with the corresponding port line of the RS232C interface; the first pin CD, the sixth pin DSR, and the eighth pin of the RS232C interface The pin CTS and the ninth pin RI respectively connect a pull-up resistor to the positive pole of the power supply. These four pins and the negative pole of the power supply respectively constitute 4 pairs of sensor interface terminals; the third pin TXD, the fourth pin DTR, and the seventh pin RTS of the RS232C interface Connect to the three signal input terminals of the RS232→TTL/CMOS level conversion circuit respectively, and the three signal output terminals of the corresponding level conversion circuit are respectively connected to the clock signal input terminal of the 4N-bit binary counting circuit and its reset terminal, instruction The output enable terminal of the matching circuit; the 4N signal output terminals of the 4N-bit binary counting circuit are respectively connected to the 4N comparison signal input terminals of the instruction matching circuit, and the 24N signal output terminals A=B of the instruction matching circuit are respectively connected to the data The 2 4N /2 of the latch circuit is opposite to the 1 terminal S and the reset terminal R; the 2 4N /2 output terminals Q of the data latch circuit are respectively connected to the control signal input terminals of a group of electronic switch circuits; the regulated power supply circuit The AC input terminal is connected in parallel with the lightning protection and surge circuit, connected to the mains through the power cord and its plug, and the negative pole of the power supply is connected to the fifth pin GND of the RS232C interface; the stabilized power supply circuit is composed of a power transformer and a bridge rectifier circuit , a capacitor filter circuit and a three-terminal voltage stabilizing integrated circuit, the two output terminals of the three-terminal voltage stabilizing integrated circuit respectively constitute the positive pole of the power supply and the negative pole of the power supply of the device; the instruction matching circuit consists of 2 4N 4N-bit digital comparators Composition, each digital comparator has a signal output terminal A=B, a total of 2 4N signal output terminals A=B constituting the command matching circuit, each digital comparator has 4N comparison signal input terminals, and the parallel connection forms the command matching circuit 4N comparison signal input terminals, each of which has an output enabling terminal, is connected in parallel to form the output enabling terminal of the instruction matching circuit; the 4N-bit digital comparator is composed of 4-bit comparators using a two-stage comparison method to expand and form in parallel : The first stage is composed of N blocks of 4-bit comparators, and a group of their input terminals A3A2A1A0 constitutes 4N comparison signal input terminals of this 4N-bit digital comparator, and their other group of input terminals B3B2B1B0 respectively follow the preset instructions The level of the code is set by the switch, and their cascaded signal input terminals A>B and A<B are connected to the negative pole of the power supply, and the cascaded signal input terminal A=B is connected to the positive pole of the power supply; the second stage is composed of block composed of 4-bit comparators, where,
Figure FSB00001044063600012
It is an integer function; the 4-bit comparators of the second stage are arranged into P stages according to the order of high and low bits of binary data, wherein the cascaded signal input terminals A>B and A<B of the lowest-order 4-bit comparators are connected to The negative pole of the power supply, the cascaded signal input terminal A=B is connected to the positive pole of the power supply, and the signal output terminals A>B, A<B and A=B of the lower-order 4-bit comparator are respectively connected to the upper-order 4-bit comparator Cascaded signal input terminals A>B, A<B and A=B, there are 4P pairs of comparison signal input terminals A3A2A1A0 and B3B2B1B0, among them, the signal input terminal A3 of the highest-order 4-bit comparator is connected to the positive pole of the power supply, and its signal The input terminal B3 and the signal output terminal A=B constitute the output enabling terminal and the signal output terminal A=B of the 4N digital comparator respectively; the remaining 4P-1 pairs of the signal input terminals A3A2A1A0 and the 4-bit comparator of the second stage B3B2B1B0 are respectively connected in pairs to a pair of signal output terminals A>B and A<B of each 4-bit comparator of the first stage, and the spare pairs of signal input terminals are all connected to the negative pole of the power supply; wherein, N is a natural number.
2.根据权利要求1所述的串行口TXD线管理核对指令式24N/2组家用电子电器接线座,其特征是,所述防雷击和浪涌电路由一只熔断器和一个压敏电阻串联组成。2. The serial port TXD line management checking instruction type 2 4N / 2 groups of household electronic appliance terminal blocks according to claim 1, characterized in that the lightning protection and surge protection circuit consists of a fuse and a voltage resistors connected in series. 3.根据权利要求1所述的串行口TXD线管理核对指令式24N/2组家用电子电器接线座,其特征是,所述RS232→TTL/CMOS电平转换电路分成三路,各路的结构相同,包括:一只三极管、一个基极电阻、一个集电极电阻、一只施密特反相器以及工作状态指示灯电路;其中,基极电阻的一端作为该路电平转换电路的信号输入端,另一端连接到三极管的基极,电源正极与集电极电阻、三极管的集电极、发射极以及电源负极组成串联电路,三极管的集电极还连接到一个施密特反相器的输入端,该施密特反相器的输出端作为该路电平转换电路的信号输出端;工作状态指示灯电路是由电源正极、发光二极管及其限流电阻以及所述施密特反相器的输出端组成的串联电路。3. The serial port TXD line management checking instruction type 2 4N /2 groups of household electronic appliance terminal blocks according to claim 1, is characterized in that, the RS232→TTL/CMOS level conversion circuit is divided into three circuits, each circuit The structure is the same, including: a triode, a base resistor, a collector resistor, a Schmitt inverter and a working status indicator circuit; wherein, one end of the base resistor is used as the level conversion circuit of the road The signal input terminal, the other end is connected to the base of the triode, the positive pole of the power supply and the collector resistor, the collector, the emitter of the triode, and the negative pole of the power supply form a series circuit, and the collector of the triode is also connected to the input of a Schmitt inverter end, the output end of the Schmidt inverter is used as the signal output end of the road level conversion circuit; the working state indicator circuit is composed of the positive pole of the power supply, the light-emitting diode and its current limiting resistor, and the Schmidt inverter A series circuit composed of the output terminals. 4.根据权利要求1所述的串行口TXD线管理核对指令式24N/2组家用电子电器接线座,其特征是,所述24N/2组电子开关电路的结构都相同,每一组包括:1路交流电电子开关电路和1路直流继电器电子开关电路。4. The serial port TXD line management checking command type 2 4N /2 groups of household electronic appliance terminal blocks according to claim 1, characterized in that the structures of the 2 4N /2 groups of electronic switch circuits are the same, and each The set includes: 1-way AC electronic switch circuit and 1-way DC relay electronic switch circuit. 5.根据权利要求4所述的串行口TXD线管理核对指令式24N/2组家用电子电器接线座,其特征是,所述交流电电子开关电路包括:1只NPN三极管、1只PNP三极管、1个基极电阻、1个基极偏置电阻、1个集电极电阻、1个限流用集电极电阻、一只发光二极管和一块固态继电器;其中,基极电阻的一端接NPN三极管的基极,另一端作为该电子开关电路的控制信号输入端,基极偏置电阻并联在PNP三极管的发射结上,该PNP三极管的发射极接电源正极,其基极与集电极电阻、发光二极管串联接到NPN三极管的集电极,NPN三极管的发射极连接到电源负极,PNP三极管的集电极串联一个限流用集电极电阻连接到固态继电器的控制信号输入端中的正极,固态继电器的控制信号输入端中的负极连接到电源负极;固态继电器的两个输出端构成该交流电电子开关电路的输出端。5. The serial port TXD line management check instruction type 2 4N / 2 groups of household electronic appliance terminal blocks according to claim 4, characterized in that, the AC electronic switch circuit includes: 1 NPN triode, 1 PNP triode , 1 base resistor, 1 base bias resistor, 1 collector resistor, 1 collector resistor for current limiting, a light-emitting diode and a solid state relay; where one end of the base resistor is connected to the base of the NPN transistor pole, the other end is used as the control signal input end of the electronic switch circuit, the base bias resistor is connected in parallel to the emitter junction of the PNP transistor, the emitter of the PNP transistor is connected to the positive pole of the power supply, and its base is connected in series with the collector resistor and the light emitting diode Connect to the collector of the NPN transistor, the emitter of the NPN transistor is connected to the negative pole of the power supply, the collector of the PNP transistor is connected in series with a collector resistor for current limiting, and connected to the positive pole of the control signal input terminal of the solid state relay, and the control signal input terminal of the solid state relay The negative pole of the relay is connected to the negative pole of the power supply; the two output terminals of the solid state relay constitute the output terminal of the alternating current electronic switch circuit. 6.根据权利要求4所述的串行口TXD线管理核对指令式24N/2组家用电子电器接线座,其特征是,所述直流继电器电子开关电路包括:一只三极管及其基极电阻、一只二极管和一个直流继电器;其中,基极电阻的一端接三极管的基极,另一端作为该电子开关电路的控制信号输入端,三极管的发射极连接到电源负极,其集电极分别连接到二极管的正极和直流继电器的线圈的一端,二极管的负极与直流继电器的线圈的另一端都连接到电源正极;直流继电器的两对单刀双掷开关的六个接线端构成了该直流继电器电子开关电路的输出端。6. The serial port TXD line management checking instruction type 2 4N /2 groups of household electronic appliance terminal blocks according to claim 4, characterized in that, the DC relay electronic switch circuit includes: a triode and its base resistance , a diode and a DC relay; among them, one end of the base resistor is connected to the base of the triode, and the other end is used as the control signal input end of the electronic switch circuit, the emitter of the triode is connected to the negative pole of the power supply, and the collectors are respectively connected to The positive pole of the diode and one end of the coil of the DC relay, the negative pole of the diode and the other end of the coil of the DC relay are connected to the positive pole of the power supply; the six terminals of the two pairs of SPDT switches of the DC relay constitute the electronic switch circuit of the DC relay output terminal. 7.根据权利要求1所述的串行口TXD线管理核对指令式24N/2组家用电子电器接线座,其特征是,所述4N位二进制计数电路由N块四位二进制计数器级联组成,每块四位二进制计数器有四位计数信号输出端,一共构成4N位计数信号输出端,它们的时钟信号输入端并联,作为本计数电路的时钟信号输入端,它们的复位端并联,作为本计数电路的复位端。7. The serial port TXD line management checking instruction type 2 4N /2 groups of household electronic appliance terminal blocks according to claim 1, characterized in that, the 4N-bit binary counting circuit is composed of N blocks of four-bit binary counters cascaded , each four-bit binary counter has four counting signal output terminals, which constitute a total of 4N-bit counting signal output terminals, and their clock signal input terminals are connected in parallel as the clock signal input terminals of this counting circuit, and their reset terminals are connected in parallel as this The reset terminal of the counting circuit. 8.根据权利要求1所述的串行口TXD线管理核对指令式24N/2组家用电子电器接线座,其特征是,所述数据锁存电路由24N/2个D触发器或RS触发器组成。8. The serial port TXD line management check instruction type 2 4N /2 groups of household electronic appliance terminal blocks according to claim 1, characterized in that the data latch circuit is composed of 2 4N /2 D flip-flops or RS Trigger composition.
CN 201010503144 2010-10-11 2010-10-11 Serial port TXD line management check command type 24N/2 groups of household electronic appliances wiring seat Expired - Fee Related CN102447464B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010503144 CN102447464B (en) 2010-10-11 2010-10-11 Serial port TXD line management check command type 24N/2 groups of household electronic appliances wiring seat

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010503144 CN102447464B (en) 2010-10-11 2010-10-11 Serial port TXD line management check command type 24N/2 groups of household electronic appliances wiring seat

Publications (2)

Publication Number Publication Date
CN102447464A CN102447464A (en) 2012-05-09
CN102447464B true CN102447464B (en) 2013-07-10

Family

ID=46009606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010503144 Expired - Fee Related CN102447464B (en) 2010-10-11 2010-10-11 Serial port TXD line management check command type 24N/2 groups of household electronic appliances wiring seat

Country Status (1)

Country Link
CN (1) CN102447464B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2221267Y (en) * 1994-09-24 1996-02-28 陈为匡 Device for protecting power semiconductor device
CN1122534A (en) * 1994-08-29 1996-05-15 株式会社日立制作所 Low distortion switch
CN201898499U (en) * 2010-10-11 2011-07-13 重庆工商大学 Serial port TXD line management check command type 24N/2 groups of household electronic appliances wiring seat

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000101408A (en) * 1998-09-24 2000-04-07 Hitachi Ltd Gate drive circuit for power semiconductor device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1122534A (en) * 1994-08-29 1996-05-15 株式会社日立制作所 Low distortion switch
CN2221267Y (en) * 1994-09-24 1996-02-28 陈为匡 Device for protecting power semiconductor device
CN201898499U (en) * 2010-10-11 2011-07-13 重庆工商大学 Serial port TXD line management check command type 24N/2 groups of household electronic appliances wiring seat

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开2000-101408A 2000.04.07

Also Published As

Publication number Publication date
CN102447464A (en) 2012-05-09

Similar Documents

Publication Publication Date Title
CN102761421A (en) Network indicating device
CN201898499U (en) Serial port TXD line management check command type 24N/2 groups of household electronic appliances wiring seat
CN102447464B (en) Serial port TXD line management check command type 24N/2 groups of household electronic appliances wiring seat
CN201828910U (en) Eight-path sensor and four-set domestic appliance wire holder for tie line management of serial port
CN201928255U (en) Household electronic appliance automation wire holder with sending data line management by serial port
CN201927018U (en) 28N/2-way home appliance automation terminal block for serial port connection line output data management
CN207408937U (en) A kind of conversion circuit of TTL RS 232s interface level
CN201928257U (en) 24N/2 sets of electrical automation terminal block managed by serial port TXD line
CN102447465A (en) 24N/2 groups of household electronic appliance automation terminal blocks managed by serial port TXD line
CN202075730U (en) Command-type household appliance automation wire holder for verifying data output by junctor of serial port
CN201878127U (en) Serial port TXD (transmit data) line management type automated connector base for eight sets of household appliances
CN201878126U (en) Serial port TXD (transmit data) line management instruction-checking type automated connector base for eight sets of household appliances
CN202206364U (en) Serial-port inquiring and managing eight-way automation wire holder for household electronics
CN202050398U (en) Serial port contact line management check instruction type 8-way sensor 28N/2 sets of home appliance terminal blocks
CN202050399U (en) Serial port tie line management instruction-check-type 8K-channel sensor 128-group home appliance wire holder
CN102571063B (en) Serial port contact line management check instruction type 8-way sensor 28N/2 sets of home appliance terminal blocks
CN201928258U (en) Serial port connection line output data check instruction type 28N/2 way home appliance automation wiring seat
CN102571061B (en) Serial port connection line management check command type 8K sensor 28N/2 groups of home appliance wiring seats
CN102446148B (en) 2&lt;8N&gt;/2 paths domestic electric appliance automatic wire holder for tie line output data management of serial port
CN201937568U (en) Serial port query management check instruction type automatic wire holder for household electric appliance
CN202050400U (en) Serial port connection line management check command type 8K sensor 28N/2 groups of home appliance wiring seats
CN102447463B (en) 8K sensor 28N/2 groups of household appliances terminal block managed by serial port connection line
CN102571062B (en) Serial port connection line output data check instruction type 28N/2 way home appliance automation wiring seat
CN201928256U (en) Household electronic and electrical-appliance automatic-wiring seat for managing output data of serial-port connecting line
CN201928254U (en) Automatic wire holder for serial-port link-line decoding-type managed household electronic and electric appliance

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130710

Termination date: 20141011

EXPY Termination of patent right or utility model