WO2009110123A1 - 非同期型における送受信装置間の同期方法及び送受信装置 - Google Patents

非同期型における送受信装置間の同期方法及び送受信装置 Download PDF

Info

Publication number
WO2009110123A1
WO2009110123A1 PCT/JP2008/066128 JP2008066128W WO2009110123A1 WO 2009110123 A1 WO2009110123 A1 WO 2009110123A1 JP 2008066128 W JP2008066128 W JP 2008066128W WO 2009110123 A1 WO2009110123 A1 WO 2009110123A1
Authority
WO
WIPO (PCT)
Prior art keywords
pulse
signal
output
data
clock pulse
Prior art date
Application number
PCT/JP2008/066128
Other languages
English (en)
French (fr)
Inventor
正勝 栗田
Original Assignee
Kurita Masakatsu
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 Kurita Masakatsu filed Critical Kurita Masakatsu
Publication of WO2009110123A1 publication Critical patent/WO2009110123A1/ja

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/02Speed or phase control by the received code signals, the signals containing no special synchronisation information
    • H04L7/033Speed or phase control by the received code signals, the signals containing no special synchronisation information using the transitions of the received signal to control the phase of the synchronising-signal-generating means, e.g. using a phase-locked loop

Definitions

  • Patent Document 1 in two devices (A system and B system) having the same frequency in the transmission unit and the reception unit, clocks are separately generated at the same frequency division ratio. There is disclosed a synchronization method in which a clock with inverted pulses is prepared and the clock pulse or the inverted clock pulse is used to select whether to synchronize.
  • an A-system clock signal b and a B-system clock signal c having the same frequency as the A-system clock signal b are input to the exclusive OR circuit.
  • B system clock signal c are out of phase with each other, it is determined, and a synchronization signal for shifting A system data a input to the register is used as a B system clock signal and this B system clock.
  • the clock signal obtained by inverting the signal is switched.
  • the transmitter / receiver there is a photoelectric sensor for detecting an article conveyed by position detection or a conveyor.
  • This photoelectric sensor is roughly divided into a synchronous photoelectric sensor and an asynchronous photoelectric sensor.
  • a normal phase clock and a reverse phase clock are prepared in the receiving device, and it is determined which clock the data signal is taken in based on the data signal and the normal phase clock and the reverse phase clock.
  • the configuration is disclosed in Patent Document 2 shown below.
  • Patent Document 2 two paths are generated for data signals received by the normal phase clock and the reverse phase clock, and one of the data signals is selected by the selector circuit and sent to the DFF circuit. Then, it is detected whether or not the edge of the positive phase clock or the negative phase clock hits the change point of the data signal, and when the detection result does not hit the edge of the positive phase clock, the data signal is taken out by the positive phase clock, When the change point of the data signal hits the edge of the positive phase clock, the data signal is taken out with the reverse phase clock.When the edge of the negative phase clock hits the change point of the data signal, the data signal is sent with the positive phase clock. It is configured to take out.
  • Patent Document 3 When the technique described in Patent Document 3 is applied to a synchronization method between asynchronous transmission / reception devices and a similar asynchronous transmission / reception device instead of a photoelectric sensor, the data signal to be handled is “1”. Is a data pulse signal sequence composed of a combination of “0” and “0” as a bit signal, there is a problem that the technique of Patent Document 3 cannot be used as it is. .
  • the present invention has been provided in view of the above-mentioned problems, and provides a synchronization method and a transmission / reception apparatus between asynchronous transmission / reception apparatuses having at least the following objects.
  • (1) Even in the case of an asynchronous transmission / reception device having an oscillation circuit on each of the transmission device side and the reception device side, the phase of the clock pulse on the reception device side advances with respect to the data signal from the transmission device side, Even if there is a delay, make sure that the data signal can be received correctly without malfunction.
  • the output format is output from a D-type flip-flop or JK-type flip-flop. Capturing the output of the network makes circuit processing easier. (4) It is possible to easily perform mutual transmission / reception between existing independent systems using the transmission / reception apparatus of the present invention.
  • a data receiving means for outputting a level, and a waveform corresponding to the bit data of “0” outputs an L level for one period; an output from the data receiving means; an output from the synchronization signal pulse generating circuit 29; And an AND circuit G10 that outputs a pulse signal sequence having the same form as the data pulse signal sequence.
  • the synchronization signal pulse generating circuit 29 First receiving means 31 for synchronously receiving the data pulse signal sequence from the transmission circuit 14 of the transmission device 1 via the reception circuit 21 by the clock pulse Cj from the second oscillator 27 of the reception device 2; , Second receiving means 32 for synchronously receiving the data pulse signal train from the transmission circuit 14 of the transmission device 1 via the reception circuit 21 by the inverted clock pulse BarCj from the second oscillator 27 of the reception device 2.
  • a clock pulse output from the synchronizing signal pulse generating circuit 29 is set as an inverted clock from the synchronizing signal pulse generating circuit 29 so as to be a clock pulse Cj.
  • the clock pulse output from the synchronization signal pulse generating circuit 29 is set as an inverted clock pulse BarCj.
  • a blocking means for blocking the output of the clock pulse Cj from the synchronization signal pulse generating circuit 29,
  • the first oscillator 11 and the clock pulse of the first oscillator 11 and the clock pulse of the second oscillator 27 have the same period and the first oscillator 11 and the data pulse signal sequence from the transmission circuit 14 can be received.
  • the duty ratio of both clock pulses of the second oscillator 27 and the duty ratio of the data pulse signal train are each set to 50%, When the data pulse signal train is received by the first receiving means 31 by the blocking means provided in the synchronizing signal pulse generating circuit 29, the clock pulse output from the synchronizing signal pulse generating circuit 29 is changed to a clock pulse.
  • a transmission apparatus 1 for transmitting a data pulse signal sequence including a start signal PS, a data signal PD, and an end signal PE;
  • an asynchronous transmission / reception apparatus comprising a reception apparatus 2 that receives a data pulse signal sequence from the transmission apparatus 1, outputs the received data pulse signal string, and controls an external apparatus based on the data signal PD
  • the transmitter 1 is A first oscillator 11 that outputs a clock pulse as a synchronization signal, a digital data signal generation circuit 12 that generates the data pulse signal sequence in synchronization with the clock pulse from the first oscillator 11, and the digital data signal
  • a transmission circuit 14 for transmitting the data pulse signal sequence output from the generation circuit 12 to the reception device 2 side
  • the receiver 2 is A receiving circuit 21 that receives a data pulse signal sequence from the transmitting circuit 14 of the transmitting apparatus 1; a second oscillator 27 that outputs a clock pulse as a synchronizing
  • a data receiving means for outputting a level, and a waveform corresponding to the bit data of “0” outputs an L level for one period;
  • the synchronization signal pulse generating circuit 29 First receiving means 31 for synchronously receiving the data pulse signal sequence from the transmission circuit 14 of the transmission device 1 via the reception circuit 21 by the clock pulse Cj from the second oscillator 27 of the reception device 2;
  • Second receiving means 32 for synchronously receiving the data pulse signal train from the transmission circuit 14 of the transmission device 1 via the reception circuit 21 by the inverted clock pulse BarCj from the second oscillator 27 of the reception device 2.
  • a clock pulse output from the synchronizing signal pulse generating circuit 29 is set as an inverted clock from the synchronizing signal pulse generating circuit 29 so as to be a clock pulse Cj.
  • the clock pulse output from the synchronization signal pulse generating circuit 29 is set as an inverted clock pulse BarCj.
  • the transmitter 1 is A first oscillator 11 that outputs a clock pulse as a synchronization signal, a digital data signal generation circuit 12 that generates the data pulse signal sequence in synchronization with the clock pulse from the first oscillator 11, and the digital data signal A transmission circuit 14 for transmitting the data pulse signal sequence output from the generation circuit 12 to the reception device 2 side
  • the receiver 2 is A receiving circuit 21 that receives a data pulse signal sequence from the transmitting circuit 14 of the transmitting apparatus 1; a second oscillator 27 that outputs a clock pulse as a synchronizing signal; and a clock pulse Cj from the second oscillator 27 or An inverted clock pulse BarCj obtained by inverting the clock pulse Cj is output, and the clock signal Cj or the inverted clock pulse BarCj is output as a clock pulse for generating the original pulse signal sequence corresponding to the data pulse signal sequence.
  • a data receiving means for outputting a level, and a waveform corresponding to the bit data of “0” outputs an L level for one period; an output from the data receiving means; an output from the synchronization signal pulse generating circuit 29; And an AND circuit G10 that outputs a pulse signal sequence having the same form as the data pulse signal sequence.
  • the first oscillator 11 and the clock pulse of the first oscillator 11 and the clock pulse of the second oscillator 27 have the same period, and the first oscillator 11 and the data pulse signal sequence from the transmission circuit 14 can be received.
  • a duty ratio setting means for setting the duty ratio of both clock pulses of the second oscillator 27 and the duty ratio of the data pulse signal sequence to 50%, respectively;
  • the synchronization signal pulse generating circuit 29 is First receiving means 31 for synchronously receiving the data pulse signal sequence from the transmission circuit 14 of the transmission device 1 via the reception circuit 21 by the clock pulse Cj from the second oscillator 27 of the reception device 2; , Second receiving means 32 for synchronously receiving the data pulse signal train from the transmission circuit 14 of the transmission device 1 via the reception circuit 21 by the inverted clock pulse BarCj from the second oscillator 27 of the reception device 2.
  • the clock pulse Cj is output in synchronization with the logical product at the H level
  • the inverted clock pulse BarCj outputted from the synchronizing signal pulse generating circuit 29 and the output from the data receiving means are sent to the AND circuit G10.
  • the inverted clock pulse BarCj is output in synchronization with the logical product at the H level.
  • the asynchronous transmission / reception apparatus wherein the clock pulse Cj or the inverted clock pulse BarCj output from the synchronization signal pulse generation circuit 29 is used as a synchronization signal for an external apparatus on the receiving apparatus 2 side.
  • a terminal 41 is provided so that it can be used.
  • the transmitter 1 is A first oscillator 11 that outputs a clock pulse as a synchronization signal, a digital data signal generation circuit 12 that generates the data pulse signal sequence in synchronization with the clock pulse from the first oscillator 11, and the digital data signal A transmission circuit 14 for transmitting the data pulse signal sequence output from the generation circuit 12 to the reception device 2 side
  • the receiver 2 is A receiving circuit 21 that receives a data pulse signal sequence from the transmitting circuit 14 of the transmitting apparatus 1; a second oscillator 27 that outputs a clock pulse as a synchronizing signal; and a clock pulse Cj from the second oscillator 27 or An inverted clock pulse BarCj obtained by inverting the clock pulse Cj is output, and the clock signal Cj or the inverted clock pulse BarCj is output as a clock pulse for generating the original pulse signal sequence corresponding to the data pulse signal sequence.
  • a data receiving means for outputting a level, and a waveform corresponding to the bit data of “0” outputs an L level for one period;
  • the first oscillator 11 and the clock pulse of the first oscillator 11 and the clock pulse of the second oscillator 27 have the same period, and the first oscillator 11 and the data pulse signal sequence from the transmission circuit 14 can be received.
  • a duty ratio setting means for setting the duty ratio of both clock pulses of the second oscillator 27 and the duty ratio of the data pulse signal sequence to 50%, respectively;
  • the synchronization signal pulse generating circuit 29 is First receiving means 31 for synchronously receiving the data pulse signal sequence from the transmission circuit 14 of the transmission device 1 via the reception circuit 21 by the clock pulse Cj from the second oscillator 27 of the reception device 2; , Second receiving means 32 for synchronously receiving the data pulse signal train from the transmission circuit 14 of the transmission device 1 via the reception circuit 21 by the inverted clock pulse BarCj from the second oscillator 27 of the reception device 2.
  • a clock pulse output from the synchronizing signal pulse generating circuit 29 is set as an inverted clock from the synchronizing signal pulse generating circuit 29 so as to be a clock pulse Cj.
  • the clock pulse output from the synchronization signal pulse generating circuit 29 is set as an inverted clock pulse BarCj.
  • the asynchronous transmission / reception apparatus wherein the data reception unit is configured such that the first reception unit 31 includes a first JK flip-flop 31 and the second reception unit 32 includes a second reception unit 32. And an OR gate G9 that receives both the output signal from the first JK flip-flop 31 and the output signal from the second JK flip-flop 32, The output of the OR gate G9 is a signal for controlling an external device.
  • the asynchronous transmission / reception apparatus wherein the first reception unit 31 is configured by a first flip-flop 31 that outputs a set output in synchronization with the data pulse signal sequence by the clock pulse Cj.
  • the second receiving means 32 is composed of a second flip-flop 32 that outputs a set output in synchronization with the inverted pulse pulse BarCj of the data pulse signal sequence,
  • the blocking means A first RS flip-flop 33 in which an output of the first flip-flop 31 is input to a set input terminal S and an output of the second flip-flop 32 is input to a reset input terminal R; A second RS flip-flop 34 in which the output of the first flip-flop 31 is input to a reset input terminal R and the output of the second flip-flop 32 is input to a set input terminal S;
  • a first inverter gate G4 to which the output of the first RS flip-flop 33 is input;
  • a first AND gate G6 to which the output of the first inverter gate G4 and the inverted clock pulse BarCj are input;
  • the asynchronous transmission / reception apparatus includes an amplification circuit 13 for amplifying the output of the digital data signal generation circuit 12 of the transmission apparatus 1, and the amplification degree of the amplification circuit 13 and the first oscillator 11. Each frequency can be changed, An amplifying circuit 22 for amplifying the output of the receiving circuit 21 of the receiving device 2 and a waveform shaping circuit 23 composed of a Schmitt circuit for shaping the output of the amplifying circuit 22 are provided. The amplification degree of the amplifying circuit 22 and the waveform shaping circuit The Schmitt level of 23 and the frequency of the second oscillator 27 can be varied.
  • the data signal PD from the transmission device 1 side is transmitted.
  • the phase of the clock pulse on the receiving device 2 side is advanced or delayed, the data signal PD can be accurately received without malfunction.
  • the AND circuit G10 ANDs the clock pulse Cj or inverted clock pulse BarCj output from the synchronization signal pulse generation circuit 29 and the output from the data receiving means, and outputs the result.
  • a data pulse signal having the same form as the data pulse signal sequence sent from the transmitter side can be output in real time.
  • mutual transmission / reception between existing independent systems can be easily performed using the transmission / reception apparatus of the present invention.
  • a signal of the data string received by the data receiving means is output from the terminal 43, and on the apparatus side controlled by the receiving apparatus 2, the data string is connected to the terminal 41. Is decoded using the clock pulse Cj or the inverted clock pulse BarCj output from the above as a synchronizing signal.
  • the asynchronous transmission / reception apparatus wherein the data receiving unit directly receives the data pulse signal train from the receiving circuit 21 and each input signal constituting the data pulse signal train.
  • An RS flip-flop 24 that once holds a pulse
  • a D flip-flop 25 that outputs the output of the RS flip-flop 24 in synchronization with a clock pulse from the synchronization signal pulse generating circuit 29, Since the output of the type flip-flop 25 is a signal for controlling an external device, in addition to the output of the data pulse signal in the same form as the data pulse signal sequence, the output type is output from the D type flip-flop, On the side, the output of the D flip-flop can be captured to facilitate circuit processing.
  • the blocking means can be configured with a simple configuration using a logic circuit and can be configured at low cost.
  • FIG. 1 is a block diagram of a transmission / reception apparatus according to an embodiment as a premise of the present invention.
  • FIG. 2 is a specific circuit diagram of a synchronizing signal generating circuit which is a premise of the present invention. It is a block diagram of the data pulse signal sequence in the embodiment of the present invention.
  • 4a to 4l are timing charts when the input signal pulse is captured by the clock pulse Cj in the embodiment of the present invention.
  • 5a to 5l are timing charts when the input signal pulse is captured by the inverted clock pulse BarCj in the embodiment of the present invention.
  • FIG. 6 is an explanatory diagram showing that the input pulse is accurately captured regardless of how the phase of the clock pulse is shifted in the embodiment of the present invention.
  • FIGS. 10a to 10c are explanatory diagrams when the duty ratios of the input signal pulse and the clock pulse are both 50% or less in the embodiment of the present invention.
  • FIGS. 11a to 11c are explanatory diagrams when the duty ratio between the input signal pulse and the clock pulse is 50% or less in the embodiment of the present invention.
  • FIGS. 12a to 12c are explanatory diagrams when the duty ratios of the input signal pulse and the clock pulse are both 50% or less in the embodiment of the present invention.
  • FIGS. 13a to 13c are explanatory diagrams when the duty ratio of the clock pulse is 50% or less in the embodiment of the present invention.
  • FIGS. 14A to 14C are explanatory diagrams when the duty ratio of the clock pulse is 50% or less in the embodiment of the present invention.
  • FIGS. 15A to 15C are explanatory diagrams when the duty ratio of the clock pulse is 50% or less in the embodiment of the present invention.
  • FIGS. 16A and 16B are explanatory diagrams when only the clock pulse Cj is used in the embodiment of the present invention.
  • FIG. 17a and 17b are explanatory diagrams when only the clock pulse Cj is used in the embodiment of the present invention.
  • FIG. 18 is a timing chart showing the operation of the circuit of FIG. 2 which is the premise of the present invention.
  • FIG. 19 is an overall block diagram of the first embodiment of the present invention.
  • FIG. 20 is a block diagram of a synchronizing signal pulse generating circuit and data receiving means in the first embodiment of the present invention.
  • FIG. 21 is a timing chart showing an operation corresponding to FIG. 20 in the first embodiment of the present invention.
  • FIG. 22 is an overall block diagram of the second embodiment of the present invention.
  • FIG. 23 is a block diagram of a synchronizing signal pulse generating circuit and data receiving means in the second embodiment of the present invention.
  • FIG. 24 is a timing chart showing the operation corresponding to FIG. 23 in the second embodiment of the present invention.
  • FIG. 25 is a block diagram of an external interface and the like considering the user side in the embodiment of the present invention.
  • FIG. 1 shows a block diagram of an asynchronous transmitter 1 and receiver 2. A data signal is transmitted from the transmitter 1 to the receiver 2, and the received data signal from the transmitter 1 is received on the receiver 2 side. Based on this, external devices outside the figure are controlled.
  • the receiving device 2 receives a digital data signal from the transmitting circuit 14 of the transmitting device 1, an amplifying circuit 22 that amplifies the output from the receiving circuit 21, and outputs from the amplifying circuit 22.
  • a waveform shaping circuit 23 composed of a Schmitt circuit that shapes the waveform, a flip-flop 24 that instantaneously holds each pulse signal of a digital data signal that is an output from the waveform shaping circuit 23, and a signal from the flip-flop 24 in order.
  • a synchronization signal is generated by the D flip-flop 25 to be captured, the pulse signal from the waveform shaping circuit 23 to be captured by the D flip-flop 25 and the original clock pulse from the oscillator 27 before processing, and the generated clock pulse Is output to the D flip-flop 25 as a synchronizing signal, and the synchronizing signal generating circuit 26 It is composed of an oscillator 27 providing a source of clock pulses prior to processing circuit 26.
  • a data signal for controlling a device outside the figure is output from the output of the D flip-flop 25.
  • a JK flip-flop may be used instead of the D flip-flop 25, a JK flip-flop may be used. That is, the flip-flop 25 may be any type of flip-flop as long as it reads and outputs data (pulses) according to the synchronization signal from the synchronization signal generation circuit 26.
  • the amplification degree can be varied, and the Schmitt level in the waveform shaping circuit 23 can also be varied.
  • the pulse width and the frequency can be varied, and the oscillator 27 and the oscillator 11 of the transmission apparatus 1 have the same frequency in setting.
  • the duty ratio of the oscillator 11 of the transmitting apparatus 1 and the duty ratio of the oscillator 27 of the receiving apparatus 2 are the same, and the duty ratio is 50%.
  • circuits such as a power supply unit of the transmission device 1 and the reception device 2 are omitted.
  • FIG. 2 shows a specific circuit diagram of the synchronization signal generating circuit 26 and the like.
  • a pulse signal which is a signal from the waveform shaping circuit 23, is input to a point a in the figure, and is input to the set input terminal S of the RS flip-flop 24 via the inverter gate G1 and the inverter gate G2.
  • the output signal of the inverter gate G1 is input to the reset input terminal R of the flip-flop 24.
  • the signal from the output terminal Q of the flip-flop 24 is input to the input terminal D of the D flip-flop 25.
  • a pulse signal is serially output as a control signal from the output terminal Q of the D flip-flop 25.
  • a shift register having the number of stages corresponding to the number of pulses of the data pulse signal sequence that is a digital data signal may be used.
  • the synchronization signal generation circuit 26 includes an RST type first flip-flop 31 and a second flip-flop 32, three inverter gates G3 to G5, two AND gates G6 and G7, an OR gate G8, and the like. Yes.
  • the output of the inverter gate G1 is input to the reset input terminal R of the first flip-flop 31 and the reset input terminal R of the second flip-flop 32, respectively.
  • the output of the inverter gate G2 is input to the set input terminal S of the first flip-flop 31 and the set input terminal S of the second flip-flop 32, respectively.
  • a clock pulse Cj with a duty ratio of 50% as shown in FIG. 4e is output from the oscillator 27.
  • This clock pulse Cj is input to the trigger terminal T of the first flip-flop 31, and the AND gate G7 It is input to one input terminal.
  • a clock pulse obtained by inverting the clock pulse Cj from the oscillator 27 by the inverter gate G3 is input to the trigger terminal T of the second flip-flop 32 as the inverted clock pulse BarCj and input to one input terminal of the AND gate G6. Has been.
  • the Q output of the first flip-flop 31 is inverted through the inverter gate G4 and input to the other input terminal of the AND gate G6, and the Q output of the second flip-flop 32 is input through the inverter gate G5. Is inverted and input to the other input terminal of the AND gate G7.
  • the outputs of the AND gate G6 and the AND gate G7 are respectively input to the OR gate G8, and the clock pulse Cj or the inverted clock pulse BarCj is input to the clock terminal CLK of the D flip-flop 25 from the output of the OR gate G8 as a synchronizing signal.
  • circuit diagram described in the drawings attached to the specification of the present invention is not a design drawing at the time of actual circuit manufacture, and therefore, circuit elements for timing adjustment are not described. Only the logic circuits necessary for explaining the content of the invention are described.
  • Inverter gates G1 and G2 are drawn as representative circuit diagrams. When an actual circuit is manufactured, the timing of the input signal is adjusted in accordance with the time required for setting or resetting the flip-flop 24 (response speed of the flip-flop element to be used). Both the gate G1 and the inverter gate G2 are connected in series with one or more odd number of inverters.
  • FIG. 3 shows a pulse signal handled in the present invention.
  • the pulse signal is composed of a group of pulse signals including a start signal PS, an idle state ID, a data signal PD, an idle state ID, and an end signal PE. It is called (defined) as a pulse signal train.
  • the start signal PS constituting the data pulse signal sequence is one pulse, but it is composed of an arbitrary number of pulses.
  • the idle state ID next to the start signal PS sets a section corresponding to an arbitrary number of pulses.
  • the data signal PD composed of a plurality of pulses is sent next to the idle state ID, and is a signal that specifically controls an external device connected to the receiving device 2 shown in FIG.
  • An idle state ID is also provided after the data signal PD.
  • An end signal PE is provided after the idle state ID, and the end signal PE is also composed of an arbitrary number of pulses.
  • an idle state is provided before and after the data pulse signal train. Note that the idle state ID after the start signal PS and the idle state ID before the end signal PE are eliminated, the data signal PD is brought after the start signal PS, and the end signal PE is taken after the data signal PD. You may make it come. In this case, an idle state ID section is brought before the start signal PS and after the end signal PE.
  • the duty ratio of one cycle of each pulse of the data pulse signal sequence shown in FIG. 3 is 50%.
  • This data pulse signal sequence is generated by the oscillator 11 and the digital data signal generation circuit 12 of the transmission apparatus 1.
  • the receiving device 2 side stores the input pulse in the flip-flop 24 and sends the pulse signal to the D flip-flop 25 in the subsequent stage. What clock pulse is taken out by the subsequent D flip-flop 25 is important.
  • the pulse signal is securely stored in the flip-flop 24, and after the pulse signal is set in the flip-flop 24, the next pulse signal comes. It is necessary to reset the flip-flop 24 without fail. Then, the signal set in the flip-flop 24 is taken into the subsequent D flip-flop 25 by a clock pulse.
  • the reception of the input pulse is constantly monitored by the clock pulse on the receiving device 2 side and the inverted signal of the clock pulse, and the input pulse is detected by either the clock pulse Cj or the inverted clock pulse BarCj.
  • the clock pulse Cj for sending out the output of the D flip-flop 25 or the inverted clock pulse BarCj is selectively used depending on whether it is received, so that the signal of the D flip-flop 25 can be sent out reliably.
  • FIG. 4 shows a timing chart of each part when the input signal pulse is captured by the clock pulse Cj output from the oscillator 27.
  • the input signal pulse shown in FIG. 4a first arrives, as shown in FIG. An inverted signal slightly delayed by the gate G1 is output. Further, the input signal pulse is output with a slight delay by the inverter gate G2 (see FIG. 4c).
  • the flip-flops 24, 31, and 32 are in a reset state.
  • the flip-flop 24 is set by the set pulse S1 from the inverter gate G2. Is set. Thereafter, the flip-flop 24 is reset by a reset pulse R1 (see FIG. 4b) from the inverter gate G1.
  • the flip-flop 24 similarly repeats the setting and resetting every time it receives the input signal pulse A.
  • a clock pulse Cj having the same frequency (period) as the input signal pulse A and a duty ratio of 50% shown in FIG. 4E is input to the trigger terminal T of the first flip-flop 31, and this clock An inverted clock pulse BarCj (see FIG. 4f) obtained by inverting the pulse Cj by the inverter gate G3 is input to the trigger terminal T of the second flip-flop 32.
  • the first flip-flop 31 is held in the set state in the case of the clock pulse Cj (see FIGS. 4e and g), and the Q output of the first flip-flop 31 outputs the H level.
  • the clock pulse Cj from the OR gate G8 is input to the clock terminal CLK of the D flip-flop 25 as a synchronizing signal of the D flip-flop 25, and an H level signal corresponding to the input signal pulse A is indicated by l in FIG. To the D flip-flop 25.
  • FIG. 6 shows a clock pulse generated by the oscillator 11 of the transmitter 1 (becomes a pulse signal) and a clock pulse generated by the oscillator 27 of the receiver 2 (Cj and BarCj form a clock pulse of the signal processing circuit). It shows that it is safe even if the relative phase is shifted. In other words, the timing chart shows that the input signal pulse can be accurately captured regardless of the phase of the clock pulse.
  • FIG. 6A shows a case where the phase of the clock pulse Cj is advanced with respect to the input signal pulse. In this case, the input signal pulse is captured by the inverted clock pulse BarCj.
  • FIG. 6D shows a case where the clock pulse is delayed with respect to the input signal pulse, and the input signal pulse is captured by the clock pulse Cj.
  • E in FIG. 6 is a case where the clock pulse is further delayed with respect to the input signal pulse, where the falling edge of the input signal pulse and the rising edge of the clock pulse Cj are substantially the same. Capture signal pulses.
  • the selection of the clock pulse Cj and the inverted clock pulse BarCj as the synchronization signals used in the D flip-flop 25 shown in FIG. 2 is automatically performed by the synchronization signal generation circuit 26, and the received input signal pulse is flip-flops.
  • the clock signal Cj is reliably set and reset at 24, and the input signal pulse is sequentially shifted by the D flip-flop 25 at the clock pulse Cj or the inverted clock pulse BarCj automatically selected by the synchronization signal generating circuit 26 for each input signal pulse. Can be sent to.
  • the frequency (cycle) of the oscillator 11 of the transmitter 1 and the oscillator 27 of the receiver 2 are the same and the duty ratio is 50%, so that the receiver 2 side with respect to the input signal pulse. Even when the phase of the clock pulse is advanced or delayed, the D flip-flop 25 reliably captures the signal in synchronization with the input signal pulse.
  • FIGS. 7 to 9 the period of the input signal pulse and the clock pulse is the same, the duty ratio of the input signal pulse is 50% or less, and the duty ratio of the clock pulse is 50%.
  • FIG. 7 shows a case where the position of the input signal pulse and the rising point of the clock pulse Cj overlap. In this case, the input signal pulse can be captured by the clock pulse Cj.
  • both the clock pulse Cj or the inverted clock pulse BarCj are captured during the L level period of the input signal pulse. Can not. Therefore, the duty ratio of the input signal pulse needs to be 50%.
  • FIGS. 13 to 15 a case where the duty ratio of the input signal pulse is 50% and the duty ratio of the clock pulse Cj is 50% or less will be described.
  • FIG. 13 shows a case where the position of the input signal pulse and the rising point of the clock pulse Cj overlap. In this case, the input signal pulse can be captured by the clock pulse Cj.
  • FIG. 16 and FIG. 17 show a case where the input signal pulse is captured only by the clock pulse Cj from the oscillator 27 of the receiving apparatus 2 unlike the present embodiment.
  • the position of the input signal pulse and the rising point of the clock pulse Cj are overlapped.
  • the input signal pulse can be captured by the clock pulse Cj.
  • the phase of the clock pulse Cj is relatively advanced or delayed with respect to the input signal pulse. Therefore, as shown in FIG. 16, at the time of rising of the clock pulse Cj, the input signal pulse cannot be captured unless the input signal pulse exists.
  • the input signal pulse when the input signal pulse is not located at the rising edge of the clock pulse Cj despite the arrival of the input signal pulse, the input signal pulse is detected by the clock pulse Cj. Can not do it. That is, after the rising edge of the clock pulse Cj deviates from the input signal pulse, the phase of the clock pulse Cj gradually delays with respect to the input signal pulse, and the rising edge of the clock pulse Cj overlaps with the input signal pulse. This causes a malfunction that the input signal pulse cannot be captured.
  • the synchronization signal generation circuit 26 converts the input signal pulse signal from the reception circuit 21 into the clock pulse Cj of the oscillator 27 of the reception device 2 or the inverted clock pulse BarCj obtained by inverting the clock pulse Cj.
  • the clock pulse sent to the D flip-flop 25 is the clock pulse Cj when the pulse signal is received by the clock pulse Cj, and the pulse signal is received by the inverted clock pulse BarCj.
  • the D flip-flop 25 is synchronized with the inverted clock pulse BarCj.
  • the input signal pulse input through the flip-flop 24 is sequentially supplied to the D flip-flop 25 by the synchronization signal (clock pulse Cj or inverted clock pulse BarCj) automatically selected by the synchronization signal generation circuit 26. Is captured.
  • the Q output of the flip-flop 31 is H level
  • the output of the inverter gate G4 becomes L level and the AND gate G6 is turned off. Therefore, the inverted clock pulse BarCj is not output from the AND gate G6, and L The level remains (see FIG. 18i).
  • the Q output of the flip-flop 32 is L level
  • the output of the inverter gate G5 becomes H level. Therefore, the clock pulse Cj is output from the output of the AND gate G7 (see FIG. 18j), and the clock pulse is output from the OR gate G8.
  • Cj is output (see FIG. 18k), and this clock pulse Cj is input to the clock terminal CLK as a synchronizing signal of the D flip-flop 25.
  • the clock pulse Cj output from the OR gate G8 is output to the output terminal 41, and the clock pulse Cj from the output terminal 41 is controlled based on the data signal PD of the data pulse signal train. Used as a pulse (synchronization signal).
  • FIG. 19 shows an overall block diagram of the transmitter 1 and the receiver 2.
  • a synchronization signal pulse generation circuit 29 is provided in which the synchronization signal generation circuit 26 is improved as compared with FIG. 1, and the flip-flop 24 and the D flip-flop 25 are combined.
  • Data reception means is provided.
  • an AND circuit G10 is provided which takes the logical product of the clock pulse Cj or the inverted clock pulse BarCj output from the synchronizing signal pulse generation circuit 29 and the signal from the data receiving means.
  • the output of the AND circuit G10 is outputted as a data pulse signal string as a control data signal for the external device via the terminal 42, and the signal from the data receiving means is outputted as a control signal for the external device via the terminal 43. It has come to be.
  • a terminal 16 that outputs a clock pulse from the oscillator 11 also on the transmission device 1 side, and a terminal 17 that receives a digital data signal from an external device on the transmission device 1 side via an external interface to the digital data signal generation circuit 12. Is provided.
  • FIG. 20 shows a specific block diagram of the sync signal pulse generating circuit 29 and the data receiving means.
  • the data receiving means directly receives the data pulse signal sequence input via the receiving circuit 21, the amplifier circuit 22 and the waveform shaping circuit 23, receives the H level signal of the data pulse signal sequence, and then receives the L level signal. Until the signal is received, the H level is continuously output.
  • the synchronizing signal pulse generating circuit 29 outputs a clock pulse Cj from the oscillator 27 or an inverted clock pulse BarCj obtained by inverting the clock pulse Cj, and the clock pulse Cj or the inverted clock pulse BarCj is used as the data pulse signal sequence. This is output as a clock pulse for generating the corresponding original data pulse.
  • the synchronization signal pulse generation circuit 29 shown in FIG. 20 is basically the same as the synchronization signal generation circuit 26 shown in FIG. 2, but an RS type flip-flop 33 is provided between the flip-flop 31 and the inverter gate G4. In addition, an RS type flip-flop 34 is provided between the flip-flop 32 and the inverter gate G5.
  • the Q output terminal of the flip-flop 31 is connected to the set input terminal S of the flip-flop 33, and the Q output terminal of the flip-flop 33 is connected to the input terminal of the inverter gate G4.
  • the Q output terminal of the flip-flop 32 is connected to the set input terminal S of the flip-flop 34, and the Q output terminal of the flip-flop 34 is connected to the input terminal of the inverter gate G5.
  • the Q output terminal of the flip-flop 31 is connected to the reset input terminal R of the flip-flop 34, and the Q output terminal of the flip-flop 32 is connected to the reset input terminal R of the flip-flop 33.
  • the clock pulse (clock pulse Cj or inverted clock pulse BarCj) output from the OR gate G8 of the synchronization signal pulse generation circuit 29 is a clock pulse as a synchronization signal of the D flip-flop 25, and at the same time,
  • the output of the gate G10 is output in synchronism with AND at the H level of the Q output n of the D flip-flop 25 and the output m of the OR gate G8, and the clock pulse from the OR gate G8 is broadly defined for the AND gate G10. This is a synchronization signal.
  • this H-level signal is input to the set input terminal S of the flip-flop 33, and the Q output of the flip-flop 33 becomes H level (see FIG. 21h). Further, the Q output of the flip-flop 31 is input to the reset input terminal R of the flip-flop 34, the flip-flop 34 is reset, and the Q output j of the flip-flop 34 is at the L level (see FIG. 21j).
  • FIG. 21 shows a case where a data pulse signal sequence having a duty ratio of 50% is captured by a clock pulse Cj having a clock pulse having a duty ratio of 50%, and therefore data at the rising edge of the inverted clock pulse BarCj.
  • the pulse signal sequence corresponds to the L level (see FIGS. 21c and f)
  • the Q output of the flip-flop 32 maintains the L level (see FIG. 21i)
  • the flip-flop 33 is not reset, and the flip-flop 33
  • the Q output is maintained at the H level (see FIG. 21h).
  • the clock pulse Cj output from the OR gate G8 is output to the output terminal 41, and the clock pulse Cj from the output terminal 41 is controlled based on the data signal PD of the data pulse signal sequence. It can be used as a clock pulse (synchronization signal) of an external device on the side. Further, the Q output of the D flip-flop 25 is output from the terminal 43 to the external device on the receiving device 2 side (data output 2) as shown in FIG. 21n (output 2). 21 is synchronized with the logical product of the clock pulse Cj and the Q output of the D flip-flop 25 at the H level of the clock pulse Cj by the AND gate G10, and the input shown in FIG. A data pulse signal having the same form as the data pulse signal train of signal pulses is output in real time.
  • the D flip-flop 25 takes in the signal of the Q output of the flip-flop 24 by the clock pulse Cj from the OR gate G8 (see FIG. 21n).
  • FIG. 21 n shows the data taken into the D flip-flop 25. Further, as the Q output of the flip-flop 24, a signal slightly delayed from the input signal pulse shown in FIG.
  • the flip-flop 31 takes in the L level of the idle state ID with the clock pulse Cj, so that the Q output of the flip-flop 31 becomes the L level (see FIG. 21g). Even if the flip-flop 31 is at the L level, the Q output is set to the H level by the RS flip-flop 33. Therefore, the output of the inverter gate G4 is at the L level and the AND gate G6 is maintained in the OFF state. (See FIG. 21k).
  • the L level of the idle state ID is captured by the clock pulse Cj, and the output of the D flip-flop 25 becomes the L level (see FIG. 21n).
  • the flip-flop 24 is set, and the Q output of the flip-flop 24 becomes H level.
  • the Q output of the flip-flop 31 changes from the L level to the H level (see FIG. 21g).
  • the Q output of the flip-flop 24 corresponding to the data signal PD is taken into the D flip-flop 25 for each clock pulse Cj output from the OR gate G8.
  • the Q output of the flip-flop 24 is captured by the clock pulse Cj
  • the Q output of the flip-flop 24 is at the H level, so that the D flip-flop 25 is in a state where a continuous H level pulse is being output. Remains at the H level (see FIG. 21n).
  • the Q output of the D flip-flop 25 remains at the H level until the Q output of the flip-flop 24 is captured by the clock pulse Cj at time t4. is there.
  • the flip-flop 31 takes in the output of the inverter gate G2 corresponding to the L level of the data signal PD by the clock pulse Cj, so that the output of the flip-flop 31 becomes the L level. Even if the output of the flip-flop 31 is at the L level, the Q output of the flip-flop 33 is maintained at the H level as described above, so that the AND gate G6 is maintained in the OFF state. At time t6, the flip-flop 31 takes in the H level signal with the clock pulse Cj, so that the output of the flip-flop 31 becomes H level.
  • the data signal PD of the data pulse signal sequence is, for example, a pulse signal of “11110111”, and the Q output of the D flip-flop 25 received in response to this pulse signal is the data sequence shown in FIG. It has become.
  • the clock pulse Cj from the output terminal 41 is decoded from the data string as a synchronizing signal, and the original data signal PD “11110111” is recognized.
  • the pulse signal output from the AND gate G10 via the terminal 42 is “11110111”, which is a raw pulse signal corresponding to the original data signal PD (see FIGS. 21a and o). ). That is, a data pulse signal (see FIG. 21o) having the same form as the received data pulse signal sequence (see FIG. 21a) is output from the terminal 42 to the external device side of the receiving device 2 in real time.
  • the external device on the receiving device 2 side is controlled based on this data signal PD. Then, based on the data signal PD of the data pulse signal sequence transmitted from the transmission device 1, the control is performed in the external device on the reception device 2 side. In this way, the synchronization signal pulse to be sent to the flip-flop 25 is output so that it can also be used by the external device on the receiving device 2 side for the synchronization signal of the external device on the receiving device 2 side.
  • the external device can accurately read the data signal PD output from the receiving device 2 and can control the device based on the data signal PD transmitted from the transmitting device 1 without malfunctioning.
  • any device may be used as long as it is controlled by the data signal PD and the clock pulse Cj or the inverted clock pulse BarCj. . Moreover, mutual transmission / reception between existing independent systems can be easily performed using the transmission / reception apparatus of the present invention.
  • the input signal pulse shown in FIG. 21a is taken into the circuit of the receiving device 2 by the clock pulse Cj.
  • the pulse (input signal pulse) generated by the oscillator 11 of the transmitting device 1 When the relative phase positional relationship with the pulse generated by the oscillator 27 of the receiving device 2 shifts and it becomes impossible to capture the input signal pulse with the clock pulse Cj, this time, capture with the inverted clock pulse BarCj. Can do.
  • the Q output of the flip-flop 32 becomes the H level by capturing the H level signal by the inverted clock pulse BarCj in the flip-flop 32.
  • the flip-flop 33 is reset and the Q output becomes L level, the flip-flop 34 is set, the Q output of the flip-flop 34 is maintained at H level, the output of the inverter gate G5 is set to L level, and the AND gate G7 is set. Keep it off.
  • each input signal pulse of the received data pulse signal train is represented by the clock pulse Cj and the inverted clock pulse BarCj.
  • the AND gate G6 that outputs the inverted clock pulse BarCj is maintained in the OFF state by the flip-flop 33 and the inverter gate G4.
  • the AND gate G7 that outputs the clock pulse Cj is maintained in the OFF state by the flip-flop 34 and the inverter gate G5.
  • the flip-flop The signal taken from 4 can be reliably outputted by flip-flop 25, therefore, it is possible to normally operate without malfunction.
  • the synchronization signal is artificially generated and the phase of the clock pulse on the receiving device 1 side is advanced or delayed with respect to the data pulse signal sequence from the transmitting device 1 side, no malfunction occurs.
  • the data pulse signal train can be accurately received.
  • the oscillator 11 of the transmission device 1 and the oscillator of the reception device 2 By changing the generation frequency of 27 using a variable resistor, malfunction due to noise can be prevented.
  • the duty ratio of the variable frequency (cycle) is 50%.
  • the resistors that determine the time constant of the oscillators 11 and 27 and the resistors in the capacitors are made variable resistors, and the data pulse signal sequence is set.
  • the period, the pulse peak value, etc. it is possible to freely and easily generate a pulse completely different from noise.
  • the noise can be completely eliminated.
  • the period of the pulse signal, pulse peak value, etc. can be varied freely, so that multiple transmitters / receivers are placed adjacent to each other so that the input signal pulses do not interfere with each other. Even when performing, for example, it can be performed on the site of a production line of a factory, and interference between transmission / reception apparatuses can be prevented.
  • FIG. 22 is an overall block diagram of the second embodiment
  • FIG. 23 is a specific circuit diagram of the synchronization signal pulse generating circuit 29 and the data receiving means
  • FIG. 24 is a timing chart of FIG.
  • the data receiving means includes flip-flops 31 and 32 and an OR gate G9.
  • the output from the OR gate G9 is output as the output 2 to the terminal 43, and the output from the OR gate G9 and the output from the OR gate G8 are output.
  • the logical product is obtained by the AND gate G10, and the output of the AND gate G10 is output as the output 1 from the terminal 42.
  • an input signal pulse capturing circuit (a portion surrounded by a two-dot chain line in FIG. 23) 37 that captures an input signal pulse on the input side of the flip-flops 31 and 32 and the OR gate G9 is used.
  • G10 is an output circuit (portion surrounded by a broken line) 38.
  • the functions of the logic circuits of the flip-flop 31 and the flip-flop 32 are shared by both the synchronization signal pulse generation circuit 29 and the data receiving means.
  • the output of the AND gate G10 is output in synchronism with AND when the output n of the OR gate G9 and the output m of the OR gate G8 are input and the output m is at the H level.
  • the Q output of the flip-flop 31 is input to one input terminal of the OR gate G9, and the Q output of the other flip-flop 32 is input to the other input terminal of the OR gate G9. Yes.
  • the Q output of one of the flip-flops 31 and 32 is input to one input terminal of the AND gate G10 via the OR gate G9 and is output to the terminal 43.
  • the output from the OR gate G9 and the clock pulse Cj or the inverted clock pulse BarCj from the OR gate G8 are logically ANDed, and the output from the AND gate G10 is the data pulse signal string as in the previous embodiment.
  • the data pulse signal having the same form as that in FIG.
  • FIG. 24a when the start signal PS is received at time t0, it is input to the set input terminals S of the flip-flops 31 and 32 via the inverter gates G1 and G2, respectively.
  • 24b shows the output of the inverter gate G1
  • FIG. 24c shows the output of the inverter gate G2.
  • the flip-flop 31 takes in the output of the inverter gate G2 at the rising edge of the clock pulse Cj shown in FIG. 24e, so that the Q output of the flip-flop 31 becomes H level (see FIG. 24g).
  • 32 takes in the output of the inverter gate G2 at the rising edge of the inverted clock pulse BarCj, and the Q output of the flip-flop 32 becomes L level (see FIG. 24i).
  • this H level signal is input to the set input terminal S of the flip-flop 33, and the Q output of the flip-flop 33 becomes H level (see FIG. 24h). Further, the Q output of the flip-flop 31 is input to the reset input terminal R of the flip-flop 34, the flip-flop 34 is reset, and the Q output j of the flip-flop 34 is at the L level (see FIG. 24j).
  • FIG. 24 shows a case where a data pulse signal sequence having a duty ratio of 50% is captured by a clock pulse Cj having a clock pulse having a duty ratio of 50%, and therefore data at the rising edge of the inverted clock pulse BarCj.
  • the pulse signal sequence corresponds to the L level (see FIG. 24c, f)
  • the Q output of the flip-flop 32 maintains the L level (see FIG. 24i)
  • the flip-flop 33 is not reset, and the flip-flop 33
  • the Q output is maintained at the H level (see FIG. 24h).
  • the clock pulse Cj output from the OR gate G8 is output to the output terminal 41, and the clock pulse Cj from the output terminal 41 is controlled based on the data signal PD of the data pulse signal sequence. It can be used as a clock pulse (synchronization signal) of an external device on the side.
  • the flip-flop 31 takes in the L level of the idle state ID with the clock pulse Cj, so that the Q output of the flip-flop 31 becomes the L level (see FIG. 24g). Even if the flip-flop 31 is at the L level, the Q output is set to the H level by the RS flip-flop 33. Therefore, the output of the inverter gate G4 is at the L level and the OFF state of the AND gate G6 is maintained. (See FIG. 24k). At time t2, the Q output of the flip-flop 31 becomes L level, and the output of the OR gate G9 also becomes L level (see FIG. 24n).
  • the output of the flip-flop 31 remains at the H level (see FIG. 24n). Since the four pulse signals up to time t4 are continuous here, the Q output of the flip-flop 31 is at the H level until the flip-flop 31 takes in the L level signal at the clock pulse Cj at time t4. It remains.
  • the flip-flop 31 takes in the L level signal of the data signal PD by the clock pulse Cj at time t4, the Q output of the flip-flop 31 becomes L level (see FIG. 24n), and at time t5, the flip-flop 31 takes in an H level signal, and the Q output of the flip-flop 31 becomes H level.
  • the same operation is performed at time t6 and time t7, and a waveform as shown in FIG. 24n is output from the Q output of the flip-flop 31 in accordance with the H level and L level signals of the data pulse signal sequence. .
  • the same processing as described above is performed for the pulse of the end signal PE after the idle state ID, and a series of data pulse signal string reception processing ends.
  • the flip-flop 31 takes in the output of the inverter gate G2 corresponding to the L level of the data signal PD by the clock pulse Cj, and the output of the flip-flop 31 becomes the L level, the flip-flop 31 as described above. Since the Q output of 33 is maintained at the H level, the AND gate G6 is maintained in the OFF state.
  • the Q output of the flip-flop 31 is output via the OR gate G9, and is output as the output 2 from the terminal 43, and is input to one input terminal of the AND gate G10.
  • a clock pulse Cj is input to the other input terminal of the AND gate G10 via the AND gate G7 and the OR gate G8 (see FIG. 24m), and this clock pulse Cj and the output of the OR gate G9 (see FIG. 24n).
  • the AND gate G10 synchronizes with the logical product of the clock pulses Cj at the H level. From the AND gate G10, as shown in FIG. 24o, the data pulse having the same form as the data pulse signal sequence (see FIG. 24a) is obtained. The signal is output in real time.
  • the data signal PD of the data pulse signal sequence is a pulse signal of “11110111”, for example, as in FIG.
  • the control of the external device on the receiving device 2 side that has received this pulse signal is the same as in the previous embodiment, and a description thereof will be omitted.
  • the data pulse signal sequence is captured by the clock pulse Cj.
  • a second RS flip-flop 34 in which the output of the first flip-flop 31 is input to the reset input terminal R, and the output of the second flip-flop 32 is input to the set input terminal S, and the first RS flip-flop The first inverter gate G4 to which the output of the group 33 is input, and the output of the first inverter gate G4
  • FIG. 25 shows a diagram for making it possible to apply the data pulse signal sequence arbitrarily created by the user to the transmission apparatus 1 to the transmission apparatus 1 of the present invention.
  • the transmitting apparatus 1 outputs a clock pulse from the oscillator 11 of the transmitting apparatus 1 to the external interface on the transmitting apparatus 1 side, and also inputs it to the digital data signal generation circuit 12 of the transmitting apparatus 1 from the external interface. Terminals are provided.
  • the duty ratio of the clock pulse is set to 50%
  • the duty of the data pulse signal sequence is set. It cannot be directly applied to the present invention in which the ratio is 50%. Therefore, even when the frequency (cycle) and the duty ratio of the data pulse signal train are arbitrarily created, the external interface 52 can be applied to the present invention.
  • the external interface 52 includes a frequency conversion unit such as an f / f converter and a duty ratio conversion unit that can arbitrarily convert the duty ratio.
  • the frequency conversion unit and the duty ratio conversion unit are hardware, It can be arbitrarily configured by software.
  • the desired cycle is converted by the frequency conversion unit of the external interface 52, the duty ratio is converted to 50%, and the output signal of the external device 51 on the user side is directly transmitted to the digital data of the transmission device 1 via the external interface 52. Input to the creation circuit is possible.
  • RST flip-flops are used as the flip-flops 31 and 32, but JK flip-flops may be used.
  • the D-type flip-flop is used in the external device on the receiving device 2 side. Circuit processing can be facilitated by fetching the output of the network.
  • the flip-flops 31 and 32 are JK type flip-flops
  • the external device on the receiving device 2 side can also take in the output of the JK type flip-flops to facilitate circuit processing. it can.
  • synchronization method and transmission / reception apparatus between asynchronous transmission / reception apparatuses of the present invention can also be applied to an asynchronous photoelectric sensor or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

 送信装置側と受信装置側にそれぞれ発振回路を有している非同期型の送受信装置の場合でも、送信装置側からのデータパルス信号に対して受信装置側のクロックパルスの位相が進んだり、遅れたりした場合でも、誤動作せずにデータパルス信号を正確に受信できるようにすること。  データパルス信号列の各パルスの周期と発振器27の周期とを同一にすると共に、データパルス信号列の各パルスと発振器27から出力されるクロックパルスのデューティ比をそれぞれ50%に設定する。クロックパルスCjと反転クロックパルス BarCjとで常時入力信号パルスの受信を監視し、クロックパルスCjあるいは BarCjのどちらで入力信号パルスを受信したかにより、Dフリップフロップ25での信号の取り込みのための同期信号としてのクロックパルスCjまたは BarCjを使い分ける。

Description

非同期型における送受信装置間の同期方法及び送受信装置
 本発明は、送信装置と受信装置とにそれぞれクロックパルスを生成する発振器を備え、送信装置から有線、無線等によりデータ信号を受信装置へ送信し、受信装置側では送信装置から伝送されたデータ信号を受信し、該受信したデータ信号に基づいて外部の装置をコントロールする非同期型における送受信装置間の同期方法及び送受信装置に関するものである。
 この種の送信装置と受信装置とにそれぞれクロックパルスを生成する発振器を備え、送信装置から有線、無線等により受信装置へデータ信号パルスを受信装置へ送信し、受信装置側では送信装置から伝送されたデータ信号パルスを受信する場合に、データ信号パルスと受信装置側のクロックパルスとの位相がずれてくると、該クロックパルスに基づいて送信装置からのデータ信号パルスを正確に受信できないという問題がある。
 この問題を解決しようとしたものとして、例えば下記に示す特許文献1が挙げられる。
特開平6-53945号公報
 この特許文献1では、送信部と受信部とで周波数が同一である二つの装置(A系とB系)において、それぞれ同一分周比で別々にクロックを発生させ、受信側の装置では、クロックパルスを反転させたクロックを用意し、クロックパルスか反転クロックパルスのどちらを用いて同期させるか選択するように構成した同期方法が開示されている。
 そして、この特許文献1では、排他的論理和回路にA系のクロック信号bと、このA系クロック信号bと同一周波数であるB系クロック信号cとが入力されていて、A系クロック信号bとB系クロック信号cとの両者の位相がずれてきた場合にはそれを判定し、レジスタに入力されるA系データaをシフトさせる際の同期信号をB系クロック信号と、このB系クロック信号を反転させたクロック信号とを切り替えるようにしている。
 しかしながら、この特許文献1では、第1の入力端子にはA系データが入力され、第2の入力端子にはA系クロック信号が入力され、第3の入力端子にはB系クロック信号が入力される構成となっており、これは送信装置から受信装置にA系データ、A系クロック信号及びB系クロック信号を送っている同期型の構成であり、非同期型の送受信装置間には適用されない。
 ところで、送受信装置の身近なものとして、例えば、位置検出やコンベア等で搬送されてくる物品を検出する光電センサがある。この光電センサも大きく分けて同期型の光電センサと、非同期型の光電センサとが存在している。
 非同期型の光電センサでは、投光部側と受光部側とのそれぞれクロックパルスを生成する発振器が設けられていて、投光部の投光素子から投光されるパルスは、投光部内の発振器からのクロックパルスにて同期されて出力され、受光部側では、該受光部内の発振器からのクロックパルスにて投光部からのパルス信号を受光するようにしている。
 かかる場合、投光部からのパルス信号と、受光部のクロックパルスとの間に相対的な位相のズレが必ず生じていくのであるが、その現象を引き起こす影響に対しての対策がどの光電センサにおいてもなされておらず、そのため、誤動作が生じるという問題を有している。
 すなわち、受光したパルス信号に対して受光部側のクロックパルスの位相が進んでいる場合や、クロックパルスの位相が遅れている場合において、パルス信号を正常に検出する場合や、正常に検出しない場合が生じる。これは、投光部側と受光部側とにそれぞれクロックパルスを出力する発振回路を個別に設けて、両者のクロックパルス間の同期が常にとれていないことから来るものであり、非同期型の光電センサとしては宿命的なものでもある。
 つまり、投光部側の発振回路と、受光部側の発振回路の周波数を同一にして、投光部からのパルス信号と受光部側のクロックパルスとを合わせようとしても、パルス信号に対してのクロックパルスの位相は進んだり、遅れたりする。これは、以下の理由による。
 (1)投光部側と受光部側の発振回路を構成する電子部品を同じロットで同じ仕様値のものを使用して製作しても、出来上がった発振回路の時定数は全く同じにならないこと。
 (2)投光部側と受光部側のそれぞれの発振回路の初期値を同じ値に調整しても、電源投入後に電流が流れて温度が上昇変化すると、投光部側のクロックパルスと受光部側のクロックパルスとの時定数は一致しなくなること。
 (3)投光部側と受光部側との電源は別々に持たせているため、同時に電源投入しても、各々の電圧が一定になるまでの時間は厳密には一致をしないので、それぞれの発振回路がパルスの発生を開始する時間も厳密にピッタリとは一致しないこと。
 (4)発振回路を構成している電子部品類の特性の経時変化によって時定数は変化していくこと。
 上述した電子部品材料物性などの物理的理由と電気回路の過渡現象的理由により、パルス信号とクロックパルスの位相が相対的に時間の経過と共にずれていくと、あるタイムチャート上の時点で誤動作する(正常動作をしない。)。
 ところで、同期方法において、受信装置に正相クロックと逆相クロック(反転クロック)を用意し、データ信号と正相クロック及び逆相クロックとに基づいてどちらのクロックでデータ信号を取り込むかを判定する構成が下記に示す特許文献2に開示されている。
特開平8-51417号公報
 この特許文献2では、正相クロックと逆相クロックとで受信したデータ信号を2経路作成しておき、セレクタ回路によりどちらかのデータ信号を選択してDFF回路に送る構成となっている。
 そして、データ信号の変化点に正相クロックあるいは逆相クロックのエッジが当たっているか否かの検出を行ない、その検出結果が正相クロックのエッジに当たっていないときは正相クロックでデータ信号を取り出し、データ信号の変化点が正相クロックのエッジに当たっているときは逆相クロックでデータ信号を取り出し、また、逆相クロックのエッジがデータ信号の変化点に当たっている場合は、正相クロックにてデータ信号を取り出す構成となっている。
 しかしながら、この特許文献2においては、後述する本発明のフリップフロップ25に相当するDFF回路の同期信号(クロックパルス)は、正相クロックCKのみとしており、データ信号とクロックパルスとの位相のズレに対して本発明のように正相クロック(クロックパルスCj)と逆相クロック(反転クロックパルス BarCj)のいずれを用いるかという記載も示唆も示されていない。
 そのため、この特許文献2においては、受信したデータ信号自体をセレクタ回路にて選択して後段のDFF回路に送り、該DFF回路の同期信号としては常に正相クロックのみを用いていることから、遅延回路を設けて、信号と正相クロックCKの位相関係の調整をしなければならないという問題を有している。
 ところで、投光部側と受光部側とにそれぞれクロックパルスを生成する発振器を設けた非同期型の光電センサを本出願人が出願し、下記に示す特許文献3として既に特許を取得している。
特許第3945813号公報
 この特許文献3に記載されている技術を応用して、光電センサではなく、非同期型における送受信装置間における同期方法や同様の非同期型の送受信装置に応用した場合、扱うデータ信号が、「1」と「0」の組み合わせからなるデータパルス信号列であり、ビット信号として「0」が存在している場合のデータパルス信号列では、特許文献3の技術をそのまま用いることが出来ないという問題がある。
 本発明は上述の問題点に鑑みて提供したものであって、少なくとも以下の目的を持った非同期型における送受信装置間の同期方法及び送受信装置を提供するものである。
 (1)送信装置側と受信装置側にそれぞれ発振回路を有している非同期型の送受信装置の場合でも、送信装置側からのデータ信号に対して受信装置側のクロックパルスの位相が進んだり、遅れたりした場合でも、誤動作せずにデータ信号を正確に受信できるようにすること。
 (2)送信装置側から送られてきたデータパルス信号列と同じ形態のデータパルス信号をリアルタイムに出力すること。
 (3)データパルス信号列と同じ形態のデータパルス信号の出力の他に、出力形式としてD型フリップフロップやJK型フリップフロップから出力して、外部装置側において、D型フリップフロップやJK型フリップフロップの出力を取り込んで回路処理を容易にすること。
 (4)本発明の送受信装置を用いて、既存の独立したシステム間における相互の送受信を容易に可能とすること。
 そこで、本発明の請求項1に記載の非同期型における送受信装置間の同期方法では、スタート信号PS、データ信号PD及びエンド信号PEからなるデータパルス信号列を伝送する送信装置1と、
 前記送信装置1からのデータパルス信号列を受信し、該受信したデータパルス信号列を出力して該データ信号PDに基づいて外部の装置をコントロールする受信装置2とからなる非同期型における送受信装置間の同期方法において、
 前記送信装置1は、
 同期信号としてのクロックパルスを出力する第1の発振器11と、この第1の発振器11からのクロックパルスに同期されて前記データパルス信号列を生成するデジタルデータ信号作成回路12と、このデジタルデータ信号作成回路12から出力されるデータパルス信号列を前記受信装置2側に送信する送信回路14とを備え、
 前記受信装置2は、
 前記送信装置1の送信回路14からのデータパルス信号列を受信する受信回路21と、同期信号としてのクロックパルスを出力する第2の発振器27と、前記第2の発振器27からのクロックパルスCjまたはこのクロックパルスCjを反転させた反転クロックパルス BarCjを出力し、該クロックパルスCjまたは反転クロックパルス BarCjを前記データパルス信号列に対応した元のパルス信号列生成用のクロックパルスとして出力する同期信号パルス作成回路29と、前記データパルス信号列はデジタル信号としての1ビットが「1」または「0」で表されて複数のビットで構成されており、前記「1」のビットデータに対応した1周期の入力波形がHレベルとLレベルで構成され、前記「0」のビットデータに対応した1周期の入力波形がLレベルとLレベルで構成された該データパルス信号列を前記受信回路21から直接的または間接的に受信し、出力波形として前記「1」のビットデータに対応した波形は1周期の間Hレベルを出力し、前記「0」のビットデータに対応した波形は1周期の間Lレベルを出力するデータ受信手段と、前記データ受信手段からの出力と前記同期信号パルス作成回路29からの出力との論理積をとって前記データパルス信号列と同形態のパルス信号列を出力するアンド回路G10とを備え、
 前記同期信号パルス作成回路29は、
 前記受信装置2の第2の発振器27からのクロックパルスCjにより前記送信装置1の送信回路14からのデータパルス信号列を前記受信回路21を介して同期して受信する第1の受信手段31と、
 前記受信装置2の第2の発振器27からの反転クロックパルス BarCjにより前記送信装置1の送信回路14からのデータパルス信号列を前記受信回路21を介して同期して受信する第2の受信手段32と、
 前記第1の受信手段31にてデータパルス信号列を受信した場合には前記同期信号パルス作成回路29から出力されるクロックパルスをクロックパルスCjとすべく、該同期信号パルス作成回路29から反転クロックパルス BarCjが出力されるのを阻止し、前記第2の受信手段32にてデータパルス信号列を受信した場合には前記同期信号パルス作成回路29から出力されるクロックパルスを反転クロックパルス BarCjとすべく、該同期信号パルス作成回路29からクロックパルスCjが出力されるのを阻止する阻止手段とを備え、
 前記第1の発振器11のクロックパルスと前記第2の発振器27のクロックパルスとの周期を同一にすると共に、前記送信回路14からのデータパルス信号列を受信可能にすべく第1の発振器11及び第2の発振器27の両クロックパルスのデューティ比、及び前記データパルス信号列のデューティ比をそれぞれ50%に設定し、
 前記同期信号パルス作成回路29に設けた前記阻止手段により、前記第1の受信手段31にてデータパルス信号列を受信した場合には前記同期信号パルス作成回路29から出力されるクロックパルスをクロックパルスCjとすべく、該同期信号パルス作成回路29から反転クロックパルス BarCjが出力されるのを阻止し、前記第2の受信手段32にてデータパルス信号列を受信した場合には前記同期信号パルス作成回路29から出力されるクロックパルスを反転クロックパルス BarCjとすべく、該同期信号パルス作成回路29からクロックパルスCjが出力されるのを阻止し、
 前記第1の受信手段31にてデータパルス信号列が受信された場合には前記同期信号パルス作成回路29から出力されるクロックパルスCjと前記データ受信手段からの出力とを前記アンド回路G10にてクロックパルスCjのHレベル時の論理積で同期をとって出力し、
 前記第2の受信手段32にてデータパルス信号列が受信された場合には前記同期信号パルス作成回路29から出力される反転クロックパルス BarCjと前記データ受信手段からの出力とを前記アンド回路G10にて反転クロックパルス BarCjのHレベル時の論理積で同期をとって出力するようにしていることを特徴としている。
 請求項2に記載の非同期型における送受信装置間の同期方法では、前記同期信号パルス作成回路29から出力されるクロックパルスCjまたは反転クロックパルス BarCjを、前記受信装置2側の外部の装置の同期信号用として該装置でも使用できるように出力していることを特徴としている。
 請求項3に記載の非同期型における送受信装置間の同期方法では、スタート信号PS、データ信号PD及びエンド信号PEからなるデータパルス信号列を伝送する送信装置1と、
 前記送信装置1からのデータパルス信号列を受信し、該受信したデータパルス信号列を出力して該データ信号PDに基づいて外部の装置をコントロールする受信装置2とからなる非同期型における送受信装置間の同期方法において、
 前記送信装置1は、
 同期信号としてのクロックパルスを出力する第1の発振器11と、この第1の発振器11からのクロックパルスに同期されて前記データパルス信号列を生成するデジタルデータ信号作成回路12と、このデジタルデータ信号作成回路12から出力されるデータパルス信号列を前記受信装置2側に送信する送信回路14とを備え、
 前記受信装置2は、
 前記送信装置1の送信回路14からのデータパルス信号列を受信する受信回路21と、同期信号としてのクロックパルスを出力する第2の発振器27と、前記第2の発振器27からのクロックパルスCjまたはこのクロックパルスCjを反転させた反転クロックパルス BarCjを出力し、該クロックパルスCjまたは反転クロックパルス BarCjを前記データパルス信号列に対応した元のパルス信号列生成用のクロックパルスとして出力する同期信号パルス作成回路29と、前記データパルス信号列はデジタル信号としての1ビットが「1」または「0」で表されて複数のビットで構成されており、前記「1」のビットデータに対応した1周期の入力波形がHレベルとLレベルで構成され、前記「0」のビットデータに対応した1周期の入力波形がLレベルとLレベルで構成された該データパルス信号列を前記受信回路21から直接的または間接的に受信し、出力波形として前記「1」のビットデータに対応した波形は1周期の間Hレベルを出力し、前記「0」のビットデータに対応した波形は1周期の間Lレベルを出力するデータ受信手段とを備え、
 前記同期信号パルス作成回路29は、
 前記受信装置2の第2の発振器27からのクロックパルスCjにより前記送信装置1の送信回路14からのデータパルス信号列を前記受信回路21を介して同期して受信する第1の受信手段31と、
 前記受信装置2の第2の発振器27からの反転クロックパルス BarCjにより前記送信装置1の送信回路14からのデータパルス信号列を前記受信回路21を介して同期して受信する第2の受信手段32と、
 前記第1の受信手段31にてデータパルス信号列を受信した場合には前記同期信号パルス作成回路29から出力されるクロックパルスをクロックパルスCjとすべく、該同期信号パルス作成回路29から反転クロックパルス BarCjが出力されるのを阻止し、前記第2の受信手段32にてデータパルス信号列を受信した場合には前記同期信号パルス作成回路29から出力されるクロックパルスを反転クロックパルス BarCjとすべく、該同期信号パルス作成回路29からクロックパルスCjが出力されるのを阻止する阻止手段とを備え、
 前記第1の発振器11のクロックパルスと前記第2の発振器27のクロックパルスとの周期を同一にすると共に、前記送信回路14からのデータパルス信号列を受信可能にすべく第1の発振器11及び第2の発振器27の両クロックパルスのデューティ比、及び前記データパルス信号列のデューティ比をそれぞれ50%に設定し、
 前記同期信号パルス作成回路29に設けた前記阻止手段により、前記第1の受信手段31にてデータパルス信号列を受信した場合には前記同期信号パルス作成回路29から出力されるクロックパルスをクロックパルスCjとすべく、該同期信号パルス作成回路29から反転クロックパルス BarCjが出力されるのを阻止し、前記第2の受信手段32にてデータパルス信号列を受信した場合には前記同期信号パルス作成回路29から出力されるクロックパルスを反転クロックパルス BarCjとすべく、該同期信号パルス作成回路29からクロックパルスCjが出力されるのを阻止し、
 前記受信装置2に設けた端子43から前記データ受信手段からのデータ列の信号を外部の装置へ制御信号用として直接出力すると共に、
 前記受信装置2に設けた端子41から、前記第1の受信手段31にてデータパルス信号列が受信された場合には前記同期信号パルス作成回路29からクロックパルスCjを、前記第2の受信手段32にてデータパルス信号列が受信された場合には前記同期信号パルス作成回路29から反転クロックパルス BarCjを前記端子43から出力される制御用信号の同期信号として出力するようにしている
ことを特徴としている。
 請求項4に記載の非同期型における送受信装置では、スタート信号PS、データ信号PD及びエンド信号PEからなるデータパルス信号列を伝送する送信装置1と、
 前記送信装置1からのデータパルス信号列を受信し、該受信したデータパルス信号列を出力して該データ信号PDに基づいて外部の装置をコントロールする受信装置2とからなる非同期型における送受信装置において、
 前記送信装置1は、
 同期信号としてのクロックパルスを出力する第1の発振器11と、この第1の発振器11からのクロックパルスに同期されて前記データパルス信号列を生成するデジタルデータ信号作成回路12と、このデジタルデータ信号作成回路12から出力されるデータパルス信号列を前記受信装置2側に送信する送信回路14とを備え、
 前記受信装置2は、
 前記送信装置1の送信回路14からのデータパルス信号列を受信する受信回路21と、同期信号としてのクロックパルスを出力する第2の発振器27と、前記第2の発振器27からのクロックパルスCjまたはこのクロックパルスCjを反転させた反転クロックパルス BarCjを出力し、該クロックパルスCjまたは反転クロックパルス BarCjを前記データパルス信号列に対応した元のパルス信号列生成用のクロックパルスとして出力する同期信号パルス作成回路29と、前記データパルス信号列はデジタル信号としての1ビットが「1」または「0」で表されて複数のビットで構成されており、前記「1」のビットデータに対応した1周期の入力波形がHレベルとLレベルで構成され、前記「0」のビットデータに対応した1周期の入力波形がLレベルとLレベルで構成された該データパルス信号列を前記受信回路21から直接的または間接的に受信し、出力波形として前記「1」のビットデータに対応した波形は1周期の間Hレベルを出力し、前記「0」のビットデータに対応した波形は1周期の間Lレベルを出力するデータ受信手段と、前記データ受信手段からの出力と前記同期信号パルス作成回路29からの出力との論理積をとって前記データパルス信号列と同形態のパルス信号列を出力するアンド回路G10とを備え、
 前記第1の発振器11のクロックパルスと前記第2の発振器27のクロックパルスとの周期を同一にすると共に、前記送信回路14からのデータパルス信号列を受信可能にすべく第1の発振器11及び第2の発振器27の両クロックパルスのデューティ比、及び前記データパルス信号列のデューティ比をそれぞれ50%に設定するデューティ比設定手段を設け、
 前記同期信号パルス作成回路29を、
 前記受信装置2の第2の発振器27からのクロックパルスCjにより前記送信装置1の送信回路14からのデータパルス信号列を前記受信回路21を介して同期して受信する第1の受信手段31と、
 前記受信装置2の第2の発振器27からの反転クロックパルス BarCjにより前記送信装置1の送信回路14からのデータパルス信号列を前記受信回路21を介して同期して受信する第2の受信手段32と、
 前記第1の受信手段31にてデータパルス信号列を受信した場合には前記同期信号パルス作成回路29から出力されるクロックパルスをクロックパルスCjとすべく、該同期信号パルス作成回路29から反転クロックパルス BarCjが出力されるのを阻止し、前記第2の受信手段32にてデータパルス信号列を受信した場合には前記同期信号パルス作成回路29から出力されるクロックパルスを反転クロックパルス BarCjとすべく、該同期信号パルス作成回路29からクロックパルスCjが出力されるのを阻止する阻止手段と
で構成し、
 前記第1の受信手段31にてデータパルス信号列が受信された場合には前記同期信号パルス作成回路29から出力されるクロックパルスCjと前記データ受信手段からの出力とを前記アンド回路G10にてクロックパルスCjのHレベル時の論理積で同期をとって出力し、
 前記第2の受信手段32にてデータパルス信号列が受信された場合には前記同期信号パルス作成回路29から出力される反転クロックパルス BarCjと前記データ受信手段からの出力とを前記アンド回路G10にて反転クロックパルス BarCjのHレベル時の論理積で同期をとって出力するようにしていることを特徴としている。
 請求項5に記載の非同期型における送受信装置では、前記同期信号パルス作成回路29から出力されるクロックパルスCjまたは反転クロックパルス BarCjを、前記受信装置2側の外部の装置の同期信号用として該装置でも使用できるように出力する端子41を設けていることを特徴としている。
 請求項6に記載の非同期型における送受信装置では、スタート信号PS、データ信号PD及びエンド信号PEからなるデータパルス信号列を伝送する送信装置1と、
 前記送信装置1からのデータパルス信号列を受信し、該受信したデータパルス信号列を出力して該データ信号PDに基づいて外部の装置をコントロールする受信装置2とからなる非同期型における送受信装置において、
 前記送信装置1は、
 同期信号としてのクロックパルスを出力する第1の発振器11と、この第1の発振器11からのクロックパルスに同期されて前記データパルス信号列を生成するデジタルデータ信号作成回路12と、このデジタルデータ信号作成回路12から出力されるデータパルス信号列を前記受信装置2側に送信する送信回路14とを備え、
 前記受信装置2は、
 前記送信装置1の送信回路14からのデータパルス信号列を受信する受信回路21と、同期信号としてのクロックパルスを出力する第2の発振器27と、前記第2の発振器27からのクロックパルスCjまたはこのクロックパルスCjを反転させた反転クロックパルス BarCjを出力し、該クロックパルスCjまたは反転クロックパルス BarCjを前記データパルス信号列に対応した元のパルス信号列生成用のクロックパルスとして出力する同期信号パルス作成回路29と、前記データパルス信号列はデジタル信号としての1ビットが「1」または「0」で表されて複数のビットで構成されており、前記「1」のビットデータに対応した1周期の入力波形がHレベルとLレベルで構成され、前記「0」のビットデータに対応した1周期の入力波形がLレベルとLレベルで構成された該データパルス信号列を前記受信回路21から直接的または間接的に受信し、出力波形として前記「1」のビットデータに対応した波形は1周期の間Hレベルを出力し、前記「0」のビットデータに対応した波形は1周期の間Lレベルを出力するデータ受信手段とを備え、
 前記第1の発振器11のクロックパルスと前記第2の発振器27のクロックパルスとの周期を同一にすると共に、前記送信回路14からのデータパルス信号列を受信可能にすべく第1の発振器11及び第2の発振器27の両クロックパルスのデューティ比、及び前記データパルス信号列のデューティ比をそれぞれ50%に設定するデューティ比設定手段を設け、
 前記同期信号パルス作成回路29を、
 前記受信装置2の第2の発振器27からのクロックパルスCjにより前記送信装置1の送信回路14からのデータパルス信号列を前記受信回路21を介して同期して受信する第1の受信手段31と、
 前記受信装置2の第2の発振器27からの反転クロックパルス BarCjにより前記送信装置1の送信回路14からのデータパルス信号列を前記受信回路21を介して同期して受信する第2の受信手段32と、
 前記第1の受信手段31にてデータパルス信号列を受信した場合には前記同期信号パルス作成回路29から出力されるクロックパルスをクロックパルスCjとすべく、該同期信号パルス作成回路29から反転クロックパルス BarCjが出力されるのを阻止し、前記第2の受信手段32にてデータパルス信号列を受信した場合には前記同期信号パルス作成回路29から出力されるクロックパルスを反転クロックパルス BarCjとすべく、該同期信号パルス作成回路29からクロックパルスCjが出力されるのを阻止する阻止手段と
で構成し、
 前記データ受信手段からのデータ列の信号を外部の装置へ制御信号用として直接出力する端子43と、
 前記第1の受信手段31にてデータパルス信号列が受信された場合には前記同期信号パルス作成回路29からクロックパルスCjが、前記第2の受信手段32にてデータパルス信号列が受信された場合には前記同期信号パルス作成回路29から反転クロックパルス BarCjが前記端子43から出力される制御用信号の同期信号として出力される端子41とを
前記受信装置2に設けていることを特徴としている。
 請求項7に記載の非同期型における送受信装置では、前記データ受信手段を、前記受信回路21からのデータパルス信号列を直接受信すると共に、該データパルス信号列を構成している各入力信号パルスを一旦保持するRS型フリップフロップ24と、このRS型フリップフロップ24の出力を前記同期信号パルス作成回路29からのクロックパルスに同期して出力するD型フリップフロップ25とで構成し、該D型フリップフロップ25の出力を外部の装置をコントロールする信号としていることを特徴としている。
 請求項8に記載の非同期型における送受信装置では、前記データ受信手段を、前記第1の受信手段31を第1のJK型フリップフロップ31で構成すると共に、前記第2の受信手段32を第2のJK型フリップフロップ32で構成し、前記第1のJK型フリップフロップ31からの出力信号と、前記第2のJK型フリップフロップ32からの出力信号との双方を受けるオアゲートG9で構成し、該オアゲートG9の出力を外部の装置をコントロールする信号としていることを特徴としている。
 請求項9に記載の非同期型における送受信装置では、前記第1の受信手段31を、前記データパルス信号列を前記クロックパルスCjにて同期してセット出力を出す第1のフリップフロップ31で構成すると共に、前記第2の受信手段32を前記データパルス信号列を前記反転クロックパルス BarCjにて同期してセット出力を出す第2のフリップフロップ32で構成し、
 前記阻止手段を、
 前記第1のフリップフロップ31の出力がセット入力端子Sに入力され、前記第2のフリップフロップ32の出力がリセット入力端子Rに入力される第1のRS型フリップフロップ33と、
 前記第1のフリップフロップ31の出力がリセット入力端子Rに入力され、前記第2のフリップフロップ32の出力がセット入力端子Sに入力される第2のRS型フリップフロップ34と、
 前記第1のRS型フリップフロップ33の出力が入力される第1のインバータゲートG4と、
 前記第1のインバータゲートG4の出力と前記反転クロックパルス BarCjが入力される第1のアンドゲートG6と、
 前記第2のRS型フリップフロップ34の出力が入力される第2のインバータゲートG5と、
 前記第2のインバータゲートG5の出力と前記クロックパルスCjが入力される第2のアンドゲートG7と
で構成していることを特徴としている。
 請求項10に記載の非同期型における送受信装置では、前記送信装置1のデジタルデータ信号作成回路12の出力を増幅する増幅回路13を設け、この増幅回路13の増幅度及び前記第1の発振器11の周波数をそれぞれ可変可能とし、
 前記受信装置2の受信回路21の出力を増幅する増幅回路22及びこの増幅回路22の出力を波形整形するシュミット回路からなる波形整形回路23とを設け、前記増幅回路22の増幅度、波形整形回路23のシュミットレベル及び前記第2の発振器27の周波数をそれぞれ可変可能としていることを特徴としている。
 請求項1に記載の非同期型における送受信装置間の同期方法によれば、送信装置側と受信装置側にそれぞれ発振回路を有している非同期型の送受信装置の場合でも、送信装置1側からのデータ信号PDに対して受信装置2側のクロックパルスの位相が進んだり、遅れたりした場合でも、誤動作せずにデータ信号PDを正確に受信できるようにすることができる。また、同期信号パルス作成回路29から出力されるクロックパルスCjまたは反転クロックパルス BarCjと前記データ受信手段からの出力とを前記アンド回路G10にて論理積をとって出力するようにしていることで、送信装置側から送られてきたデータパルス信号列と同じ形態のデータパルス信号をリアルタイムに出力することができる。また、本発明の送受信装置を用いて、既存の独立したシステム間における相互の送受信を容易に可能とすることができる。
 請求項2に記載の非同期型における送受信装置間の同期方法によれば、前記同期信号パルス作成回路29から出力されるクロックパルスCjまたは反転クロックパルス BarCjを、前記受信装置2側の外部の装置の同期信号用として該装置でも使用できるように出力していることで、受信装置2の外部装置側では、受信装置2から出力されるデータ信号PDを正確に読み取ることができ、送信装置1から伝送されたデータ信号PDに基づいて外部装置を誤動作することなくコントロールすることができる。
 請求項3に記載の非同期型における送受信装置間の同期方法によれば、端子43からはデータ受信手段で受信したデータ列の信号が出力され、受信装置2によりコントロールされる装置側では、このデータ列から端子41から出力されるクロックパルスCjまたは反転クロックパルス BarCjを同期信号として解読が行なわれる。
 請求項4に記載の非同期型における送受信装置によれば、送信装置側と受信装置側にそれぞれ発振回路を有している非同期型の送受信装置の場合でも、送信装置1側からのデータ信号PDに対して受信装置2側のクロックパルスの位相が進んだり、遅れたりした場合でも、誤動作せずにデータ信号PDを正確に受信できるようにすることができる。また、同期信号パルス作成回路29から出力されるクロックパルスCjまたは反転クロックパルス BarCjと前記データ受信手段からの出力とを前記アンド回路G10にて論理積をとって出力するようにしていることで、送信装置側から送られてきたデータパルス信号列と同じ形態のデータパルス信号をリアルタイムに出力することができる。また、本発明の送受信装置を用いて、既存の独立したシステム間における相互の送受信を容易に可能とすることができる。
 請求項5に記載の非同期型における送受信装置によれば、前記同期信号パルス作成回路29から出力されるクロックパルスCjまたは反転クロックパルス BarCjを、前記受信装置2側の外部の装置の同期信号用として該装置でも使用できるように出力する端子41を設けているので、受信装置2の外部装置側では、受信装置2から出力されるデータ信号PDを正確に読み取ることができ、送信装置1から伝送されたデータ信号PDに基づいて外部装置を誤動作することなくコントロールすることができる。
 請求項6に記載の非同期型における送受信装置によれば、端子43からはデータ受信手段で受信したデータ列の信号が出力され、受信装置2によりコントロールされる装置側では、このデータ列から端子41から出力されるクロックパルスCjまたは反転クロックパルス BarCjを同期信号として解読が行なわれる。
 請求項7に記載の非同期型における送受信装置によれば、前記データ受信手段を、前記受信回路21からのデータパルス信号列を直接受信すると共に、該データパルス信号列を構成している各入力信号パルスを一旦保持するRS型フリップフロップ24と、このRS型フリップフロップ24の出力を前記同期信号パルス作成回路29からのクロックパルスに同期して出力するD型フリップフロップ25とで構成し、該D型フリップフロップ25の出力を外部の装置をコントロールする信号としていることで、データパルス信号列と同じ形態のデータパルス信号の出力の他に、出力形式としてD型フリップフロップから出力して、外部装置側において、D型フリップフロップの出力を取り込んで回路処理を容易にすることができる。
 請求項8に記載の非同期型における送受信装置によれば、前記データ受信手段を、前記第1の受信手段31を第1のJK型フリップフロップ31で構成すると共に、前記第2の受信手段32を第2のJK型フリップフロップ32で構成し、前記第1のJK型フリップフロップ31からの出力信号と、前記第2のJK型フリップフロップ32からの出力信号との双方を受けるオアゲートG9で構成し、該オアゲートG9の出力を外部の装置をコントロールする信号としていることで、データパルス信号列と同じ形態のデータパルス信号の出力の他に、出力形式としてJK型フリップフロップから出力して、外部装置側において、JK型フリップフロップの出力を取り込んで回路処理を容易にすることができる。
 請求項9に記載の非同期型における送受信装置によれば、阻止手段を論理回路を用いた簡単な構成で出来、しかも低コストに構成することができる。
 請求項10に記載の非同期型における送受信装置によれば、ノイズが正規のデータパルス信号列と周期等が全く同一の場合には、送信装置1の発振器11と、受信装置2の発振器27の発生周波数を可変抵抗を用いて変えることで、ノイズによる誤動作を防止することができる。なお、この場合、可変させた周波数(周期)のデューティ比は50%とする。また、一定レベル以上のノイズが発生している場合では、送信装置1の増幅回路13のレベルを上げると共に、受信装置2の波形整形回路23でのシュミットレベルを上げることで、データパルス信号列のパルス信号を効果的に受信することができる。
図1は本発明の前提となる実施の形態における送受信装置のブロック図である。 図2は本発明の前提となる同期信号作成回路の具体回路図である。 本発明の実施の形態におけるデータパルス信号列の構成図である。 図4a~lは本発明の実施の形態における入力信号パルスをクロックパルスCjで取り込んだ場合のタイミングチャートである。 図5a~lは本発明の実施の形態における入力信号パルスを反転クロックパルス BarCjで取り込んだ場合のタイミングチャートである。 図6は本発明の実施の形態におけるクロックパルスの位相がどのようにずれていっても入力パルスを正確に取り込むことを示す説明図である。 図7a~cは本発明の実施の形態における入力信号パルスのデューティ比を50%以下とした場合の説明図である。 図8a~cは本発明の実施の形態における入力信号パルスのデューティ比を50%以下とした場合の説明図である。 図9a~cは本発明の実施の形態における入力信号パルスのデューティ比を50%以下とした場合の説明図である。 図10a~cは本発明の実施の形態における入力信号パルスとクロックパルスとのデューティ比を共に50%以下にした場合の説明図である。 図11a~cは本発明の実施の形態における入力信号パルスとクロックパルスとのデューティ比を共に50%以下にした場合の説明図である。 図12a~cは本発明の実施の形態における入力信号パルスとクロックパルスとのデューティ比を共に50%以下にした場合の説明図である。 図13a~cは本発明の実施の形態におけるクロックパルスのデューティ比を50%以下にした場合の説明図である。 図14a~cは本発明の実施の形態におけるクロックパルスのデューティ比を50%以下にした場合の説明図である。 図15a~cは本発明の実施の形態におけるクロックパルスのデューティ比を50%以下にした場合の説明図である。 図16a、bは本発明の実施の形態におけるクロックパルスCjのみを用いた場合の説明図である。 図17a、bは本発明の実施の形態におけるクロックパルスCjのみを用いた場合の説明図である。 図18は本発明の前提となる図2の回路による動作を示すタイミングチャートである。 図19は本発明の第1の実施の形態における全体のブロック図である。 図20は本発明の第1の実施の形態における同期信号パルス作成回路及びデータ受信手段のブロック図である。 図21は本発明の第1の実施の形態における図20に対応した動作を示すタイミングチャートである。 図22は本発明の第2の実施の形態における全体のブロック図である。 図23は本発明の第2の実施の形態における同期信号パルス作成回路及びデータ受信手段のブロック図である。 図24は本発明の第2の実施の形態における図23に対応した動作を示すタイミングチャートである。 図25は本発明の実施の形態におけるユーザー側を考慮した外部インターフェース等のブロック図である。
符号の説明
  1 送信装置
  2 受信装置
 11 発振器
 12 デジタルデータ信号作成回路
 13 増幅回路
 14 送信回路
 21 受信回路
 22 増幅回路
 23 波形整形回路
 24 RS型フリップフロップ
 25 Dフリップフロップ
 27 発振器
 29 同期信号パルス作成回路
 31 第1のフリップフロップ
 32 第2のフリップフロップ
 33 第1のRSフリップフロップ
 34 第2のRSフリップフロップ
 G1~G5 インバータゲート
 G6、G7 アンドゲート
 G8 オアゲート
 G9 オアゲート
 G10 アンドゲート
 PS スタート信号
 PD データ信号
 PE エンド信号
 (本発明の前提となる実施の形態)
 まず、本発明の具体的な実施の形態を説明する前に、本発明の前提となる実施の形態について説明する。この前提発明は、上記特許文献3に記載の技術をベースにして、非同期型における送受信装置間の同期方法に適用したものである。
 図1は非同期型の送信装置1と受信装置2のブロック図を示しており、送信装置1からデータ信号が受信装置2へ送信され、受信装置2側では受信した送信装置1からのデータ信号に基づいて図外の外部の装置をコントロールする。
 送信装置1は、任意の周波数を発振して該送信装置1のクロックパルス(同期信号)として出力する発振器11と、この発振器11からのクロックパルスにて同期してスタート信号、データ信号、エンド信号等を作成するデジタルデータ信号作成回路12と、前記発振器11及びデジタルデータ信号作成回路12にて生成されたデジタルデータ信号(後述するデータパルス信号列)を増幅する増幅回路13と、この増幅回路13からのデジタルデータ信号を受信装置2側に送信する送信回路14とで構成されている。なお、デジタルデータ信号作成回路12では予めインストールされたソフトウエアや、キーボードから入力された信号や送信装置1側からの外部装置からの入力信号に基づいてデジタルデータ信号が作成される。
 上記発振器11は、パルス幅、周波数は可変可能としており、また、増幅回路13でも増幅度は可変可能としている。また、上記発振器11は、送信装置1側の外部装置でも使用できるように出力をしている。
 また、受信装置2は、送信装置1の送信回路14からのデジタルデータ信号を受信する受信回路21と、この受信回路21からの出力を増幅する増幅回路22と、この増幅回路22からの出力を波形整形するシュミット回路からなる波形整形回路23と、この波形整形回路23からの出力であるデジタルデータ信号の各パルス信号を瞬時的に保持するフリップフロップ24と、このフリップフロップ24からの信号を順次取り込むDフリップフロップ25と、このDフリップフロップ25にて取り込むための波形整形回路23からのパルス信号と発振器27からの加工前の元のクロックパルスにて同期信号を作成して、作成したクロックパルスをDフリップフロップ25に同期信号として出力する同期信号作成回路26と、この同期信号作成回路26に加工前の元のクロックパルスを与える発振器27とで構成されている。なお、Dフリップフロップ25の出力より図外の機器を制御するためのデータ信号が出力される。また、このDフリップフロップ25の代わりに、JKフリップフロップでも良い。つまり、このフリップフロップ25としては、同期信号作成回路26からの同期信号に応じてデータ(パルス)を読み込み、出力するタイプのフリップフロップであれば、どのタイプのフリップフロップでも良い。
 なお、受信装置2の増幅回路22では、増幅度は可変可能とし、波形整形回路23でのシュミットレベルも可変可能としている。また、発振器27においては、パルス幅と周波数は可変可能であり、設定上は、この発振器27も送信装置1の発振器11も同一の周波数としている。さらに、送信装置1の発振器11のデューティ比も、受信装置2の発振器27のデューティ比も同じにして、それぞれ50%のデューティ比としている。また、送信装置1及び受信装置2の電源部等の回路は省略している。
 図2は前記同期信号作成回路26等の具体回路図を示している。波形整形回路23からの信号であるパルス信号が図中のa点に入力され、インバータゲートG1、インバータゲートG2を介してRS型のフリップフロップ24のセット入力端子Sに入力される。また、フリップフロップ24のリセット入力端子Rへは、前記インバータゲートG1の出力信号が入力されている。そして、フリップフロップ24の出力端子Qからの信号は、Dフリップフロップ25の入力端子Dに入力されている。そして、Dフリップフロップ25の出力端子Qから制御信号としてパルス信号がシリアルに出力されるようになっている。
 なお、このDフリップフロップ25等の代わりに、デジタルデータ信号であるデータパルス信号列のパルス数に応じた段数のシフトレジスタにて構成するようにしても良い。
 同期信号作成回路26は、RST型の第1のフリップフロップ31及び第2のフリップフロップ32と、3つのインバータゲートG3~G5と、2つのアンドゲートG6、G7と、オアゲートG8等で構成されている。
 前記インバータゲートG1の出力は、フリップフロップ24と同様に、第1のフリップフロップ31のリセット入力端子Rと、第2のフリップフロップ32のリセット入力端子Rにそれぞれ入力されている。また、前記インバータゲートG2の出力は第1のフリップフロップ31のセット入力端子Sと、第2のフリップフロップ32のセット入力端子Sにそれぞれ入力されている。
 発振器27からは図4eに示すようなデューティ比が50%のクロックパルスCjが出力されており、このクロックパルスCjが第1のフリップフロップ31のトリガ端子Tに入力されると共に、アンドゲートG7の一方の入力端に入力されている。
 発振器27からのクロックパルスCjをインバータゲートG3にて反転させたクロックパルスが反転クロックパルス BarCjとして第2のフリップフロップ32のトリガ端子Tに入力されると共に、アンドゲートG6の一方の入力端に入力されている。
 第1のフリップフロップ31のQ出力は、インバータゲートG4を介して反転されてアンドゲートG6の他方の入力端に入力され、また、第2のフリップフロップ32のQ出力は、インバータゲートG5を介して反転されてアンドゲートG7の他方の入力端に入力されている。
 アンドゲートG6とアンドゲートG7の出力はそれぞれオアゲートG8に入力され、このオアゲートG8の出力から同期信号としてクロックパルスCj、または反転クロックパルス BarCjがDフリップフロップ25のクロック端子CLKに入力されている。
 なお、本発明の明細書に添付している図面に記載している回路図は、実際の回路製作時の設計図面ではないので、タイミング調整用の回路素子は記載していない。発明の内容を説明するために必要な論理回路のみを記載している。
 インバータゲートG1及びG2などは代表回路図として描いている。実際の回路を製作する時にはフリップフロップ24のセットやリセットに必要な時間(使用するフリップフロップ素子の応答速度)に合わせて入力信号のタイミング調整を行なうので、実際の回路製作の設計図では、インバータゲートG1もインバータゲートG2も1個以上の奇数個のインバータの直列接続にする。
 図3は本発明で取り扱うパルス信号を示しており、スタート信号PS、アイドル状態ID、データ信号PD、アイドル状態ID及びエンド信号PEからなるひとかたまりのパルス信号からなり、これらのひとかたまりのパルス信号をデータパルス信号列と称する(定義する)。
 図示例では、このデータパルス信号列を構成しているスタート信号PSは1パルスとしているが、任意の数のパルスで構成される。また、スタート信号PSの次のアイドル状態IDは任意のパルス数に応じた区間を設定している。アイドル状態IDの次に送るのが複数のパルスで構成されるデータ信号PDであり、図2に示す受信装置2に接続される外部の装置を具体的にコントロールする信号である。
 このデータ信号PDの後にもアイドル状態IDを設けている。このアイドル状態IDの後にエンド信号PEが設けられていて、このエンド信号PEも任意のパルス数にて構成されている。また、データパルス信号列の前後には周知のようにアイドル状態が設けられる。
 なお、スタート信号PSの後のアイドル状態IDと、エンド信号PEの前のアイドル状態IDは無くしてスタート信号PSの後にデータ信号PDを持ってきて、さらにデータ信号PDの後にエンド信号PEを持ってくるようにしても良い。この場合、スタート信号PSの前とエンド信号PEの後にアイドル状態IDの区間を持ってくるようにする。
 また、図3に示すデータパルス信号列の各パルスの1周期のデューティ比は50%としている。このデータパルス信号列は、送信装置1の発振器11とデジタルデータ信号作成回路12にて作成されるものである。
 次に、図2に示すフリップフロップ24及び同期信号作成回路26の動作を説明するが、非同期型の送受信装置は、同期型の送受信装置とは異なり、送信装置1と受信装置2にはそれぞれ個別に発振器11、27を備えているために、同期信号としてのクロックパルスの処理に工夫を要する。
 同期型の送受信装置では、1つの発振器からの同一のクロックパルスを用いているため、受信したデータパルス信号列と受信装置側の信号処理回路用クロックパルスとは同期がとれているが、非同期型の送受信装置では、送信装置1側から送られてくるデータパルス信号列と、受信装置2側の信号処理回路用クロックパルスとは個別で同一ではないので同期がとれておらず、そのため、この同期方法について工夫を要する。
 すなわち、受信装置2側は、図2に示すように、フリップフロップ24で入力パルスを記憶させて、後段のDフリップフロップ25へパルス信号を送り出すのであるが、フリップフロップ24で記憶させた入力パルスを後段のDフリップフロップ25でどのようなクロックパルスにて取り出していくかが重要となる。
 また、データパルス信号列の各パルス信号を受信した場合には、フリップフロップ24でパルス信号を確実に記憶し、パルス信号をフリップフロップ24にてセットした後は、次のパルス信号が来るまでには必ず当該フリップフロップ24をリセットしておく必要がある。そして、フリップフロップ24にてセットした信号を後段のDフリップフロップ25へクロックパルスにて取り込むのである。
 また、受信装置2側のクロックパルスと、該クロックパルスの反転信号にて、常時入力パルス(パルス信号)の受信を監視しており、クロックパルスCj、あるいは反転クロックパルス BarCjのどちらで入力パルスを受信したかにより、Dフリップフロップ25の出力を送り出すためのクロックパルスCj、あるいは反転クロックパルス BarCjを使い分けて、Dフリップフロップ25の信号を確実に送り出すことができるようにしている。
 先ず、フリップフロップ24でのデータパルス信号列のパルス信号の取り込みとDフリップフロップ25の同期信号としてのクロックパルスCjまたは反転クロックパルス BarCjの自動選択の方法について、図2、図4及び図5により説明する。なお、図2のa点~l点の波形は、図4及び図5のa~lに対応させている。
 また、図4及び図5では、パルス信号が連続して受信されている場合を示しており、受信されたパルス信号を説明の便宜上「入力信号パルス」と称する。
 図4は、発振器27から出力されるクロックパルスCjで入力信号パルスを取り込んだ場合の各部のタイミングチャートを示し、最初に図4aに示す入力信号パルスが到来すると、図4bに示すように、インバータゲートG1により少し遅延した反転信号が出力される。さらに、インバータゲートG2により更に少し遅延して入力信号パルスが出力される(図4c参照)。
 電源投入時の初期状態では、各フリップフロップ24、31、32はリセットされている状態であり、1つ目の入力信号パルスA1を受信すると、インバータゲートG2からのセットパルスS1にてフリップフロップ24がセットされる。その後、インバータゲートG1からのリセットパルスR1(図4b参照)にてフリップフロップ24がリセットされる。以後、図4dに示すように、フリップフロップ24は同様に入力信号パルスAを受信する毎に、セット、リセットを繰り返す。
 ここで、入力信号パルスAとは周波数(周期)を同じとし、図4eに示すデューティ比を50%としたクロックパルスCjが第1のフリップフロップ31のトリガ端子Tに入力され、また、このクロックパルスCjをインバータゲートG3で反転させた反転クロックパルス BarCj(図4f参照)が、第2のフリップフロップ32のトリガ端子Tに入力されている。
 図4では、クロックパルスCjの場合に第1のフリップフロップ31をセット状態に保持し(図4e、g参照)、第1のフリップフロップ31のQ出力はHレベルを出力している。
 そして、図4fに示すように、反転クロックパルス BarCjの立ち上がりの時点では、第2のフリップフロップ32のセット入力端子Sに入力されるレベルがLレベルのため、第2のフリップフロップ32はLレベルが取り込まれて、Q出力は図4hに示すようにLレベルとなっている。
 第1のフリップフロップ31のQ出力は上述したようにHレベルであり(図4g参照)、インバータゲートG4の出力はLレベルとなって、アンドゲートG6の出力はLレベルの状態となって反転クロックパルス BarCjは出力されない(図4i参照)。
 第2のフリップフロップ32のQ出力はLレベルであり(図4h参照)、そのため、インバータゲートG5の出力はHレベルとなって、アンドゲートG7の出力は図4jに示すように、クロックパルスCjが出力されている。そして、Dフリップフロップ25のクロックパルスを供給するオアゲートG8には、クロックパルスCjが入力されることになり、オアゲートG8の出力は、図4kに示すようにクロックパルスCjが出力される。
 このオアゲートG8からのクロックパルスCjがDフリップフロップ25の同期信号として、Dフリップフロップ25のクロック端子CLKに入力されて、入力信号パルスAに応じたHレベルの信号が図4のlに示すようにDフリップフロップ25に取り込まれる。
 図5は、入力信号パルスAに対して発振器27からのクロックパルスの位相がずれていって、入力信号パルスAを反転クロックパルス BarCjで取り込んだ場合のタイミングチャートを示し、a~dは図4と同じであるが、e、fに示すように、クロックパルスCjと反転クロックパルス BarCjとの位相が反転している。
 反転クロックパルス BarCjの場合に第2のフリップフロップ32をセット状態に保持し(図5f、h参照)、第2のフリップフロップ32のQ出力はHレベルを出力している。そして、図5eに示すクロックパルスCjの立ち上がり時点では第1のフリップフロップ31に入力されるレベルがLレベルのため、第1のフリップフロップ31はLレベルを取り込んで、Q出力はLレベルが出力されている(図5g参照)。
 かかる状態において、図2に示すように、第2のフリップフロップ32のQ出力はHレベルのため、アンドゲートG5の出力はLレベルであり、そのため、アンドゲートG7の一方の入力端にクロックパルスCjが入力されていても、該アンドゲートG7の出力はLレベルを維持している。
 第1のフリップフロップ31のQ出力はLレベルのため、アンドゲートG4の出力はHレベルとなり、アンドゲートG6の出力からは反転クロックパルス BarCjが出力される。
 そして、Dフリップフロップ25にクロックパルスを供給するオアゲートG8にはアンドゲートG6から反転クロックパルス BarCjが入力され、オアゲートG8からは図5kに示すように、反転クロックパルス BarCjが出力される。
 この反転クロックパルス BarCjがDフリップフロップ25の同期信号としてクロック端子CLKに入力され、入力信号パルスAに応じたHレベルの信号が図4のlに示すようにDフリップフロップ25に取り込まれる。
 このようにして、入力信号パルスAの到来毎にフリップフロップ24にてセットし、その後直ぐにフリップフロップ24をリセットして、次に到来する入力信号パルスAに対して待機状態を保持している。また、入力信号パルスAを受信する際に用いるクロックパルス(クロックパルスCj、反転クロックパルス BarCj)の位相がずれた場合でも、Cjまたは BarCjのいずれかのクロックパルスにて、フリップフロップ24にてセットしたパルス信号を確実にDフリップフロップ25にて後段に送り出すことができ、そのため、誤動作なく正常に動作をさせることができる。
 なお、図4及び図5では、デューティ比が50%の入力信号パルスが連続して受信されている場合を示しているので、クロックパルスCjまたは反転クロックパルス BarCjのいずれの同期信号の場合でも、Dフリップフロップ25の出力はHレベルを維持している状態となっている。
 図6は、送信装置1の発振器11の発生するクロックパルス(パルス信号となる)と、受信装置2の発振器27の発生するクロックパルス(Cjと BarCjとで信号処理回路のクロックパルスとなる)の相対的な位相がずれていても大丈夫であることを図示している。すなわち、クロックパルスの位相がどのようにずれていっても、入力信号パルスを正確に取り込むことが可能であることを示すタイミングチャートを示している。
 先ず、図6のAは、入力信号パルスに対してクロックパルスCjの位相が進んでいる場合を示し、この場合には、反転クロックパルス BarCjにて入力信号パルスを取り込む。
 図6のBは、入力信号パルスに対してクロックパルスの位相が遅れてきて入力信号パルスの立ち下がりと反転クロックパルス BarCjの立ち上がりがほぼ同じ場合を示し、この場合、反転クロックパルス BarCjにて入力信号パルスを取り込む。
 図6のCは、クロックパルスが更に遅れていって、入力信号パルスとクロックパルスCjとの立ち上がりがほぼ同じ場合であり、この場合にはクロックパルスCjにて入力信号パルスを取り込む。
 図6のDは、入力信号パルスに対してクロックパルスが遅れている場合であり、クロックパルスCjにて入力信号パルスを取り込む。
 図6のEは、クロックパルスが入力信号パルスに対して更に遅れている場合であって、入力信号パルスの立ち下がりと、クロックパルスCjの立ち上がりがほぼ同じ場合であり、クロックパルスCjにて入力信号パルスを取り込む。
 図6のFは、入力信号パルスの立ち上がりと反転クロックパルス BarCjの立ち上がりとがほぼ同じ場合であり、反転クロックパルス BarCjにて入力信号パルスを取り込む。そして、このF以降は上記Aに戻り、これを繰り返す。
 図2に示すDフリップフロップ25で用いる同期信号としてのクロックパルスCjと反転クロックパルス BarCjの選択は、同期信号作成回路26で自動的に行なわれるものであり、受信された入力信号パルスをフリップフロップ24にて確実にセット、リセットし、また、入力信号パルス毎に同期信号作成回路26にて自動的に選択したクロックパルスCjまたは反転クロックパルス BarCjにてDフリップフロップ25で入力信号パルスを順次後段に送り出すことができる。
 なお、図6に示すタイミングチャートにおいて、入力信号パルスとクロックパルスとの間の立ち上がり、立ち下がりとが図面上で同じとなっている場合は、両者の相対的な位相のズレにより、入力信号パルスのHレベル、またはLレベルをクロックパルスにて取り込むようになっている。
 上述のように、送信装置1の発振器11と受信装置2の発振器27との周波数(周期)を同一とし、且つデューティ比をそれぞれ50%としていることで、入力信号パルスに対して受信装置2側のクロックパルスの位相が進んだり、遅れたりした場合でも、入力信号パルスに同期してDフリップフロップ25での信号の取り込みを確実にしている。
 次に、2つの発振器11、27の周期を同一とし、且つデューティ比をそれぞれ50%としている理由について説明する。図7~図9は、入力信号パルスとクロックパルスとの周期は同じで、入力信号パルスのデューティ比は50%以下であり、クロックパルスのデューティ比は50%とした場合である。
 図7は、入力信号パルスの位置とクロックパルスCjの立ち上がり時点が重なっている場合であり、この場合はクロックパルスCjにて入力信号パルスを取り込むことができる。
 しかし、図8に示すように、入力信号パルスに対してクロックパルスの位相が遅れてきて、入力信号パルスが存在しない位置にクロックパルスCjと反転クロックパルス BarCjの立ち上がりが位置している場合では、クロックパルスCj、または反転クロックパルス BarCjでも入力信号パルスを取り込むことができない。
 そのため、図2に示す第1のフリップフロップ31、第2のフリップフロップ32をセットすることができず、フリップフロップ31、32のQ出力はLレベルとなり、2つのアンドゲートG6、7からはそれぞれ反転クロックパルス BarCjとクロックパルスCjとが出力される。これにより、Dフリップフロップ25のクロック端子CLKには反転クロックパルス BarCjとクロックパルスCjとが同時に入力されることになり、Dフリップフロップ25を正常に動作させることができなくなる。よって、入力信号パルスが到来しているにも関わらず、入力信号パルスを検出することができない。
 また、図9に示すように、入力信号パルスに対してクロックパルスの位相が更に遅れてきて、反転クロックパルス BarCjの立ち上がりと入力信号パルスとが重なっている場合では、反転クロックパルス BarCjにて入力信号パルスを取り込むことができる。
 このように、入力信号パルスのデューティ比を50%以下とした場合には、入力信号パルスのLレベルの期間のときにクロックパルスCj、あるいは反転クロックパルス BarCjの両方共に入力信号パルスを取り込むことができない。そのため、入力信号パルスのデューティ比も50%にする必要がある。
 次に、図10~図12に示すように、入力信号パルス及びクロックパルスCjのデューティ比を共に50%以下にした場合について説明する。先ず、図10は、入力信号パルスの位置とクロックパルスCjの立ち上がり時点が重なっている場合であり、この場合はクロックパルスCjにて入力信号パルスを取り込むことができる。
 しかし、図11に示すように、入力信号パルスに対してクロックパルスの位相が遅れてきて、入力信号パルスが存在しない位置にクロックパルスCjと反転クロックパルス BarCjの立ち上がりが位置している場合では、クロックパルスCjまたは反転クロックパルス BarCjでも入力信号パルスを取り込むことができない。そのため、上述した理由により入力信号パルスが到来しているにも関わらず、入力信号パルスを検出することができない。
 また、図12に示すように、入力信号パルスに対してクロックパルスの位相が更に遅れてきて、反転クロックパルス BarCjの立ち上がりと入力信号パルスとが重なっている場合では、反転クロックパルス BarCjにて入力信号パルスを取り込むことができる。
 このように、入力信号パルス及びクロックパルスCjのデューティ比を共に50%以下とした場合には、入力信号パルスのLレベルの期間のときにクロックパルスCj、あるいは反転クロックパルス BarCjの両方共に入力信号パルスを取り込むことができない。そのため、入力信号パルスとクロックパルスCjのデューティ比も共に50%にする必要がある。
 次に、図13~図15に示すように、入力信号パルスのデューティ比は50%とし、クロックパルスCjのデューティ比を50%以下にした場合について説明する。
 図13は、入力信号パルスの位置とクロックパルスCjの立ち上がり時点が重なっている場合であり、この場合はクロックパルスCjにて入力信号パルスを取り込むことができる。
 しかし、図14に示すように、入力信号パルスに対してクロックパルスの位相が遅れてきて、入力信号パルスが存在しない位置にクロックパルスCjと反転クロックパルス BarCjの立ち上がりが位置している場合では、クロックパルスCjまたは反転クロックパルス BarCjでも入力信号パルスを取り込むことができない。そのため、上述した理由により入力信号パルスが到来しているにも関わらず、入力信号パルスを検出することができない。
 また、図15に示すように、入力信号パルスに対してクロックパルスの位相が更に遅れてきて、反転クロックパルス BarCjの立ち上がりと入力信号パルスとが重なっている場合では、反転クロックパルス BarCjにて入力信号パルスを取り込むことができる。
 このように、入力信号パルスのデューティ比を50%としていても、クロックパルスCjのデューティ比を50%以下とした場合には、入力信号パルスのLレベルの期間のときにクロックパルスCj、あるいは反転クロックパルス BarCjの両方共に入力信号パルスを取り込むことができない。そのため、入力信号パルスとクロックパルスCjのデューティ比も共に50%にする必要がある。
 図16及び図17は、本実施形態とは異なり、受信装置2の発振器27からのクロックパルスCjのみで入力信号パルスを取り込むようにした場合を示している。図16では、入力信号パルスの位置とクロックパルスCjの立ち上がり時点が重なっている場合であり、この場合においてはクロックパルスCjにて入力信号パルスを取り込むことができる。
 しかし、図17に示すように、入力信号パルスに対してクロックパルスの位相が遅れてきて、入力信号パルスが存在しない位置にクロックパルスCjの立ち上がりが位置している場合では、クロックパルスCjで入力信号パルスを取り込むことができない。そのため、入力信号パルスが到来しているにも関わらず、入力信号パルスを検出することができない。
 すなわち、図2において同期信号作成回路26が存在せず、発振器27からのクロックパルスCjが直接Dフリップフロップ25のクロック端子CLKに入力されていると、図17に示すように、クロックパルスCjの立ち上がり時点では、入力信号パルスはLレベルとなっているので、このLレベルの信号が順次送り出されていくことになる。
 そのため、入力信号パルスが連続して受信されているにも関わらず、入力信号パルスのLレベルの部分を出力することになり、入力信号パルスを正確に検出して取り込むことができなくなる。
 特に、反転クロックパルス BarCjを用いずに、クロックパルスCjのみで入力信号パルスを取り込もうとした場合には、入力信号パルスに対してクロックパルスCjの位相が相対的に進んだり、遅れたりしてズレてくるため、図16に示すように、クロックパルスCjの立ち上がりの時点で、入力信号パルスが存在しない限り入力信号パルスを取り込むことができない。
 そのため、図17に示すように、入力信号パルスが到来しているにも関わらず、クロックパルスCjの立ち上がり時点で、入力信号パルスが位置していない時は、クロックパルスCjで入力信号パルスを検出することができない。すなわち、クロックパルスCjの立ち上がりが入力信号パルスより外れてから、クロックパルスCjの位相が入力信号パルスに対して徐々に遅れていき、クロックパルスCjの立ち上がりが入力信号パルスと重なるまで、クロックパルスCjにて入力信号パルスを取り込むことができないという誤動作が生じることになる。
 このように本実施形態では、同期信号作成回路26により、受信回路21からの入力信号パルス信号を、受信装置2の発振器27のクロックパルスCjまたはこのクロックパルスCjを反転させた反転クロックパルス BarCjのどちらで同期して受信したかを判定すると共に、Dフリップフロップ25に送るクロックパルスを、クロックパルスCjでパルス信号を受信した場合にはクロックパルスCjとし、反転クロックパルス BarCjでパルス信号を受信した場合には反転クロックパルス BarCjとしてDフリップフロップ25の同期をとるようにしている。
 これにより、送信装置1とは別個の発振器27を受信装置2側に設けていても、受信する入力信号パルスをクロックパルスCjと反転クロックパルス BarCjとで全周期にわたって常時監視しているので、入力信号パルスに対してクロックパルスの位相が進んだり、遅れたりしても、フリップフロップ24から取り込んだ信号をDフリップフロップ25で確実に出力することができ、そのため、誤動作なく正常動作をさせることができる。
 上述のようにして、フリップフロップ24を介して入力された入力信号パルスが同期信号作成回路26で自動的に選択した同期信号(クロックパルスCjまたは反転クロックパルス BarCj)にて順次Dフリップフロップ25にて取り込まれる。
 図18は、この前提発明の図2に示す同期信号作成回路26により、スタート信号PS、データ信号PD及びエンド信号PEからなる1セット分のデータパルス信号列を受信した時の回路の動作を示すタイミングチャートであり、入力信号パルスをクロックパルスCjで取り込んだ場合を示している。
 図2におけるa点~k点と、図18に示すa~kの波形とは対応している。先ず、図18aに示すように、時刻t0にてスタート信号PSが受信されるとインバータゲートG1、G2を介してフリップフロップ24のセット入力端子Sに入力されることで、図18dに示すようにHレベルが出力される。なお、図18bはインバータゲートG1の出力を、図18cはインバータゲートG2の出力をそれぞれ示している。
 フリップフロップ31は、図18eに示すクロックパルスCjの立ち上がりにてインバータゲートG2の出力を取り込むことで、フリップフロップ31のQ出力はHレベルとなり(図18g参照)、また、フリップフロップ32は、反転クロックパルス BarCjの立ち上がりにてインバータゲートG2の出力を取り込むことで、フリップフロップ32のQ出力はLレベルとなる(図18h参照)。
 ここで、フリップフロップ31のQ出力がHレベルなので、インバータゲートG4の出力はLレベルとなってアンドゲートG6はオフ状態となり、そのため、アンドゲートG6からは反転クロックパルス BarCjは出力されず、Lレベルのままである(図18i参照)。
 また、フリップフロップ32のQ出力はLレベルのため、インバータゲートG5の出力がHレベルとなり、そのため、アンドゲートG7の出力からはクロックパルスCjが出力され(図18j参照)、オアゲートG8からクロックパルスCjが出力され(図18k参照)、このクロックパルスCjがDフリップフロップ25の同期信号としてクロック端子CLKに入力される。
 また、オアゲートG8から出力されるクロックパルスCjは、出力端子41に出力されており、この出力端子41からのクロックパルスCjが、データパルス信号列のデータ信号PDに基づいて制御される装置のクロックパルス(同期信号)として用いられる。
 時刻t0直後の時刻t1で(図18k参照)、オアゲートG8からのクロックパルスCjにてDフリップフロップ25がフリップフロップ24のQ出力の信号を取り込む。また、フリップフロップ24のQ出力は、上述した理由により、図18aに示す入力信号パルスより少し遅延した信号が出力される。
 そして、時刻t2でアイドル状態IDのLレベルをクロックパルスCjにて取り込み、フリップフロップ31の出力はLレベルとなる。
 この時刻t2において、クロックパルスCjの立ち上がりでフリップフロップ31がインバータゲートG2から出力されるアイドル状態IDのLレベルの信号を取り込み、そのため、図18gに示すようにフリップフロップ31のQ出力はLレベルとなる。このフリップフロップ31のQ出力がLレベルとなると、インバータゲートG4の出力がHレベルとなり、このインバータゲートG4の他方の入力端にHレベルの信号が入力されると、アンドゲートG6からはそのまま信号が出力されることになる。
 すなわち、フリップフロップ31のQ出力がLレベルの期間(インバータゲートG4の出力であるアンドゲートG6の一方の入力端がHレベルの期間)、アンドゲートG6の他方の入力端には、反転クロックパルス BarCj(図18f参照)が入力されることになり、アンドゲートG6からは図18iに示すように反転クロックパルス BarCjが出力されることになる。そして、このアンドゲートG6からの反転クロックパルス BarCjがオアゲートG8の一方の入力端に入力される。
 一方、アンドゲートG7からはクロックパルスCjが出力されていて、このクロックパルスCjがオアゲートG8の他方の入力端に入力されているので、図18kに示すように、クロックパルスCjと反転クロックパルス BarCjの論理和となる信号がオアゲートG8から出力されることになる。そのため、Dフリップフロップ25のクロック端子CLKにはデューティ比が上述した50%ではなく、100%のパルス信号となり、Dフリップフロップ25において正常なパルス信号の取り込みが出来なくなる。この現象は、図18に示す時刻t3、時刻t4においても見られる。
 (本発明の第1の実施の形態)
 そこで、Dフリップフロップ25のクロック端子CLKには、常にデューティ比が50%のクロックパルスCjまたは反転クロックパルス BarCjが入力されるように、上記前提発明に更に工夫を施したのが本発明であり、図19に送信装置1と受信装置2の全体のブロック図を示す。
 全体の構成は前提発明の場合と同様であるが、図1と比較して上記同期信号作成回路26を改良した同期信号パルス作成回路29を設け、また、フリップフロップ24とDフリップフロップ25をまとめてデータ受信手段としている。さらに前記同期信号パルス作成回路29から出力されるクロックパルスCjまたは反転クロックパルス BarCjと、前記データ受信手段からの信号との論理積をとるアンド回路G10を設けている。
 アンド回路G10の出力は端子42を介して外部装置のコントロール用データ信号としてのデータパルス信号列が出力され、また、データ受信手段からの信号は端子43を介して外部装置のコントロール用信号として出力されるようになっている。
 また、送信装置1側にも発振器11からのクロックパルスを出力する端子16と、デジタルデータ信号作成回路12に送信装置1側の外部装置から外部インターフェースを介してデジタルデータ信号が入力される端子17が設けられている。
 図20に上記同期信号パルス作成回路29とデータ受信手段との具体的なブロック図を示す。データ受信手段は、受信回路21、増幅回路22及び波形整形回路23を介して入力されるデータパルス信号列を直接受信し、該データパルス信号列のHレベルの信号を受信してからLレベルの信号を受信するまでの間、Hレベルを出力し続ける構成となっている。
 また、同期信号パルス作成回路29は、発振器27からのクロックパルスCjまたはこのクロックパルスCjを反転させた反転クロックパルス BarCjを出力し、該クロックパルスCjまたは反転クロックパルス BarCjを前記データパルス信号列に対応した元のデータパルス生成用のクロックパルスとして出力するものである。
 図20に示す同期信号パルス作成回路29は、図2に示す同期信号作成回路26とは基本的には同じであるが、フリップフロップ31とインバータゲートG4との間にRS型のフリップフロップ33を設け、また、フリップフロップ32とインバータゲートG5との間にRS型のフリップフロップ34を設けたものである。
 すなわち、図20に示すように、フリップフロップ31のQ出力端子をフリップフロップ33のセット入力端子Sに接続し、フリップフロップ33のQ出力端子をインバータゲートG4の入力端子に接続している。また、フリップフロップ32のQ出力端子をフリップフロップ34のセット入力端子Sに接続し、該フリップフロップ34のQ出力端子をインバータゲートG5の入力端子に接続している。
 そして、フリップフロップ31のQ出力端子をフリップフロップ34のリセット入力端子Rに接続すると共に、フリップフロップ32のQ出力端子をフリップフロップ33のリセット入力端子Rに接続している。
 また、入力される入力信号パルス(図21a参照)と同じ生データ形態の信号(データパルス信号列)を出力1として出力すべく、Dフリップフロップ25のQ出力とオアゲートG8のクロックパルスCjまたは BarCjの論理積をとるアンドゲートG10を設けている。
 Dフリップフロップ25のQ出力を端子43から外部の装置へ出力2として出力し、また、上記アンドゲートG10の出力を端子42から外部の装置へ出力1として出力するようにしている。
 ここで、図20に示すように、フリップフロップ24とDフリップフロップ25とでデータ受信手段を構成しているが、便宜上フリップフロップ24とDフリップフロップ25の入力側とで、入力信号パルスを取り込む入力信号パルス取り込み回路(図中の二点鎖線で囲った部分)37とし、Dフリップフロップ25の出力側とアンドゲートG10とで、出力回路(図中の破線で囲った部分)38としている。
 また、図20において、同期信号パルス作成回路29のオアゲートG8から出力されるクロックパルス(クロックパルスCjまたは反転クロックパルス BarCj)は、Dフリップフロップ25の同期信号としてのクロックパルスであると同時に、アンドゲートG10の出力は、Dフリップフロップ25のQ出力nとオアゲートG8の出力mのHレベル時のANDで同期をとって出力するようにしており、オアゲートG8からのクロックパルスはアンドゲートG10にとって広義の同期信号である。
 図20におけるa点~o点と、図21に示すa~oの波形とは対応している。先ず、図21aに示すように、時刻t0にてスタート信号PSが受信されるとインバータゲートG1、G2を介してフリップフロップ24のセット入力端子Sに入力されることで、図21dに示すようにHレベルが出力される。なお、図21bはインバータゲートG1の出力を、図21cはインバータゲートG2の出力をそれぞれ示している。
 時刻t1で、フリップフロップ31は、図21eに示すクロックパルスCjの立ち上がりにてインバータゲートG2の出力を取り込むことで、フリップフロップ31のQ出力はHレベルとなり(図21g参照)、また、フリップフロップ32は、反転クロックパルス BarCjの立ち上がりにてインバータゲートG2の出力を取り込むことで、フリップフロップ32のQ出力はLレベルとなる(図21i参照)。
 ここで、フリップフロップ31のQ出力がHレベルになると、このHレベルの信号がフリップフロップ33のセット入力端子Sに入力され、フリップフロップ33のQ出力はHレベルとなる(図21h参照)。また、フリップフロップ31のQ出力がフリップフロップ34のリセット入力端子Rに入力されてフリップフロップ34はリセットされて、該フリップフロップ34のQ出力jはLレベルになっている(図21j参照)。
 ここで、図21はデューティ比が50%のデータパルス信号列をデューティ比が50%のクロックパルスとしたクロックパルスCjで取り込んでいる場合を示しているので、反転クロックパルス BarCjの立ち上がりでのデータパルス信号列はLレベルに対応しており(図21c、f参照)、フリップフロップ32のQ出力はLレベルを維持しており(図21i参照)、フリップフロップ33はリセットされず、フリップフロップ33のQ出力はHレベルを維持している(図21h参照)。
 したがって、フリップフロップ33のQ出力はHレベルを維持している状態であるため、インバータゲートG4の出力はLレベルとなってアンドゲートG6はオフ状態となり、そのため、アンドゲートG6からは反転クロックパルス BarCjは出力されず、Lレベルのままである(図21k参照)。
 また、フリップフロップ34のQ出力はLレベルのため(図21j参照)、インバータゲートG5の出力がHレベルとなり、そのため、アンドゲートG7の出力からはクロックパルスCjが出力され(図21l参照)、オアゲートG8からクロックパルスCjが出力され(図21m参照)、このクロックパルスCjがDフリップフロップ25の同期信号としてクロック端子CLKに入力される。
 また、オアゲートG8から出力されるクロックパルスCjは、出力端子41に出力されており、この出力端子41からのクロックパルスCjが、データパルス信号列のデータ信号PDに基づいて制御される受信装置2側の外部の装置のクロックパルス(同期信号)として使用することができる。
 また、Dフリップフロップ25のQ出力は受信装置2側の外部の装置へ端子43から図21nに示すデータパルス信号列が出力され(出力2)、同時にアンドゲートG10にはクロックパルスCjとDフリップフロップ25のQ出力が入力されて、クロックパルスCjとDフリップフロップ25のQ出力がアンドゲートG10にてクロックパルスCjのHレベル時の論理積で同期をとって端子42から図21oに示す入力信号パルスのデータパルス信号列と同じ形態のデータパルス信号がリアルタイムに出力されるようになっている。
 時刻t0直後の時刻t1で(図21m参照)、オアゲートG8からのクロックパルスCjにてDフリップフロップ25がフリップフロップ24のQ出力の信号を取り込む(図21n参照)。この図21nは、Dフリップフロップ25への取り込みデータを示している。また、フリップフロップ24のQ出力は、上述した理由により、図21aに示す入力信号パルスより少し遅延した信号が出力される。
 そして、時刻t2でアイドル状態IDのLレベルをフリップフロップ31がクロックパルスCjにて取り込むことで、フリップフロップ31のQ出力はLレベルとなる(図21g参照)。このフリップフロップ31がLレベルとなってもRS型のフリップフロップ33によりQ出力はHレベルにセットされているので、インバータゲートG4の出力はLレベルであってアンドゲートG6のオフ状態を維持している(図21k参照)。
 そして、時刻t2でアイドル状態IDのLレベルをクロックパルスCjにて取り込み、Dフリップフロップ25の出力はLレベルとなる(図21n参照)。
 次に、時刻t3でデータ信号PDが受信(入力)され、フリップフロップ24はセットされて該フリップフロップ24のQ出力はHレベルなり、また、クロックパルスCjの立ち上がりでインバータゲートG2のHレベルの信号を取り込むことで、フリップフロップ31のQ出力はLレベルからHレベルになる(図21g参照)。このデータ信号PDに対応したフリップフロップ24のQ出力は、オアゲートG8から出力されるクロックパルスCj毎にDフリップフロップ25に取り込まれる。
 ここで、クロックパルスCjにてフリップフロップ24のQ出力を取り込む際は、該フリップフロップ24のQ出力はHレベルのため、連続したHレベルのパルスが出力されている状態では、Dフリップフロップ25の出力はHレベルのままとなっている(図21n参照)。ここでは、時刻t4までの4個のパルス信号が連続しているので、時刻t4でクロックパルスCjにてフリップフロップ24のQ出力を取り込むまではDフリップフロップ25のQ出力はHレベルのままである。
 そして、時刻t5でクロックパルスCjにてフリップフロップ24のQ出力を取り込むと、この時点でフリップフロップ24のQ出力はLレベルのため、Dフリップフロップ25のQ出力はLレベルとなる。次のデータ信号PDのパルスが受信される時刻t6では、Dフリップフロップ25のQ出力はHレベルとなる(図21n参照)。
 また、時刻t5において、図21gに示すようにフリップフロップ31はクロックパルスCjにてデータ信号PDのLレベルに対応したインバータゲートG2の出力を取り込むので、フリップフロップ31の出力はLレベルとなる。このフリップフロップ31の出力がLレベルとなっても、上述したようにフリップフロップ33のQ出力はHレベルに維持されているので、アンドゲートG6はオフ状態に維持されている。
 そして、時刻t6でフリップフロップ31はクロックパルスCjにてHレベルの信号を取り込むので、フリップフロップ31の出力はHレベルになる。
 時刻t7でデータ信号PDの最後のパルスが受信されて、その後のアイドル状態IDでDフリップフロップ25のQ出力はLレベルとなる。このアイドル状態IDの後のエンド信号PEのパルスでも上記と同様の処理が行なわれ、一連のデータパルス信号列の受信処理が終了する。
 なお、図21では、データパルス信号列のデータ信号PDは、例えば「11110111」のパルス信号としており、このパルス信号に応じて受信したDフリップフロップ25のQ出力は、図21nに示すデータ列となっている。受信装置2によりコントロールされる装置側では、このデータ列から出力端子41からのクロックパルスCjを同期信号として解読を行ない、元のデータ信号PDである「11110111」を認識するようになっている。
 また、アンドゲートG10から端子42を介して出力されるパルス信号は、元のデータ信号PDに対応した生のパルス信号である「11110111」が出力されるようになっている(図21a、o参照)。すなわち、受信したデータパルス信号列(図21a参照)と同じ形態のデータパルス信号(図21o参照)が端子42より受信装置2の外部装置側にリアルタイムに出力される。
 このデータ信号PDに基づいて受信装置2側の外部装置がコントロールされる。そして、送信装置1から伝送されてくるデータパルス信号列のデータ信号PDに基づいて受信装置2側の外部装置でのコントロールが行なわれることになる。このように、フリップフロップ25に送る同期信号パルスを、受信装置2側の外部の装置の同期信号用として受信装置2側の外部装置でも使用できるように出力していることで、受信装置2側の外部装置では受信装置2から出力されるデータ信号PDを正確に読み取ることができ、送信装置1から伝送されたデータ信号PDに基づいて装置を誤動作することなくコントロールすることができる。なお、上記受信装置2側の外部装置については具体的には記載していないが、データ信号PDとクロックパルスCj又は反転クロックパルス BarCjにてコントロールされる装置であれば、どのような装置でも良い。また、本発明の送受信装置を用いて、既存の独立したシステム間における相互の送受信を容易に可能とすることができる。
 なお、送信装置1からデータパルス信号列を受信装置2へ伝送する場合の媒体としては、通常のシールド電線や、光ファイバーであり、有線を用いない無線の場合では、LED光やレーザー光や電波も用いることができる。また、送信装置1と受信装置2との間でのデータパルス信号列の伝送を行なう場合で、光ファイバーや、LED光やレーザー光を用いる場合においては、送信装置1の送信回路14では発光素子を使用し、受信装置2の受信回路21では受光素子を使用する。
 なお、上記の説明では、図21aに示す入力信号パルスをクロックパルスCjにて受信装置2の回路に取り込んでいる場合であるが、送信装置1の発振器11が発生したパルス(入力信号パルス)と、受信装置2の発振器27が発生したパルスとの相対的な位相の位置関係がズレてきて、クロックパルスCjで入力信号パルスを取り込むことができなくなる時点で、今度は反転クロックパルス BarCjで取り込むことができる。
 反転クロックパルス BarCjで入力信号パルスを取り込む場合は、フリップフロップ32において反転クロックパルス BarCjにてHレベルの信号を取り込むことで、フリップフロップ32のQ出力がHレベルとなる。そのため、フリップフロップ33がリセットされてQ出力はLレベルとなり、フリップフロップ34がセットされて該フリップフロップ34のQ出力がHレベルに維持され、インバータゲートG5の出力をLレベルとしてアンドゲートG7をオフ状態に維持する。
 このように本実施形態では、送信装置1とは別個の発振器27を受信装置2側に設けていても、受信したデータパルス信号列の各入力信号パルスをクロックパルスCjと反転クロックパルス BarCjとで全周期にわたって常時監視していることと、クロックパルスCjで入力信号パルスを取り込む場合は、フリップフロップ33とインバータゲートG4とで反転クロックパルス BarCjを出力するアンドゲートG6をオフ状態に維持し、また、反転クロックパルス BarCjで入力信号パルスを取り込む場合は、フリップフロップ34とインバータゲートG5とでクロックパルスCjを出力するアンドゲートG7をオフ状態に維持していることで、入力信号パルスに対してクロックパルスの位相が進んだり、遅れたりしても、フリップフロップ24から取り込んだ信号をフリップフロップ25で確実に出力することができ、そのため、誤動作なく正常動作をさせることができる。このように、擬似的に同期信号を作成して、送信装置1側からのデータパルス信号列に対して受信装置1側のクロックパルスの位相が進んだり、遅れたりした場合でも、誤動作せずにデータパルス信号列を正確に受信することができるものである。
 ここで、光ノイズや電気、電磁的なノイズが発生して、該ノイズが正規のデータパルス信号列と周期等が全く同一の場合には、送信装置1の発振器11と、受信装置2の発振器27の発生周波数を可変抵抗を用いて変えることで、ノイズによる誤動作を防止することができる。なお、この場合、可変させた周波数(周期)のデューティ比は50%とする。
 また、一定レベル以上のノイズが発生している場合では、送信装置1の増幅回路13のレベルを上げると共に、受信装置2の波形整形回路23でのシュミットレベルを上げることで、データパルス信号列のパルス信号を効果的に受信することができる。
 ここで、送信装置1からのデータパルス信号列が、万が一ノイズと一致した場合には、発振器11、27の時定数を決めている抵抗とコンデンサの内の抵抗を可変抵抗にし、データパルス信号列の周期、パルス波高値などを変化させることで、ノイズと全く異なるパルスを自由に、且つ容易に生成することができる。これにより、データパルス信号列とノイズが一致した場合でも完全にノイズを排除することができる。
 特に、ポテンショメータなどで、パルス信号の周期、パルス波高値などを自由に可変させることで、多数の送受信装置を隣り同士が接する程、隣接して配置して互いに入力信号パルスが干渉しないように調整を行なう場合でも、例えば、工場の生産ラインの現場で行なうことができるものであり、しかも、送受信装置間の干渉を防止することができる。
 (第2の実施の形態)
 図22は第2の実施形態の全体のブロック図を示し、図23は同期信号パルス作成回路29及びデータ受信手段の具体回路図を、図24は図23のタイミングチャートをそれぞれ示している。本実施形態では、データ受信手段としてフリップフロップ31、32とオアゲートG9とで構成し、オアゲートG9からの出力を端子43に出力2として出力すると共に、オアゲートG9の出力とオアゲートG8からの出力とをアンドゲートG10で論理積をとり、このアンドゲートG10の出力を端子42から出力1として出力している。
 本実施形態では、フリップフロップ31、32とオアゲートG9の入力側で入力信号パルスを取り込む入力信号パルス取り込み回路(図23の二点鎖線で囲った部分)37とし、オアゲートG9の出力側とアンドゲートG10とで出力回路(破線で囲った部分)38としている。なお、フリップフロップ31及びフリップフロップ32の論理回路の機能は、同期信号パルス作成回路29とデータ受信手段の両方で共用している。
 ここで、アンドゲートG10の出力は、オアゲートG9の出力nとオアゲートG8の出力mとを入力して出力mのHレベル時のANDで同期をとって出力している。
 本実施形態では、図23に示すように、フリップフロップ31のQ出力がオアゲートG9の一方の入力端に入力され、他方のフリップフロップ32のQ出力がオアゲートG9の他方の入力端に入力されている。そして、いずれかのフリップフロップ31、32のQ出力がオアゲートG9を介してアンドゲートG10の一方の入力端に入力されると共に、端子43に出力されている。
 アンドゲートG10では、オアゲートG9からの出力と、オアゲートG8からのクロックパルスCjまたは反転クロックパルス BarCjとを論理積を行ない、アンドゲートG10からの出力は、先の実施形態と同様にデータパルス信号列と同じ形態のデータパルス信号をリアルタイムに出力するようにしている。
 次に、本実施形態の動作について説明する。図23のa点等と、図24のa等の英文字に示す波形はそれぞれ対応している。先ず、図24aに示すように、時刻t0にてスタート信号PSが受信されるとインバータゲートG1、G2を介してフリップフロップ31、32のセット入力端子Sにそれぞれ入力される。なお、図24bはインバータゲートG1の出力を、図24cはインバータゲートG2の出力をそれぞれ示している。
 時刻t1で、フリップフロップ31は、図24eに示すクロックパルスCjの立ち上がりにてインバータゲートG2の出力を取り込むことで、フリップフロップ31のQ出力はHレベルとなり(図24g参照)、また、フリップフロップ32は、反転クロックパルス BarCjの立ち上がりにてインバータゲートG2の出力を取り込むことで、フリップフロップ32のQ出力はLレベルとなる(図24i参照)。
 ここで、フリップフロップ31のQ出力がHレベルになると、このHレベルの信号がフリップフロップ33のセット入力端子Sに入力され、フリップフロップ33のQ出力はHレベルとなる(図24h参照)。また、フリップフロップ31のQ出力がフリップフロップ34のリセット入力端子Rに入力されてフリップフロップ34はリセットされて、該フリップフロップ34のQ出力jはLレベルになっている(図24j参照)。
 ここで、図24はデューティ比が50%のデータパルス信号列をデューティ比が50%のクロックパルスとしたクロックパルスCjで取り込んでいる場合を示しているので、反転クロックパルス BarCjの立ち上がりでのデータパルス信号列はLレベルに対応しており(図24c、f参照)、フリップフロップ32のQ出力はLレベルを維持しており(図24i参照)、フリップフロップ33はリセットされず、フリップフロップ33のQ出力はHレベルを維持している(図24h参照)。
 したがって、フリップフロップ33のQ出力はHレベルを維持している状態であるため、インバータゲートG4の出力はLレベルとなってアンドゲートG6はオフ状態となり、そのため、アンドゲートG6からは反転クロックパルス BarCjは出力されず、Lレベルのままである(図24k参照)。
 また、フリップフロップ34のQ出力はLレベルのため(図24j参照)、インバータゲートG5の出力がHレベルとなり、そのため、アンドゲートG7の出力からはクロックパルスCjが出力され(図24l参照)、オアゲートG8からクロックパルスCjが出力され(図24m参照)、このクロックパルスCjがアンドゲートG10の一方の入力端に入力される。
 また、オアゲートG8から出力されるクロックパルスCjは、出力端子41に出力されており、この出力端子41からのクロックパルスCjが、データパルス信号列のデータ信号PDに基づいてコントロールされる受信装置2側の外部の装置のクロックパルス(同期信号)として使用することができる。
 ここで、フリップフロップ32のQ出力はLレベルであり、フリップフロップ31のQ出力のHレベルの信号がオアゲートG9に入力され、このオアゲートG9の出力(=フリップフロップ31のQ出力)が受信装置2側の外部の装置へ端子43から図24nに示すデータパルス信号列が出力され(出力2)、同時にアンドゲートG10にはオアゲートG9の出力と、オアゲートG8からのクロックパルスCjが入力されて、オアゲートG9の出力とクロックパルスCjとがアンドゲートG10にてクロックパルスCjのHレベル時の論理積で同期をとって端子42から図24oに示す入力信号パルスのデータパルス信号列と同じ形態のデータパルス信号がリアルタイムに出力されるようになっている。
 そして、時刻t2でアイドル状態IDのLレベルをフリップフロップ31がクロックパルスCjにて取り込むことで、フリップフロップ31のQ出力はLレベルとなる(図24g参照)。このフリップフロップ31がLレベルとなってもRS型のフリップフロップ33によりQ出力はHレベルにセットされているので、インバータゲートG4の出力はLレベルであってアンドゲートG6のオフ状態を維持している(図24k参照)。
 また、時刻t2で、フリップフロップ31のQ出力がLレベルとなることで、オアゲートG9の出力もLレベルとなる(図24n参照)。
 次に、時刻t3でデータ信号PDが受信(入力)され、このHレベルの信号がフリップフロップ31に入力され、クロックパルスCjの立ち上がりでインバータゲートG2のHレベルの信号を取り込むことで、フリップフロップ31のQ出力はLレベルからHレベルになる(図24g参照)。このデータ信号PDに対応してフリップフロップ31は、発振器27から出力されるクロックパルスCj毎にデータ信号PDを取り込む(図24g参照)。
 ここで、クロックパルスCjにてフリップフロップ31がデータ信号PDを取り込む際は、デューティ比が50%の信号を取り込むために、フリップフロップ31のQ出力は連続したHレベルのパルスが出力されている状態では、フリップフロップ31の出力はHレベルのままとなっている(図24n参照)。ここでは、時刻t4までの4個のパルス信号が連続しているので、時刻t4でクロックパルスCjにてフリップフロップ31がLレベルの信号を取り込むまでは該フリップフロップ31のQ出力はHレベルのままである。
 そして、この時刻t4でクロックパルスCjにてデータ信号PDのLレベルの信号をフリップフロップ31が取り込むと、該フリップフロップ31のQ出力はLレベルとなり(図24n参照)、時刻t5で、フリップフロップ31はHレベルの信号を取り込み、フリップフロップ31のQ出力はHレベルとなる。
 また、時刻t6、時刻t7でも同様の動作が行なわれ、データパルス信号列のHレベル、Lレベルの信号に応じてフリップフロップ31のQ出力からは、図24nに示すような波形が出力される。そして、アイドル状態IDの後のエンド信号PEのパルスでも上記と同様の処理が行なわれ、一連のデータパルス信号列の受信処理が終了する。
 このように、フリップフロップ31はクロックパルスCjにてデータ信号PDのLレベルに対応したインバータゲートG2の出力を取り込んで、フリップフロップ31の出力がLレベルとなっても、上述したようにフリップフロップ33のQ出力はHレベルに維持されているので、アンドゲートG6はオフ状態に維持されている。
 そして、このフリップフロップ31のQ出力がオアゲートG9を介して出力され、端子43から出力2として出力されるとともに、アンドゲートG10の一方の入力端に入力される。
 アンドゲートG10の他方の入力端には、アンドゲートG7及びオアゲートG8を介してクロックパルスCjが入力されており(図24m参照)、このクロックパルスCjとオアゲートG9の出力(図24n参照)とがアンドゲートG10にてクロックパルスCjのHレベル時の論理積で同期がとられて、アンドゲートG10からは、図24oに示すように、データパルス信号列(図24a参照)と同じ形態のデータパルス信号がリアルタイムに出力されることになる。
 なお、図24では、データパルス信号列のデータ信号PDは、図21の場合と同様に、例えば「11110111」のパルス信号としている。このパルス信号を受けた受信装置2側の外部装置のコントロールについては、先の実施形態と同様なので、説明は省略する。
 また、先の説明では、クロックパルスCjにてデータパルス信号列を取り込むようにしていたが、位相がずれて反転クロックパルス BarCjでデータパルス信号列を取り込む場合も同様である。
 このように、本実施形態においても先の第1の実施形態と同様の効果を奏するものである。
 また、図20及び図23において、オアゲートG8からクロックパルスCjを出力する場合は反転クロックパルス BarCjが出力されるのを阻止し、反転クロックパルス BarCjを出力する場合はクロックパルスCjが出力されるのを阻止する手段として、第1のフリップフロップ31の出力がセット入力端子Sに入力され、第2のフリップフロップ32の出力がリセット入力端子Rに入力される第1のRS型フリップフロップ33と、第1のフリップフロップ31の出力がリセット入力端子Rに入力され、第2のフリップフロップ32の出力がセット入力端子Sに入力される第2のRS型フリップフロップ34と、第1のRS型フリップフロップ33の出力が入力される第1のインバータゲートG4と、第1のインバータゲートG4の出力と反転クロックパルス BarCjが入力される第1のアンドゲートG6と、第2のRS型フリップフロップ34の出力が入力される第2のインバータゲートG5と、前記第2のインバータゲートG5の出力と前記クロックパルスCjが入力される第2のアンドゲートG7とで構成していることで、論理回路を用いた簡単な構成で出来、しかも低コストに構成することができる。
 ところで、図25は、送信装置1にユーザーが任意に作成したデータパルス信号列を本発明の送信装置1に適用可能とするための図を示している。そのために、送信装置1には送信装置1の発振器11からのクロックパルスを送信装置1側の外部インターフェースへと出力し、また、外部インターフェースから送信装置1のデジタルデータ信号作成回路12へ入力するための端子を設けている。ユーザー側では、データパルス信号列を作成する場合、任意の周波数、任意のデューティ比で作成するのが通常であり、そのため、クロックパルスのデューティ比を50%とし、また、データパルス信号列のデューティ比を50%とした本発明には直接適用することができない。
 そこで、データパルス信号列の周波数(周期)、デューティ比が任意に作成された場合でも、外部インターフェース52により、本発明に適用できるようにしたものである。
 すなわち、外部インターフェース52は、f/fコンバータなどの周波数変換部と、デューティ比を任意に変換可能なデューティ比変換部とで構成されており、これら周波数変換部及びデューティ比変換部は、ハード、ソフトウエアで任意に構成することができる。
 所望の周期は、外部インターフェース52の周波数変換部で変換し、また、デューティ比は50%に変換し、ユーザー側の外部装置51の出力信号を外部インターフェース52を介してそのまま送信装置1のデジタルデータ作成回路に入力可能としている。
 なお、図20及び図23においてフリップフロップ31、32は、RST型のフリップフロップを用いているが、JK型フリップフロップを用いても良い。
 図20では、データパルス信号列に対応した信号を出力するフリップフロップ25にD型のフリップフロップを用いているので、図20の実施形態では、受信装置2側の外部装置において、D型のフリップフロップの出力を取り込んで回路処理を容易にすることができる。また、図23では、フリップフロップ31、32をJK型フリップフロップとした場合には、同様に受信装置2側の外部装置において、JK型フリップフロップの出力を取り込んで回路処理を容易にすることができる。
 また、本発明の非同期型における送受信装置間の同期方法及び送受信装置を非同期型の光電センサ等にも適用することができる。

Claims (10)

  1.  スタート信号(PS)、データ信号(PD)及びエンド信号(PE)からなるデータパルス信号列を伝送する送信装置(1)と、
     前記送信装置(1)からのデータパルス信号列を受信し、該受信したデータパルス信号列を出力して該データ信号(PD)に基づいて外部の装置をコントロールする受信装置(2)とからなる非同期型における送受信装置間の同期方法において、
     前記送信装置(1)は、
     同期信号としてのクロックパルスを出力する第1の発振器(11)と、この第1の発振器(11)からのクロックパルスに同期されて前記データパルス信号列を生成するデジタルデータ信号作成回路(12)と、このデジタルデータ信号作成回路(12)から出力されるデータパルス信号列を前記受信装置(2)側に送信する送信回路(14)とを備え、
     前記受信装置(2)は、
     前記送信装置(1)の送信回路(14)からのデータパルス信号列を受信する受信回路(21)と、同期信号としてのクロックパルスを出力する第2の発振器(27)と、前記第2の発振器(27)からのクロックパルスCjまたはこのクロックパルスCjを反転させた反転クロックパルス BarCjを出力し、該クロックパルスCjまたは反転クロックパルス BarCjを前記データパルス信号列に対応した元のパルス信号列生成用のクロックパルスとして出力する同期信号パルス作成回路(29)と、前記データパルス信号列はデジタル信号としての1ビットが「1」または「0」で表されて複数のビットで構成されており、前記「1」のビットデータに対応した1周期の入力波形がHレベルとLレベルで構成され、前記「0」のビットデータに対応した1周期の入力波形がLレベルとLレベルで構成された該データパルス信号列を前記受信回路(21)から直接的または間接的に受信し、出力波形として前記「1」のビットデータに対応した波形は1周期の間Hレベルを出力し、前記「0」のビットデータに対応した波形は1周期の間Lレベルを出力するデータ受信手段と、前記データ受信手段からの出力と前記同期信号パルス作成回路(29)からの出力との論理積をとって前記データパルス信号列と同形態のパルス信号列を出力するアンド回路(G10)とを備え、
     前記同期信号パルス作成回路(29)は、
     前記受信装置(2)の第2の発振器(27)からのクロックパルスCjにより前記送信装置(1)の送信回路(14)からのデータパルス信号列を前記受信回路(21)を介して同期して受信する第1の受信手段(31)と、
     前記受信装置(2)の第2の発振器(27)からの反転クロックパルス BarCjにより前記送信装置(1)の送信回路(14)からのデータパルス信号列を前記受信回路(21)を介して同期して受信する第2の受信手段(32)と、
     前記第1の受信手段(31)にてデータパルス信号列を受信した場合には前記同期信号パルス作成回路(29)から出力されるクロックパルスをクロックパルスCjとすべく、該同期信号パルス作成回路(29)から反転クロックパルス BarCjが出力されるのを阻止し、前記第2の受信手段(32)にてデータパルス信号列を受信した場合には前記同期信号パルス作成回路(29)から出力されるクロックパルスを反転クロックパルス BarCjとすべく、該同期信号パルス作成回路(29)からクロックパルスCjが出力されるのを阻止する阻止手段とを備え、
     前記第1の発振器(11)のクロックパルスと前記第2の発振器(27)のクロックパルスとの周期を同一にすると共に、前記送信回路(14)からのデータパルス信号列を受信可能にすべく第1の発振器(11)及び第2の発振器(27)の両クロックパルスのデューティ比、及び前記データパルス信号列のデューティ比をそれぞれ50%に設定し、
     前記同期信号パルス作成回路(29)に設けた前記阻止手段により、前記第1の受信手段(31)にてデータパルス信号列を受信した場合には前記同期信号パルス作成回路(29)から出力されるクロックパルスをクロックパルスCjとすべく、該同期信号パルス作成回路(29)から反転クロックパルス BarCjが出力されるのを阻止し、前記第2の受信手段(32)にてデータパルス信号列を受信した場合には前記同期信号パルス作成回路(29)から出力されるクロックパルスを反転クロックパルス BarCjとすべく、該同期信号パルス作成回路(29)からクロックパルスCjが出力されるのを阻止し、
     前記第1の受信手段(31)にてデータパルス信号列が受信された場合には前記同期信号パルス作成回路(29)から出力されるクロックパルスCjと前記データ受信手段からの出力とを前記アンド回路(G10)にてクロックパルスCjのHレベル時の論理積で同期をとって出力し、
     前記第2の受信手段(32)にてデータパルス信号列が受信された場合には前記同期信号パルス作成回路(29)から出力される反転クロックパルス BarCjと前記データ受信手段からの出力とを前記アンド回路(G10)にて反転クロックパルス BarCjのHレベル時の論理積で同期をとって出力するようにしていることを特徴とする非同期型における送受信装置間の同期方法。
  2.  前記同期信号パルス作成回路(29)から出力されるクロックパルスCjまたは反転クロックパルス BarCjを、前記受信装置(2)側の外部の装置の同期信号用として該装置でも使用できるように出力していることを特徴とする請求項1に記載の非同期型における送受信装置間の同期方法。
  3.  スタート信号(PS)、データ信号(PD)及びエンド信号(PE)からなるデータパルス信号列を伝送する送信装置(1)と、
     前記送信装置(1)からのデータパルス信号列を受信し、該受信したデータパルス信号列を出力して該データ信号(PD)に基づいて外部の装置をコントロールする受信装置(2)とからなる非同期型における送受信装置間の同期方法において、
     前記送信装置(1)は、
     同期信号としてのクロックパルスを出力する第1の発振器(11)と、この第1の発振器(11)からのクロックパルスに同期されて前記データパルス信号列を生成するデジタルデータ信号作成回路(12)と、このデジタルデータ信号作成回路(12)から出力されるデータパルス信号列を前記受信装置(2)側に送信する送信回路(14)とを備え、
     前記受信装置(2)は、
     前記送信装置(1)の送信回路(14)からのデータパルス信号列を受信する受信回路(21)と、同期信号としてのクロックパルスを出力する第2の発振器(27)と、前記第2の発振器(27)からのクロックパルスCjまたはこのクロックパルスCjを反転させた反転クロックパルス BarCjを出力し、該クロックパルスCjまたは反転クロックパルス BarCjを前記データパルス信号列に対応した元のパルス信号列生成用のクロックパルスとして出力する同期信号パルス作成回路(29)と、前記データパルス信号列はデジタル信号としての1ビットが「1」または「0」で表されて複数のビットで構成されており、前記「1」のビットデータに対応した1周期の入力波形がHレベルとLレベルで構成され、前記「0」のビットデータに対応した1周期の入力波形がLレベルとLレベルで構成された該データパルス信号列を前記受信回路(21)から直接的または間接的に受信し、出力波形として前記「1」のビットデータに対応した波形は1周期の間Hレベルを出力し、前記「0」のビットデータに対応した波形は1周期の間Lレベルを出力するデータ受信手段とを備え、
     前記同期信号パルス作成回路(29)は、
     前記受信装置(2)の第2の発振器(27)からのクロックパルスCjにより前記送信装置(1)の送信回路(14)からのデータパルス信号列を前記受信回路(21)を介して同期して受信する第1の受信手段(31)と、
     前記受信装置(2)の第2の発振器(27)からの反転クロックパルス BarCjにより前記送信装置(1)の送信回路(14)からのデータパルス信号列を前記受信回路(21)を介して同期して受信する第2の受信手段(32)と、
     前記第1の受信手段(31)にてデータパルス信号列を受信した場合には前記同期信号パルス作成回路(29)から出力されるクロックパルスをクロックパルスCjとすべく、該同期信号パルス作成回路(29)から反転クロックパルス BarCjが出力されるのを阻止し、前記第2の受信手段(32)にてデータパルス信号列を受信した場合には前記同期信号パルス作成回路(29)から出力されるクロックパルスを反転クロックパルス BarCjとすべく、該同期信号パルス作成回路(29)からクロックパルスCjが出力されるのを阻止する阻止手段とを備え、
     前記第1の発振器(11)のクロックパルスと前記第2の発振器(27)のクロックパルスとの周期を同一にすると共に、前記送信回路(14)からのデータパルス信号列を受信可能にすべく第1の発振器(11)及び第2の発振器(27)の両クロックパルスのデューティ比、及び前記データパルス信号列のデューティ比をそれぞれ50%に設定し、
     前記同期信号パルス作成回路(29)に設けた前記阻止手段により、前記第1の受信手段(31)にてデータパルス信号列を受信した場合には前記同期信号パルス作成回路(29)から出力されるクロックパルスをクロックパルスCjとすべく、該同期信号パルス作成回路(29)から反転クロックパルス BarCjが出力されるのを阻止し、前記第2の受信手段(32)にてデータパルス信号列を受信した場合には前記同期信号パルス作成回路(29)から出力されるクロックパルスを反転クロックパルス BarCjとすべく、該同期信号パルス作成回路(29)からクロックパルスCjが出力されるのを阻止し、
     前記受信装置(2)に設けた端子(43)から前記データ受信手段からのデータ列の信号を外部の装置へ制御信号用として直接出力すると共に、
     前記受信装置(2)に設けた端子(41)から、前記第1の受信手段(31)にてデータパルス信号列が受信された場合には前記同期信号パルス作成回路(29)からクロックパルスCjを、前記第2の受信手段(32)にてデータパルス信号列が受信された場合には前記同期信号パルス作成回路(29)から反転クロックパルス BarCjを前記端子(43)から出力される制御用信号の同期信号として出力するようにしている
    ことを特徴とする非同期型における送受信装置間の同期方法。
  4.  スタート信号(PS)、データ信号(PD)及びエンド信号(PE)からなるデータパルス信号列を伝送する送信装置(1)と、
     前記送信装置(1)からのデータパルス信号列を受信し、該受信したデータパルス信号列を出力して該データ信号(PD)に基づいて外部の装置をコントロールする受信装置(2)とからなる非同期型における送受信装置において、
     前記送信装置(1)は、
     同期信号としてのクロックパルスを出力する第1の発振器(11)と、この第1の発振器(11)からのクロックパルスに同期されて前記データパルス信号列を生成するデジタルデータ信号作成回路(12)と、このデジタルデータ信号作成回路(12)から出力されるデータパルス信号列を前記受信装置(2)側に送信する送信回路(14)とを備え、
     前記受信装置(2)は、
     前記送信装置(1)の送信回路(14)からのデータパルス信号列を受信する受信回路(21)と、同期信号としてのクロックパルスを出力する第2の発振器(27)と、前記第2の発振器(27)からのクロックパルスCjまたはこのクロックパルスCjを反転させた反転クロックパルス BarCjを出力し、該クロックパルスCjまたは反転クロックパルス BarCjを前記データパルス信号列に対応した元のパルス信号列生成用のクロックパルスとして出力する同期信号パルス作成回路(29)と、前記データパルス信号列はデジタル信号としての1ビットが「1」または「0」で表されて複数のビットで構成されており、前記「1」のビットデータに対応した1周期の入力波形がHレベルとLレベルで構成され、前記「0」のビットデータに対応した1周期の入力波形がLレベルとLレベルで構成された該データパルス信号列を前記受信回路(21)から直接的または間接的に受信し、出力波形として前記「1」のビットデータに対応した波形は1周期の間Hレベルを出力し、前記「0」のビットデータに対応した波形は1周期の間Lレベルを出力するデータ受信手段と、前記データ受信手段からの出力と前記同期信号パルス作成回路(29)からの出力との論理積をとって前記データパルス信号列と同形態のパルス信号列を出力するアンド回路(G10)とを備え、
     前記第1の発振器(11)のクロックパルスと前記第2の発振器(27)のクロックパルスとの周期を同一にすると共に、前記送信回路(14)からのデータパルス信号列を受信可能にすべく第1の発振器(11)及び第2の発振器(27)の両クロックパルスのデューティ比、及び前記データパルス信号列のデューティ比をそれぞれ50%に設定するデューティ比設定手段を設け、
     前記同期信号パルス作成回路(29)を、
     前記受信装置(2)の第2の発振器(27)からのクロックパルスCjにより前記送信装置(1)の送信回路(14)からのデータパルス信号列を前記受信回路(21)を介して同期して受信する第1の受信手段(31)と、
     前記受信装置(2)の第2の発振器(27)からの反転クロックパルス BarCjにより前記送信装置(1)の送信回路(14)からのデータパルス信号列を前記受信回路(21)を介して同期して受信する第2の受信手段(32)と、
     前記第1の受信手段(31)にてデータパルス信号列を受信した場合には前記同期信号パルス作成回路(29)から出力されるクロックパルスをクロックパルスCjとすべく、該同期信号パルス作成回路(29)から反転クロックパルス BarCjが出力されるのを阻止し、前記第2の受信手段(32)にてデータパルス信号列を受信した場合には前記同期信号パルス作成回路(29)から出力されるクロックパルスを反転クロックパルス BarCjとすべく、該同期信号パルス作成回路(29)からクロックパルスCjが出力されるのを阻止する阻止手段と
    で構成し、
     前記第1の受信手段(31)にてデータパルス信号列が受信された場合には前記同期信号パルス作成回路(29)から出力されるクロックパルスCjと前記データ受信手段からの出力とを前記アンド回路(G10)にてクロックパルスCjのHレベル時の論理積で同期をとって出力し、
     前記第2の受信手段(32)にてデータパルス信号列が受信された場合には前記同期信号パルス作成回路(29)から出力される反転クロックパルス BarCjと前記データ受信手段からの出力とを前記アンド回路(G10)にて反転クロックパルス BarCjのHレベル時の論理積で同期をとって出力するようにしていることを特徴とする非同期型における送受信装置。
  5.  前記同期信号パルス作成回路(29)から出力されるクロックパルスCjまたは反転クロックパルス BarCjを、前記受信装置(2)側の外部の装置の同期信号用として該装置でも使用できるように出力する端子(41)を設けていることを特徴とする請求項4に記載の非同期型における送受信装置。
  6.  スタート信号(PS)、データ信号(PD)及びエンド信号(PE)からなるデータパルス信号列を伝送する送信装置(1)と、
     前記送信装置(1)からのデータパルス信号列を受信し、該受信したデータパルス信号列を出力して該データ信号(PD)に基づいて外部の装置をコントロールする受信装置(2)とからなる非同期型における送受信装置において、
     前記送信装置(1)は、
     同期信号としてのクロックパルスを出力する第1の発振器(11)と、この第1の発振器(11)からのクロックパルスに同期されて前記データパルス信号列を生成するデジタルデータ信号作成回路(12)と、このデジタルデータ信号作成回路(12)から出力されるデータパルス信号列を前記受信装置(2)側に送信する送信回路(14)とを備え、
     前記受信装置(2)は、
     前記送信装置(1)の送信回路(14)からのデータパルス信号列を受信する受信回路(21)と、同期信号としてのクロックパルスを出力する第2の発振器(27)と、前記第2の発振器(27)からのクロックパルスCjまたはこのクロックパルスCjを反転させた反転クロックパルス BarCjを出力し、該クロックパルスCjまたは反転クロックパルス BarCjを前記データパルス信号列に対応した元のパルス信号列生成用のクロックパルスとして出力する同期信号パルス作成回路(29)と、前記データパルス信号列はデジタル信号としての1ビットが「1」または「0」で表されて複数のビットで構成されており、前記「1」のビットデータに対応した1周期の入力波形がHレベルとLレベルで構成され、前記「0」のビットデータに対応した1周期の入力波形がLレベルとLレベルで構成された該データパルス信号列を前記受信回路(21)から直接的または間接的に受信し、出力波形として前記「1」のビットデータに対応した波形は1周期の間Hレベルを出力し、前記「0」のビットデータに対応した波形は1周期の間Lレベルを出力するデータ受信手段とを備え、
     前記第1の発振器(11)のクロックパルスと前記第2の発振器(27)のクロックパルスとの周期を同一にすると共に、前記送信回路(14)からのデータパルス信号列を受信可能にすべく第1の発振器(11)及び第2の発振器(27)の両クロックパルスのデューティ比、及び前記データパルス信号列のデューティ比をそれぞれ50%に設定するデューティ比設定手段を設け、
     前記同期信号パルス作成回路(29)を、
     前記受信装置(2)の第2の発振器(27)からのクロックパルスCjにより前記送信装置(1)の送信回路(14)からのデータパルス信号列を前記受信回路(21)を介して同期して受信する第1の受信手段(31)と、
     前記受信装置(2)の第2の発振器(27)からの反転クロックパルス BarCjにより前記送信装置(1)の送信回路(14)からのデータパルス信号列を前記受信回路(21)を介して同期して受信する第2の受信手段(32)と、
     前記第1の受信手段(31)にてデータパルス信号列を受信した場合には前記同期信号パルス作成回路(29)から出力されるクロックパルスをクロックパルスCjとすべく、該同期信号パルス作成回路(29)から反転クロックパルス BarCjが出力されるのを阻止し、前記第2の受信手段(32)にてデータパルス信号列を受信した場合には前記同期信号パルス作成回路(29)から出力されるクロックパルスを反転クロックパルス BarCjとすべく、該同期信号パルス作成回路(29)からクロックパルスCjが出力されるのを阻止する阻止手段と
    で構成し、
     前記データ受信手段からのデータ列の信号を外部の装置へ制御信号用として直接出力する端子(43)と、
     前記第1の受信手段(31)にてデータパルス信号列が受信された場合には前記同期信号パルス作成回路(29)からクロックパルスCjが、前記第2の受信手段(32)にてデータパルス信号列が受信された場合には前記同期信号パルス作成回路(29)から反転クロックパルス BarCjが前記端子(43)から出力される制御用信号の同期信号として出力される端子(41)とを
    前記受信装置(2)に設けている
    ことを特徴とする非同期型における送受信装置。
  7.  前記データ受信手段を、前記受信回路(21)からのデータパルス信号列を直接受信すると共に、該データパルス信号列を構成している各入力信号パルスを一旦保持するRS型フリップフロップ(24)と、このRS型フリップフロップ(24)の出力を前記同期信号パルス作成回路(29)からのクロックパルスに同期して出力するD型フリップフロップ(25)とで構成し、該D型フリップフロップ(25)の出力を外部の装置をコントロールする信号としていることを特徴とする請求項4または請求項6に記載の非同期型における送受信装置。
  8.  前記データ受信手段を、前記第1の受信手段(31)を第1のJK型フリップフロップ(31)で構成すると共に、前記第2の受信手段(32)を第2のJK型フリップフロップ(32)で構成し、前記第1のJK型フリップフロップ(31)からの出力信号と、前記第2のJK型フリップフロップ(32)からの出力信号との双方を受けるオアゲート(G9)で構成し、該オアゲート(G9)の出力を外部の装置をコントロールする信号としていることを特徴とする請求項4または請求項6に記載の非同期型における送受信装置。
  9.  前記第1の受信手段(31)を、前記データパルス信号列を前記クロックパルスCjにて同期してセット出力を出す第1のフリップフロップ(31)で構成すると共に、前記第2の受信手段(32)を前記データパルス信号列を前記反転クロックパルス BarCjにて同期してセット出力を出す第2のフリップフロップ(32)で構成し、
     前記阻止手段を、
     前記第1のフリップフロップ(31)の出力がセット入力端子(S)に入力され、前記第2のフリップフロップ(32)の出力がリセット入力端子(R)に入力される第1のRS型フリップフロップ(33)と、
     前記第1のフリップフロップ(31)の出力がリセット入力端子(R)に入力され、前記第2のフリップフロップ(32)の出力がセット入力端子(S)に入力される第2のRS型フリップフロップ(34)と、
     前記第1のRS型フリップフロップ(33)の出力が入力される第1のインバータゲート(G4)と、
     前記第1のインバータゲート(G4)の出力と前記反転クロックパルス BarCjが入力される第1のアンドゲート(G6)と、
     前記第2のRS型フリップフロップ(34)の出力が入力される第2のインバータゲート(G5)と、
     前記第2のインバータゲート(G5)の出力と前記クロックパルスCjが入力される第2のアンドゲート(G7)と
    で構成していることを特徴とする請求項4~請求項8のいずれかに記載の非同期型における送受信装置。
  10.  前記送信装置(1)のデジタルデータ信号作成回路(12)の出力を増幅する増幅回路(13)を設け、この増幅回路(13)の増幅度及び前記第1の発振器(11)の周波数をそれぞれ可変可能とし、
     前記受信装置(2)の受信回路(21)の出力を増幅する増幅回路(22)及びこの増幅回路(22)の出力を波形整形するシュミット回路からなる波形整形回路(23)とを設け、前記増幅回路(22)の増幅度、波形整形回路(23)のシュミットレベル及び前記第2の発振器(27)の周波数をそれぞれ可変可能としていることを特徴とする請求項4または請求項6に記載の非同期型における送受信装置。
PCT/JP2008/066128 2008-03-07 2008-09-06 非同期型における送受信装置間の同期方法及び送受信装置 WO2009110123A1 (ja)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2008057222A JP4176823B1 (ja) 2008-03-07 2008-03-07 非同期型における送受信装置間の同期方法及び送受信装置
JP2008-057222 2008-03-07

Publications (1)

Publication Number Publication Date
WO2009110123A1 true WO2009110123A1 (ja) 2009-09-11

Family

ID=40056077

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2008/066128 WO2009110123A1 (ja) 2008-03-07 2008-09-06 非同期型における送受信装置間の同期方法及び送受信装置

Country Status (2)

Country Link
JP (1) JP4176823B1 (ja)
WO (1) WO2009110123A1 (ja)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6339209A (ja) * 1986-08-04 1988-02-19 Nec Corp 同期回路
JPH0653945A (ja) * 1992-07-31 1994-02-25 Nec Corp データ転送回路
JPH0851417A (ja) * 1994-08-05 1996-02-20 Nippon Telegr & Teleph Corp <Ntt> ビット位相同期回路
JP3945813B1 (ja) * 2006-07-19 2007-07-18 正勝 栗田 光電センサ

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6339209A (ja) * 1986-08-04 1988-02-19 Nec Corp 同期回路
JPH0653945A (ja) * 1992-07-31 1994-02-25 Nec Corp データ転送回路
JPH0851417A (ja) * 1994-08-05 1996-02-20 Nippon Telegr & Teleph Corp <Ntt> ビット位相同期回路
JP3945813B1 (ja) * 2006-07-19 2007-07-18 正勝 栗田 光電センサ

Also Published As

Publication number Publication date
JP4176823B1 (ja) 2008-11-05
JP2009218648A (ja) 2009-09-24

Similar Documents

Publication Publication Date Title
JP4741003B2 (ja) 位相比較器,位相比較装置,およびクロックデータリカバリシステム
JP3898694B2 (ja) シリアルデータ伝送装置
JP2006345487A5 (ja)
JP3919990B2 (ja) タイミング同期システム、そのシステムに用いられる装置およびタイミング同期方法
JP5027876B2 (ja) クロック復元装置およびクロック復元方法
JP4176823B1 (ja) 非同期型における送受信装置間の同期方法及び送受信装置
JP2001352318A (ja) 送信回路とその方法、受信回路とその方法およびデータ通信装置
EP2775655B1 (en) Method of distributing a clock signal, a clock distributing system and an electronic system comprising a clock distributing system
JP4841927B2 (ja) 非同期伝送装置、非同期伝送方法
JP6744804B2 (ja) 撮像装置
JP3945813B1 (ja) 光電センサ
JP2015198399A (ja) 通信装置
US20050169414A1 (en) Transmitting circuit and method thereof, receiving circuit and method thereof, and data communication apparatus
JP5383856B2 (ja) 送信回路
JP6424846B2 (ja) 波形観測システム及び波形観測方法
JP2014072713A (ja) 光通信システム
JP2010213204A (ja) データ送受信方法
JP3950650B2 (ja) 並列データ転送装置及び並列データ転送方法
JP2004247856A (ja) データ受信装置及びデータ送受信方法
JP2000332741A (ja) 通信装置
KR20230022858A (ko) 아날로그-디지털 또는 디지털-아날로그 변환기들의 동기화 방법 및 대응하는 시스템
JPH0715419A (ja) 機器の制御装置
JP5390428B2 (ja) 受信機
JP2007288660A (ja) データ通信システム、データ通信装置及びデータ通信方法、並びにコンピュータ・プログラム
JP3779022B2 (ja) 機器の切換装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 08873045

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 08873045

Country of ref document: EP

Kind code of ref document: A1