CN102929172A - Serial communication port expansion control circuit and processing method therefor - Google Patents
Serial communication port expansion control circuit and processing method therefor Download PDFInfo
- Publication number
- CN102929172A CN102929172A CN2012103755697A CN201210375569A CN102929172A CN 102929172 A CN102929172 A CN 102929172A CN 2012103755697 A CN2012103755697 A CN 2012103755697A CN 201210375569 A CN201210375569 A CN 201210375569A CN 102929172 A CN102929172 A CN 102929172A
- Authority
- CN
- China
- Prior art keywords
- port
- chip
- commutation circuit
- circuit chip
- resistance
- 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.)
- Pending
Links
Images
Landscapes
- Microcomputers (AREA)
Abstract
The invention relates to the technical fields of serial communication port expansion circuits and software, in particular to a serial communication port expansion control circuit and a processing method therefor. The serial communication port expansion control circuit is characterized in that the RX port of a microprogrammed control unit (MCU) chip inside a singlechip is connected with the An port of an analog switching circuit chip; the TX port of the MCU chip inside the singlechip is connected with the Bn port of the analog switching circuit chip; the P21 port of the MCU chip inside the singlechip is connected with the S0 port of the analog switching circuit chip; and the P22 port of the MCU chip inside the singlechip is connected with the S1 port of the analog switching circuit chip. Compared with the prior art, the invention provides a circuit and software for implementing common serial interface office equipment integration. By the circuit, peripheral with four serial interfaces at most can be integrated, and the peripheral is connected with an upper computer through a serial interface, so that the occupancy of resources of the upper computer is reduced; and the operated serial interface equipment is selected through an expansion port selection command.
Description
Technical field
The present invention relates to COM port expanded circuit and software technology field, specifically a kind of serial communication ports-Extending control circuit and disposal route thereof.
Background technology
When the teller of the financial sectors such as present bank accepts the financial business of cabinet face, except terminal or PC that the teller uses, generally also need to use the equipment such as magnetic stripe machine, IC-card read write line, fingerprint instrument, second-generation ID card reader, and mostly adopt serial line interface, need take more host interface; Line between various device and PC is more, complicated, more not easy to operate during exchange device, and various device is unordered puts, and seriously compresses the cabinet face working space of growing tension, is unfavorable for the office of cabinet face.For making things convenient for the client to use and managing, ad hoc meter is developed this circuit and software.
Summary of the invention
The present invention provides a kind of integrated circuit and software of serial line interface office equipment commonly used of realizing for overcoming the deficiencies in the prior art.Utilize this circuit, the peripheral hardware of maximum 4 serial line interfaces can be integrated, link to each other with host computer by a serial line interface, reduce the resource occupation of host computer; Select operated serial interface devices by the Extended Capabilities Port select command.
For achieving the above object, design a kind of serial communication ports-Extending control circuit, it is characterized in that: circuit connects as follows, the An port of the RX port connecting analog commutation circuit chip of the inner MCU chip of single-chip microcomputer, the Bn port of the TX port connecting analog commutation circuit chip of the inner MCU chip of single-chip microcomputer, the S0 port of the P21 port connecting analog commutation circuit chip of the inner MCU chip of single-chip microcomputer, the S1 port of the P22 port connecting analog commutation circuit chip of the inner MCU chip of single-chip microcomputer; The end of the B0 port contact resistance R18 of simulation commutation circuit chip, the other end of resistance R 18 connects No. 3 RXD pins of magnetic stripe machine J14, the end of the A0 port contact resistance R49 of simulation commutation circuit chip, the other end of resistance R 49 connects No. 2 TXD pins of magnetic stripe machine J14, the end of the B2 port contact resistance R19 of simulation commutation circuit chip, the other end of resistance R 19 connects No. 3 RXD pins of fingerprint instrument J16, the end of the A2 port contact resistance R47 of simulation commutation circuit chip, the other end of resistance R 47 connects No. 2 TXD pins of fingerprint instrument J16, the end of the B3 port contact resistance R91 of simulation commutation circuit chip, the other end of resistance R 91 connects No. 3 pins of IC-card read write line J17, the end of the A3 port contact resistance R90 of simulation commutation circuit chip, the other end of resistance R 90 connects No. 2 pins of IC-card read write line J17, the end of the B1 port contact resistance R42 of simulation commutation circuit chip, the other end of resistance R 42 connects No. 3 RXD pins of second-generation ID card reader J15, the end of the A1 port contact resistance R48 of simulation commutation circuit chip, the other end of resistance R 48 connects No. 2 TXD pins of second-generation ID card reader J15; The end of the EN port contact resistance R43 of simulation commutation circuit chip, the other end ground connection of resistance R 43, the end of the VEE port contact resistance R44 of simulation commutation circuit chip, the other end ground connection of resistance R 44, the GND port ground connection of simulation commutation circuit chip; The VCC port of simulation commutation circuit chip divides three tunnel, one road contact resistance R46, another road contact resistance R45, and Third Road connects an end of capacitor C 9, the other end ground connection of capacitor C 9.
The end of the RST port contact resistance R4 of the inner MCU chip of described single-chip microcomputer, the other end of resistance R 4 divides three the tunnel, connects respectively the end of capacitor C 2, C3, C4, the other end ground connection of capacitor C 2, C3, C4; The Vb of the inner MCU chip of single-chip microcomputer is connected with the regin port and minute two-way, and one the tunnel connects power supply, the end of another road contact resistance R3, and the other end of resistance R 3 connects the end of capacitor C 2, C3, C4.
The inner MCU chip of described single-chip microcomputer is provided with software model.
A kind of serial communication ports-Extending control circuit, it is characterized in that: the software treatment scheme is as follows,
(1) power-up initializing, simulation commutation circuit chip acquiescence is connected on the Extended Capabilities Port;
(2) simulation commutation circuit chip receives single-chip microcomputer and issues data;
(3) judge whether port select command of data;
(4) be then to select corresponding data channel according to two scale-of-two input end S0 and the S1 of order control simulation commutation circuit chip, issue data otherwise again receive single-chip microcomputer;
(5) follow-up data will be transmitted by public I/O end by the passage of choosing;
(6) flow process periodic duty.
The present invention compares with prior art, and a kind of integrated circuit and software of serial line interface office equipment commonly used of realizing is provided.Utilize this circuit, the peripheral hardware of maximum 4 serial line interfaces can be integrated, link to each other with host computer by a serial line interface, reduce the resource occupation of host computer; Select operated serial interface devices by the Extended Capabilities Port select command.
Description of drawings
Fig. 1 is structure connection diagram of the present invention.
Fig. 2 is single-chip microcomputer connecting analog commutation circuit chip schematic diagram.
Fig. 3 connects IC read write line, magnetic stripe machine, second-generation ID card reader and fingerprint instrument schematic diagram for simulation commutation circuit chip.
Fig. 4 is the software processing flow chart.
Embodiment
The present invention is described further with reference to the accompanying drawings for the below.
As shown in Figure 1, the output terminal of magnetic stripe machine, second-generation ID card reader, fingerprint instrument, IC-card read write line is connecting analog commutation circuit chip respectively, a bidirectional port of the two-way connection single-chip microcomputer of simulation commutation circuit chip, another bidirectional port of single-chip microcomputer connects the bidirectional port of host computer.
Such as Fig. 2, shown in Figure 3, circuit connects as follows, the An port of the RX port connecting analog commutation circuit chip of the inner MCU chip of single-chip microcomputer, the Bn port of the TX port connecting analog commutation circuit chip of the inner MCU chip of single-chip microcomputer, the S0 port of the P21 port connecting analog commutation circuit chip of the inner MCU chip of single-chip microcomputer, the S1 port of the P22 port connecting analog commutation circuit chip of the inner MCU chip of single-chip microcomputer; The end of the B0 port contact resistance R18 of simulation commutation circuit chip, the other end of resistance R 18 connects No. 3 RXD pins of magnetic stripe machine J14, the end of the A0 port contact resistance R49 of simulation commutation circuit chip, the other end of resistance R 49 connects No. 2 TXD pins of magnetic stripe machine J14, the end of the B2 port contact resistance R19 of simulation commutation circuit chip, the other end of resistance R 19 connects No. 3 RXD pins of fingerprint instrument J16, the end of the A2 port contact resistance R47 of simulation commutation circuit chip, the other end of resistance R 47 connects No. 2 TXD pins of fingerprint instrument J16, the end of the B3 port contact resistance R91 of simulation commutation circuit chip, the other end of resistance R 91 connects No. 3 pins of IC-card read write line J17, the end of the A3 port contact resistance R90 of simulation commutation circuit chip, the other end of resistance R 90 connects No. 2 pins of IC-card read write line J17, the end of the B1 port contact resistance R42 of simulation commutation circuit chip, the other end of resistance R 42 connects No. 3 RXD pins of second-generation ID card reader J15, the end of the A1 port contact resistance R48 of simulation commutation circuit chip, the other end of resistance R 48 connects No. 2 TXD pins of second-generation ID card reader J15; The end of the EN port contact resistance R43 of simulation commutation circuit chip, the other end ground connection of resistance R 43, the end of the VEE port contact resistance R44 of simulation commutation circuit chip, the other end ground connection of resistance R 44, the GND port ground connection of simulation commutation circuit chip; The VCC port of simulation commutation circuit chip divides three tunnel, one road contact resistance R46, another road contact resistance R45, and Third Road connects an end of capacitor C 9, the other end ground connection of capacitor C 9.
The end of the RST port contact resistance R4 of the inner MCU chip of single-chip microcomputer, the other end of resistance R 4 divides three the tunnel, connects respectively the end of capacitor C 2, C3, C4, the other end ground connection of capacitor C 2, C3, C4; The Vb of the inner MCU chip of single-chip microcomputer is connected with the regin port and minute two-way, and one the tunnel connects power supply, the end of another road contact resistance R3, and the other end of resistance R 3 connects the end of capacitor C 2, C3, C4.
The inner MCU chip of single-chip microcomputer is provided with software model.
As shown in Figure 4, a kind of disposal route of serial communication ports-Extending control circuit is characterized in that: the software treatment scheme is as follows,
(1) power-up initializing, simulation commutation circuit chip acquiescence is connected on the Extended Capabilities Port;
(2) simulation commutation circuit chip receives single-chip microcomputer with 9600BPS speed and issues data;
(3) judge whether port select command of data;
(4) be then to select corresponding data channel according to two scale-of-two input end S0 and the S1 of order control simulation commutation circuit chip, issue data otherwise again receive single-chip microcomputer;
(5) follow-up data will be transmitted by public I/O end by the passage of choosing;
(6) flow process periodic duty.
The port expander control chip uses C8051F321 single-chip microcomputer and two 4 to select 1 simulation commutation circuit chip CD4052B, simulation commutation circuit chip CD4052B has two scale-of-two input end S0, S1 and shared input/output terminal Bn, an An, can switch 4 I/O passages by these two scale-of-two input ends.CD4052B connects the TX end reading out data of host computer serial ports by the 3rd pin Bn port, the RX end that connects the host computer serial ports by the 13rd pin An port sends data, and control input end S1, S0 link to each other with single-chip microcomputer P22, P21 respectively.Simultaneously, the Bn end links to each other with single-chip microcomputer Rx.When host computer issues data, in simulation commutation circuit chip receive data, single-chip microcomputer is also received same data, by single-chip microcomputer data are resolved, if expander port select command, then control the output of P21, P22 according to order, and then the corresponding data channel of gating simulation commutation circuit chip CD4052B, realize the ports-Extending function.The input/output signal line of 4 I/O passages of simulation commutation circuit chip CD4052B is respectively connected and is linked to each other signal employing Transistor-Transistor Logic level with the output/input signal cable of peripheral hardware behind 1 10 Europe resistance.Two 4 select 1 simulation commutation circuit chip CD4052B to have a shared I/O end and 4 switchable I/O passages, bring in by the input of two scale-of-two and to carry out 4 of passage and select 1 to link to each other with shared I/O end, thereby host computer is linked to each other with selected device.Solidify the communication control software in the single-chip microcomputer C8051F321, the data that pass are down resolved, if parse the port select command, then according to two scale-of-two input ends of ordering control simulation commutation circuit chip CD4052B, and then select corresponding Extended Capabilities Port.
Claims (4)
1. serial communication ports-Extending control circuit, it is characterized in that: circuit connects as follows, the An port of the RX port connecting analog commutation circuit chip of the inner MCU chip of single-chip microcomputer, the Bn port of the TX port connecting analog commutation circuit chip of the inner MCU chip of single-chip microcomputer, the S0 port of the P21 port connecting analog commutation circuit chip of the inner MCU chip of single-chip microcomputer, the S1 port of the P22 port connecting analog commutation circuit chip of the inner MCU chip of single-chip microcomputer; The end of the B0 port contact resistance R18 of simulation commutation circuit chip, the other end of resistance R 18 connects No. 3 RXD pins of magnetic stripe machine J14, the end of the A0 port contact resistance R49 of simulation commutation circuit chip, the other end of resistance R 49 connects No. 2 TXD pins of magnetic stripe machine J14, the end of the B2 port contact resistance R19 of simulation commutation circuit chip, the other end of resistance R 19 connects No. 3 RXD pins of fingerprint instrument J16, the end of the A2 port contact resistance R47 of simulation commutation circuit chip, the other end of resistance R 47 connects No. 2 TXD pins of fingerprint instrument J16, the end of the B3 port contact resistance R91 of simulation commutation circuit chip, the other end of resistance R 91 connects No. 3 pins of IC-card read write line J17, the end of the A3 port contact resistance R90 of simulation commutation circuit chip, the other end of resistance R 90 connects No. 2 pins of IC-card read write line J17, the end of the B1 port contact resistance R42 of simulation commutation circuit chip, the other end of resistance R 42 connects No. 3 RXD pins of second-generation ID card reader J15, the end of the A1 port contact resistance R48 of simulation commutation circuit chip, the other end of resistance R 48 connects No. 2 TXD pins of second-generation ID card reader J15; The end of the EN port contact resistance R43 of simulation commutation circuit chip, the other end ground connection of resistance R 43, the end of the VEE port contact resistance R44 of simulation commutation circuit chip, the other end ground connection of resistance R 44, the GND port ground connection of simulation commutation circuit chip; The VCC port of simulation commutation circuit chip divides three tunnel, one road contact resistance R46, another road contact resistance R45, and Third Road connects an end of capacitor C 9, the other end ground connection of capacitor C 9.
2. a kind of serial communication ports-Extending control circuit according to claim 1, it is characterized in that: the end of the RST port contact resistance R4 of the inner MCU chip of described single-chip microcomputer, the other end of resistance R 4 divides three the tunnel, an end that connects respectively capacitor C 2, C3, C4, the other end ground connection of capacitor C 2, C3, C4; The Vb of the inner MCU chip of single-chip microcomputer is connected with the regin port and minute two-way, and one the tunnel connects power supply, the end of another road contact resistance R3, and the other end of resistance R 3 connects the end of capacitor C 2, C3, C4.
3. a kind of serial communication ports-Extending control circuit according to claim 1 is characterized in that: the inner MCU chip of described single-chip microcomputer is provided with software model.
4. according to claim 1 or 3 described a kind of serial communication ports-Extending control circuits, it is characterized in that: the software treatment scheme is as follows,
(1) power-up initializing, simulation commutation circuit chip acquiescence is connected on the Extended Capabilities Port;
(2) simulation commutation circuit chip receives single-chip microcomputer and issues data;
(3) judge whether port select command of data;
(4) be then to select corresponding data channel according to two scale-of-two input end S0 and the S1 of order control simulation commutation circuit chip, issue data otherwise again receive single-chip microcomputer;
(5) follow-up data will be transmitted by public I/O end by the passage of choosing;
(6) flow process periodic duty.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012103755697A CN102929172A (en) | 2012-09-27 | 2012-09-27 | Serial communication port expansion control circuit and processing method therefor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012103755697A CN102929172A (en) | 2012-09-27 | 2012-09-27 | Serial communication port expansion control circuit and processing method therefor |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102929172A true CN102929172A (en) | 2013-02-13 |
Family
ID=47644001
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012103755697A Pending CN102929172A (en) | 2012-09-27 | 2012-09-27 | Serial communication port expansion control circuit and processing method therefor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102929172A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106845573A (en) * | 2016-12-31 | 2017-06-13 | 广州中大微电子有限公司 | A kind of contact IC card reader-writer of integrated GPRS |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1997031386A1 (en) * | 1996-02-20 | 1997-08-28 | Iomega Corporation | Multiple interface input/output port for a peripheral device |
JP2005122741A (en) * | 2003-10-14 | 2005-05-12 | Hewlett-Packard Development Co Lp | Computer data bus interface control |
CN2845021Y (en) * | 2005-10-18 | 2006-12-06 | 郑州玖和电子科技有限公司 | Multi-series interface multiplex circuits for low speed communication |
CN2896369Y (en) * | 2005-11-09 | 2007-05-02 | 兆日科技(深圳)有限公司 | Data switch-over circuit between multi-channel IC card and one-channel serial port |
CN201600688U (en) * | 2009-08-27 | 2010-10-06 | 重庆北高共鸣科技有限公司 | Multi-path data allocation device |
CN201749462U (en) * | 2010-06-09 | 2011-02-16 | 马苗苗 | Reusable serial port |
-
2012
- 2012-09-27 CN CN2012103755697A patent/CN102929172A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1997031386A1 (en) * | 1996-02-20 | 1997-08-28 | Iomega Corporation | Multiple interface input/output port for a peripheral device |
JP2005122741A (en) * | 2003-10-14 | 2005-05-12 | Hewlett-Packard Development Co Lp | Computer data bus interface control |
CN2845021Y (en) * | 2005-10-18 | 2006-12-06 | 郑州玖和电子科技有限公司 | Multi-series interface multiplex circuits for low speed communication |
CN2896369Y (en) * | 2005-11-09 | 2007-05-02 | 兆日科技(深圳)有限公司 | Data switch-over circuit between multi-channel IC card and one-channel serial port |
CN201600688U (en) * | 2009-08-27 | 2010-10-06 | 重庆北高共鸣科技有限公司 | Multi-path data allocation device |
CN201749462U (en) * | 2010-06-09 | 2011-02-16 | 马苗苗 | Reusable serial port |
Non-Patent Citations (2)
Title |
---|
TEXAS INSTRUMENTS: "《TEXAS INSTRUMENTS产品手册》", 31 March 2000, article "CD4051B,CD4052B,CD4053B" * |
王海卫等: "用多路复用器扩展MCU串口", 《电子产品世界》, no. 6, 30 June 2001 (2001-06-30), pages 39 - 40 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106845573A (en) * | 2016-12-31 | 2017-06-13 | 广州中大微电子有限公司 | A kind of contact IC card reader-writer of integrated GPRS |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105051706B (en) | The equipment of operation for the low-power PHY with PCIE protocol stacks, method and system | |
CN103559152A (en) | Device and method for CPU (central processing unit) to access local bus on basis of PCIE (peripheral component interface express) protocol | |
CN205680208U (en) | A kind of single node bluetooth controlled in wireless self-help terminal equipment | |
CN103677671A (en) | Data reading-writing method and system of electrical port module | |
CN202383569U (en) | Mainboard with multifunctional extensible peripheral component interconnect express (PCIE) interface device | |
CN104135757A (en) | Method and device of reducing power consumption of terminal as well as baseband chip | |
CN201438269U (en) | Motion control main board, motion control board and motion controller | |
CN204390227U (en) | Computing equipment expanding unit and extendible computing system | |
CN109407574A (en) | Output-controlling device and its method may be selected in a kind of multibus | |
CN104951268A (en) | Method for implementing extended high-performance graphics card based on CPCI | |
CN102929172A (en) | Serial communication port expansion control circuit and processing method therefor | |
CN104598404A (en) | Computing equipment extending method and device as well as extensible computing system | |
CN103679101B (en) | Handset audio reader device and system | |
CN208190652U (en) | A kind of mainboard of full duplex Universal Synchronous Asynchronous serial transceiver | |
CN210402342U (en) | Data encryption and decryption structure based on ZYNQ | |
CN104699644B (en) | A method of driving NFC modules under Android platform | |
CN100394359C (en) | Interface for intelligent card simulative debugging system | |
CN103679257B (en) | A kind of contactless payment telecommunications integrated circuit card and implementation method | |
CN204189089U (en) | A kind of server | |
CN206115420U (en) | New storage medium extend system based on network storage equipment | |
CN203552364U (en) | All-in-one machine device outside cabinet | |
CN206460468U (en) | A kind of three-in-one Table top type read write line | |
CN201698443U (en) | Usb radio frequency card reader | |
CN202976319U (en) | Central processing unit (CPU) card and embedded secure access module (ESAM) communication multiplex circuit of three-phase fee control intelligent ammeter | |
CN203165097U (en) | Desk type needle POS machine |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130213 |