Summary of the invention
The technical matters that the present invention will solve is to provide a kind of interface control circuit, can reduce costs.
According to an aspect of the present invention, a kind of interface control circuit is provided, comprise: differential signal modulator, be connected with first group of pin of interface, for receiving the differential signal of first group of pin from interface, differential signal is converted to current-modulation (current modulation) to drive first group of luminescent device; Processor, be connected with second group of pin of interface, when being in non-receptive state for the link corresponding when second group of pin with described interface, receiving the TTL signal of second group of pin from interface, is that coded data packet is to drive second group of luminescent device by TTL signal multiplexing; Processor, when being also in non-sent state for the link corresponding when second group of pin with described interface, receives the electric signal from light receiving device part, is decoded by electric signal and be demultiplexing as TTL signal, is sent to second group of pin of interface.
According to an embodiment of interface control circuit of the present invention, also comprise: the MCU be connected with differential signal modulator, for the setting of the working temperature adjustment differential signal modulator based on first group of luminescent device.
According to an embodiment of interface control circuit of the present invention, also comprise the amplifier be connected with processor with light receiving device part respectively.
According to an embodiment of interface control circuit of the present invention, processor is also for the delay between keeping from the TTL signal of second group of pin of interface.
According to an embodiment of interface control circuit of the present invention, first group of pin of interface and first group of luminescent device one_to_one corresponding, second group of luminescent device only includes a luminescent device.
According to the interface control circuit that the embodiment of the present invention provides, by differential signal modulator, the differential signal from interface is processed, first group of luminescent device is sent to after being converted to electric current, be packet rear drive second group of luminescent device by processor to the TTL signal multiplexing from interface, by separating parallel processing to differential signal and TTL signal, decrease the requirement to processor and differential signal modulator processing power, thus the cost of processor and differential signal modulator can be reduced.
According to a further aspect in the invention, a kind of interface control circuit is also provided, comprise: differential signal modulator, be connected with first group of pin of interface, for receiving the photocurrent (photo current) from first group of light receiving device part, photocurrent is converted to differential signal, is sent to first group of pin of interface; Processor, be connected with second group of pin of interface, when being in non-sent state for the link corresponding when second group of pin with described interface, receive the electric signal from second group of light receiving device part, electric signal decoded and is demultiplexing as TTL signal, TTL signal being sent to second group of pin of interface; Processor, when being also in non-receptive state for the link corresponding when second group of pin with described interface, receives the TTL signal of second group of pin from interface, is that coded data packet is to drive luminescent device by TTL signal multiplexing.
According to an embodiment of interface control circuit of the present invention, also comprise the amplifier be connected with processor with luminescent device respectively.
According to an embodiment of interface control circuit of the present invention, processor is also for the delay between keeping from the TTL signal of second group of pin of interface.
According to an embodiment of interface control circuit of the present invention, first group of pin of interface and first group of light receiving device part one_to_one corresponding, second group of light receiving device part only includes a light receiving device part.
The interface control circuit that the embodiment of the present invention provides, differential signal is converted to from first group of light receiving device part photocurrent by differential signal modulator, send to first group of pin, by processor to the electric signal from second group of light receiving device part, electric signal is decoded and is demultiplexing as TTL signal and be sent to interface, by separating parallel processing to differential signal and TTL signal, decrease the requirement to processor and differential signal modulator processing power, thus the cost of processor and differential signal modulator can be reduced.
According to an aspect of the present invention, also provide a kind of all-fiber joint, comprise the above-mentioned interface control circuit that interface is connected with interface.
According to an aspect of the present invention, a kind of all-fiber transmission line is also provided, comprises above-mentioned joint.
According to an aspect of the present invention, a kind of interface control method is provided, comprise: the differential signal receiving first group of pin from interface, by differential signal modulator, differential signal is converted to current-modulation (current modulation) to drive first group of luminescent device; When the link corresponding when second group of pin with interface is in non-receptive state, receiving the TTL signal of second group of pin from interface, is that coded data packet is to drive second group of luminescent device by processor by described TTL signal multiplexing; When the link corresponding when second group of pin with interface is in non-sent state, receives the electric signal from light receiving device part, by processor, described electric signal is demultiplexing as TTL signal, be sent to second group of pin of described interface.
According to an embodiment of interface control method of the present invention, the method also comprises: based on the setting of the working temperature adjustment differential signal modulator of first group of luminescent device; And/or the state of link prejudged by processor before sending signal; And/or processor is also for the delay between keeping from the TTL signal of second group of pin of interface.
According to an aspect of the present invention, a kind of interface control method is provided, comprise: receive the photocurrent (photo current) from first group of light receiving device part, by differential signal modulator, photocurrent is converted to differential signal, be sent to first group of pin of interface; When the link corresponding when second group of pin with interface is in non-sent state, receive the electric signal from second group of light receiving device part, by processor electric signal decoded and be demultiplexing as TTL signal, TTL signal being sent to second group of pin of interface; When the link corresponding when second group of pin with interface is in non-receptive state, receiving the TTL signal of second group of pin from interface, is that coded data packet is to drive luminescent device by processor by TTL signal multiplexing.
According to an embodiment of interface control method of the present invention, the method also comprises: processor is also for the delay between keeping from the TTL signal of second group of pin of interface.
Description of the invention provides in order to example with for the purpose of describing, and is not exhaustively or limit the invention to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.Selecting and describing embodiment is in order to principle of the present invention and practical application are better described, and enables those of ordinary skill in the art understand the present invention thus design the various embodiments with various amendment being suitable for special-purpose.
Concrete Implementation Modes
With reference to the accompanying drawings the present invention is described more fully, exemplary embodiment of the present invention is wherein described.
Fig. 1 illustrates the structural drawing of an embodiment of transmitting terminal interface control circuit of the present invention.As shown in Figure 1, this interface control circuit 100 comprises processor 101 and differential signal modulator 102.Wherein, differential signal modulator 102 is connected with first group of pin of interface 11, for receiving the differential signal of first group of pin from interface 11, differential signal is converted to current-modulation (current modulation) to drive first group of luminescent device 12.Processor 101 is connected with second group of pin of interface 11, for receiving the TTL signal of second group of pin from interface 11, is that coded data packet is to drive second group of luminescent device 12 by TTL signal multiplexing; Electric signal also for decoding from the electric signal of light receiving device part 13, is demultiplexing as TTL signal by processor 101, is sent to second group of pin of interface 11.Alternatively, interface control circuit 100 also comprises amplifier 103, is connected respectively with light receiving device part 13 with processor 101, for amplifying the electric signal from light receiving device part 13.
In above-described embodiment, by differential signal modulator, the differential signal from interface is processed, first group of luminescent device is sent to after being converted to electric current, be packet rear drive second group of luminescent device by processor to the TTL signal multiplexing from interface, by separating parallel processing to differential signal and TTL signal, efficiency and cost are taken into account, and make processor and differential signal modulator need data to be processed relative single, decrease the requirement to processor and differential signal modulator processing power, thus cost and the volume of processor and differential signal modulator can be reduced.
Fig. 2 illustrates the structural drawing of another embodiment of transmitting terminal interface control circuit of the present invention.In fig. 2, laser instrument 22 and PD 23 are respectively as the example of luminescent device and light receiving device part.As shown in Figure 2, this interface control circuit 200 comprises processor 201, differential signal modulator 202, amplifier 203, MCU 204.Processor 201, differential signal modulator 202 and amplifier 203 can see the descriptions of assembly corresponding in Fig. 1, for being not described in detail in this for purpose of brevity.MCU 204 is connected with differential signal modulator, based on the setting of the working temperature adjustment differential signal modulator 202 of first group of luminescent device.Alternatively, interface control circuit 200 also comprises clock 205, for processor 201 provides clock signal.Can pass through oscillator (oscillator) for processor 201 provides clock signal.In addition, interface control circuit can also comprise power supply (not shown) chip.Such as, power supply chip is provided in the output of 3.3V voltage 300mA, and after 250ms burning voltage, the ready pin of power supply (power good pin) is drawn high, and notification processor can be started working, and this contributes to the correct work of logical circuit.Oscillator can provide clock for logical circuit, and oscillator such as 20 is to 100MHz work.
In above-described embodiment, the setting adjusting differential signal modulator by MCU, makes luminescent device to work under optimal conditions, thus improves the accuracy rate of data transmission.
Fig. 3 illustrates the structural drawing of an embodiment of receiving end interface control circuit of the present invention.As shown in Figure 3, this interface control circuit 300 comprises processor 301 and differential signal modulator 302.Wherein, differential signal modulator 302 is connected with first group of pin of interface 31, for receiving the photocurrent (photo current) from first group of light receiving device part (such as PD) 32, photocurrent being converted to differential signal, being sent to first group of pin of interface 31; Processor 301 is connected with second group of pin of interface, for receiving the electric signal from second group of light receiving device part (such as PD) 32, being decoded by electric signal and being demultiplexing as TTL signal, TTL signal being sent to second group of pin of interface 31; TTL signal multiplexing, also for receiving the TTL signal of second group of pin from interface 31, is that coded data packet is to drive luminescent device 33 by processor 301.Alternatively, interface control circuit 300 also comprises amplifier 303, is connected respectively with luminescent device 33 with processor 301, for amplifying the signal carrying out self processor 301.
In above-described embodiment, differential signal is converted to from first group of light receiving device part photocurrent by differential signal modulator, send to first group of pin, by processor to the electric signal from second group of light receiving device part, electric signal is decoded and is demultiplexing as TTL signal and be sent to interface, by separating parallel processing to differential signal and TTL signal, efficiency and cost are taken into account, and make processor and differential signal modulator need data to be processed relative single, decrease the requirement to processor and differential signal modulator processing power, thus cost and the volume of processor and differential signal modulator can be reduced.
Fig. 4 illustrates the structural drawing of another embodiment of receiving end interface control circuit of the present invention.In the diagram, laser instrument 43 and PD 42 are respectively as the example of luminescent device and light receiving device part.As shown in Figure 4, this interface control circuit 400 comprises processor 401, differential signal modulator 402, amplifier 403 and clock 405.Processor 401, differential signal modulator 402 and amplifier 403 can see the descriptions of assembly corresponding in Fig. 3, for being not described in detail in this for purpose of brevity.Clock 405 provides clock signal for processor 401.
In the embodiment of Fig. 1-Fig. 4, interface is such as HDMI, DVI interface or display port (Display Port).Light receiving device part is such as PD etc.Luminescent device is such as laser instrument, LED, VCSEL (Vertical-Cavity Surface-Emitter Laser, vertical-cavity surface-emitting body laser) etc.Differential encoder is such as amplifier or laser driver.Processor can be realized by microchip or DSP.
Below by a concrete example, realization of the present invention is described.
Fig. 5 illustrates the schematic diagram of pin in the example of HDMI.As shown in Figure 5, this HDMI comprises pin one-19.The signal that following table 1 shows each pin distributes:
Table 1
Except VDD-to-VSS line signal (corresponding to pin one 8 and 17), the signal that these pins transmit is divided into the signal of two types: a kind of is the signal of difference form, and be called differential signal, one is Transistor-Transistor Logic level signal, is called TTL signal.TTL signal comprises two-way signaling.According to the difference of the signal form transmitted, these pins are divided into two groups, and first group of pin is used for transmitting differential signal, comprises pin one, 3,4,6,7,9,10 and 12; Second group of pin is used for transmitting TTL signal, comprises pin one 3,14,15,16,17,19.
Transmitting terminal interface control circuit in Fig. 2 is connected with (retrofit) HDMI compatible forward shown in Fig. 5, by HDMI, all electric signal is connected to PCB.Amplifier 202 is connected with 12 with the pin one, 3,4,6,7,9,10 of interface 21, the differential signal of input is converted to current-modulation (current modulation) and drives corresponding first group of laser instrument 22 (such as, the corresponding road laser instrument of a road differential signal).Laser instrument 22 Output optical power, the light intensity of output changes according to input signal.By optical fiber align laser instrument with the optically-coupled obtained.Usually, the performance of laser instrument 22 and temperature correlation, MCU 204 is connected with amplifier 202, and the working temperature adjustment according to laser instrument is arranged.Such as, as T=25C, drive current is set to 5mA; As T=35C, drive current is set to 5.5mA; As T=45C, drive current is set to 6.5mA etc.
Processor 201 is connected with the pin one 3,14,15,16,17,19 of interface 21, processor 201 receives TTL signal by pin, the state of each signal determined by processor 201, be such as transmission, receive or tri-state (tri-state) pattern, be coded data packet by all transmission signal multiplexings, in packet, data will be used for driving second group of laser instrument 22.Such as, second group of laser instrument 22 only comprises a laser instrument.
In addition, packet from receiver side (RX SIDE) is converted to electric signal by photodetector (photo detector) 23, electric signal is sent to processor 201 after amplifier 203 processes, processor 201 is decoded these electric signal, then electric signal is demultiplexing as TTL signal, reduce their original states, analyze the transmission of TTL signal, reception or tri-state (tri-state) pattern.Then each signal is sent to their corresponding pins distributed.
TTL two-way signaling needs with the process of synchronous pattern (timely manner) to avoid vibrate (oscillation) or obliterated data.When connection is in open (open) or tri-state (tri-state) pattern, the right sending data can be stated in every side of transmitting terminal and receiving end.Such as, if the pin one 3 of TX end is wanted to send data, first the state of the pin one 3 of receiver side must be checked at the processor of TX end, judge whether the pin one 3 of receiver side is in sending mode, if, then refuse sending request of the pin one 3 of TX end, if not, then the pin one 3 of TX end can send data.
Pin one 5 and pin one 6 have fixed delay requirement.If processor 201 finds that the time migration (time shift) between pin one 5 and pin one 6 exceedes specification (specs), processor 201 will stop that (hold up) changes until time migration reaches within desired value.
Receiving end interface control circuit in Fig. 4 is connected with the HDMI shown in Fig. 5, by HDMI, all electric signal is connected to PCB.Differential signal modulator 402 is connected with 12 with first group of pin one, 3,4,6,7,9,10 of interface 41.Differential signal arrives the PD 42 of receiving end via optical fiber from transmitting terminal, photo-signal (photo current signal) is converted to differential signal by transimpedance amplifier (Transimpedance amplifier) 402, is then sent to the pin of interface 41.
Processor 401 is connected with second group of pin one 3,14,15,16,17,19 of interface 41, processor 401 receives TTL signal by pin one 3,14,15,16,17,19, the state of each signal determined by processor 401, be such as transmission, receive or tri-state (tri-state) pattern, be coded data packet by all transmission signal multiplexings, send to laser instrument 43 through amplifier 403, in coded data packet, data will be used for the laser instrument 43 driving receiving end unique.
In addition, packet from transmitting terminal (TX SIDE) is converted to electric signal by photodetector (photo detector) 42, electric signal arrives processor 401, processor 401 is decoded these electric signal, then electric signal is demultiplexing as TTL signal, reduce their original states, analyze the transmission of TTL signal, reception or tri-state (tri-state) pattern.Then each signal is sent to their corresponding pins distributed.
TTL two-way signaling needs (timely manner) process in time to avoid vibrate (oscillation) or obliterated data.When connection is in open (open) or tri-state (tri-state) pattern, the right sending data can be stated in every side of transmitting terminal and receiving end.Such as, if the pin one 3 of RX end is wanted to send data, first the state of the pin one 3 of transmitter side must be checked at the processor of RX end, judge whether the pin one 3 of transmitter side is in sending mode, if, then refuse sending request of the pin one 3 of RX end, if not, then the pin one 3 of RX end can send data.
Pin one 5 and the pin one 6 of interface 41 have fixed delay requirement.If processor 401 finds that the time migration (time shift) between pin one 5 and pin one 6 exceedes specification (specs), processor 401 will stop that (hold up) changes until time migration reaches within desired value.
It is noted that the serial data that sent by optical fiber is by along with the time is around its frequency drift (drift).Receiving end incites somebody to action obliterated data every now and then, and this needs to be avoided in actual applications.By phase offset scheme (the phase shift scheme) system that is applied to recover data at any time.
Fig. 6 illustrates the process flow diagram of an embodiment of interface control method of the present invention.
As shown in Figure 6, in step 602, receive the differential signal of first group of pin from interface, by differential signal modulator, differential signal is converted to current-modulation (current modulation) to drive first group of luminescent device.
In step 604, the signal received from second group of pin sends request, judge the state of the link corresponding with second group of pin of interface, when the link that second group of pin with interface is corresponding is in non-receptive state (as sent state, or time tri-state), receiving from the TTL signal of second group of pin of interface, is that coded data packet is to drive second group of luminescent device by processor by TTL signal multiplexing.
In step 606, the electric signal from light receiving device part is received by processor, judge the state of the link corresponding with second group of pin of interface, when the link corresponding when second group of pin with interface is in non-sent state (accepting state or tri-state), electric signal is demultiplexing as TTL signal, is sent to second group of pin of interface.
According to one embodiment of present invention, the method is also based on the setting of the working temperature adjustment differential signal modulator of first group of luminescent device.The state of link prejudged by processor before sending signal; Processor keep from second group of pin of interface TTL signal between delay.
Fig. 7 illustrates the process flow diagram of another embodiment of interface control method of the present invention.
As shown in Figure 7, in step 702, receive the photocurrent (photo current) from first group of light receiving device part, by differential signal modulator, photocurrent is converted to differential signal, be sent to first group of pin of interface;
In step 704, when the link corresponding when second group of pin with interface is in non-sent state, receive from the electric signal of second group of light receiving device part, by processor electric signal decoded and be demultiplexing as TTL signal, TTL signal being sent to second group of pin of interface;
In step 706, receiving the TTL signal of second group of pin from interface, when the link corresponding when second group of pin with interface is in non-receptive state, is that coded data packet is to drive luminescent device by processor by TTL signal multiplexing.
According to one embodiment of present invention, the state of link prejudged before signal by processor sending, and processor is also for the delay between keeping from the TTL signal of second group of pin of interface.
The embodiment of Fig. 6 and Fig. 7 can see the description of the embodiment of Fig. 1 to Fig. 5 and application examples, for for purpose of brevity, is not described in detail at this.
TX holds exemplary circuit to describe:
Fig. 8 illustrates the example of logic chip (processor).Multiple object can be completed by this logic processor.For two-way pin one 3.3 states of monitoring pin one 3: send, receive or tri-state (tri-state) pattern.When the pattern of pin changes, processor suspends (hold up) behavior, checks that RX holds the state of pin one 3 simultaneously.Keep lasting message exchange at the processor of TX end and RX end, the information of exchange comprises all signal conditions.Once state is identified, then distribute to sending signal the transmission that packet is used for below.The identical logic of experience is identified their pattern by every other pin respectively.
After the state identifying all signals, the packet of transmission arrives laser channeling, and the packet of reception arrives each pin belonging to them.
The possibility of loss of data is often there is at receiving end.Consider each packet (data pack) bit-errors, can application error correcting method.Such as, calculate to adapt to processor little like this and to simplify by optimizing forward error correction code.
In serial communication, due to the time drift at two ends, clock and data recovery is a challenge normally.Market there is a lot of standard CD R chip.Compare with the system of the embodiment of the present invention, each standard CD R chip expense is higher and consume more energy.The phase offset of the processor inspection input data of the embodiment of the present invention, and calculate movement tendency at that time, once skew exceedes threshold value, receiving end by its timing of adjustment to adapt to (accommodate) this drift.The method requires that the centre frequency of two ends clock is within 1000ppm.100ppm is the standard of industrial oscillator, and therefore the method can use on a large scale.
In the use procedure of this system, may there is the situation that side does not use, opposite side must be known this situation and the state of all signals is set to connect disconnection.
Pin one 5 and the conditional delay specification of pin one 6 tool, sometimes actual system can not defer to this rule.Processor as monitor work, if find mistake it by fix timing.
Fig. 9 illustrates the circuit diagram of the example of MCU.The electric current that this MCU causes (draw) little on circuit boards.The setting of its adjustment laser driver.Several factor can change the performance of laser instrument, such as temperature and lighting time.According to working temperature, MCU adjusts laser instrument and arranges to make system work with optimal conditions always.
Figure 10 illustrates differential signal, and wherein 4 pairs of differential signals are connected to laser driver.
Figure 11 illustrates the circuit diagram of the example of amplifier.Photocurrent is converted to TTL signal and assembles data for the treatment of device by this amplifier.
Figure 12 illustrates pullup resistor and HDMI connector.At the pullup resistor that HDMI standard-required is such.
Figure 13 illustrates the circuit diagram of the example of laser driver.Laser driver is also referred to as current amplifier.For semiconductor laser, the electric current determined makes laser instrument work in the level that it is best.In addition, built on stilts (overhead) power should be low to limit heating problem.
The circuit of RX end is similar with receiving end.MCU is not needed at RX end.The processor of RX end realizes holding similar function with TX.Because present most of TV is not from the power supply of HDMI, so provide an external power source.