WO2021100326A1 - 信号出力装置 - Google Patents

信号出力装置 Download PDF

Info

Publication number
WO2021100326A1
WO2021100326A1 PCT/JP2020/036926 JP2020036926W WO2021100326A1 WO 2021100326 A1 WO2021100326 A1 WO 2021100326A1 JP 2020036926 W JP2020036926 W JP 2020036926W WO 2021100326 A1 WO2021100326 A1 WO 2021100326A1
Authority
WO
WIPO (PCT)
Prior art keywords
output
terminal
signal
mode
input
Prior art date
Application number
PCT/JP2020/036926
Other languages
English (en)
French (fr)
Inventor
上田 昇
幹夫 会田
Original Assignee
株式会社村田製作所
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 株式会社村田製作所 filed Critical 株式会社村田製作所
Publication of WO2021100326A1 publication Critical patent/WO2021100326A1/ja

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K19/00Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits
    • H03K19/0175Coupling arrangements; Interface arrangements

Definitions

  • the present disclosure relates to a signal output device that outputs an output signal corresponding to an input signal.
  • Patent Document 1 discloses a multi-optical axis photoelectric switch that outputs an output signal according to a detection operation.
  • This multi-optical axis photoelectric switch includes a sensor unit that performs a detection operation and a signal output device that outputs an output signal corresponding to a signal from the sensor unit.
  • the signal output device has two outputs, a first output form in which an output signal is output via an open collector circuit of a PNP type transistor and a second output form in which an output signal is output via an open collector circuit of an NPN type transistor. Has a morphology.
  • the signal output device is a case where a device corresponding to output via an open collector circuit of a PNP type transistor (hereinafter also referred to as "PNP input device”) is connected to the terminal part, and an open collector circuit of an NPN type transistor is connected to the terminal part.
  • the output form is switched depending on whether a device corresponding to the output via the above (hereinafter, also referred to as “NPN input device”) is connected.
  • the terminal portion includes a power supply terminal, a ground terminal, an output terminal, and a shield terminal.
  • the voltage level of the shield terminal is different between the case where the PNP input device is connected to the terminal portion and the case where the NPN input device is connected to the terminal portion.
  • the signal output device selects one of the output forms based on the voltage level of the shield terminal when the device is connected to the terminal portion.
  • the present disclosure has been made to solve such a problem, and the purpose of the present disclosure is to reduce the size and cost of the signal output device.
  • the signal output device is a signal output device that outputs an output signal corresponding to an input signal.
  • the signal output device includes a power supply terminal, a ground terminal, and an output terminal, and has a terminal portion to which a predetermined device including a first device having an NPN type input format or a second device having a PNP type input format is connected.
  • An output circuit that outputs an output signal to the terminal section in either the first mode, which is connected to the terminal section and outputs the output corresponding to the first device, or the second mode, which outputs the output corresponding to the second device.
  • Select the output mode of the output circuit unit based on the signal level of the unit and the output terminal, and operate in the output selection unit that outputs the mode signal indicating the selected output mode and the output mode indicated by the mode signal. It is provided with a control device that controls an output circuit unit.
  • FIG. 1 is a block diagram showing an example of a magnetic sensor 100 to which the signal output device 2 according to the present embodiment is applied.
  • the magnetic sensor 100 detects the displacement of the device on which the magnetic sensor 100 is mounted by detecting the strength of the applied magnetic field, or the magnetic sensor 100 detects the angle of the applied magnetic field. Detects the rotation of the mounted device.
  • the magnetic sensor 100 includes a sensor device 1 and a signal output device 2.
  • the sensor device 1 performs a detection operation and outputs a detection signal (digital signal) corresponding to the detection operation to the signal output device 2.
  • the detection signal output from the sensor device 1 is input to the signal output device 2 as an input signal.
  • the signal output device 2 outputs an output signal corresponding to the input signal from the terminal unit 20.
  • a predetermined device to which the output signal (sensor signal) of the signal output device 2 is input is connected to the magnetic sensor 100.
  • a predetermined device is connected to the terminal portion 20 of the signal output device 2.
  • the predetermined device is a device that controls various devices (not shown) using the output signal from the magnetic sensor 100.
  • the predetermined device includes a device having an NPN type input format (NPN input device) 6 and a device having a PNP type input format (PNP input device) 7.
  • the signal output device 2 outputs an output signal in an output mode (described later) according to the input format of a predetermined device (NPN input device 6 or PNP input device 7) connected to the terminal unit 20. The details of each configuration will be described below.
  • the NPN input device 6 corresponds to an example of the "first device” according to the present disclosure.
  • the PNP input device 7 corresponds to an example of the "second device” according to the present disclosure.
  • the signal output device 2 is not limited to the magnetic sensor, and can be applied to other sensors to which a device of a different input type can be connected to the terminal portion.
  • the sensor device 1 includes a sensor unit 11 and an A / D conversion circuit 12.
  • the sensor unit 11 includes a Wheatstone bridge type bridge circuit composed of four magnetoresistive elements MR1, MR2, MR3, and MR4.
  • Each of the magnetoresistive elements MR1, MR2, MR3, and MR4 is an AMR (Anisotropic Magneto Resistance) element.
  • Each of the magnetoresistive elements MR1, MR2, MR3, and MR4 is magnetic such as a GMR (Giant Magneto Resistance) element, a TMR (Tunnel Magneto Resistance) element, a BMR (Balistic Magneto Resistance) element, and a CMR (Colossal Magneto Resistance) element. It may be a resistance element.
  • the series connector of the magnetoresistive element MR1 and the magnetoresistive element MR2 and the series connector of the magnetoresistive element MR3 and the magnetoresistive element MR4 are connected in parallel between the power supply line PL1 and the ground wire NL1. ing.
  • one end of the magnetoresistive element MR1 and one end of the magnetoresistive element MR2 are connected at the node n1 to form a series connector.
  • one end of the magnetoresistive element MR3 and one end of the magnetoresistive element MR4 are connected at the node n2 to form a series connector.
  • the other end of the magnetoresistive element MR1 and the other end of the magnetoresistive element MR3 are connected at a node n3 on the power supply line PL1.
  • the other end of the magnetoresistive element MR2 and the other end of the magnetoresistive element MR4 are connected at a node n4 on the ground wire NL1.
  • Node n1 and node n2 are connected to the A / D conversion circuit 12.
  • a signal output from the sensor unit 11 is input to the A / D conversion circuit 12.
  • the A / D conversion circuit 12 converts the input signal into a digital signal, and outputs the converted signal as a detection signal to the signal output device 2.
  • the A / D conversion circuit 12 includes a comparator (not shown) and outputs a detection signal based on the potentials of the nodes n1 and n2 input to the comparator.
  • the NPN input device 6 includes a power supply terminal 61, a ground terminal 62, an input terminal 63, an electric load 64, and a power supply 65.
  • the NPN input device 6 is connected to the terminal portion 20 of the signal output device 2.
  • the terminal portion 20 includes a power supply terminal 21, a ground terminal 22, and an output terminal 23, the power supply terminal 61 is connected to the power supply terminal 21, and the ground terminal 62 is connected to the ground terminal 22 for input.
  • the terminal 63 is connected to the output terminal 23.
  • the power supply terminal 21 of the terminal portion 20 is described as “VDD”
  • the ground terminal 22 is described as “GND”
  • the output terminal 23 is described as “OUT”.
  • the power supply terminal 61 is electrically connected to the positive electrode terminal of the power supply 65.
  • the ground terminal 62 is electrically connected to the negative electrode terminal of the power supply 65.
  • the electric load 64 is electrically connected between the power supply terminal 61 and the input terminal 63.
  • the PNP input device 7 includes a power supply terminal 71, a ground terminal 72, an input terminal 73, an electric load 74, and a power supply 75.
  • the power supply terminal 71 is connected to the power supply terminal 21
  • the ground terminal 72 is connected to the ground terminal 22
  • the input terminal 73 is connected to the output terminal 23. Will be done.
  • the power supply terminal 71 is electrically connected to the positive electrode terminal of the power supply 75.
  • the ground terminal 72 is electrically connected to the negative electrode terminal of the power supply 75.
  • the electric load 74 is electrically connected between the ground terminal 72 and the input terminal 73.
  • the signal output device 2 includes a terminal unit 20, a regulator 25, a PON (Power ON) signal device 28, an output circuit unit 30, an output selection unit 40, and a control device 50.
  • the terminal portion 20 includes a power supply terminal 21, a ground terminal 22, and an output terminal 23.
  • a predetermined device (NPN input device 6 or PNP input device 7) is connected to the terminal unit 20.
  • NPN input device 6 or the PNP input device 7 connected to the terminal unit 20 When the NPN input device 6 or the PNP input device 7 connected to the terminal unit 20 is activated, power is supplied from the NPN input device 6 or the PNP input device 7 to the signal output device 2 to activate the signal output device 2.
  • the signal output device 2 determines the input format (whether the NPN input device 6 or the PNP input device 7) of a predetermined device connected to the terminal unit 20, and outputs based on the determined input format. Select a mode.
  • the signal output device 2 outputs an output signal based on the detection signal input from the sensor device 1 in the selected output mode. That is, the signal output device 2 performs "determination processing" for determining the input format of a predetermined device and “output processing” for outputting an output signal based on the input detection
  • the PON signal device 28 outputs a PON signal to the output selection unit 40 and the control device 50.
  • the PON signal is a signal for the signal output device 2 (mainly the output selection unit 40 and the control device 50) to switch between the determination process and the output process.
  • the signal output device 2 (mainly the output selection unit 40 and the control device 50) executes the determination process.
  • the signal output device 2 (mainly the control device 50) executes the output process.
  • the PON signal device 28 is configured to first perform a reset operation when power is supplied and started. In the reset operation, the PON signal is set to the Lo level.
  • the PON signal device 28 includes a counter (not shown) and outputs a Hi level PON signal when a predetermined time has elapsed after performing the reset operation. After that, the PON signal device 28 continues to output the PON signal. That is, when the reset operation is performed, the PON signal device 28 sets the PON signal to the Lo level for a predetermined time, and sets the PON signal to the Hi level when a predetermined time elapses after the reset operation is performed.
  • the output circuit unit 30 is connected to the terminal unit 20.
  • the output circuit unit 30 includes a MPa (Positive-channel Metal Oxide Semiconductor) transistor 31 and an NMOS (Negative-channel Metal Oxide Semiconductor) transistor 32. It is also possible to use a PNP bipolar transistor instead of the epitaxial transistor 31. It is also possible to use an NPN bipolar transistor instead of the NMOS transistor 32.
  • the source terminal of the epitaxial transistor 31 is electrically connected to the power supply terminal 21.
  • the drain terminal of the epitaxial transistor 31 is electrically connected to the output terminal 23.
  • the gate terminal of the epitaxial transistor 31 is electrically connected to the control device 50.
  • the source terminal of the NMOS transistor 32 is electrically connected to the ground terminal 22.
  • the drain terminal of the NMOS transistor 32 is electrically connected to the output terminal 23.
  • the gate terminal of the NMOS transistor 32 is electrically connected to the control device 50.
  • the output circuit unit 30 has two output modes according to the input format of a predetermined device (NPN input device 6 or PNP input device 7) connected to the terminal unit 20. Specifically, the output circuit unit 30 has, as the output mode, the "first mode” that outputs the output corresponding to the input format of the NPN input device 6 and the “first mode” that outputs the output corresponding to the input format of the PNP input device 7. It has "two modes".
  • the output circuit unit 30 is controlled by the control device 50 so as to operate in the first mode or the second mode. Details of the operations in the first mode and the second mode will be described later.
  • the output circuit unit 30 is controlled by the control device 50 so that both the NMOS transistor 31 and the NMOS transistor 32 are non-conducting.
  • the regulator 25 is electrically connected to the power supply terminal 21.
  • the regulator 25 steps down the voltage from the power supply terminal 21 to a predetermined voltage, and supplies the stepped-down voltage to the sensor device 1 and the output selection unit 40.
  • the predetermined voltage is set to a voltage between the voltage of the power supply terminal 21 and the voltage of the ground terminal 22.
  • the predetermined voltage corresponds to an example of the "reference value" according to the present disclosure.
  • the output selection unit 40 determines the input format of a predetermined device connected to the terminal unit 20, and selects the output mode of the output circuit unit 30 according to the input format of the predetermined device.
  • the output selection unit 40 includes a comparator 41 and a selection circuit 42.
  • a predetermined voltage from the regulator 25 and a voltage of the output terminal 23 of the terminal unit 20 are input to the comparator 41. That is, the comparator 41 compares a predetermined voltage with the voltage of the output terminal 23.
  • the comparator 41 outputs a Hi level signal if the voltage of the output terminal 23 is higher than a predetermined voltage.
  • the comparator 41 outputs a Lo level signal if the voltage of the output terminal 23 is equal to or lower than a predetermined voltage.
  • the determination process of the output selection unit 40 when the NPN input device 6 is connected to the terminal unit 20 will be described.
  • both the NMOS transistor 31 and the NMOS transistor 32 of the output circuit unit 30 are controlled in a non-conducting state.
  • the input terminal 63 is in a high impedance state, so that no current flows through the electric load 64. Therefore, the potential of the input terminal 63 is the same as the potential of the power supply terminal 61. Therefore, the voltage of the output terminal 23 connected to the input terminal 63 becomes equal to the voltage of the power supply terminal 21 (power supply terminal 61).
  • the voltage of the output terminal 23 is a predetermined voltage. Will be higher than.
  • the determination process of the output selection unit 40 when the PNP input device 7 is connected to the terminal unit 20 will be described. Even in this case, both the NMOS transistor 31 and the NMOS transistor 32 in the output circuit section are controlled to be in a non-conducting state. Then, in the PNP input device 7, the input terminal 73 is in a high impedance state, so that no current flows through the electric load 74. Therefore, the potential of the input terminal 73 is the same as the potential of the ground terminal 72. Therefore, the voltage of the output terminal 23 connected to the input terminal 73 becomes equal to the voltage of the ground terminal 22.
  • the voltage of the output terminal 23 is a predetermined voltage. Will be lower than.
  • the selection circuit 42 selects a mode signal according to the level of the signal input from the comparator 41.
  • the mode signal is a signal indicating the output mode of the output circuit unit 30.
  • the selection circuit 42 has the NPN input device 6 connected to the terminal unit 20, so that the mode signal indicates the first mode (for example, Hi). Level signal) is output.
  • the selection circuit 42 has a PNP input device 7 connected to the terminal unit 20, so that a signal indicating the second mode (for example, Lo level) is used as a mode signal. Signal) is output. That is, the selection circuit 42 selects the output mode of the output circuit unit 30 based on the level of the signal received from the comparator 41.
  • the output selection unit 40 is in the case where both the MOSFET transistor 31 and the NMOS transistor 32 of the output circuit unit 30 are in a non-conducting state, and a predetermined device is connected to the terminal unit 20.
  • the voltage of the output terminal 23 is compared with a predetermined voltage. Thereby, it is possible to detect whether the predetermined device connected to the terminal unit 20 is the NPN input device 6 or the PNP input device 7.
  • the output selection unit 40 selects the output mode of the output circuit unit 30 according to the input format of the predetermined device connected to the terminal unit 20, and outputs a mode signal indicating the selected mode to the control device 50. To do.
  • the control device 50 When the control device 50 receives a Hi-level PON signal, the control device 50 controls the output circuit unit 30 so as to output an output signal corresponding to the detection signal (input signal) input from the sensor device 1 ( Output processing). In controlling the output circuit unit 30, the control device 50 controls the output circuit unit 30 so as to operate in the output mode indicated by the mode signal input from the output selection unit 40. When a mode signal indicating the first mode is input, the control device 50 controls the output circuit unit 30 so as to operate in the first mode. When a mode signal indicating the second mode is input, the control device 50 controls the output circuit unit 30 so as to operate in the second mode.
  • control device 50 when the control device 50 receives the Lo level PON signal, the control device 50 controls both the NMOS transistor 31 and the NMOS transistor 32 of the output circuit unit 30 in a non-conducting state (determination process).
  • the control device 50 includes a control unit 51, a level shift buffer 52, a switch 53, and an operational amplifier 54.
  • the control unit 51 is composed of, for example, a CPU (Central Processing Unit) or the like, and controls each unit of the control device 50.
  • a CPU Central Processing Unit
  • the level shift buffer 52 converts the input voltage to the level of the specified voltage and outputs it.
  • the level shift buffer 52 according to the present embodiment receives a signal from the control unit 51 and outputs the signal to the switch 53 and the operational amplifier 54.
  • the level shift buffer 52 is configured to be able to output different levels of voltage to the switch 53 and the operational amplifier 54.
  • a level shift buffer 52 may be provided for each of the switch 53 and the operational amplifier 54.
  • Switch 53 includes, for example, a buffer.
  • the switch 53 is electrically connected between the level shift buffer 52 and the gate terminal of the epitaxial transistor 31 of the output circuit unit 30.
  • the switch 53 is in a conductive state if the signal from the level shift buffer 52 is at Hi level.
  • the switch 53 is in a non-conducting state if the signal from the level shift buffer 52 is at Lo level.
  • the switch 53 becomes conductive, the potential of the gate of the epitaxial transistor 31 drops, and the epitaxial transistor 31 becomes conductive.
  • the switch 53 is non-conducting, the epitaxial transistor 31 is in a non-conducting state.
  • the operational amplifier 54 operates by the signal input from the level shift buffer 52. Specifically, the operational amplifier 54 operates when the signal input from the level shift buffer 52 is Hi level, and does not operate when the signal input from the level shift buffer 52 is Lo level. When the operational amplifier 54 operates, a potential is supplied to the gate of the NMOS transistor 32, and the NMOS transistor 32 becomes conductive. If the operational amplifier 54 does not operate, the potential is not supplied to the gate of the NMOS transistor 32, and the NMOS transistor 32 becomes non-conducting.
  • a predetermined voltage from the regulator 25 is input to the inverting input terminal of the operational amplifier 54.
  • a voltage obtained by dividing the voltage of the power supply terminal 21 by a resistor Ra and a resistor Rb is input to the non-inverting input terminal of the operational amplifier 54.
  • resistors Ra and Rb are connected in series between the power supply line PL2 and the ground line NL2.
  • One end of the resistor Ra is connected to the power supply line PL2, and the other end is connected to one end of the resistor Rb by a node n5.
  • the other end of the resistor Rb is connected to the ground wire NL2.
  • the non-inverting input terminal of the operational amplifier 54 is electrically connected to the node n5.
  • the switch 53 may be electrically connected between the level shift buffer 52 and the gate terminal of the NMOS transistor 32 of the output circuit unit 30.
  • a mode signal is input to the control unit 51 from the selection circuit 42 of the output selection unit 40.
  • the control unit 51 sets the switch 53 to the non-conducting state, the NMOS transistor 31 to the non-conducting state, and the operational amplifier 54 to deactivate, regardless of the mode signal.
  • the NMOS transistor 32 is brought into a non-conducting state.
  • control unit 51 controls the output circuit unit 30 so as to operate in the output mode indicated by the mode signal.
  • the control unit 51 controls the output circuit unit 30 so as to operate in the output mode indicated by the mode signal.
  • the NPN input device 6 is connected to the terminal unit 20.
  • the NPN input device 6 and the magnetic sensor 100 are activated, the above-mentioned determination process is executed, and the mode signal indicating the first mode is output to the control unit 51 from the selection circuit 42 of the output selection unit 40.
  • the control unit 51 controls the output circuit unit 30 so as to operate in the first mode.
  • the control device 50 operates the electric load 64 with the output terminal 23 at the same potential as the ground terminal 22.
  • the control unit 51 puts the switch 53 in a non-conducting state to make the NMOS transistor 31 non-conducting, and operates the operational amplifier 54 to put the NMOS transistor 32 into a conducting state.
  • the output terminal 23 has the same potential as the ground terminal 22, and the electric load 64 operates.
  • the control device 50 sets the output terminal 23 at the same potential as the power supply terminal 21 and does not operate the electric load 64. Specifically, the control unit 51 puts the switch 53 in a conductive state to make the NMOS transistor 31 in a conductive state, and makes the operational amplifier 54 inactive to make the NMOS transistor 32 in a non-conductive state. As a result, the output terminal 23 has the same potential as the power supply terminal 21, so that the electric load 64 does not operate.
  • the PNP input device 7 is connected to the terminal unit 20
  • the above-mentioned determination process is executed, and a mode signal indicating the second mode is output from the selection circuit 42 of the output selection unit 40 to the control unit 51.
  • the control unit 51 controls the output circuit unit 30 so as to operate in the second mode.
  • the control device 50 operates the electric load 74 with the output terminal 23 at the same potential as the power supply terminal 21.
  • the control unit 51 puts the switch 53 in a conductive state to make the NMOS transistor 31 in a conductive state, and makes the operational amplifier 54 inactive to make the NMOS transistor 32 in a non-conductive state.
  • the output terminal 23 has the same potential as the power supply terminal 21, and the electric load 64 operates.
  • the control device 50 sets the output terminal 23 at the same potential as the ground terminal 22 and does not operate the electric load 74. Specifically, the control unit 51 puts the switch 53 in a non-conducting state to make the NMOS transistor 31 non-conducting, and operates the operational amplifier 54 to put the NMOS transistor 32 into a conducting state. As a result, the output terminal 23 has the same potential as the ground terminal 22, so that the electric load 74 does not operate.
  • the signal output device 2 first has an input format (whether it is an NPN input device 6 or a PNP input device 7) of a predetermined device connected to the terminal unit 20 after activation. (Judgment processing). Specifically, in the signal output device 2, the output terminal 23 is a case where both the NMOS transistor 31 and the NMOS transistor 32 of the output circuit unit 30 are in a non-conducting state, and a predetermined device is connected to the terminal unit 20. The input type of a predetermined device is determined based on the voltage of. Then, the signal output device 2 selects the output mode based on the input format of the determined predetermined device.
  • the signal output device 2 outputs an output signal based on the detection signal input from the sensor device 1 in the selected output mode (output processing).
  • FIG. 2 is a diagram showing an example of a time chart when the NPN input device 6 is connected to the terminal unit 20.
  • the NPN input device 6 connected to the terminal unit 20 is activated.
  • power is supplied from the NPN input device 6 to the magnetic sensor 100. Therefore, from time t1 to time t2, the voltage of the power supply terminal 21 rises to the voltage of the power supply 65.
  • both the MOSFET transistor 31 and the NMOS transistor 32 of the output circuit unit 30 are in a non-conducting state. Therefore, in the NPN input device 6, no current flows through the electric load 64, and the input terminal 63 and the power supply terminal 61 have the same potential. Therefore, as the voltage of the power supply terminal 21 rises, the potential of the output terminal 23 also rises.
  • each configuration of the magnetic sensor 100 is activated.
  • the PON signal device 28 first performs a reset operation for setting the PON signal to the Lo level after activation. As a result, the PON signal device 28 sets the PON signal to the Hi level and outputs the Hi level PON signal after a predetermined time from the time t2 (time t5 in FIG. 2). That is, when the reset operation is performed at time t2, the PON signal is maintained at the Lo level until the predetermined time elapses (between time t2 and time t5). Since the PON signal is at the Lo level, the control device 50 controls both the NMOS transistor 31 and the NMOS transistor 32 of the output circuit unit 30 in a non-conducting state. As a result, the potential of the output terminal 23 is equal to the potential of the power supply terminal 21 from time t2 to time t5.
  • the output selection unit 40 operates.
  • the output selection unit 40 compares the voltage from the regulator 25 with the voltage of the output terminal 23, and determines that the predetermined device connected to the terminal unit 20 is the NPN input device 6. Then, the output selection unit 40 outputs a mode signal (Hi level) indicating the first mode to the control device 50.
  • the control device 50 is based on the mode signal input from the output selection unit 40. And select the output mode.
  • the threshold time is set to be longer than the time (time from time t2 to time t3) until the output selection unit 40 is activated and starts to output the mode signal, and is shorter than the above-mentioned predetermined time, for example.
  • the control device 50 controls the output circuit unit 30 so as to operate in the first mode.
  • the PON signal device 28 outputs a Hi-level PON signal.
  • the control device 50 ends the determination process of the predetermined device and starts the output process according to the detection signal input from the sensor device 1.
  • the control device 50 that started the output process has a detection signal (input signal) input from the sensor device 1 at the Lo level, so that the electrical load 64 of the NPN input device 6 is not operated.
  • the 31 is in a conductive state, and the NMOS transistor 32 is in a non-conducting state.
  • the output terminal 23 has the same potential as the power supply terminal 21. That is, the output terminal 23 reaches the power supply (Hi) level.
  • the control device 50 puts the NMOS transistor 31 in a non-conducting state and the NMOS transistor 32 in a conductive state so as to operate the electric load 64 of the NPN input device 6.
  • the output terminal 23 has the same potential as the ground terminal 22. That is, the output terminal 23 reaches the ground (Lo) level.
  • the control device 50 puts the NMOS transistor 31 in a conductive state and the NMOS transistor 32 in a non-conductive state so as not to operate the electric load 64 of the NPN input device 6.
  • the output terminal 23 has the same potential as the power supply terminal 21. That is, the output terminal 23 reaches the power supply (Hi) level.
  • the detection signal input from the sensor device 1 has changed again from the Lo level to the Hi level.
  • the output terminal 23 reaches the ground (Lo) level.
  • the NPN input device 6 when the NPN input device 6 is connected to the terminal 20 of the signal output device 2, if the detection signal input from the sensor device 1 is at the Lo level, the signal output device 2 is connected to the output terminal 23. Outputs a Hi level signal. When the detection signal input from the sensor device 1 is Hi level, the Lo level signal is output from the output terminal 23.
  • FIG. 3 is a diagram showing an example of a time chart when the PNP input device 7 is connected to the terminal unit 20.
  • the PNP input device 7 connected to the terminal unit 20 is activated.
  • power is supplied from the PNP input device 7 to the magnetic sensor 100. Therefore, from time t11 to time t12, the voltage of the power supply terminal 21 rises to the voltage of the power supply 75.
  • both the MOSFET transistor 31 and the NMOS transistor 32 of the output circuit unit 30 are in a non-conducting state. Therefore, in the PNP input device 7, no current flows through the electric load 74, and the input terminal 73 and the ground terminal 72 have the same potential. Therefore, the potential of the output terminal 23 is the same as the potential of the ground terminal 22.
  • each configuration of the magnetic sensor 100 is activated.
  • the PON signal device 28 first performs a reset operation for setting the PON signal to the Lo level after activation. As a result, the PON signal device 28 sets the PON signal to the Hi level and outputs the Hi level PON signal after a predetermined time from the time t12 (time t15 in FIG. 3). That is, when the reset operation is performed at time t12, the PON signal is maintained at the Lo level until the predetermined time elapses (between time t12 and time t15). Since the PON signal is at the Lo level, the control device 50 controls both the NMOS transistor 31 and the NMOS transistor 32 of the output circuit unit 30 in a non-conducting state. As a result, the potential of the output terminal 23 is equal to the potential of the ground terminal 22 from the time t12 to the time t15.
  • the output selection unit 40 operates.
  • the output selection unit 40 compares the voltage from the regulator 25 with the voltage of the output terminal 23, and determines that the predetermined device connected to the terminal unit 20 is the PNP input device 7. Then, the output selection unit 40 outputs a mode signal (Lo level) indicating the second mode to the control device 50.
  • a mode signal Li level
  • the control device 50 is based on the mode signal input from the output selection unit 40. And select the output mode.
  • the control device 50 since the mode signal indicating the second mode is input from the output selection unit 40, the control device 50 controls the output circuit unit 30 so as to operate in the second mode.
  • the PON signal device 28 outputs a Hi-level PON signal.
  • the control device 50 ends the determination process of the predetermined device and starts the output process according to the detection signal input from the sensor device 1.
  • the control device 50 that started the output process has a detection signal (input signal) input from the sensor device 1 at the Lo level, so that the electrical load 74 of the PNP input device 7 is not operated.
  • the 31 is brought into a non-conducting state, and the NMOS transistor 32 is brought into a conducting state.
  • the output terminal 23 has the same potential as the ground terminal 22. That is, the output terminal 23 reaches the ground (Lo) level.
  • the control device 50 puts the NMOS transistor 31 in the conductive state and the NMOS transistor 32 in the non-conducting state so as to operate the electric load 74 of the PNP input device 7.
  • the output terminal 23 has the same potential as the power supply terminal 21. That is, the output terminal 23 reaches the power supply (Hi) level.
  • the control device 50 puts the NMOS transistor 31 in a non-conducting state and the NMOS transistor 32 in a conductive state so as not to operate the electric load 74 of the PNP input device 7.
  • the output terminal 23 has the same potential as the ground terminal 22. That is, the output terminal 23 reaches the ground (Lo) level.
  • the detection signal input from the sensor device 1 has changed again from the Lo level to the Hi level.
  • the output terminal 23 reaches the power supply (Hi) level.
  • the PNP input device 7 when the PNP input device 7 is connected to the terminal 20 of the signal output device 2, if the detection signal input from the sensor device 1 is at the Lo level, the signal output device 2 is connected to the output terminal 23. Outputs a Lo level signal. When the detection signal input from the sensor device 1 is Hi level, the Hi level signal is output from the output terminal 23.
  • both the NMOS transistor 31 and the NMOS transistor 32 of the output circuit section 30 are in a non-conducting state, and a predetermined device is connected to the terminal section 20.
  • the input format (whether the NPN input device 6 or the PNP input device 7) of the predetermined device connected to the terminal unit 20 is determined based on the voltage of the output terminal 23 in the case of the above.
  • the signal output device 2 selects an output mode (first mode or second mode) based on the input format of the determined predetermined device, and outputs an output signal in the output mode.
  • the signal output device 2 selects the output mode based on the voltage level of the output terminal 23. Therefore, as compared with the case where a terminal for determining the input format of a predetermined device connected to the terminal unit 20 is separately provided, it is not necessary to provide the terminal for determining the input type, so that the signal output device 2 can be downsized. And cost reduction can be achieved.
  • the PON signal device 28 of the signal output device 2 performs a reset operation for setting the PON signal to the Lo level at an arbitrary timing. That is, the PON signal device 28 sets the PON signal to the Lo level at an arbitrary timing and outputs a reset signal.
  • the PON signal device 28 sets the PON signal to the Hi level when a predetermined time elapses after the reset operation is performed, as in the embodiment.
  • the PON signal device 28 may be configured to perform a reset operation when a certain condition is satisfied, or may be configured to perform a reset operation based on a signal from a predetermined device.
  • the above-mentioned certain conditions can be appropriately set according to the characteristics and specifications of the sensor to which the signal output device 2 is applied or a predetermined device connected to the signal output device 2.
  • the determination process is executed again. Specifically, when it is detected that the PON signal device 28 has performed the reset operation, the control unit 51 of the control device 50 puts both the NMOS transistor 31 and the NMOS transistor 32 in a non-conducting state.
  • the output selection unit 40 compares the voltage of the output terminal 23 with a predetermined voltage, determines the input format of the predetermined device, and selects the output mode.
  • the output selection unit 40 outputs a mode signal indicating the selected output mode to the control device 50.
  • the signal output device 2 executes the output process in the output mode indicated by the mode signal.
  • the signal output device 2 according to the modification 1 can determine the input format of a predetermined device at an arbitrary timing.
  • the signal output device 2 according to the first modification is effective, for example, when it is desired to periodically check the input format of a predetermined device.
  • the signal output device 2 according to the first modification can also achieve the same effect as that of the embodiment. That is, as compared with the case where a terminal for determining the input format of a predetermined device connected to the terminal portion 20 is separately provided, it is not necessary to provide the terminal for determining the determination, so that the signal output device 2 can be downsized. And cost reduction can be achieved.
  • FIG. 4 is a block diagram showing an example of the magnetic sensor 100 to which the signal output device 2A according to the modification 2 is applied.
  • the magnetic sensor 100 includes a sensor device 1 and a signal output device 2A. Since the sensor device 1 is the same as that of the embodiment, the description thereof will not be repeated.
  • a two-wire device 8 is connected to the terminal portion 20A of the signal output device 2A.
  • the two-wire device 8 is a device that controls various devices (not shown) by using an output signal (sensor signal) from the magnetic sensor 100.
  • the two-wire device 8 includes a power supply terminal 81, a ground terminal 82, an electric load 83, and a power supply 84.
  • the terminal portion 20A includes a power supply terminal 21, a ground terminal 22, and an output terminal 23, and when the two-wire device 8 is connected to the terminal portion 20A of the signal output device 2A, the power supply terminal 81 is connected to the power supply terminal 21, and the ground terminal 82 is connected to the ground terminal 22.
  • the power supply terminal 81 is electrically connected to the positive electrode terminal of the power supply 84 via an electric load 83.
  • the ground terminal 82 is electrically connected to the negative electrode terminal of the power supply 84.
  • the electric load 83 is electrically connected between the power supply terminal 81 and the positive electrode terminal of the power supply 84.
  • the terminal portion 20A includes a power supply terminal 21, a ground terminal 22, and an output terminal 23.
  • the power supply terminal 21 and the output terminal 23 are electrically connected by a connection line 24. That is, the power supply terminal 21 and the output terminal 23 are short-circuited.
  • the signal output device 2A according to the second modification determines that the two-wire device 8 connected to the terminal portion 20A is an NPN input device 6 by short-circuiting the power supply terminal 21 and the output terminal 23. Then, the signal output device 2A performs the output process in the first mode, which is the output mode corresponding to the NPN input device 6. That is, even when the two-wire device 8 is connected to the magnetic sensor 100 (signal output device 2), the determination process and the output process are performed in the same manner as in the embodiment.
  • a specific description will be given.
  • the two-wire device 8 and the magnetic sensor 100 are activated, a determination process is performed.
  • the determination process since the power supply terminal 21 and the output terminal 23 are short-circuited, the voltage of the output terminal 23 is higher than the predetermined voltage from the regulator 25. Therefore, the output selection unit 40 determines that the NPN input device 6 is connected to the terminal unit 20A. Therefore, the mode signal indicating the first mode is output to the control device 50 from the selection circuit 42 of the output selection unit 40.
  • the control device 50 that has received the mode signal controls the output circuit unit 30 so as to operate in the first mode in the output process.
  • the control device 50 controls the switch 53 and the operational amplifier 54 so that the NMOS transistor 31 is in a conductive state and the NMOS transistor 32 is in a non-conducting state, as in the embodiment.
  • the two-wire device 8 is connected to the terminal 20A of the signal output device 2
  • a switch similar to the switch 53 is used instead of the operational amplifier 54
  • the voltage of the power supply terminal 21 drops due to the continuity of the switch. Resulting in. Therefore, in the signal output device 2A according to the second modification, the voltage of the power supply terminal 21 is held by negative feedback using the operational amplifier 54, and the voltage of the power supply terminal 21 is stabilized.
  • the power supply terminal 21 and the output terminal 23 are short-circuited by the connection line 24. That is, the source terminal and the drain terminal of the epitaxial transistor 31 have the same potential. Therefore, even if the switch 53 is in a conductive state, the epitaxial transistor 31 does not conduct. That is, the epitaxial transistor 31 is in a non-conducting state regardless of whether the switch 53 is conducting or not conducting.
  • both the NMOS transistor 31 and the NMOS transistor 32 are in a non-conducting state. Since the NMOS transistor 32 is in a non-conducting state, no current flows through the electric load 83, and the electric load 83 does not operate.
  • the control device 50 controls the switch 53 and the operational amplifier 54 so that the MOSFET transistor 31 is in a non-conducting state and the NMOS transistor 32 is in a conductive state, as in the embodiment. Since the NMOS transistor 32 is in a conductive state, a current flows through the electric load 83 to operate the electric load 83.
  • FIG. 5 is a diagram showing an example of a time chart when the two-wire device 8 is connected to the terminal portion 20A.
  • the two-wire device 8 connected to the terminal portion 20A is activated.
  • electric power is supplied from the two-wire device 8 to the magnetic sensor 100. Therefore, from time t21 to time t22, the voltage of the power supply terminal 21 rises to the voltage of the power supply 84.
  • both the MOSFET transistor 31 and the NMOS transistor 32 of the output circuit unit 30 are in a non-conducting state. Since the output terminal 23 is short-circuited with the power supply terminal 21, it has the same potential as the power supply terminal 21.
  • each configuration of the magnetic sensor 100 is activated.
  • the PON signal device 28 first performs a reset operation for setting the PON signal to the Lo level after activation. As a result, the PON signal device 28 sets the PON signal to the Hi level after a predetermined time (time t25 in FIG. 5) from the time t22, and outputs the Hi level PON signal. That is, when the reset operation is performed at the time t22, the PON signal is maintained at the Lo level until the predetermined time elapses (between the time t22 and the time t25). Since the PON signal is at the Lo level, the control device 50 controls both the NMOS transistor 31 and the NMOS transistor 32 of the output circuit unit 30 in a non-conducting state.
  • the output selection unit 40 operates.
  • the output selection unit 40 compares the voltage from the regulator 25 with the voltage of the output terminal 23. Since the output terminal 23 and the power supply terminal 21 are short-circuited, the voltage of the output terminal 23 becomes the voltage of the power supply terminal 21. Therefore, the voltage of the output terminal 23 becomes higher than the predetermined voltage. Therefore, the output selection unit 40 outputs a mode signal (Hi level) indicating the first mode to the control device 50 in the same manner as when the NPN input device 6 is connected to the terminal unit 20A.
  • a mode signal Hi level
  • the control device 50 receives the mode signal input from the output selection unit 40. Select the output mode based on. In the second modification, since the mode signal indicating the first mode is input from the output selection unit 40, the control device 50 controls the output circuit unit 30 so as to operate in the first mode.
  • the PON signal device 28 outputs a Hi-level PON signal.
  • the control device 50 starts the output process according to the detection signal input from the sensor device 1.
  • the NMOS transistor 31 Since the detection signal (input signal) input from the sensor device 1 of the control device 50 that has started the output process at time t26 is at the Lo level, the NMOS transistor 31 is in a conductive state and the NMOS transistor 32 is in a non-conducting state.
  • the switch 53 and the operational amplifier 54 are controlled so as to be. However, since the power supply terminal 21 and the output terminal 23 are short-circuited, the source terminal and the drain terminal of the epitaxial transistor 31 have the same potential. Therefore, even if the switch becomes conductive, the epitaxial transistor 31 does not conduct. That is, the control device 50 controls the switch 53 according to the detection signal, but the epitaxial transistor 31 is always in the non-conducting state regardless of the continuity / non-conduction of the switch 53. That is, at time t26, both the NMOS transistor 31 and the NMOS transistor 32 are in a non-conducting state. Therefore, no current flows through the electric load 83, and the electric load 83 does not
  • the control device 50 puts the NMOS transistor 31 in a non-conducting state and the NMOS transistor 32 in a conductive state. As a result, a current flows through the electric load 83 to operate the electric load 83.
  • the NMOS transistor 32 conducts, feedback is applied to the operational amplifier 54, and the potential of the power supply terminal 21 (output terminal 23) drops due to an imaginary short circuit between the inverting input terminal and the non-inverting input terminal of the operational amplifier 54.
  • the control device 50 controls the switch 53 and the operational amplifier 54 so that the NMOS transistor 31 is in a conductive state and the NMOS transistor 32 is in a non-conducting state.
  • the epitaxial transistor 31 is kept in a non-conducting state. Since it becomes the NMOS transistor 32, no current flows through the electric load 83, and the electric load 83 does not operate.
  • the detection signal input from the sensor device 1 has changed again from the Lo level to the Hi level.
  • the NMOS transistor 32 is brought into a conductive state to operate the electric load 83.
  • the control device 50 determines that the NPN input device 6 is connected. Then, the output process in the first mode is executed in the same manner as when the NPN input device 6 is connected. As described above, this is a case where the two-wire device 8 is connected to the terminal portion 20A by executing the output process in the first mode in a state where the power supply terminal 21 and the output terminal 23 are short-circuited. Output processing is executed properly.
  • a user who uses the magnetic sensor 100 can electrically connect the power supply terminal 21 and the output terminal 23 of the terminal portion 20A to the terminal portion 20A by a relatively simple operation of electrically connecting the output terminal 23 with the connection wire 24.
  • the device 8 can be connected and used.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Electronic Switches (AREA)

Abstract

信号出力装置(2)は、出力回路部(30)のPMOSトランジスタ(31)およびNMOSトランジスタ(32)がともに非導通状態であり、かつ、端子部(20)に所定の装置が接続されている場合の出力端子(23)の電圧に基づいて、端子部(20)に接続された所定の装置が、NPNタイプの入力形式を有するNPN入力装置(6)であるかPNPタイプの入力形式を有するPNP入力装置(7)であるかを判定する。そして、信号出力装置(2)は、端子部(20)に接続された所定の装置の入力形式に応じた出力モードで出力回路部(30)を制御する。

Description

信号出力装置
 本開示は、入力信号に応じた出力信号を出力する信号出力装置に関する。
 特開2005-51317号公報(特許文献1)には、検出動作に応じて出力信号を出力する多光軸光電スイッチが開示されている。この多光軸光電スイッチは、検出動作を行なうセンサ部と、センサ部からの信号に応じた出力信号を出力する信号出力装置とを含んでいる。信号出力装置は、PNP型トランジスタのオープンコレクタ回路を介して出力信号を出力する第1出力形態と、NPN型トランジスタのオープンコレクタ回路を介して出力信号を出力する第2出力形態との2つの出力形態を有する。
 信号出力装置は、端子部にPNP型トランジスタのオープンコレクタ回路を介した出力に対応した装置(以下「PNP入力装置」とも称する)が接続された場合と、端子部にNPN型トランジスタのオープンコレクタ回路を介した出力に対応した装置(以下「NPN入力装置」とも称する)が接続された場合とで、出力形態を切り替える。端子部は、電源端子、接地端子、出力端子およびシールド端子を含んでいる。端子部にPNP入力装置が接続された場合と、端子部にNPN入力装置が接続された場合とでは、シールド端子の電圧レベルが異なるようになっている。信号出力装置は、端子部に装置が接続された状態におけるシールド端子の電圧レベルに基づいて、いずれかの出力形態を選択している。
特開2005-51317号公報
 特許文献1に開示された信号出力装置においては、端子部に接続された装置がPNP入力装置およびNPN入力装置のいずれの装置であるかを判定するためには、電源端子、接地端子および出力端子に加えて、シールド端子を備えている必要がある。信号出力装置の小型化およびコストダウンの観点からすると、さらなる改善の余地がある。
 本開示は、このような課題を解決するためになされたものであって、その目的は、信号出力装置の小型化およびコストダウンを図ることである。
 本開示に係る信号出力装置は、入力信号に応じた出力信号を出力する信号出力装置である。信号出力装置は、電源端子、接地端子および出力端子を含み、NPNタイプの入力形式を有する第1装置またはPNPタイプの入力形式を有する第2装置を含む所定の装置が接続される端子部と、端子部に接続され、第1装置に対応した出力を行なう第1モード、または、第2装置に対応した出力を行なう第2モードのいずれかの出力モードで端子部に出力信号を出力する出力回路部と、出力端子の信号レベルに基づいて、出力回路部の出力モードを選択し、当該選択した出力モードを示すモード信号を出力する出力選択部と、モード信号が示す出力モードで動作するように出力回路部を制御する制御装置とを備える。
 本開示によれば、信号出力装置の小型化およびコストダウンを図ることができる。
実施の形態に係る信号出力装置が適用される磁気センサの一例を示すブロック図である。 NPN入力装置が端子部に接続されている場合のタイムチャートの一例を示す図である。 PNP入力装置が端子部に接続されている場合のタイムチャートの一例を示す図である。 変形例2に係る信号出力装置が適用される磁気センサの一例を示すブロック図である。 二線式の装置が端子部に接続されている場合のタイムチャートの一例を示す図である。
 以下、本開示の実施の形態について、図面を参照しながら詳細に説明する。なお、図中同一または相当部分には同一符号を付してその説明は繰り返さない。
 <全体構成>
 図1は、本実施の形態に係る信号出力装置2が適用される磁気センサ100の一例を示すブロック図である。磁気センサ100は、たとえば、印加される磁界の強度を検出することにより、磁気センサ100が搭載される装置の変位を検出したり、印加される磁界の角度を検出することにより、磁気センサ100が搭載される装置の回転を検出したりする。
 磁気センサ100は、センサ装置1と、信号出力装置2とを含む。センサ装置1は検出動作を行ない、検出動作に応じた検出信号(デジタル信号)を信号出力装置2に出力する。センサ装置1から出力された検出信号は、入力信号として信号出力装置2に入力される。信号出力装置2は、入力信号に応じた出力信号を端子部20から出力する。
 磁気センサ100には、信号出力装置2の出力信号(センサ信号)が入力される所定の装置が接続される。具体的には、所定の装置が信号出力装置2の端子部20に接続される。所定の装置は、磁気センサ100からの出力信号を用いて図示しない各種の装置の制御を行なう装置である。所定の装置には、NPNタイプの入力形式を有する装置(NPN入力装置)6と、PNPタイプの入力形式を有する装置(PNP入力装置)7とがある。信号出力装置2は、端子部20に接続される所定の装置(NPN入力装置6またはPNP入力装置7)の入力形式に応じた出力モード(後述)で出力信号を出力する。以下、各構成の詳細について説明する。なお、NPN入力装置6は、本開示に係る「第1装置」の一例に相当する。また、PNP入力装置7は、本開示に係る「第2装置」の一例に相当する。また、信号出力装置2が適用されるのは磁気センサに限られるものではなく、端子部に異なる入力形式の装置が接続され得る他のセンサであっても適用可能である。
 <<センサ装置の構成>>
 センサ装置1は、センサ部11と、A/D変換回路12とを含む。
 センサ部11は、4つの磁気抵抗素子MR1,MR2,MR3,MR4からなるホイートストンブリッジ型のブリッジ回路を含む。磁気抵抗素子MR1,MR2,MR3,MR4の各々は、AMR(Anisotropic Magneto Resistance)素子である。なお、磁気抵抗素子MR1,MR2,MR3,MR4の各々は、GMR(Giant Magneto Resistance)素子、TMR(Tunnel Magneto Resistance)素子、BMR(Balistic Magneto Resistance)素子、CMR(Colossal Magneto Resistance)素子等の磁気抵抗素子であってもよい。
 センサ部11において、磁気抵抗素子MR1および磁気抵抗素子MR2の直列接続体と、磁気抵抗素子MR3および磁気抵抗素子MR4の直列接続体とが、電源線PL1と接地線NL1との間に並列接続されている。
 具体的には、磁気抵抗素子MR1の一端と磁気抵抗素子MR2の一端とが、ノードn1において接続されて直列接続体を構成している。また、磁気抵抗素子MR3の一端と磁気抵抗素子MR4の一端とが、ノードn2において接続されて直列接続体を構成している。磁気抵抗素子MR1の他端と磁気抵抗素子MR3の他端とが、電源線PL1上のノードn3において接続されている。磁気抵抗素子MR2の他端と磁気抵抗素子MR4の他端とが、接地線NL1上のノードn4において接続されている。
 ノードn1およびノードn2は、A/D変換回路12に接続されている。A/D変換回路12には、センサ部11から出力される信号が入力される。A/D変換回路12は、入力された信号をデジタル信号に変換して、当該変換した信号を検出信号として信号出力装置2に出力する。具体的には、A/D変換回路12は、図示しないコンパレータを含み、コンパレータに入力されるノードn1およびノードn2の電位に基づいて、検出信号を出力する。
 <<NPN入力装置およびPNP入力装置の構成>>
 NPN入力装置6は、電源端子61と、接地端子62と、入力端子63と、電気負荷64と、電源65とを含む。NPN入力装置6は、信号出力装置2の端子部20に接続される。後述するように、端子部20は、電源端子21と、接地端子22と、出力端子23とを含み、電源端子61は電源端子21に接続され、接地端子62は接地端子22に接続され、入力端子63は出力端子23に接続される。なお、図1においては、端子部20の電源端子21を「VDD」と記載し、接地端子22を「GND」と記載し、出力端子23を「OUT」と記載している。
 電源端子61は、電源65の正極端子に電気的に接続されている。接地端子62は、電源65の負極端子に電気的に接続されている。電気負荷64は、電源端子61と入力端子63との間に電気的に接続されている。
 PNP入力装置7は、電源端子71と、接地端子72と、入力端子73と、電気負荷74と、電源75とを含む。PNP入力装置7が信号出力装置2の端子部20に接続されると、電源端子71は電源端子21に接続され、接地端子72は接地端子22に接続され、入力端子73は出力端子23に接続される。
 電源端子71は、電源75の正極端子に電気的に接続されている。接地端子72は、電源75の負極端子に電気的に接続されている。電気負荷74は、接地端子72と入力端子73との間に電気的に接続されている。
 <<信号出力装置の構成>>
 信号出力装置2は、端子部20と、レギュレータ25と、PON(Power ON)信号装置28と、出力回路部30と、出力選択部40と、制御装置50とを含む。
 端子部20は、電源端子21と、接地端子22と、出力端子23とを含む。端子部20には、所定の装置(NPN入力装置6またはPNP入力装置7)が接続される。端子部20に接続されたNPN入力装置6またはPNP入力装置7が起動すると、NPN入力装置6またはPNP入力装置7から信号出力装置2に電力が供給されて信号出力装置2が起動する。信号出力装置2は、起動すると、端子部20に接続された所定の装置の入力形式(NPN入力装置6であるかPNP入力装置7であるか)を判定し、判定した入力形式に基づいて出力モードを選択する。信号出力装置2は、選択した出力モードで、センサ装置1から入力される検出信号に基づいた出力信号を出力する。すなわち、信号出力装置2は、所定の装置の入力形式を判定する「判定処理」と、入力された検出信号に基づいて出力信号を出力する「出力処理」とを行なう。
 PON信号装置28は、出力選択部40および制御装置50に対してPON信号を出力する。PON信号は、信号出力装置2(主には出力選択部40および制御装置50)が判定処理および出力処理を切り替えるための信号である。PON信号がLoレベルであると、信号出力装置2(主に出力選択部40および制御装置50)は判定処理を実行する。PON信号がHiレベルであると、信号出力装置2(主に制御装置50)は、出力処理を実行する。
 PON信号装置28は、電力が供給されて起動すると、まずリセット動作を行なうように構成される。リセット動作では、PON信号をLoレベルに設定する。PON信号装置28は、図示しないカウンタを含み、リセット動作を行なってから所定時間経過するとHiレベルのPON信号を出力する。その後、PON信号装置28は、PON信号の出力を継続する。すなわち、PON信号装置28は、リセット動作を行なうと、所定時間に渡ってPON信号をLoレベルに設定し、リセット動作を行なってから所定時間経過するとPON信号をHiレベルに設定する。
 出力回路部30は、端子部20に接続される。出力回路部30は、PMOS(Positive-channel Metal Oxide Semiconductor)トランジスタ31と、NMOS(Negative-channel Metal Oxide Semiconductor)トランジスタ32とを含む。なお、PMOSトランジスタ31に代えてPNPバイポーラトランジスタを用いることも可能である。また、NMOSトランジスタ32に代えてNPNバイポーラトランジスタを用いることも可能である。
 PMOSトランジスタ31のソース端子は、電源端子21に電気的に接続される。PMOSトランジスタ31のドレイン端子は、出力端子23に電気的に接続される。PMOSトランジスタ31のゲート端子は、制御装置50に電気的に接続される。
 NMOSトランジスタ32のソース端子は、接地端子22に電気的に接続される。NMOSトランジスタ32のドレイン端子は、出力端子23に電気的に接続される。NMOSトランジスタ32のゲート端子は、制御装置50に電気的に接続される。
 出力回路部30は、端子部20に接続された所定の装置(NPN入力装置6またはPNP入力装置7)の入力形式に応じた2つの出力モードを有する。具体的には、出力回路部30は、出力モードとして、NPN入力装置6の入力形式に対応した出力を行なう「第1モード」と、PNP入力装置7の入力形式に対応した出力を行なう「第2モード」とを有する。信号出力装置2が出力処理を実行する場合において、出力回路部30は、第1モードまたは第2モードで動作するように、制御装置50によって制御される。第1モードおよび第2モードにおける動作の詳細については後述する。
 また、信号出力装置2が判定処理を実行する場合には、出力回路部30は、PMOSトランジスタ31およびNMOSトランジスタ32がともに非導通となるように、制御装置50によって制御される。
 レギュレータ25は、電源端子21に電気的に接続されている。レギュレータ25は、電源端子21からの電圧を所定の電圧に降圧して、降圧した電圧をセンサ装置1および出力選択部40に供給する。所定の電圧は、電源端子21の電圧と、接地端子22の電圧との間の電圧に設定される。なお、所定の電圧は、本開示に係る「基準値」の一例に相当する。
 出力選択部40は、端子部20に接続された所定の装置の入力形式を判定し、所定の装置の入力形式に応じた出力回路部30の出力モードを選択する。出力選択部40は、コンパレータ41と、選択回路42とを含む。レギュレータ25からの所定の電圧と、端子部20の出力端子23の電圧とが、コンパレータ41に入力される。すなわち、コンパレータ41は、所定の電圧と、出力端子23の電圧とを比較する。コンパレータ41は、出力端子23の電圧が所定の電圧よりも高ければ、Hiレベルの信号を出力する。コンパレータ41は、出力端子23の電圧が所定の電圧以下であれば、Loレベルの信号を出力する。
 ここで、端子部20にNPN入力装置6が接続されている場合における出力選択部40の判定処理を説明する。上述のとおり、判定処理においては出力回路部30のPMOSトランジスタ31およびNMOSトランジスタ32がともに非導通状態に制御される。そうすると、NPN入力装置6において、入力端子63がハイインピーダンス状態になるため、電気負荷64に電流が流れない。ゆえに、入力端子63の電位は、電源端子61の電位と同電位となる。そのため、入力端子63と接続される出力端子23の電圧は、電源端子21(電源端子61)の電圧と等しくなる。すなわち、出力回路部30のPMOSトランジスタ31およびNMOSトランジスタ32がともに非導通状態であり、かつ、端子部20にNPN入力装置6が接続された場合には、出力端子23の電圧は、所定の電圧よりも高くなる。
 一方、端子部20にPNP入力装置7が接続されている場合における出力選択部40の判定処理を説明する。この場合においても、出力回路部のPMOSトランジスタ31およびNMOSトランジスタ32はともに非導通状態に制御される。そうすると、PNP入力装置7において、入力端子73がハイインピーダンス状態になるため、電気負荷74に電流が流れない。ゆえに、入力端子73の電位は、接地端子72の電位と同電位となる。そのため、入力端子73と接続される出力端子23の電圧は、接地端子22の電圧と等しくなる。すなわち、出力回路部30のPMOSトランジスタ31およびNMOSトランジスタ32がともに非導通状態であり、かつ、端子部20にPNP入力装置7が接続された場合には、出力端子23の電圧は、所定の電圧よりも低くなる。
 上記に鑑みると、出力回路部30のPMOSトランジスタ31およびNMOSトランジスタ32がともに非導通状態である場合において、端子部20にNPN入力装置6が接続されているときには、コンパレータ41からは、Hiレベルの信号が出力される。出力回路部30のPMOSトランジスタ31およびNMOSトランジスタ32がともに非導通状態である場合において、端子部20にPNP入力装置7が接続されているときには、コンパレータ41からは、Loレベルの信号が出力される。
 選択回路42は、コンパレータ41から入力された信号のレベルに応じて、モード信号を選択する。モード信号は、出力回路部30の出力モードを示す信号である。選択回路42は、コンパレータ41から入力された信号のレベルがHiレベルである場合には、端子部20にNPN入力装置6が接続されているので、モード信号として第1モードを示す信号(たとえばHiレベルの信号)を出力する。選択回路42は、コンパレータ41から受けた信号のレベルがLoレベルである場合には、端子部20にPNP入力装置7が接続されているので、モード信号として第2モードを示す信号(たとえばLoレベルの信号)を出力する。すなわち、選択回路42は、コンパレータ41から受けた信号のレベルに基づいて、出力回路部30の出力モードを選択する。
 纏めると、判定処理において、出力選択部40は、出力回路部30のPMOSトランジスタ31およびNMOSトランジスタ32がともに非導通状態であり、かつ、端子部20に所定の装置が接続されている場合において、出力端子23の電圧を所定の電圧と比較する。これによって、端子部20に接続されている所定の装置がNPN入力装置6およびPNP入力装置7のいずれであるかを検出することができる。そして、出力選択部40は、端子部20に接続されている所定の装置の入力形式に応じて、出力回路部30の出力モードを選択し、選択したモードを示すモード信号を制御装置50に出力する。
 制御装置50は、HiレベルのPON信号を受けている場合には、センサ装置1から入力される検出信号(入力信号)に応じた出力信号を出力するように、出力回路部30を制御する(出力処理)。出力回路部30の制御にあたり、制御装置50は、出力選択部40から入力されたモード信号が示す出力モードで動作するように出力回路部30を制御する。第1モードを示すモード信号が入力された場合には、制御装置50は、第1モードで動作するように出力回路部30を制御する。第2モードを示すモード信号が入力された場合には、制御装置50は、第2モードで動作するように出力回路部30を制御する。
 また、制御装置50は、LoレベルのPON信号を受けている場合には、出力回路部30のPMOSトランジスタ31およびNMOSトランジスタ32をともに非導通状態に制御する(判定処理)。
 制御装置50は、制御部51と、レベルシフトバッファ52と、スイッチ53と、オペアンプ54とを含む。
 制御部51は、たとえば、CPU(Central Processing Unit)等で構成され、制御装置50の各部を制御する。
 レベルシフトバッファ52は、入力電圧を規定電圧のレベルに変換して出力する。本実施の形態に係るレベルシフトバッファ52は、制御部51から信号が入力され、スイッチ53およびオペアンプ54に対して出力する。レベルシフトバッファ52は、スイッチ53およびオペアンプ54に対して異なるレベルの電圧を出力することが可能に構成されている。なお、スイッチ53およびオペアンプ54のそれぞれに対して、レベルシフトバッファ52が設けられてもよい。
 スイッチ53は、たとえばバッファを含む。スイッチ53は、レベルシフトバッファ52と、出力回路部30のPMOSトランジスタ31のゲート端子との間に電気的に接続されている。スイッチ53は、レベルシフトバッファ52からの信号がHiレベルであれば導通状態になる。スイッチ53は、レベルシフトバッファ52からの信号がLoレベルであれば非導通状態になる。スイッチ53が導通すると、PMOSトランジスタ31のゲートの電位が低下して、PMOSトランジスタ31が導通状態となる。スイッチ53が非導通であると、PMOSトランジスタ31が非導通状態となる。
 オペアンプ54は、レベルシフトバッファ52から入力される信号によって作動する。具体的には、オペアンプ54は、レベルシフトバッファ52から入力される信号がHiレベルであれば作動し、レベルシフトバッファ52から入力される信号がLoレベルであれば作動しない。オペアンプ54が作動すると、NMOSトランジスタ32のゲートに電位が供給されて、NMOSトランジスタ32が導通状態となる。オペアンプ54が作動しないと、NMOSトランジスタ32のゲートに電位が供給されず、NMOSトランジスタ32が非導通状態となる。
 オペアンプ54の反転入力端子には、レギュレータ25からの所定の電圧が入力される。オペアンプ54の非反転入力端子には、電源端子21の電圧を抵抗Raおよび抵抗Rbによって抵抗分圧した電圧が入力される。具体的には、電源線PL2および接地線NL2との間に抵抗Ra,Rbが直列に接続されている。抵抗Raの一端は、電源線PL2に接続され、他端は、抵抗Rbの一端とノードn5で接続されている。抵抗Rbの他端は、接地線NL2に接続されている。オペアンプ54の非反転入力端子は、ノードn5と電気的に接続されている。なお、オペアンプ54に代えて、レベルシフトバッファ52と、出力回路部30のNMOSトランジスタ32のゲート端子との間にスイッチ53を電気的に接続してもよい。
 制御部51には、出力選択部40の選択回路42からモード信号が入力される。制御部51は、LoレベルのPON信号が入力されている場合には、モード信号にかかわらず、スイッチ53を非導通状態にしてPMOSトランジスタ31を非導通状態にし、かつ、オペアンプ54を非作動にしてNMOSトランジスタ32を非導通状態にする。
 制御部51は、HiレベルのPON信号が入力されている場合には、モード信号が示す出力モードで動作するように、出力回路部30を制御する。以下、具体例を用いて説明する。
 まず、端子部20にNPN入力装置6が接続されている場合について説明する。この場合に、NPN入力装置6および磁気センサ100が起動すると、上述の判定処理が実行され、出力選択部40の選択回路42から第1モードを示すモード信号が制御部51に出力される。制御部51は、当該モード信号が入力されると、第1モードで動作するように出力回路部30を制御する。
 ここで、センサ装置1からHiレベルの検出信号(入力信号)が入力された場合を考える。この場合には、制御装置50は、出力端子23を接地端子22と同電位にして電気負荷64を作動させる。具体的には、制御部51は、スイッチ53を非導通状態にしてPMOSトランジスタ31を非導通状態にし、かつ、オペアンプ54を作動させてNMOSトランジスタ32を導通状態にする。これによって、出力端子23が接地端子22と同電位となって、電気負荷64が作動する。
 次に、センサ装置1からLoレベルの検出信号が入力された場合を考える。この場合には、制御装置50は、出力端子23を電源端子21と同電位にして、電気負荷64を作動させない。具体的には、制御部51は、スイッチ53を導通状態にしてPMOSトランジスタ31を導通状態にし、かつ、オペアンプ54を非作動にしてNMOSトランジスタ32を非導通状態にする。これによって、出力端子23が電源端子21と同電位となるので、電気負荷64が作動しない。
 次に、端子部20にPNP入力装置7が接続されている場合について説明する。この場合にPNP入力装置7および磁気センサ100が起動すると、上述の判定処理が実行され、出力選択部40の選択回路42から第2モードを示すモード信号が制御部51に出力される。当該モード信号を受信すると、制御部51は、第2モードで動作するように出力回路部30を制御する。
 センサ装置1からHiレベルの検出信号が入力された場合を考える。この場合には、制御装置50は、出力端子23を電源端子21と同電位にして電気負荷74を作動させる。具体的には、制御部51は、スイッチ53を導通状態にしてPMOSトランジスタ31を導通状態にし、かつ、オペアンプ54を非作動にしてNMOSトランジスタ32を非導通状態にする。これによって、出力端子23が電源端子21と同電位となって、電気負荷64が作動する。
 次に、センサ装置1からLoレベルの検出信号が入力された場合を考える。この場合には、制御装置50は、出力端子23を接地端子22と同電位にして、電気負荷74を作動させない。具体的には、制御部51は、スイッチ53を非導通状態にしてPMOSトランジスタ31を非導通状態にし、かつ、オペアンプ54を作動させてNMOSトランジスタ32を導通状態にする。これによって、出力端子23が接地端子22と同電位となるので、電気負荷74が作動しない。
 以上のように、本実施の形態に係る信号出力装置2は、起動後に、まず端子部20に接続された所定の装置の入力形式(NPN入力装置6であるかPNP入力装置7であるか)を判定する(判定処理)。具体的には、信号出力装置2は、出力回路部30のPMOSトランジスタ31およびNMOSトランジスタ32がともに非導通状態であり、かつ、端子部20に所定の装置が接続されている場合の出力端子23の電圧に基づいて、所定の装置の入力形式を判定する。そして、信号出力装置2は、判定した所定の装置の入力形式に基づいて出力モードを選択する。
 信号出力装置2は、選択した出力モードで、センサ装置1から入力される検出信号に基づいた出力信号を出力する(出力処理)。
 <タイムチャート>
 図2は、NPN入力装置6が端子部20に接続されている場合のタイムチャートの一例を示す図である。
 図2を参照して、時刻t1において、端子部20に接続されているNPN入力装置6が起動される。これに伴なって、NPN入力装置6から磁気センサ100に電力が供給される。そのため、時刻t1から時刻t2において、電源端子21の電圧が電源65の電圧まで上昇している。時刻t1から時刻t2においては、磁気センサ100の各構成の起動段階であるので、出力回路部30のPMOSトランジスタ31およびNMOSトランジスタ32はともに非導通状態である。そのため、NPN入力装置6において電気負荷64には電流が流れず、入力端子63と電源端子61とが同電位となる。ゆえに、電源端子21の電圧の上昇に伴なって、出力端子23の電位も上昇している。時刻t2において、磁気センサ100の各構成が起動する。
 時刻t2において、PON信号装置28は、起動後に、まずPON信号をLoレベルに設定するリセット動作を行なう。これによって、時刻t2から所定時間後(図2では時刻t5)にPON信号装置28はPON信号をHiレベルに設定し、HiレベルのPON信号を出力する。つまり、時刻t2においてリセット動作が行なわれると、所定時間が経過するまでの間(時刻t2から時刻t5までの間)は、PON信号がLoレベルに保たれる。PON信号がLoレベルであるため、制御装置50は、出力回路部30のPMOSトランジスタ31およびNMOSトランジスタ32をともに非導通状態に制御する。これによって、時刻t2から時刻t5までの間、出力端子23の電位は、電源端子21の電位と等しくなっている。
 時刻t3において、出力選択部40が作動する。出力選択部40は、レギュレータ25からの電圧と、出力端子23の電圧とを比較して、端子部20に接続されている所定の装置がNPN入力装置6であることを判定する。そして、出力選択部40は、第1モードを示すモード信号(Hiレベル)を制御装置50に出力する。
 時刻t4において、たとえば、NPN入力装置6から磁気センサ100に電力が供給されてから(すなわち時刻t2から)閾時間が経過すると、制御装置50は、出力選択部40から入力されたモード信号に基づいて、出力モードを選択する。閾時間は、たとえば、出力選択部40が起動してモード信号の出力を開始するまでの時間(時刻t2から時刻t3までの時間)より長く、かつ、上記の所定時間よりも短い時間に設定される。図2の例においては、出力選択部40から第1モードを示すモード信号が入力されているので、制御装置50は、第1モードで動作するように出力回路部30を制御する。
 時刻t5において、時刻t2から所定時間が経過すると、PON信号装置28は、HiレベルのPON信号を出力する。HiレベルのPON信号が出力されることによって、制御装置50は、所定の装置の判定処理を終了し、センサ装置1から入力される検出信号に応じた出力処理を開始する。
 時刻t6において、出力処理を開始した制御装置50は、センサ装置1から入力される検出信号(入力信号)がLoレベルであるため、NPN入力装置6の電気負荷64を作動させないように、PMOSトランジスタ31を導通状態、かつ、NMOSトランジスタ32を非導通状態にする。これによって、出力端子23は、電源端子21と同電位となる。つまり、出力端子23は、電源(Hi)レベルになる。
 時刻t7において、センサ装置1から入力される検出信号がLoレベルからHiレベルに変化している。そのため、制御装置50は、NPN入力装置6の電気負荷64を作動させるように、PMOSトランジスタ31を非導通状態、かつ、NMOSトランジスタ32を導通状態にする。これによって、出力端子23は、接地端子22と同電位となる。つまり、出力端子23は、接地(Lo)レベルになる。
 時刻t8において、センサ装置1から入力される検出信号がHiレベルからLoレベルに再び変化している。そのため、制御装置50は、NPN入力装置6の電気負荷64を作動させないように、PMOSトランジスタ31を導通状態、かつ、NMOSトランジスタ32を非導通状態にする。これによって、出力端子23は、電源端子21と同電位となる。つまり、出力端子23は、電源(Hi)レベルになる。
 時刻t9において、センサ装置1から入力される検出信号がLoレベルからHiレベルに再び変化している。時刻t7の場合と同様に、出力端子23は、接地(Lo)レベルになる。
 纏めると、信号出力装置2の端子部20にNPN入力装置6が接続された場合には、センサ装置1から入力される検出信号がLoレベルであると、信号出力装置2は、出力端子23からHiレベルの信号を出力する。センサ装置1から入力される検出信号がHiレベルであると、出力端子23からLoレベルの信号を出力する。
 図3は、PNP入力装置7が端子部20に接続されている場合のタイムチャートの一例を示す図である。
 図3を参照して、時刻t11において、端子部20に接続されたPNP入力装置7が起動される。これに伴なって、PNP入力装置7から磁気センサ100に電力が供給される。そのため、時刻t11から時刻t12において、電源端子21の電圧が電源75の電圧まで上昇している。時刻t11から時刻t12においては、磁気センサ100の各構成の起動段階であるので、出力回路部30のPMOSトランジスタ31およびNMOSトランジスタ32はともに非導通状態である。そのため、PNP入力装置7において電気負荷74には電流が流れず、入力端子73と接地端子72とが同電位となる。ゆえに、出力端子23の電位は、接地端子22の電位と同電位になっている。時刻t12において、磁気センサ100の各構成が起動する。
 時刻t12において、PON信号装置28は、起動後に、まずPON信号をLoレベルに設定するリセット動作を行なう。これによって、時刻t12から所定時間後(図3では時刻t15)にPON信号装置28はPON信号をHiレベルに設定し、HiレベルのPON信号を出力する。つまり、時刻t12においてリセット動作が行なわれると、所定時間が経過するまでの間(時刻t12から時刻t15までの間)は、PON信号がLoレベルに保たれる。PON信号がLoレベルであるため、制御装置50は、出力回路部30のPMOSトランジスタ31およびNMOSトランジスタ32をともに非導通状態に制御する。これによって、時刻t12から時刻t15までの間、出力端子23の電位は、接地端子22の電位と等しくなっている。
 時刻t13において、出力選択部40が作動する。出力選択部40は、レギュレータ25からの電圧と、出力端子23の電圧とを比較して、端子部20に接続されている所定の装置がPNP入力装置7であることを判定する。そして、出力選択部40は、第2モードを示すモード信号(Loレベル)を制御装置50に出力する。
 時刻t14において、たとえば、PNP入力装置7から磁気センサ100に電力が供給されてから(すなわち時刻t12から)閾時間が経過すると、制御装置50は、出力選択部40から入力されたモード信号に基づいて、出力モードを選択する。図3の例においては、出力選択部40から第2モードを示すモード信号が入力されているので、制御装置50は、第2モードで動作するように出力回路部30を制御する。
 時刻t15において、時刻t12から所定時間が経過したため、PON信号装置28は、HiレベルのPON信号を出力する。HiレベルのPON信号が出力されることによって、制御装置50は、所定の装置の判定処理を終了し、センサ装置1から入力される検出信号に応じた出力処理を開始する。
 時刻t16において、出力処理を開始した制御装置50は、センサ装置1から入力される検出信号(入力信号)がLoレベルであるため、PNP入力装置7の電気負荷74を作動させないように、PMOSトランジスタ31を非導通状態、かつ、NMOSトランジスタ32を導通状態にする。これによって、出力端子23は、接地端子22と同電位となる。つまり、出力端子23は、接地(Lo)レベルになる。
 時刻t17において、センサ装置1から入力される検出信号がLoレベルからHiレベルに変化している。そのため、制御装置50は、PNP入力装置7の電気負荷74を作動させるように、PMOSトランジスタ31を導通状態、かつ、NMOSトランジスタ32を非導通状態にする。これによって、出力端子23は、電源端子21と同電位となる。つまり、出力端子23は、電源(Hi)レベルになる。
 時刻t18において、センサ装置1から入力される検出信号がHiレベルからLoレベルに再び変化している。そのため、制御装置50は、PNP入力装置7の電気負荷74を作動させないように、PMOSトランジスタ31を非導通状態、かつ、NMOSトランジスタ32を導通状態にする。これによって、出力端子23は、接地端子22と同電位となる。つまり、出力端子23は、接地(Lo)レベルになる。
 時刻t19において、センサ装置1から入力される検出信号がLoレベルからHiレベルに再び変化している。時刻t17の場合と同様に、出力端子23は、電源(Hi)レベルになる。
 纏めると、信号出力装置2の端子部20にPNP入力装置7が接続された場合には、センサ装置1から入力される検出信号がLoレベルであると、信号出力装置2は、出力端子23からLoレベルの信号を出力する。センサ装置1から入力される検出信号がHiレベルであると、出力端子23からHiレベルの信号を出力する。
 以上のように、本実施の形態に係る信号出力装置2は、出力回路部30のPMOSトランジスタ31およびNMOSトランジスタ32がともに非導通状態であり、かつ、端子部20に所定の装置が接続されている場合の出力端子23の電圧に基づいて、端子部20に接続された所定の装置の入力形式(NPN入力装置6であるかPNP入力装置7であるか)を判定する。そして、信号出力装置2は、判定した所定の装置の入力形式に基づいて出力モード(第1モードまたは第2モード)を選択し、当該出力モードで出力信号を出力する。
 このように、信号出力装置2は、出力端子23の電圧レベルに基づいて、出力モードを選択する。そのため、端子部20に接続された所定の装置の入力形式を判定するための端子を別途設ける場合と比べると、当該判定するための端子を設けなくてもよいので、信号出力装置2の小型化およびコストダウンを図ることができる。
 [変形例1]
 実施の形態においては、磁気センサ100が起動された際に判定処理が実行される例について説明した。すなわち磁気センサ100(信号出力装置2)が起動したタイミングで判定処理を行ない(所定の装置の入力形式を判定し)、以降は、判定処理で選択した出力モードに従って出力処理が実行された。しかしながら、所定の装置の入力形式を判定するタイミングは、磁気センサ100が起動した際に限られるものではない。変形例1においては、磁気センサ100が起動した際に加えて、他のタイミングでも所定の装置の入力形式を判定する例について説明する。
 再び図1を参照して、変形例1に係る信号出力装置2のPON信号装置28は、任意のタイミングでPON信号をLoレベルに設定するリセット動作を行なう。すなわち、PON信号装置28は、任意のタイミングでPON信号をLoレベルに設定してリセット信号を出力する。PON信号装置28は、実施の形態と同様に、リセット動作を行なってから所定時間経過するとPON信号をHiレベルに設定する。PON信号装置28は、たとえば、ある条件が成立した場合にリセット動作を行なうように構成されてもよいし、所定の装置からの信号に基づいてリセット動作を行なうように構成されてもよい。なお、上記のある条件は、信号出力装置2が適用されるセンサ、または信号出力装置2に接続される所定の装置の特性や仕様等に応じて適宜設定することができる。
 信号出力装置2の出力選択部40および制御装置50は、PON信号装置28がリセット動作を行なったことを検出すると(換言すれば、リセット信号を受信すると)、再び判定処理を実行する。具体的には、PON信号装置28がリセット動作を行なったことを検出すると、制御装置50の制御部51は、PMOSトランジスタ31およびNMOSトランジスタ32をともに非導通状態にする。出力選択部40は、出力端子23の電圧を所定の電圧と比較して、所定の装置の入力形式を判定し、出力モードを選択する。出力選択部40は、選択した出力モードを示すモード信号を制御装置50に出力する。
 リセット動作が行なわれてから所定時間が経過して再びPON信号が出力されると、信号出力装置2は、モード信号が示す出力モードで出力処理を実行する。
 以上のように、変形例1に係る信号出力装置2は、任意のタイミングで所定の装置の入力形式を判定することができる。変形例1に係る信号出力装置2は、たとえば、定期的に所定の装置の入力形式を確認したいような場合に有効である。また、変形例1に係る信号出力装置2によっても、実施の形態と同様の効果を奏することができる。すなわち、端子部20に接続された所定の装置の入力形式を判定するための端子を別途設ける場合と比べると、当該判定するための端子を設けなくてもよいので、信号出力装置2の小型化およびコストダウンを図ることができる。
 [変形例2]
 実施の形態および変形例1においては、所定の装置が所謂三線式の装置である例について説明した。実施の形態および変形例1で説明した信号出力装置2には、所謂二線式の装置を接続することも可能である。変形例2においては、信号出力装置2の端子部に二線式の装置が接続される例について説明する。
 図4は、変形例2に係る信号出力装置2Aが適用される磁気センサ100の一例を示すブロック図である。
 図4を参照して、磁気センサ100は、センサ装置1と、信号出力装置2Aとを含む。センサ装置1は実施の形態と同様であるため、その説明は繰り返し行なわない。
 信号出力装置2Aの端子部20Aには、二線式の装置8が接続される。二線式の装置8は、磁気センサ100からの出力信号(センサ信号)を用いて図示しない各種の装置の制御を行なう装置である。
 二線式の装置8は、電源端子81と、接地端子82と、電気負荷83と、電源84とを含む。後述するように、端子部20Aは、電源端子21と、接地端子22と、出力端子23とを含み、二線式の装置8が信号出力装置2Aの端子部20Aに接続されると、電源端子81は電源端子21に接続され、接地端子82は接地端子22に接続される。
 電源端子81は、電源84の正極端子に電気負荷83を介して電気的に接続されている。接地端子82は、電源84の負極端子に電気的に接続されている。電気負荷83は、電源端子81と電源84の正極端子との間に電気的に接続されている。
 端子部20Aは、電源端子21と、接地端子22と、出力端子23とを含む。電源端子21と出力端子23とは、接続線24によって電気的に接続されている。すなわち、電源端子21と出力端子23とは短絡されている。変形例2に係る信号出力装置2Aは、電源端子21と出力端子23とが短絡されることによって、端子部20Aに接続された二線式の装置8をNPN入力装置6と判定する。そして、信号出力装置2Aは、NPN入力装置6に応じた出力モードである第1モードで出力処理を行なう。つまり、磁気センサ100(信号出力装置2)に二線式の装置8が接続されている場合においても、実施の形態と同様に判定処理および出力処理が行なわれる。以下、具体的に説明する。
 まず、二線式の装置8および磁気センサ100が起動すると判定処理が行なわれる。判定処理において、電源端子21と出力端子23とが短絡されているため、出力端子23の電圧はレギュレータ25からの所定の電圧よりも高い。そのため、出力選択部40は、端子部20AにNPN入力装置6が接続されていると判定する。ゆえに、出力選択部40の選択回路42から第1モードを示すモード信号が制御装置50に出力される。当該モード信号を受信した制御装置50は、出力処理において、第1モードで動作するように出力回路部30を制御する。
 ここで、センサ装置1からLoレベルの検出信号が入力された場合を考える。この場合には、制御装置50は、実施の形態と同様に、PMOSトランジスタ31を導通状態、かつ、NMOSトランジスタ32を非導通状態にするように、スイッチ53およびオペアンプ54を制御する。なお、信号出力装置2の端子部20Aに二線式の装置8が接続される場合、仮にオペアンプ54に代えてスイッチ53と同様のスイッチを用いると、スイッチの導通によって電源端子21の電圧が降下してしまう。そこで、変形例2に係る信号出力装置2Aでは、オペアンプ54を用いた負帰還によって電源端子21の電圧を保持し、電源端子21の電圧を安定化させている。
 しかしながら、変形例2に係る信号出力装置2Aにおいては、電源端子21と出力端子23とが接続線24で短絡されている。すなわち、PMOSトランジスタ31のソース端子とドレイン端子とは同電位となっている。そのため、たとえスイッチ53を導通状態にしてもPMOSトランジスタ31は導通しない。つまり、スイッチ53の導通/非導通にかかわらずPMOSトランジスタ31は非導通状態となる。
 そのため、センサ装置1からLoレベルの検出信号が入力された場合には、PMOSトランジスタ31およびNMOSトランジスタ32はともに非導通状態となる。NMOSトランジスタ32が非導通状態であるため、電気負荷83には電流が流れず、電気負荷83が作動しない。
 次に、センサ装置1からHiレベルの検出信号が入力された場合を考える。この場合には、制御装置50は、実施の形態と同様に、PMOSトランジスタ31を非導通状態、かつ、NMOSトランジスタ32を導通状態にするように、スイッチ53およびオペアンプ54を制御する。NMOSトランジスタ32が導通状態となるため、電気負荷83に電流が流れて電気負荷83が作動する。
 以下、タイムチャートを参照しながら、動作の詳細について説明する。
 図5は、二線式の装置8が端子部20Aに接続されている場合のタイムチャートの一例を示す図である。
 図5を参照して、時刻t21において、端子部20Aに接続された二線式の装置8が起動される。これに伴なって、二線式の装置8から磁気センサ100に電力が供給される。そのため、時刻t21から時刻t22において、電源端子21の電圧が電源84の電圧まで上昇している。時刻t21から時刻t22においては、磁気センサ100の各構成の起動段階であるので、出力回路部30のPMOSトランジスタ31およびNMOSトランジスタ32はともに非導通状態である。出力端子23は、電源端子21と短絡されているため、電源端子21と同電位となっている。時刻t22において、磁気センサ100の各構成が起動する。
 時刻t22において、PON信号装置28は、起動後に、まずPON信号をLoレベルに設定するリセット動作を行なう。これによって、時刻t22から所定時間後(図5では時刻t25)にPON信号装置28はPON信号をHiレベルに設定し、HiレベルのPON信号を出力する。つまり、時刻t22においてリセット動作が行なわれると、所定時間が経過するまでの間(時刻t22から時刻t25までの間)は、PON信号がLoレベルに保たれる。PON信号がLoレベルであるため、制御装置50は、出力回路部30のPMOSトランジスタ31およびNMOSトランジスタ32をともに非導通状態に制御する。
 時刻t23において、出力選択部40が作動する。出力選択部40は、レギュレータ25からの電圧と、出力端子23の電圧とを比較する。出力端子23と、電源端子21とが短絡されているため、出力端子23の電圧は電源端子21の電圧となる。よって、出力端子23の電圧は所定の電圧よりも高くなる。ゆえに、出力選択部40は、端子部20AにNPN入力装置6が接続されている場合と同様に第1モードを示すモード信号(Hiレベル)を制御装置50に出力する。
 時刻t24において、たとえば、二線式の装置8から磁気センサ100に電力が供給されてから(すなわち時刻t22から)閾時間が経過すると、制御装置50は、出力選択部40から入力されたモード信号に基づいて、出力モードを選択する。変形例2においては、出力選択部40から第1モードを示すモード信号が入力されているので、制御装置50は、第1モードで動作するように出力回路部30を制御する。
 時刻t25において、時刻t22から所定時間が経過すると、PON信号装置28は、HiレベルのPON信号を出力する。HiレベルのPON信号が出力されることによって、制御装置50は、センサ装置1から入力される検出信号に応じた出力処理を開始する。
 時刻t26において、出力処理を開始した制御装置50は、センサ装置1から入力される検出信号(入力信号)がLoレベルであるため、PMOSトランジスタ31を導通状態、かつ、NMOSトランジスタ32を非導通状態にするようにスイッチ53およびオペアンプ54を制御する。しかしながら、電源端子21と出力端子23とが短絡されているため、PMOSトランジスタ31のソース端子とドレイン端子とは同電位となっている。そのため、たとえスイッチが導通状態になったとしてもPMOSトランジスタ31は導通しない。すなわち、制御装置50は、検出信号に応じてスイッチ53を制御するが、スイッチ53の導通/非導通にかかわらず、PMOSトランジスタ31は常時非導通状態となる。つまり、時刻t26においては、PMOSトランジスタ31およびNMOSトランジスタ32がともに非導通状態となる。そのため、電気負荷83に電流が流れず、電気負荷83は作動しない。
 時刻t27において、センサ装置1から入力される検出信号がLoレベルからHiレベルに変化している。そのため、制御装置50は、PMOSトランジスタ31を非導通状態、かつ、NMOSトランジスタ32を導通状態にする。これによって、電気負荷83に電流が流れて電気負荷83が作動する。なお、NMOSトランジスタ32が導通すると、オペアンプ54に帰還がかかり、オペアンプ54の反転入力端子と非反転入力端子とのイマジナリショートによって、電源端子21(出力端子23)の電位が降下している。
 時刻t28において、センサ装置1から入力される検出信号がHiレベルからLoレベルに再び変化している。そのため、制御装置50は、PMOSトランジスタ31を導通状態、かつ、NMOSトランジスタ32を非導通状態にするようにスイッチ53およびオペアンプ54を制御する。しかしながら、上述のとおり、PMOSトランジスタ31は非導通状態に保たれる。NMOSトランジスタ32になるので、電気負荷83に電流が流れず、電気負荷83は作動しない。
 時刻t29において、センサ装置1から入力される検出信号がLoレベルからHiレベルに再び変化している。時刻t27の場合と同様に、NMOSトランジスタ32を導通状態にして電気負荷83を作動させる。
 以上のように、変形例2に係る信号出力装置2においては、端子部20Aの電源端子21と出力端子23とが接続線24で電気的に接続される。これによって、出力端子23と電源端子21とが同電位になるため、端子部20Aに二線式の装置8を接続した場合に、制御装置50は、NPN入力装置6が接続されたと判定する。そして、NPN入力装置6が接続された場合と同様に第1モードでの出力処理が実行される。上述したとおり、電源端子21と出力端子23とを短絡した状態において、第1モードでの出力処理が実行されることで、端子部20Aに二線式の装置8が接続された場合であっても出力処理が適切に実行される。
 たとえば、磁気センサ100を使用する使用者は、端子部20Aの電源端子21と出力端子23とを接続線24で電気的に接続するという比較的簡易な作業によって、端子部20Aに二線式の装置8を接続して使用することが可能となる。
 今回開示された実施の形態は、すべての点で例示であって制限的なものではないと考えられるべきである。本開示の範囲は、上記した実施の形態の説明ではなくて請求の範囲によって示され、請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。
 1 センサ装置、2,2A 信号出力装置、6 NPN入力装置、7 PNP入力装置、8 二線式の装置、11 センサ部、12 A/D変換回路、20 端子部、21 電源端子、22 接地端子、23 出力端子、24 接続線、25 レギュレータ、28 PON信号装置、30 出力回路部、31 PMOSトランジスタ、32 NMOSトランジスタ、40 出力選択部、41 コンパレータ、42 選択回路、50 制御装置、51 制御部、52 レベルシフトバッファ、53 スイッチ、54 オペアンプ、61 電源端子、62 接地端子、63 入力端子、64 電気負荷、65 電源、71 電源端子、72 接地端子、73 入力端子、74 電気負荷、75 電源、81 電源端子、82 接地端子、83 電気負荷、84 電源、100 磁気センサ、MR1,MR2,MR3,MR4 磁気抵抗素子、NL1,NL2 接地線、PL1,PL2 電源線、Ra,Rb 抵抗。

Claims (6)

  1.  入力信号に応じた出力信号を出力する信号出力装置であって、
     電源端子、接地端子および出力端子を含み、NPNタイプの入力形式を有する第1装置またはPNPタイプの入力形式を有する第2装置を含む所定の装置が接続される端子部と、
     前記端子部に接続され、前記第1装置に対応した出力を行なう第1モード、または、前記第2装置に対応した出力を行なう第2モードのいずれかの出力モードで前記端子部に前記出力信号を出力する出力回路部と、
     前記出力端子の信号レベルに基づいて、前記出力回路部の前記出力モードを選択し、当該選択した出力モードを示すモード信号を出力する出力選択部と、
     前記モード信号が示す出力モードで動作するように前記出力回路部を制御する制御装置とを備える、信号出力装置。
  2.  前記出力選択部は、前記信号レベルが基準値よりも大きい場合には前記出力モードとして前記第1モードを選択し、前記信号レベルが前記基準値よりも小さい場合には前記出力モードとして前記第2モードを選択し、
     前記基準値は、前記電源端子の電位と前記接地端子の電位との間の値に設定される、請求項1に記載の信号出力装置。
  3.  前記出力回路部は、前記電源端子と前記出力端子との間に接続される第1スイッチ、および、前記出力端子と前記接地端子との間に接続される第2スイッチを含み、
     前記出力選択部は、前記第1スイッチおよび前記第2スイッチがともに非導通状態であり、かつ、前記所定の装置が前記端子部に接続されている状態において前記モード信号を出力する、請求項1または請求項2に記載の信号出力装置。
  4.  前記制御装置は、外部からのリセット信号を受信可能に構成され、
     前記リセット信号を受信した場合、前記制御装置は、前記第1スイッチおよび前記第2スイッチをともに非導通状態にして、前記モード信号を再度取得する、請求項3に記載の信号出力装置。
  5.  前記第1スイッチはPMOSトランジスタであり、前記第2スイッチはNMOSトランジスタであり、
     前記PMOSトランジスタは、ソース端子が前記電源端子に接続され、ドレイン端子が前記出力端子に接続され、ゲート端子が前記制御装置に接続されており、
     前記NMOSトランジスタは、ソース端子が前記接地端子に接続され、ドレイン端子が前記出力端子に接続され、ゲート端子が前記制御装置に接続されている、請求項3または請求項4に記載の信号出力装置。
  6.  前記第1モードにおいて、前記制御装置は、
      前記入力信号がHiレベルである場合には、前記PMOSトランジスタを非導通状態にし、かつ、前記NMOSトランジスタを導通状態にし、
      前記入力信号がLoレベルである場合には、前記PMOSトランジスタを導通状態にし、かつ、前記NMOSトランジスタを非導通状態にし、
     前記第2モードにおいて、前記制御装置は、
      前記入力信号がHiレベルである場合には、前記PMOSトランジスタを導通状態にし、かつ、前記NMOSトランジスタを非導通状態にし、
      前記入力信号がLoレベルである場合には、前記PMOSトランジスタを非導通状態にし、かつ、前記NMOSトランジスタを導通状態にする、請求項5に記載の信号出力装置。
PCT/JP2020/036926 2019-11-20 2020-09-29 信号出力装置 WO2021100326A1 (ja)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2019209570 2019-11-20
JP2019-209570 2019-11-20

Publications (1)

Publication Number Publication Date
WO2021100326A1 true WO2021100326A1 (ja) 2021-05-27

Family

ID=75979990

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2020/036926 WO2021100326A1 (ja) 2019-11-20 2020-09-29 信号出力装置

Country Status (1)

Country Link
WO (1) WO2021100326A1 (ja)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005051317A (ja) * 2003-07-29 2005-02-24 Sunx Ltd 信号出力回路、検出スイッチ及び多光軸光電スイッチ
JP2008042422A (ja) * 2006-08-04 2008-02-21 Casio Comput Co Ltd 発光素子点灯制御装置、及び発光素子点灯制御方法、プログラム
JP2010239201A (ja) * 2009-03-30 2010-10-21 Brother Ind Ltd 出力インタフェース回路
WO2016121114A1 (ja) * 2015-01-30 2016-08-04 三菱電機株式会社 デジタル出力回路、プリント配線基板および工業機器
JP2017085399A (ja) * 2015-10-29 2017-05-18 パナソニック デバイスSunx株式会社 出力回路、出力ユニット、プログラマブルコントローラ

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005051317A (ja) * 2003-07-29 2005-02-24 Sunx Ltd 信号出力回路、検出スイッチ及び多光軸光電スイッチ
JP2008042422A (ja) * 2006-08-04 2008-02-21 Casio Comput Co Ltd 発光素子点灯制御装置、及び発光素子点灯制御方法、プログラム
JP2010239201A (ja) * 2009-03-30 2010-10-21 Brother Ind Ltd 出力インタフェース回路
WO2016121114A1 (ja) * 2015-01-30 2016-08-04 三菱電機株式会社 デジタル出力回路、プリント配線基板および工業機器
JP2017085399A (ja) * 2015-10-29 2017-05-18 パナソニック デバイスSunx株式会社 出力回路、出力ユニット、プログラマブルコントローラ

Similar Documents

Publication Publication Date Title
US8970165B2 (en) Determination circuit
US9336170B2 (en) Universal serial bus device and charging and enumeration method
KR101445424B1 (ko) 검출 회로 및 센서 장치
JP6484217B2 (ja) 低電力の磁気抵抗スイッチセンサ
US8558562B2 (en) Method and circuitry for identifying type of plug connected to a dual-use jack
KR20150020608A (ko) 오디오 인터페이스 자기 적응 장치
TWI625025B (zh) 充放電裝置及其控制方法
US10826285B2 (en) Corrosion protection circuit for serial bus connector
JP7100476B2 (ja) オーディオアンプ、それを用いたオーディオ出力装置および電子機器
US7741870B2 (en) Multi-function input terminal
TWI571746B (zh) 資料傳輸系統及其傳輸方法
WO2021100326A1 (ja) 信号出力装置
US9214853B2 (en) Two-wire transmitter starter circuit and two-wire transmitter including the same
US9658664B2 (en) Electronic device having a pin for setting its mode of operation and method to set a mode of operation for an electronic device having a pin
CN111130477B (zh) 电平触发型的自动调节增益放大电路
TWI726332B (zh) 主機板電池偵測裝置
CN110398623B (zh) 过零检测电路和传感器装置
US20100001761A1 (en) Multi-function input terminal of integrated circuits
US9817034B2 (en) Measuring device
US20120056611A1 (en) Connection detection circuit
CN112511153B (zh) Swp主接口电路及终端
TW201505364A (zh) 運算放大器
JP2014062825A (ja) 電圧検出回路及び電圧検出方法
JP2012068074A (ja) 電圧範囲検出装置
US8624766B2 (en) Method and system for auto-ranging analog-to-digital converter for current sensing

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: 20890862

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: 20890862

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP