A discriminator device

Abstract: A discriminator device for discriminating between two types of signal applied to an input port (EN), the first type being a binary logic signal having high and low values, and the second type of signal being a continuously variable signal or a floating voltage, the device comprising a voltage divider network (R1,R2) for coupling to the input port and a voltage supply (VCC) in order to provide a format signal, means (R3,R4,R5) providing first and second voltage reference signals (VR1,VR2) having values intermediate the high and low values of the binary logic signal, comparator means (34A,34B) coupled to receive the format signal and the voltage reference signals, the output of the comparator means being coupled to output means (36-39) which provides a logic output signal of a value depending on the type of signal present at the input port.

Description: Field of the Invention The present invention relates to a discriminator device for discriminating between two types of signal. A preferred embodiment of the invention relates to a circuit for use in data receiver circuits for identifying the bus format of received data. Background Art The I 2 C or IIC bus is a standard bus (see "I 2 C Bus Specification" Philips, January 1983) for transmitting data, and is a synchronous serial bus consisting of a Clock (SCL) and Data (SDA) line. The 3-wire bus is another standard bus which is commonly used (for example, see the data sheet for Motorola part no. MC145170, PLL frequency synthesizer). The bus is also a synchronous serial bus having a clock which, in addition to clock and data lines, has an ENABLE line to permit data transfer. With increasing use of multi standard systems, e.g. televisions, video devices, which can operate with a variety of standards, it would be desirable to provide a relatively simple means, for incorporation into a receiver or peripheral device, which can accept and discriminate between I 2 C and 3-wire bus formats. From US-A-4189673 there is known a discriminator device as described in the pre-characterising portion of claim 1. However, this known device detects DC levels only, and so could not distinguish between a dynamic signal (3-wire bus) and a static signal (I 2 C bus). From the publication by John Markus, "Modern Electronic Circuits Reference Manual" there is known a similar device using only two reference voltage levels. Summary of the Invention In consideration of the above, the present invention starts from the recognition that the ENABLE line of the 3-wire bus provides a means of discriminating between I 2 C and 3-wire bus formats in a receiver device which is intended to receive data in either format; in the I 2 C mode the ENABLE pin is left floating. The present invention provides a discriminator device as claimed in claim 1. Thus, in accordance with the invention a means is provided for discriminating between I 2 C and 3-wire bus formats: the 3-wire bus format will provide on the ENABLE pin a high or low logic value which will override the voltage divider network and provide said format signal. The format signal will be compared by the comparator with the reference signals, and being found greater or smaller than the reference signals, an output signal will be provided by the output means indicating that the 3-wire bus format is present. In the case of I 2 C bus format, since the ENABLE signal is not present and the pin is left floating, the voltage divider network will provide a format signal having a value intermediate said first and second reference voltages, which will result in the comparator enabling the output means to provide a signal value indicating that the I 2 C bus format is present. The present invention has more general use, as will be described below, in a variety of applications. Brief Description of the Drawings Preferred embodiments of the invention will now be described with reference to the accompanying drawings wherein:- Fig. 1 is a timing diagram of I 2 C and 3-wire bus data formats; Fig. 2 is a schematic diagram of a modulator device for receiving input data signals on I 2 C or 3-wire format and including a bus receiver circuit incorporating the invention; Fig. 3 is a circuit diagram of a window detection portion of the bus receiver circuit; Fig. 4 is a full circuit diagram of the bus receiver circuit; and Figs. 5 and 6 are schematic views of further applications of the present invention. Description of the Preferred Embodiments Referring now to the drawings, Fig. 1 shows the data format of the characteristic I 2 C bus and 3-wire bus. It can be seen for the I 2 C bus there is a start condition (STA) at the beginning of a data transmission in which the data line (SDA) goes low while the clock line (SCL) is high. Following this, SDA has a chip address which is 8 bits long. This is followed by an acknowledge bit which is generated by the receiver circuit and then data is transferred in 8 bit bytes with an acknowledge bit in between each bit. For the 3-wire bus, it may be seen that at the start of a data transmission, an ENABLE signal changes state, as shown by going from a low to high logic value. The ENABLE signal is effectively a chip address signal, and where several chips are connected on the same data and clock lines to a transmitting device (e.g. MPU), separate ENABLE lines will be coupled to the individual chips for selectively enabling a chip. In this embodiment, the first part of the data put out on the 3-wire bus consists of random data (the first 9 bits) and then data is sent out in 8 bit bytes. It will be noted there is no chip address information sent out, and neither is an acknowledge bit generated within the circuit; this bit is just left random. Referring now to Fig. 2, this shows a modulator circuit for an audio/video modulator intended for use in VCR and satellite receiver applications. The circuit will not be described in detail since it is merely desired to show that the receiver is designed to operate with various standards, and an on-chip bus receiver 2 is included for receiving either I 2 C or 3-wire data formats. The receiver is used to set the channel, which is tuned by a phase locked loop generally indicated at 4 over a wide range in the UHF bands. It will be noted the bus receiver circuit 2 is coupled to ENABLE, clock, (SCL), and data (SDA) pins of the chip. Referring now to Fig. 3, this shows a discriminator circuit 30 incorporated in the bus receiver circuit of Fig. 2. The discriminator circuit comprises a voltage divider arrangement 32 comprising first and second resistances R1, R2, their nodal connection being connected to the ENABLE pin in order to provide a FORMAT signal. A second chain of resistances R3, R4, R5 provide a first voltage reference signal VR1 and second voltage reference signal VR2. First and second comparator 34a, 34b are provided. The inverting input of comparator 34a is connected to receive voltage reference signal VR2 and the non-inverting input of comparator 34a is connected to receive the FORMAT signal. The inverting input of comparator 34b is connected to receive the FORMAT signal and the non-inverting input of comparator 34b is connected to receive the first voltage reference signal VR1. The outputs of the comparators are applied to AND gate 36 as output signals A, B and the output of gate 36, A.B, is applied to a delay circuit 38 and then to a further inverting gate 39. A filter may be used in place of the delay circuit 38. In operation, the reference signal VR1 and VR2 define a window typically centred around V cc /2 (2.5 volts), say between 1V-4V. If data arrives in the 3-wire bus format, the ENABLE signals switches between high and low levels and never stays in the window for longer than the delay time as defined by delay circuit 38. Thus, when the ENABLE signal is low, it will be less than the voltage reference signal VR2 and hence the output of comparator 34a will be low, whereas the output of comparator 34b will be high. Hence the output of gate 36 will be low. When the ENABLE signal is high, the output of comparator 34B is high whereas that of 34A is low. Hence the output of gate 36 will be low. In both cases, the output of gate 39 will therefore be high indicating that bus is in the 3-wire mode. If data is received in the I 2 C mode, then the EN pin will be floating. The voltage divider R1, R2 will therefore provide a FORMAT signal of say V CC /2 which is less than voltage reference signal VR1 and greater than voltage reference VR2. Hence both the inputs A, B of comparators 34a, 34b will be high and the output of gate 36 will similarly be high. Delay circuit 38 ensures that no transients affect operation and the output of inverting gate 39 goes low indicating that the bus is in I 2 C mode. The bus format for the I 2 C bus mode has a chip address and an acknowledge bit as described above. In the 3-wire bus format these bits are inhibited and may be random during data transmission. In order to convert between the two modes therefore these differences need to be dealt with. Referring now to Fig. 4, the bus receiver of Fig. 2 is shown in some detail. Only those parts of the circuit which are relevant to the present invention will be described, it being understood that the circuit provides various other functions which are not directly relevant to the present invention. Three pins are provided denoted SCL for clock signal, SDA for data signal and EN for enable signal. Various input and output signals are provided for connection to other parts of the circuit of Fig. 2 namely POCO (power on reset for frequency latch) DTS (data transfer counter at start and power on), DAT (data), ADD (address) and further control signals FUN, CLO, DTF, DTB and AVA. It will be noted that each of the pins EN, SCL, SDA has an input signal processing circuit 40 comprising a zener diode 42 and a preset resistor 44 and a level shifter comprising a pair of PNP transistors 46 in differential mode biassed by resistors 48 and coupled to an output bipolar transistor 49. For pin EN, the output of resistor 44 is applied to the window detector circuit 30 (of Fig. 3) the output WI of which is applied to inverting gates 52, 54. A first output of gate 52 is applied to an inverting gate 56 the output of which is and wired in common with the output of processing circuit 40 to a further inverting gate 58. A second output of gate 52 is coupled to an acknowledge line ACK 60 of the receiver. A third output of gate 52 is coupled on line 74 to an address ADD input of the receiver 62. A first output of gate 54 is connected to start bit circuitry 64 and a second output of gate 54 is coupled in common with the output of an inverting gate 66 from stop bit circuitry 68 to the input of a further inverting gate 70, the output of which is coupled to counter circuitry 72. The output of gate 58 is coupled at a first output line 74 to the ADD input 62 and is also coupled by a first positively going differentiator circuit 76 to a power on start circuitry 64, and via a second negative differentiator circuit 78 to stop circuitry 68. In the I 2 C mode, the signal WI from window detector 30 is low and therefore the circuitry for the 3-wire bus format is deactivated and only the remainder of the circuit serving for I 2 C bus functions is active. A counter circuit 80 functions to provide timing for the acknowledge signal at the end of each byte of received data. In the 3-wire bus mode, signal WI is high and hence gates 58, 52, 54 are operative and provide logic low signals. The second output of gate 52 coupled to line 60 is then operative to disable acknowledge pulses provided at the end of each data byte. The third output of gate 52 which is coupled to the ADD input 62 is operative to disable the address decoding, signal address from a shift register (not shown). The first output of gate 54 disables the pulse from the start detector 64 whereas the second output from gate 54 disables pulses from the stop detector. The output of gate 58 is coupled to the address line by line 74 and replaces the address signal by the input enable signal. Differentiator 76 generates the pulse on the positive edge of the input enable signal. Its output signal replaces the start pulse of the I 2 C bus. The second differentiator 78 generates the pulse on the negative edge of enable signal. Its output signal coupled to the output of gate 70 replaces the stop pulse for the I 2 C mode. There has thus been shown and described a simple and effective circuit for discriminating between I 2 C and 3-wire bus data formats and for providing a receiver circuit which responds to both types of data formats. The present invention in its broadest aspect has application to other arrangements. It is for example possible to combine an I 2 C bus with 3-wire and having two or more addresses on the I 2 C bus application. This is shown in Fig. 5. In this case, a programmable voltage divider (P1, P2) is provided externally of a chip and connected to the enable pin EN. Divider P1, P2 is activated in I 2 C mode to provide a format signal of predetermined value (in contrast to the above embodiment where the format signal is determined by voltage divider 32 within the window detector). Two separate discriminator circuits 301, 302 are provided connected to the enable pin having voltage reference signals adjusted to provide "windows" of between 1.5V and 2.5V for circuit 301 and 3.5V to 4.5V for detector 302. The outputs of the window detectors 301, 302 inform the I 2 C bus receiver which one of the two addresses is valid and the combination of the two output signals connected to an NOR gate 90 informs the chip whether data is in I 2 C or 3-wire data format. Thus, if the input voltage is within one of the windows for some time, either 1.5V to 2.5V, or 3.5V to 4.5V, the outputs of detectors 301, 302 will go high to indicate the chip address to the I 2 C bus receiver. The output of NOR gate 90 will give a low state indicator for I 2 C bus generation. If however both outputs of detectors 301, 302 are low, the outputs of NOR gate 90 goes high indicating the presence of the 3-wire bus format. In a similar way, more than two window detectors can be used to decode more than two addresses. Referring to Fig. 6, a further embodiment is shown wherein an EN pin of an IC or other circuit or system may have any logic function including the ENABLE function for the 3-wire bus. The EN pin is connected to voltage divider R1, R2 (fulfilling the same function of voltage R1, R2 of Fig. 3) which is coupled to window detector 306. The FORMAT signal from voltage divider R1, R2 is also applied to a logic device 100, and the output of window detector 306 is applied to a control input of logic device 100. Should the EN pin go open circuit or floating (e.g. a cable connection breaks, or for an I 2 C bus configuration, the cable connection is not present) the output WI of the window detector changes the state of the logic device 100, for example to a "limp home" mode. Logic 100 may be switchable to more than one additional state by the use of two or more window detectors, in the manner indicated in Fig. 5, wherein each window detector provides a control input to the logic devices. Thus, when the normal digital input signal is present at the EN pin with defined high and low levels then the window detector indicates that digital information is present. If there is no digital signal, the window detector indicates, that the circuit or system has to switch into some different mode of operation. If there are two or more window detectors the different mode operation is switchable; for example the way to release the "limp home" function may be different in the two modes of operation (for different customers). In order that the IC is the same for all customers, the external voltage divider R1, R2 determines which "limp home" function may be enabled. The present invention may also be used to combine analog and digital input functions on one pin. In this case switching between high and low levels means logic input operation (W1=1)p; for example, high state > 4.5V and low state <0.5V. If however the signal is continuously in the window defined by the discriminator, this indicates an analog signal present. The analog voltage range in this case would be limited to say 1V to 4V to provide 0.5V safety margin. The window detector may be applied to more than one pin of a circuit or system. Combining the results of more pins can provide a higher number of combinations (for example 16, if each of 2 pins has four window detectors). This principle applied to a PLL circuit or a modulator circuit would allow for example the following:- both inputs switch between high and low only: I 2 C bus operation. same or none of the pins goes to high or low levels: a specific operation, for example the programming of 16 predetermined TV channels (division ratios) of the PLL system. A potentiometer applied to the pins (one each) or resistors could do the selection.

Claims: A discriminator device for discriminating between two types of signal applied to an input port (EN), the first type being a binary logic signal having high and low values, and the second type of signal being a continuously variable signal or a floating voltage, the device comprising a voltage divider network (R1,R2) for coupling to the input port and a voltage supply (VCC) in order to provide a format signal, means (R3,R4,R5) providing first and second voltage reference signals (VR1,VR2) having values intermediate the high and low values of the binary logic signal, comparator means (34A,34B) coupled to receive the format signal and the voltage reference signals, the output of the comparator means being coupled to output means (36-39) which provides a logic output signal of a value depending on the type of signal present at the input port, characterised in that the output means includes a delay device or filter (38) such that transient signals of less than a predetermined time interval do not create an output signal. A device as claimed in claim 1 including a second voltage divider network (R3,R4,R5) providing said first and second voltage reference signals. A device as claimed in claim 1 or 2, wherein said comparator means comprise first and second comparators respectively, said first voltage reference signal being connected to the non-inverting input of the first comparator, said format signal being coupled to the inverting input of the first comparator and the non-inverting input of the second comparator, and the second voltage reference signal being coupled to the inverting input of the second comparator. A device as claimed in any preceding claim, wherein the output means includes an AND gate (36) for receiving the outputs of the comparators. A device as claimed in any preceding claim wherein the output means includes an inverting gate (39) providing said output signal. A device as claimed in any preceding claim incorporated in a data receiver, wherein data is supplied to the device over a bus in I 2 C or 3-wire bus format, and said input port is coupled to an ENABLE pin of the bus. A circuit including two or more discriminator devices, each device being as claimed in any of claims 1 to 5, and including a voltage divider network external to the circuit for providing a signal of selected value to selectively activate one of the discriminator devices. A device as claimed in any preceding claim wherein the output signal of said output means is coupled to a further logic device providing a predetermined function for setting the further device to one or more predetermined states. A device as claimed in claim 7 or 8, wherein the output of each discriminator device is coupled to the further logic device for selectively activating the logic device in one of a plurality of operating modes.

Inventors: LEHNING HEINZ, LEHNING, HEINZ
Applicants: MOTOROLA INC, MOTOROLA, INC.
Application year: 1993
Main classification: H03K5
IPC codes: H03K5, G01R19, H04L29