The present invention relates to an integrated circuit and to a method of configuring an integrated circuit. The invention further relates to an electronic device comprising the integrated circuit, e.g. a communication device.
In electronic devices, e.g. in data communication devices, there is typically a need to configure components of the electronic device. In this respect, it is known to configure one or more integrated circuits during an initialization phase. For example, operating modes of an integrated circuit can be selected or communication addresses may be transferred to the integrated circuit. This may be accomplished on the basis of data stored in memory devices such as EPROMs (EPROM: Electrically Programmable Read Only Memory) or from the firmware of a microcontroller. In other cases, the data may be defined by an external circuit configuration coupled to the integrated circuit, such as jumpers, dip switches or the like. In each case, it is typically necessary to provide the integrated circuit with additional connection pins or terminals for receiving the configuration data.
According to an embodiment, the present invention provides an integrated circuit comprising an output terminal to be coupled to a non-linear circuit element, an output circuit coupled to the output terminal, the output circuit being configured to supply an operating signal to the non-linear circuit element, a measuring circuit coupled to the output terminal, the measuring circuit being configured to sense on the output terminal a signal value outside an operating regime of the non-linear circuit element, and a control circuit coupled to the measuring circuit, the control circuit being configured to configure at least one function of the integrated circuit on the basis of the signal value sensed by the measuring circuit.
The following detailed description explains exemplary embodiments of the present invention. The description is not to be taken in a limiting sense, but is made only for the purpose of illustrating the general principles of the invention. It is to be understood that the scope of the invention is only defined by the claims and is not intended to be limited by the exemplary embodiments described hereinafter. Further, it is to be understood that in the following detailed description of exemplary embodiments any shown or described direct connection or coupling between two functional blocks, devices, components or other physical or functional units could also be implemented by indirect connection or coupling.
In the following, embodiments of the invention will be described with reference to the accompanying drawings. The embodiments described hereinafter relate to an integrated circuit and to an electronic device comprising the integrated circuit. The electronic device may be a communication device configured to transmit electronic data via a communication network, and the integrated circuit may be configured to pro-vide a physical layer interface to the communication network. For example, the integrated circuit may be configured to operate according to the Ethernet specification, the Fast Ethernet specification, the Gigabit Ethernet specification or the like. However, the concepts as described hereinafter could also be applied to other types of integrated circuits.
Operation of the light-emitting diodes is controlled by the integrated circuit 100 by supplying a corresponding operating signal via the output terminals 110. By means of the operating signal, the light-emitting diodes are controlled to operate so as to irradiate light. In this respect, it is to be understood that the irradiated light may be in the visible range. However, it is also possible that the irradiated light is outside the visible range, e.g. in the infrared range.
According to the embodiment, the output terminals 110 of the integrated circuit 100 are further configured to transfer configuration data from the outside to the integrated circuit 100. This is accomplished by measuring a signal value on at least one of the output terminals 110. In particular, the integrated circuit 100 is configured to measure signal values on the output terminals 110 which are outside an operating regime of the non-linear circuit elements 200 coupled to the output terminals 110. In this way, the signal values used for transferring the configuration data do not interfere with the normal operation of the non-linear circuit elements 200. In the illustrated case of a non-linear circuit element comprising a light-emitting diode, it is avoided that the light-emitting diode irradiates light due to the signal values used when transferring the configuration data. By commonly using the output terminals 110 both for operating the light-emitting diodes and for receiving configuration data, the pin count of the integrated circuit may be reduced.
As illustrated, the current-voltage characteristic is highly non-linear and comprises a first regime denoted by A in which there is substantially no increase of the current I as function of the voltage U. In a second regime, denoted by B, there is a strong increase of the current I as a function of the voltage U. In case of a light-emitting diode, the thresh-old voltage between the first regime A and the second regime B is typically denoted as a forward voltage Uf. Beyond the forward voltage Uf, the current I starts to rapidly increase from a threshold current Io. The second regime B, in which the voltage U is above the forward voltage Uf and in which the current I is above the threshold current Io may also be referred to as the operating regime of the non-linear circuit element, as the intended operation of the non-linear circuit element in case of a light-emitting diode is that light is irradiated by the light-emitting diode only in the second regime B. Accordingly, the first regime A may also be referred to as non-operating regime.
Accordingly, in the integrated circuit 100 as illustrated in
As illustrated, the integrated circuit 100 comprises an output circuit configured to supply an operating signal to the non-linear circuit element 200 via the output terminal 110. As the non-linear circuit element 200 essentially consists of a light-emitting diode, the output circuit may also be referred to as a light-emitting diode driver. In the illustrated example, the output circuit is formed by a transistor 120 coupled between the output terminal 110 and the low supply voltage VSS. The non-linear circuit element 200 is coupled between the output terminal 110 and the high supply voltage VDD. By switching the transistor 120 into its conducting state, a cur-rent will flow through the non-linear circuit element 200, causing the light-emitting diode to irradiate light. The value R of the series resistor 210 is selected in such a way that the current which is caused to flow in this state is above the threshold value Io. Accordingly, a voltage as measured between the high supply voltage VDD and the output terminal 110 is above the forward voltage Uf of the light-emitting diode.
As further illustrated, the integrated circuit comprises a measuring circuit which is configured to measure a voltage on the output terminal 110 when the non-linear circuit element 200 is outside its operating regime. This voltage is externally set by a configuration circuit 300 coupled to the output terminal 110. In the illustrated example, the configuration circuit 300 comprises a configuration resistor 310 coupled in parallel to the non-linear circuit element 200. Accordingly, when the non-linear circuit element 200 is outside its operating regime, the current will flow substantially through the configuration resistor 310, causing a voltage drop between the high supply voltage VDD and the output terminal 110 which is proportional to the value R, of the configuration resistor 310. In the following, this voltage drop will be referred to as configuration voltage Uc.
For sensing the configuration voltage Uc, the integrated circuit 100 comprises an analog-to-digital converter (ADC) 140, which has a first, positive input coupled to the high supply voltage VDD and a second, negative input coupled to the output terminal 110. Further, the measuring circuit comprises a test signal source 130 in the form of a current sink coupled between the output terminal 110 and the low supply voltage VSS. The test signal source 130 is configured to supply a test signal to the output terminal 110, in this case in the form of a test current It flowing through the output terminal 110 to the low supply voltage VSS. In addition, the measuring circuit comprises a switch 135 for decoupling the test signal source 130 from the output terminal 110.
Further, the integrated circuit 100 comprises a control circuit (CTRL) 150 which is configured to control a configuration process of the integrated circuit 100. In particular, the control circuit 150 is configured to receive digital data from the analog-to-digital converter 140. In the control circuit 150, the received digital data may be stored as configuration data and then be used for controlling configuration of at least function of the integrated circuit 100, e.g. selecting address values, selecting between different operating modes, or the like. In this respect, it is to be noted that, as the signal value sensed on the output terminal 110 is an analog value, actually multiple bits of configuration data may be received via only one output terminal. For storing the configuration data, the control circuit 150 may comprise a suitably designed memory (not illustrated). Alternatively, it is also possible that the digital data is stored as configuration data in a memory so as to be accessible by the control circuit 150, i.e. that the data is transferred to the control circuit via the memory.
For the purpose of controlling the configuration process, the control circuit 150 supplies a corresponding control signal to the analog-to-digital converter 140. By means of the control signal, the analog-to-digital converter 140 may be caused to measure the signal value on the output terminal 110 and to supply the corresponding digital data to the control circuit 150. Further, the switch 135 and the transistor 120 are controlled by the control circuit 150. In normal operation of the integrated circuit 100, the output circuit is selectively activated by controlling the transistor 120 into its conducting state, and the test signal source 130 is deactivated by controlling the switch 135 to be open. In this way, the measuring circuit does not interfere with the normal operation of the integrated circuit 100 with respect to supplying an operating signal to the non-linear circuit element 200, e.g. for causing the light-emitting diode to flash or to be substantially continuously activated.
In a configuration state, e.g. during an initialization phase of the integrated circuit 100, the output circuit is de-activated by controlling the transistor 120 into its non-conducting state and by activating the test signal source 130 by controlling the switch 135 into its closed state.
The test signal source 130 is configured in such a way that the signal value of the test signal, in this case the test current It, is outside the operating regime of the non-linear circuit element 200 coupled to the output terminal 110. In particular, the value of the test current It selected in such a way that the voltages Uc which occur across the non-linear circuit element 200 are below the forward voltage Uf of the light-emitting diode. The value of the test current It may be selected in such a way that for a given set of possible values Rc of the configuration resistor 310, the test current It multiplied by the resistance Rc is below 1 V. According to an embodiment, the value of the test current It is selected to be equal to or below 100 μA. According to some embodiments, the test current may even be selected to be equal to or below 10 μA. In this way, the light-emitting diode will not operate during the configuration process and glowing or flashing of the light-emitting diode during the configuration process, which may be disturbing or irritating, can be avoided.
As mentioned above, the value of the configuration voltage Uc which is measured during the configuration process is determined by the value of the configuration resistor 310 in the configuration circuit 300. That is to say, the configuration data transmitted to the integrated circuit 100 is controlled by suitably selecting the configuration circuit 300. This may also include leaving out the configuration resistor 310 or entire configuration circuit 300. The values Rc of the configuration resistor may be selected in a range between 100Ω and 100 kΩ. According to an embodiment, the values Rc of the configuration resistor 310 may be selected in a range between 500Ω and 15 kΩ. For example, by defining four different resistance values in this range, two bits of configuration data may be encoded. The measured value of the configuration volt-age Uc is typically below 1 V.
It is to be understood that the implementation of the integrated circuit 100 as illustrated in
The measurement mode as illustrated in
In
In
In
In
In
In the different measuring modes as illustrated in
As illustrated in
Two exemplary courses of the signal value on the output terminal 110 as a function of time t are illustrated in
Accordingly, by measuring the signal value on the output terminal 110 at two different points of time relative to activating the test signal, it is possible to distinguish whether the configuration capacitor 330 is present in the con-figuration circuit 300 or not. Of course, it would also be possible to distinguish between two different values of the configuration capacitor 330. Furthermore, e.g. by introducing additional points of time for the measurement, it may even be possible to distinguish between more than two different values of the configuration capacitor 330.
Encoding of the transferred configuration data may be accomplished by using selected values RC of the configuration resistor and the value Cc of the configuration capacitor. According to one example, the configuration resistor 310 may be selected from the E96 series and may have one of eight values of Rc selected from the following group: 0.93 kΩ, 1.62 kΩ, 2.43 kΩ, 3.40 kΩ, 4.64 kΩ, 6.04 kΩ, 7.87 kΩ, 10.00 kΩ. The value Cc of the configuration capacitor may be 100 nF. The coding of a four-bit configuration data word transferred via a single out-put terminal may then be as follows:
A value of Rc=0.93 kΩ may correspond to a binary data word of 000.
A value of Rc=1.62 kΩ may correspond to a binary data word of 0001.
A value of Rc=2.43 kΩ may correspond to a binary data word of 010.
A value of Rc=3.40 kΩ may correspond to a binary data word of 011.
A value of Rc=4.64 kΩ may correspond to a binary data word of 100.
A value of Rc=6.04 kΩ may correspond to a binary data word of 101.
A value of Rc=7.87 kΩ may correspond to a binary data word of 110.
A value of Rc=10.00 kΩ may correspond to a binary data word of 111.
The fourth bit may be encoded by the presence or non-presence of the configuration capacitor 330. For example, a binary word of 1001 could thus be encoded by a value Rc of 1.62 kΩ with the configuration capacitor 330 present in the configuration circuit 300.
It is to be understood that each of the measuring modes illustrated in
As illustrated, the integrated circuit 105 is configured to be operated with a multicolor light-emitting diode, in particular a bi-color light-emitting diode. That is to say, the non-linear circuit element 201 as illustrated in
By means of the output circuits comprising the transistors 120A, 120B, 120C, 120D it is possible to supply an operating signal to the non-linear circuit element 201 which causes either a current to flow from the output terminal 110A through the non-linear circuit element 201 to the output terminal 110B or which causes a current to flow from the output terminal 110B through the non-linear circuit element 201 to the output terminal 110A. Depending on the direction of the current, the bi-color light-emitting diode of the non-linear circuit element 201 irradiates light with one of two different colors.
As further illustrated, a configuration circuit 300 is coupled to each of the output terminals 110A, 110B. Each of the configuration circuits 300 comprises a configuration resistor 310 coupled between the high-supply voltage VDD and the output terminal 110A or the output terminal 110B, respectively. It is to be understood, that instead of the configuration resistor 310 also a configuration impedance or a combination of a configuration resistor and a configuration capacitor as illustrated in
As further illustrated, the integrated circuit 105 comprises a measuring circuit with a test signal source 130, a switch 135, and an analog-to-digital converter 140 for each of the output terminals 110A, 110B. A single control circuit 150 is provided for receiving the digital data from both analog-to-digital converters 140 and for controlling the configuration process with respect to both output terminals 110A, 110B. The structure of the measuring circuit and its operation during the configuration process are substantially the same as explained in connection with
The method starts with step 410, in which an electronic device, such as a communication device, is assembled and a non-linear circuit element comprising a light-emitting diode and a configuration circuit are coupled to an output terminal of the integrated circuit. For example, the integrated circuit, the non-linear circuit element, and the configuration circuit may be assembled on a printed circuit board. At this stage, the configuration circuit is selected so as to suitably encode the desired configuration data. In fact, this procedure may be performed for all light-emitting diode output terminals of the integrated circuit, which increases the amount of con-figuration data which can be transferred.
The method then continues with step 420, which is per-formed in the assembled state of an electronic device, e.g. during each start-up of the electronic device. In step 420 an initialization phase of the electronic device is started. This initialization phase also includes a configuration process in which the configuration data encoded by the configuration circuit (or circuits) coupled to the output terminal (or output terminals) are transferred to the integrated circuit. The con-figuration process includes steps 430, 440, and 450.
In step 430, the signal value on each output terminal is measured with a test signal being supplied to the non-linear circuit element and to the configuration circuit in such a way that the non-linear circuit element remains outside its operating regime. The measured signal value may be an analog voltage or an analog current, as explained in connection with
In step 440, the measured signal value is converted to digital data.
In step 450 the digital data is stored as configuration data. This may be accomplished by using a suitably designed semiconductor memory. After that, circuitry used in steps 430-450 may be deactivated and the integrated circuit is switched to normal operation. With respect to the output terminal (or output terminals), the integrated circuit then operates in a light-emitting diode driver mode.
In step 460, the operation of the integrated circuit is controlled according to the stored configuration data. For ex-ample, different operating modes, e.g. operation according to different communication protocols, may be selected. Another possibility is to select between different operating modes with respect to controlling light-emitting diodes coupled to the output terminals, e.g. to select between different flash patterns or sequences. Further, a communication address of the integrated circuit may be set according to the configuration data.
It is to be understood that various modifications are possible within the above-described exemplary embodiments of the invention. For example, various features of the different embodiments may be combined with each other as appropriate. For example, different measuring modes as illustrated in