TWI420340B - Connection circuit for serial port - Google Patents
Connection circuit for serial port Download PDFInfo
- Publication number
- TWI420340B TWI420340B TW96100534A TW96100534A TWI420340B TW I420340 B TWI420340 B TW I420340B TW 96100534 A TW96100534 A TW 96100534A TW 96100534 A TW96100534 A TW 96100534A TW I420340 B TWI420340 B TW I420340B
- Authority
- TW
- Taiwan
- Prior art keywords
- photocoupler
- power source
- chip
- light
- connection circuit
- Prior art date
Links
Landscapes
- Photo Coupler, Interrupter, Optical-To-Optical Conversion Devices (AREA)
Description
本發明係關於一種串列埠連接電路,特別係關於一種具有串列埠之晶片間連接之電路。 The present invention relates to a tandem connection circuit, and more particularly to a circuit having inter-chip connections in series.
在數位電子電路中常包含各種不同功能性之整合晶片,由於在硬體線路之連接上串列傳輸介面比並列傳輸介面方便,因此各種晶片之間通常是以串列介面進行資訊傳輸,其只需要少數幾隻資料腳位元並以連續傳輸位元組之方式傳輸資料。常見之使用串列介面之設備有通用非同步收發器(UART)、串列週邊介面匯流排(SPI Bus)、內部積體電路匯流排(IIC Bus)、系統管理匯流排(SM Bus)等,但各個串列介面所傳輸之訊號在電氣特性上並不完全相同,因此常常需要各種不同之轉換電路或者集成晶片來作為彼此之間之連接,增加了裝置之成本。 In digital electronic circuits, integrated chips of various functionalities are often included. Since the serial transmission interface is more convenient than the parallel transmission interface on the connection of the hardware lines, information transmission between the various chips is usually performed in a serial interface. A small number of data bits are transmitted in the form of consecutive transmission bytes. Commonly used devices with serial interfaces include Universal Non-Synchronous Transceiver (UART), Serial Peripheral Bus (SPI Bus), Internal Integrated Circuit Bus (IIC Bus), and System Management Bus (SM Bus). However, the signals transmitted by the serial interfaces are not identical in electrical characteristics. Therefore, various conversion circuits or integrated chips are often required to be connected to each other, which increases the cost of the device.
因是,實有必要對習知之轉換電路加以改良,以消除上述缺失。 Therefore, it is necessary to improve the conventional conversion circuit to eliminate the above deficiency.
鑒於上述內容,有必要提供一種低成本之串列埠連接電路,簡便的實現具有串列埠之各種不同晶片間之連接。 In view of the above, it is necessary to provide a low-cost serial-connected connection circuit that facilitates the connection between various wafers having tandem turns.
一種串列埠連接電路,其包括一第一光電耦合器,該第一光電耦合器之發光器件之正極連接一第一電源,負極連接一第一晶片之傳送端,該第一光電耦合器之光接收器件之集極分別連接一第二 電源及一第二晶片之接收端,該第一光電耦合器之光接收器件之射極接地。 A tandem 埠 connection circuit includes a first photocoupler, a positive electrode of the first photocoupler is connected to a first power source, and a negative electrode is connected to a transfer end of a first chip, the first photocoupler The collectors of the light receiving devices are respectively connected to a second The power source and the receiving end of the second chip, the emitter of the light receiving device of the first photocoupler is grounded.
該串列埠連接電路還包括一第二光電耦合器,該第二光電耦合器之發光器件之正極連接該第二電源,該第二光電耦合器之發光器件之負極連接該第二晶片之傳送端,該第二光電耦合器之光接收器件之集極分別連接該第一電源及該第一晶片之接收端,該第二光電耦合器之光接收器件之射極接地。 The serial port connection circuit further includes a second photocoupler, the anode of the light emitting device of the second photocoupler is connected to the second power source, and the negative electrode of the light emitting device of the second photocoupler is connected to the second chip. The collector of the light receiving device of the second photocoupler is respectively connected to the first power source and the receiving end of the first chip, and the emitter of the light receiving device of the second photocoupler is grounded.
相較習知技術,該串列埠連接電路透過低成本之光電耦合器簡便的實現了以“光”為媒介之電訊號傳輸,提升了光電耦合器兩端之電壓準位,同時有效的隔離了訊號發送端同接收端之間之串擾,大大提升了訊號品質。 Compared with the prior art, the series-connected circuit realizes the "light"-mediated electrical signal transmission through a low-cost optocoupler, improves the voltage level at both ends of the optocoupler, and effectively isolates The crosstalk between the signal sender and the receiver greatly improves the signal quality.
10‧‧‧第一晶片 10‧‧‧First chip
19‧‧‧第二光電耦合器 19‧‧‧Second optocoupler
30‧‧‧串列埠轉換電路 30‧‧‧In-line conversion circuit
R2‧‧‧第二電阻 R2‧‧‧second resistance
R4‧‧‧第四電阻 R4‧‧‧fourth resistor
Vdd‧‧‧第二電源 Vdd‧‧‧second power supply
16‧‧‧第一光電耦合器 16‧‧‧First Optocoupler
20‧‧‧第二晶片 20‧‧‧second chip
R1‧‧‧第一電阻 R1‧‧‧first resistance
R3‧‧‧第三電阻 R3‧‧‧ third resistor
Vcc‧‧‧第一電源 Vcc‧‧‧ first power supply
圖1係本發明串列埠連接電路較佳實施方式之電路圖。 BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a circuit diagram of a preferred embodiment of a serial port connection circuit of the present invention.
參考圖1,一種串列埠連接電路30,包括一第一光電耦合器16、一第二光電耦合器19、一第一電源Vcc及一第二電源Vdd,該第一電源Vcc為12V電源,該第二電源Vdd為5V電源。該第一光電耦合器16之發光器件(為一發光二極體)之正極1與該第一電源Vcc相連,該第一光電耦合器16之發光器件之負極2透過一第一電阻R1與一第一晶片10之傳送端TXD相連,該第一光電耦合器16之光接收器件(為一光敏電晶體)之集極4透過一第二電阻R2與該第二電源Vdd相連,該第一光電耦合器16之光接收器件之集極4還與一第二晶片20之接收端TDI相連,該第一光電耦合器16之光接收器件之射極3接地。該第二光電耦合器19之發光器件之正極1’與該 第二電源Vdd相連,該第二光電耦合器19之發光器件之負極2’透過一第三電阻R3與該第二晶片20之傳送端TDO相連,該第二光電耦合器19之光接收器件之集極4’透過一第四電阻R4與該第一電源Vcc相連,該第二光電耦合器19之光接收器件之集極4’還與該第一晶片10之接收端RXD相連,該第二光電耦合器19之光接收器件之射極3’接地。 Referring to FIG. 1, a serial port connection circuit 30 includes a first photocoupler 16, a second photocoupler 19, a first power source Vcc, and a second power source Vdd. The first power source Vcc is a 12V power supply. The second power source Vdd is a 5V power source. The positive electrode 1 of the light-emitting device (which is a light-emitting diode) of the first photocoupler 16 is connected to the first power source Vcc, and the negative electrode 2 of the light-emitting device of the first photocoupler 16 is transmitted through a first resistor R1 and a The transmitting end TXD of the first wafer 10 is connected, and the collector 4 of the light receiving device (which is a photosensitive transistor) of the first photocoupler 16 is connected to the second power source Vdd through a second resistor R2. The collector 4 of the light receiving device of the coupler 16 is also connected to the receiving terminal TDI of a second wafer 20, and the emitter 3 of the light receiving device of the first photocoupler 16 is grounded. a positive electrode 1' of the light emitting device of the second photocoupler 19 and the The second power source Vdd is connected, and the cathode 2' of the light-emitting device of the second photocoupler 19 is connected to the transmitting end TDO of the second wafer 20 through a third resistor R3. The light-receiving device of the second photocoupler 19 The collector 4' is connected to the first power source Vcc through a fourth resistor R4. The collector 4' of the light receiving device of the second photocoupler 19 is also connected to the receiving end RXD of the first wafer 10, the second The emitter 3' of the light receiving device of the photocoupler 19 is grounded.
該第一光電耦合器16用於該第一晶片10之傳送端TXD和該第二晶片20之接收端TDI之間之通訊,該第二光電耦合器19用於該第二晶片20之傳送端TDO和該第一晶片10之接收端RXD之間之通訊。由於光電耦合器成本較低,可大大降低裝置之成本,同時在光電耦合器之發光器件正極和光接收器件集極連接了不同之電源,還可實現光電耦合器兩端不同晶片間之訊號電壓準位轉換,有效隔離了訊號傳送端同接收端之間之串擾,大大提升了訊號品質。 The first photocoupler 16 is used for communication between the transmitting end TXD of the first wafer 10 and the receiving end TDI of the second wafer 20, and the second photocoupler 19 is used for the transmitting end of the second wafer 20. Communication between the TDO and the receiving end RXD of the first wafer 10. Due to the low cost of the optocoupler, the cost of the device can be greatly reduced. At the same time, the positive electrode of the light-emitting device of the photocoupler and the collector of the light-receiving device are connected with different power sources, and the signal voltage between different wafers at both ends of the photocoupler can be realized. The bit conversion effectively isolates the crosstalk between the signal transmitting end and the receiving end, which greatly improves the signal quality.
當該第一晶片10之傳送端TXD輸出高電平訊號時,該第一光電耦合器16為開路狀態,該第二晶片20之接收端TDI與該第二電源Vdd相連,該第二晶片20接收高電平訊號;當第一晶片10之傳送端TXD輸出低電平訊號時,該第一光電耦合器16導通,使該第二晶片20之接收端TDI接地,該第二晶片20接收低電平訊號。 When the transmitting end TXD of the first wafer 10 outputs a high level signal, the first photocoupler 16 is in an open state, and the receiving end TDI of the second wafer 20 is connected to the second power source Vdd, the second wafer 20 Receiving a high level signal; when the transmitting end TXD of the first wafer 10 outputs a low level signal, the first photocoupler 16 is turned on to ground the receiving end TDI of the second wafer 20, and the second wafer 20 receives low Level signal.
當該第二晶片20之傳送端TDO有高電平訊號產生時,該第二光電耦合器19為開路狀態,該第一晶片10之接收端RXD與該第一電源Vcc相連,該第一晶片10接收高電平訊號;當該第二晶片20之傳送端TDO有低電平訊號產生時,該第二光電耦合器19導通,使該第一晶片10之接收端RXD接地,該第一晶片10接收低電平訊號。 When the transmitting end TDO of the second chip 20 has a high level signal, the second photocoupler 19 is in an open state, and the receiving end RXD of the first wafer 10 is connected to the first power source Vcc, the first chip 10 receiving a high level signal; when the transmitting end TDO of the second wafer 20 has a low level signal, the second photocoupler 19 is turned on to ground the receiving end RXD of the first wafer 10, the first chip 10 receives a low level signal.
該第一晶片10輸出之高/低電平訊號,透過所述串列埠連接電路 30傳輸到該第二晶片20,而該第二晶片20輸出之高/低電平訊號,也可同時透過該串列埠連接電路30傳回該第一晶片10。透過低成本之光電耦合器16和19,簡便的實現了以“光”為媒介之電訊號傳輸,同時還可實現光電耦合器兩端不同晶片間之訊號電壓準位轉換,有效隔離了訊號傳送端同接收端之間之串擾。 The high/low level signal outputted by the first chip 10 is transmitted through the serial port connection circuit 30 is transmitted to the second wafer 20, and the high/low level signal outputted by the second wafer 20 can also be transmitted back to the first wafer 10 through the serial port connection circuit 30. Through the low-cost optocouplers 16 and 19, the "light"-based electrical signal transmission is easily realized, and the signal voltage level conversion between different wafers at both ends of the photocoupler can be realized, thereby effectively isolating the signal transmission. Crosstalk between the end and the receiving end.
在以上具體實施方式中,在訊號傳送端與訊號接收端採用的是全雙工傳輸模式,該第一晶片10為具有SPI串列埠之晶片,該第二晶片20為具有UART串列埠之晶片。但本發明不僅限於此,本串列埠連接電路還可以應用到其他具有SPI和IIC串列埠之晶片半雙工或具有IIC串列埠之晶片間單雙工傳輸模式中。 In the above embodiment, the full-duplex transmission mode is adopted at the signal transmitting end and the signal receiving end, the first chip 10 is a chip having an SPI serial port, and the second chip 20 is provided with a UART serial port. Wafer. However, the present invention is not limited thereto, and the tandem connection circuit can be applied to other wafer-to-wafer single-duplex transmission modes having SPI and IIC serial ports or half-duplex.
綜上所述,本發明符合發明專利要件,爰依法提出專利申請。惟,以上所述者僅為本發明之較佳實施例,舉凡熟悉本案技藝之人士,在爰依本發明精神所作之等效修飾或變化,皆應涵蓋於以下之申請專利範圍內。 In summary, the present invention complies with the requirements of the invention patent and submits a patent application according to law. The above description is only the preferred embodiment of the present invention, and equivalent modifications or variations made by those skilled in the art will be included in the following claims.
10‧‧‧第一晶片 10‧‧‧First chip
19‧‧‧第二光電耦合器 19‧‧‧Second optocoupler
30‧‧‧串列埠轉換電路 30‧‧‧In-line conversion circuit
R2‧‧‧第二電阻 R2‧‧‧second resistance
R4‧‧‧第四電阻 R4‧‧‧fourth resistor
Vdd‧‧‧第二電源 Vdd‧‧‧second power supply
16‧‧‧第一光電耦合器 16‧‧‧First Optocoupler
20‧‧‧第二晶片 20‧‧‧second chip
R1‧‧‧第一電阻 R1‧‧‧first resistance
R3‧‧‧第三電阻 R3‧‧‧ third resistor
Vcc‧‧‧第一電源 Vcc‧‧‧ first power supply
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW96100534A TWI420340B (en) | 2007-01-05 | 2007-01-05 | Connection circuit for serial port |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW96100534A TWI420340B (en) | 2007-01-05 | 2007-01-05 | Connection circuit for serial port |
Publications (2)
Publication Number | Publication Date |
---|---|
TW200830143A TW200830143A (en) | 2008-07-16 |
TWI420340B true TWI420340B (en) | 2013-12-21 |
Family
ID=44818220
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW96100534A TWI420340B (en) | 2007-01-05 | 2007-01-05 | Connection circuit for serial port |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI420340B (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4961205A (en) * | 1987-09-11 | 1990-10-02 | Victor Company Of Japan, Ltd. | Interface circuit |
US5256882A (en) * | 1991-09-17 | 1993-10-26 | Kabushiki Kaisha Toshiba | Signal transmission circuit having a latch-up function |
TW455722B (en) * | 1999-03-16 | 2001-09-21 | Framatome Connectors Int | Modular optoelectronic connector |
WO2003023990A1 (en) * | 2001-09-07 | 2003-03-20 | Mat Co., Ltd. | Line interface circuit for power line communication |
TW200417129A (en) * | 2002-09-04 | 2004-09-01 | Sanki Kk | Excitation controller for a non-excitation actuating brake |
US6792215B1 (en) * | 1999-09-30 | 2004-09-14 | Anritsu Corporation | Multiwavelength light source device employing annular optical delay circuit |
US6977540B2 (en) * | 2003-02-18 | 2005-12-20 | Adc Dsl Systems, Inc. | High-speed isolated port |
TW200622966A (en) * | 2004-12-13 | 2006-07-01 | Semiconductor Energy Lab Co Ltd | Semiconductor device and electronic appliance using the same |
TW200629732A (en) * | 2004-10-15 | 2006-08-16 | Rohm Co Ltd | Waveform shaping apparatus, receiver, reception module, and remote control receiver |
TW200636369A (en) * | 2004-12-28 | 2006-10-16 | Sharp Kk | Optical receiver |
TW200643834A (en) * | 2005-03-29 | 2006-12-16 | Intel Corp | Passively aligned optical-electrical interface |
-
2007
- 2007-01-05 TW TW96100534A patent/TWI420340B/en not_active IP Right Cessation
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4961205A (en) * | 1987-09-11 | 1990-10-02 | Victor Company Of Japan, Ltd. | Interface circuit |
US5256882A (en) * | 1991-09-17 | 1993-10-26 | Kabushiki Kaisha Toshiba | Signal transmission circuit having a latch-up function |
TW455722B (en) * | 1999-03-16 | 2001-09-21 | Framatome Connectors Int | Modular optoelectronic connector |
US6792215B1 (en) * | 1999-09-30 | 2004-09-14 | Anritsu Corporation | Multiwavelength light source device employing annular optical delay circuit |
WO2003023990A1 (en) * | 2001-09-07 | 2003-03-20 | Mat Co., Ltd. | Line interface circuit for power line communication |
TW200417129A (en) * | 2002-09-04 | 2004-09-01 | Sanki Kk | Excitation controller for a non-excitation actuating brake |
US6977540B2 (en) * | 2003-02-18 | 2005-12-20 | Adc Dsl Systems, Inc. | High-speed isolated port |
TW200629732A (en) * | 2004-10-15 | 2006-08-16 | Rohm Co Ltd | Waveform shaping apparatus, receiver, reception module, and remote control receiver |
TW200622966A (en) * | 2004-12-13 | 2006-07-01 | Semiconductor Energy Lab Co Ltd | Semiconductor device and electronic appliance using the same |
TW200636369A (en) * | 2004-12-28 | 2006-10-16 | Sharp Kk | Optical receiver |
TW200643834A (en) * | 2005-03-29 | 2006-12-16 | Intel Corp | Passively aligned optical-electrical interface |
Also Published As
Publication number | Publication date |
---|---|
TW200830143A (en) | 2008-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN201204574Y (en) | Circuit for switching RS232 signal level | |
EP1230683A2 (en) | I2c opto-isolator circuit | |
WO2012065494A1 (en) | Method and circuit for implementing serial port isolation | |
CN205430254U (en) | Transmission rate 32Kbps~80Mbps receives and dispatches integrative SFP optical module | |
TWI444819B (en) | Metohd and circuit for converting logical pulse signal | |
TWI420340B (en) | Connection circuit for serial port | |
US7598510B2 (en) | Serial interface connecting circuit for supporting communications between different types of serial interfaces | |
CN205430253U (en) | Low rate DC~20Mbps receives and dispatches integrative SFP optical module | |
WO2020151586A1 (en) | Storage battery monitoring system, battery pack and electric vehicle | |
CN105610511A (en) | Transmitting-receiving SFP optical module with transmission rate between 32Kbps-80Mbps | |
TWI622272B (en) | Level translation circuit and interface communication | |
CN207135082U (en) | A kind of light-coupled isolation communicating circuit between controller chip | |
CN105846903A (en) | Low-speed rate DC-20Mbps receiving-transmitting integrated SFP optical module | |
CN109743052B (en) | Isolation communication circuit for realizing self-checking | |
CN110795296B (en) | Testing device capable of measuring two paths of TTL level signals and method thereof | |
EP3436785B1 (en) | Utility meter | |
CN220171538U (en) | Isolation serial port circuit | |
US6864707B2 (en) | Universal input apparatus | |
CN220962405U (en) | Communication interface circuit and communication system | |
CN219124192U (en) | Photoelectric coupling communication module and transmitting circuit and receiving circuit thereof | |
CN110009898B (en) | Infrared receiving device and infrared receiving system | |
JPS58208883A (en) | Ic card | |
CN106023572A (en) | Remote water meter M-BUS communication chip and single-chip microcomputer connection structure | |
CN110795295B (en) | Improved USB-to-TTL testing device and method thereof | |
TWI427973B (en) | Flexray transmitter |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |