EP0759593A2 - Interface device between a RS232 port and an I2C bus and method using the same - Google Patents
Interface device between a RS232 port and an I2C bus and method using the same Download PDFInfo
- Publication number
- EP0759593A2 EP0759593A2 EP19960113379 EP96113379A EP0759593A2 EP 0759593 A2 EP0759593 A2 EP 0759593A2 EP 19960113379 EP19960113379 EP 19960113379 EP 96113379 A EP96113379 A EP 96113379A EP 0759593 A2 EP0759593 A2 EP 0759593A2
- Authority
- EP
- European Patent Office
- Prior art keywords
- line
- computer
- state
- handshake
- sda
- 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.)
- Withdrawn
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
- G06F13/4072—Drivers or receivers
Definitions
- the invention relates to a method and a device for a transfer of data between a computer having a RS-232 serial interface and an electric unit having an I 2 C serial interface with one data line and one clock line.
- Said electric unit can be an integrated teletext data decoder and said computer can be a conventional computer having software installed for gathering and showing the text data.
- a teletext data decoder is connected in parallel to an in/out unit through processing means.
- the system is intended to be connected through said in/out unit to a conventional personal computer through a RS-232C interface.
- Incoming data are processed to be adapted to such an interface in said processing unit comprising a processor (CPU) and memories (RAM and ROM).
- CPU processor
- RAM random access memory
- ROM read-only memory
- the teletext data decoder can also be connected to an I 2 C serial interface developed by Philips. A system of this type is shown with reference to Fig. 1(B).
- the teletext data decoder is connected either through an add on card having a video input to the computer, or through an external device connected through the serial interface (RS232-C) of the computer. Both types may also include a complete TV-receiver. In that case there is provided an antenna input on the card.
- driver programs in the computer for processing videotext data can communicate with the teletext data decoder through conventional driver programs.
- driver programs for communication through the serial connection (RS-232C) are used.
- the processing means that are required according to prior art technique for the connection of a teletext data decoder to a computer through the serial interface (RS-232C) of the computer result in a substantial increase in price because a larger number of components and a separate box or cover are required. Also the embodiment using a card will result in comparatively high costs and puts demand on further assembly work.
- An object of the invention is to provide a method and a device for the transfer of data in both directions between a computer having a RS-232 serial interface and an electric unit having an I 2 C serial interface including a data line (SDA) and a clock line (SCL), any required hardware being uncomplicated and cheap.
- the electric unit may e.g. be an integrated teletext data decoder.
- a transducer having very few components is connected between said electric unit and said serial output of the computer through a conventional signal buffer (line driver).
- a conventional signal buffer line driver.
- Only handshake lines of the serial interface (CTS, RTS, DTR) are used for the communication, and therefore a separate drive routine is required in the computer.
- Fig. 1(A) shows a prior art teletext system according to which an integrated teletext decoder 1 is connected to a processing unit through a bus line, said unit comprising a processor 2, a first memory ROM 3 and a second memory RAM 4.
- An input of the teletext data decoder 1 is connected to a video signal source.
- a communication circuit 5 (UART) and an input/output unit 6 allows communication to a conventional personal computer through a RS232C type serial interface.
- the personal computer is provided with a corresponding input/output unit 7 and a communication circuit 8.
- a conventional drive routine 9 is used for the communication as such through said serial interface.
- Fig. 1(B) shows an alternative prior art embodiment, the only difference being that an integrated teletext data decoder 1' is connected through a serial bus 10 (I 2 C) to a processor 2', the teletext data decoder 1' as well as the processor 2' being provided with serial interfaces.
- I 2 C serial bus 10
- the embodiment is identical to the embodiment shown in Fig. 1(A).
- a separate processing unit to provide the communication between the teletext data decoder and the computer.
- Said processing unit includes costly hardware but will allow use of conventional drive routine in the computer.
- Fig. 2 shows a basic block diagram of a preferred embodiment of a device according to the invention.
- An electric unit 1' formed in the embodiment shown by an integrated teletext data decoder, has a serial I 2 C interface and is connected through a serial I 2 C bus 10 and a transducer 11 to an input/output unit 6 having conventional signal buffers.
- On the computer side there is provided an input/output unit 7 and a communication circuit 8 as disclosed above.
- the input/output unit 7 is functionally connected to said communication circuit 8 through handshake lines 13 and not through data lines as in conventional solutions.
- a separate drive routine 14 is provided in the computer to accomplish anyhow the control of the teletext data decoder 1' and the transfer of data from it to an application software in the computer.
- Fig. 3 shows the basic embodiment of the transducer 11.
- the separate drive routines that are used to communicate through said transducer 11 are disclosed in the description below, reference being made to Fig. 4(A)-4(F).
- Two serial lines 10, SDA (data line) and SCL (clock line) of the teletext data decoder 1' are connected separately through resistors 34 to the power supply, in this case +5 Volt.
- the resistors are provided to pull said lines to the reference voltage by a so called “pull up” to make it possible to put said lines SDA and SCL into two different states, HIGH and LOW.
- Said lines SDA and SCL are also connected to signal ground through a first switch element 33 and a second switch element 33'.
- Said switch elements 33 and 33' are provided as FET-transistors in the shown embodiment. Also other types of switch elements can be used. Their function is to connect by a low resistance the lines of the decoder to ground in dependence of a control signal in a control input, the gate in the shown embodiment.
- the serial line SDA is connected also to an output of said transducer 11. The output is connected to a first handshake line CTS of the computer through handshake lines 12 of the input/output unit 6.
- a second handshake line RTS of the computer is connected to the control input of said first switch element 33 so as to transfer data signals and some types of control signals from the computer to the teletext data decoder 1' so as to put the SDA line into the state HIGH when the RTS signal of the computer is activated.
- This state is processed in a conventional way according to the internal logic of the teletext data decoder.
- the electric unit is assumed to receive clock signals from an external unit, in this case the computer. Therefore, the serial output of the computer DTR is connected through the input/output unit 6 to the control input of the second switch element 33' so as to put the SCL line into the state HIGH when the DTR line is activated.
- Fig. 4(A) shows in a flow diagram the process in the drive routine in the computer when a data transfer between the electric unit and the computer is initiated.
- This course of events means that the I 2 C unit is put into a state called START.
- the RTS output is made inactive which according to Fig. 3 means that the SDA line is put into the state LOW (corresponds to a logical 0).
- t 1 The length of t 1 is determined by specifications of the I 2 C interface. According to present specifications, t 1 is at least 5 ⁇ s, if the unit is operating in STANDARD MODE, and at least 1 ⁇ s, if the unit is operating in FAST MODE.
- t 2 is at least 4,5 ⁇ s if the unit is operating in STANDARD MODE, and at least 1,3 ⁇ s if the unit is operating in FAST MODE. After these steps the I 2 C unit is put into a start mode (START).
- Fig. 4(B) shows those steps the drive routine will pass through when 8 bits of data are transferred from the computer to the I 2 C unit 1'. These steps will be executed only after the steps according to Fig. 4(A) have been taken.
- the drive routine will control if the next bit to be transmitted from the computer is equal to zero (0). If this is not the case, i.e. the next bit is equal to one (1) the RTS output is made active in block 20 which means that the SDA line is put into the state HIGH (1). Then the routine will continue with block 21 as described below. However, if the next bit to be transmitted is equal to zero (0) the RTS output is made inactive in block 15 which means that the SDA line is put into the state LOW (0).
- t 3 is at least 0,5 ⁇ s if the device is operating in STANDARD MODE, and at least 0,2 ⁇ s if the device is operating in FAST MODE.
- t 4 is at least 5 ⁇ s, if the unit is operating in STANDARD MODE, and at least 1 ⁇ s, if the unit is operating in FAST MODE.
- Fig. 4(C) shows those steps executed by the drive routine when a confirmation is received from the I 2 C unit.
- a first step 20 the RTS output is made active which means that the SDA line is put into the state HIGH (1).
- block 21 there is a delay of the process during a time interval t 3 before the DTR output is made active which means that the SCL line is put into the state HIGH (1).
- the CTS line is active which is the case when the SDA line is in the state HIGH (1). If the CTS line is not active then according to block 26 a confirmation has been received. However, if the CTS line is active it is decided in block 27 that no confirmation has been received.
- Fig. 4(D) shows the process during transmission of a confirmation from the computer to said unit.
- the RTS output is made inactive which according to Fig. 3 means that the SDA line is put into the state LOW (corresponds to a logical 0).
- the DTR output is made active which means that the SCL line is put into the state HIGH (1).
- the DTR output is made inactive in block 17 (the same function as according to Fig. 4(A)), which means that the SCL line is put into the state LOW (0).
- the RTS output is made active in block 20 to put the SDA line into the state HIGH, and then the routine is ended by a delay t 2 in block 18.
- Fig. 4(E) shows the process during reception of one byte (8 bits) data from the I 2 C unit 1'.
- the RTS output is made active which means that the SDA line is put into the state HIGH (1).
- block 21 there is a delay of the process during the time interval t 3 , before the DTR output is made active which means that the SCL line is put into the state HIGH (1).
- block 25 there is checked in block 25 whether the CTS line is active which is the case when the SDA line is in the state HIGH (1). If the CTS line is not active it is determined by the block 28 that the received bit is a zero (0). Then the routine continues through the block 17 as described below. However, if the CTS line is active it is determined through block 29 that the bit received is a one (1).
- the DTR output is made inactive which according to Fig. 3 means that the SCL line is put into the state LOW (corresponds to a logic 0).
- block 18 there is a further delay of a time interval t 2 .
- Steps 21 to and including step 18 as described above are run through for each transferred bit, and the loop is ended by block 30. In said block it is checked if all, i.e. in the embodiment shown 8, bits have been received. If this is not the case the process will return through the loop to block 21 with a further delay. If all bits have been transferred the routine is stopped.
- FIG. 4(F) A last subroutine shown by flow diagrams appears in Fig. 4(F). This subroutine results in the I 2 C unit 1' being put into a state referred to as STOP.
- the RTS output is made inactive which according to Fig. 3 means that the SDA line is put into the state LOW (corresponds to a logic zero).
- the DTR output is made active which means that the SCL line is put into the state HIGH (2).
- the DTR output is made active which means that the SCL line is put into the state HIGH (1).
- t 5 is at least 4 ⁇ s, if the unit operates in STANDARD MODE, and at least 0,6 ⁇ s, if the device operates in FAST MODE.
- the delay t 6 is at least 5 ⁇ s, if the device operates in STANDARD MODE, and at least 1,5 ⁇ s, if the device operates in FAST MODE.
- the design of the transducer 11 having an I 2 C bus connection as a connection line to an I 2 C unit 1' and having a connection line through handshake lines CTS, RTS and DTR to a conventional personal computer will allow more communication than is apparent from the routines described above.
- By connecting further handshake lines it will be possible, e.g. to accomplish clock synchronization and separation of a plurality of control units by further drive routines.
- the hardware required according to the embodiment of Fig. 3 is preferably built into a cover, the external shape thereof being adapted to contact means for connecting to a video cassette recorder, TV or a computer.
- Suitable contact means are so called SCART contacts or DSUB connectors.
- the power supply required to the transducer is conveniently made from an available terminal of the computer.
- Contact means used for connecting the keyboard with the computer comprises contact elements for a voltage supply to the keyboard and may be appropriate to use.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Communication Control (AREA)
- Information Transfer Systems (AREA)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SE9502899A SE504810C2 (sv) | 1995-08-22 | 1995-08-22 | Sätt och anordning vid gränssnitt,I2C/RS-232 |
SE9502899 | 1995-08-22 |
Publications (1)
Publication Number | Publication Date |
---|---|
EP0759593A2 true EP0759593A2 (en) | 1997-02-26 |
Family
ID=20399237
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
EP19960113379 Withdrawn EP0759593A2 (en) | 1995-08-22 | 1996-08-21 | Interface device between a RS232 port and an I2C bus and method using the same |
Country Status (2)
Country | Link |
---|---|
EP (1) | EP0759593A2 (sv) |
SE (1) | SE504810C2 (sv) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6397278B1 (en) | 1998-09-04 | 2002-05-28 | Nokia Technology Gmbh | Bus construction |
US6463496B1 (en) | 1998-07-27 | 2002-10-08 | Richard Wolf Gmbh | Interface for an I2C bus |
EP1367821A2 (en) * | 2002-05-20 | 2003-12-03 | Samsung Electronics Co., Ltd. | Interconnecting television-related apparatuses |
EP1317140A3 (en) * | 2001-11-29 | 2004-04-28 | Pace Micro Technology PLC | Broadcast data receiver with access to a UART |
CN103617138A (zh) * | 2013-12-16 | 2014-03-05 | 深圳市兴威帆电子技术有限公司 | 多主机仲裁方法及多主机通信*** |
US20170168976A1 (en) * | 2015-12-09 | 2017-06-15 | Lockheed Martin Corporation | Inter-integrated circuit (i2c) bus extender |
-
1995
- 1995-08-22 SE SE9502899A patent/SE504810C2/sv not_active IP Right Cessation
-
1996
- 1996-08-21 EP EP19960113379 patent/EP0759593A2/en not_active Withdrawn
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6463496B1 (en) | 1998-07-27 | 2002-10-08 | Richard Wolf Gmbh | Interface for an I2C bus |
US6397278B1 (en) | 1998-09-04 | 2002-05-28 | Nokia Technology Gmbh | Bus construction |
EP1317140A3 (en) * | 2001-11-29 | 2004-04-28 | Pace Micro Technology PLC | Broadcast data receiver with access to a UART |
EP1367821A2 (en) * | 2002-05-20 | 2003-12-03 | Samsung Electronics Co., Ltd. | Interconnecting television-related apparatuses |
EP1367821A3 (en) * | 2002-05-20 | 2005-11-16 | Samsung Electronics Co., Ltd. | Interconnecting television-related apparatuses |
CN103617138A (zh) * | 2013-12-16 | 2014-03-05 | 深圳市兴威帆电子技术有限公司 | 多主机仲裁方法及多主机通信*** |
US20170168976A1 (en) * | 2015-12-09 | 2017-06-15 | Lockheed Martin Corporation | Inter-integrated circuit (i2c) bus extender |
US10635629B2 (en) * | 2015-12-09 | 2020-04-28 | Lockheed Martin Corporation | Inter-integrated circuit (I2C) bus extender |
Also Published As
Publication number | Publication date |
---|---|
SE9502899D0 (sv) | 1995-08-22 |
SE504810C2 (sv) | 1997-04-28 |
SE9502899L (sv) | 1997-02-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CA1287905C (en) | Method and apparatus for detecting a rate of data transmission | |
US5555510A (en) | Automatic computer card insertion and removal algorithm | |
US5696949A (en) | System for PCI slots expansion using asynchronous PCI-to-PCI bridge with clock generator for providing clock signal to the expansion mother board and expansion side of bridge | |
EP0071747B1 (en) | Self-pacing serial keyboard interface for data processing system | |
EP0522764B1 (en) | Multiplexing scheme for modem control signals | |
US5852725A (en) | PCI/ISA bus single board computer card/CPU card and backplane using eisa bus connectors and eisa bus slots | |
EP0258872B1 (en) | Serial data transfer system | |
US4156277A (en) | Access request mechanism for a serial data input/output system | |
US20060143356A1 (en) | Methods and apparatus for providing automatic high speed data connection in portable device | |
US7822076B2 (en) | Apparatus for multiplexing signals through I/O pins | |
US7062584B1 (en) | Method and apparatus for supporting two different types of integrated circuit cards with a single connector | |
EP1548607B1 (en) | Method of providing a microcontroller having an N-bit data bus width and a number of pins being equal or less than N | |
EP1181638B1 (en) | Method and apparatus for maintaining load balance on a graphics bus when an upgrade device is installed | |
US5577201A (en) | Diagnostic protocol and display system | |
EP0759593A2 (en) | Interface device between a RS232 port and an I2C bus and method using the same | |
KR920008450B1 (ko) | 동기 및 비동기 데이타 전송을 검출하기 위한 장치 및 방법 | |
US6065079A (en) | Apparatus for switching a bus power line to a peripheral device to ground in response to a signal indicating single ended configuration of the bus | |
JPH0567028A (ja) | 情報処理装置 | |
WO2001006443A1 (en) | Method and apparatus for supporting two different types of integrated circuit cards with a single connector | |
US6919878B2 (en) | Keyboard/mouse switching controller | |
US20020109675A1 (en) | Keyboard incorporating memory card reading device | |
US4092714A (en) | Parallel command-status interface through multiplexed serial link | |
CN1766864A (zh) | 具有通用串行总线连接的计算器装置 | |
US5218683A (en) | Method and apparatus for concealing the enablement of a device by modifying a status word | |
JPS6227409B2 (sv) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
AK | Designated contracting states |
Kind code of ref document: A2 Designated state(s): AT BE CH DE DK FI GB IE IT LI NL |
|
STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE APPLICATION IS DEEMED TO BE WITHDRAWN |
|
18D | Application deemed to be withdrawn |
Effective date: 19980901 |