Inter-integrated circuit interface circuit and electronic module
The improved I2C interface circuit generates a clock pulse event based on signal state changes, addressing the challenge of detecting events in low power environments by eliminating the need for a higher clocked clock signal, thus ensuring reliable and efficient operation.
Patent Information
- Application Number
- PCT/EP2024/055369
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-30
- Filing Date
- 2024-03-01
- Publication Date
- 2024-10-03
AI Technical Summary
Conventional I2C protocol systems face challenges in low power environments where detecting signal state changes on the I2C bus is difficult due to the need for higher clock rates to identify edge events, which is not feasible in such conditions.
An improved interface circuit that generates an additional clock signal using a pulse generator based on signal state changes in the I2C bus, allowing for reliable detection of signal events without requiring a higher clocked clock signal, enabling low power applications.
Enables reliable detection of signal events on the I2C bus in low power environments, meeting I2C high-speed specifications with very low standby power consumption and simplified timing closure.
Smart Images

Figure EP2024055369_03102024_PF_FP_ABST
Abstract
Description
[0001] INTER- INTEGRATED CIRCUIT INTERFACE CIRCUIT AND ELECTRONIC MODULE
[0002] TECHNICAL FIELD
[0003] The disclosure relates to an Inter-Integrated Circuit, I2C, interface circuit. The disclosure further relates to an electronic module employing such an I2C interface circuit.
[0004] RELATED APPLICATIONS
[0005] This patent application claims the priority of US provisional patent application 63 / 493,102, the disclosure content of which is hereby incorporated by reference.
[0006] BACKGROUND
[0007] I2C is a two-wire bus. The two wires are typically called SDA and SCL referring to a serial data line (SDA) and a serial clock line (SCL) . One of the difficult aspects of the I2C protocol is that events can be generated from edges from SDA or SCL.
[0008] This is a problem in structured digital designs that give a strong preference to events triggering off the edges of a single "clock" signal. In conventional systems the signals on the SDA and SCL lines are evaluated, e.g. sampled, with a clock rate that for example is higher than changes of the signal states on the lines. Hence the edges can be identified for determining the events. However, such approach is not possible in low power environments. SUMMARY OF INVENTION
[0009] An obj ect to be achieved is to provide an improved interface concept that allows a reliable detection of changes of signal states on an I2C bus .
[0010] This obj ect is achieved with the subj ect-matter of the independent claims . Embodiments and developments derive from the dependent claims .
[0011] The improved interface concept is based on the idea that instead of directly evaluating edges or state transitions on the serial clock line and the serial data line of an I2C bus , an interface circuit with a pulse generator is provided which generates an additional clock signal with clock pulse events based on the detection of changes in the signal states in a serial clock signal and a serial data signal received from the I2C bus . This allows to evaluate the signal states on the serial data line and the serial clock line instead of signal states changes when a clock pulse event is detected . Hence no oscillator providing a higher clocked clock signal is necessary for evaluation purposes allowing low power applications . Furthermore , a reliable detection of signal events on the I2C bus is possible .
[0012] In an example implementation of an I2C interface circuit according to the improved interface concept the interface circuit comprises a clock input for receiving a clock signal , e . g . connected to the SCL line of the I2C bus . A clock output is coupled to the clock input by a first detection circuit . The interface circuit further comprises a data input for receiving a serial data signal , e . g . coupled to an SDA line of the I2C bus . A data output is coupled to the data input by a second detection circuit. A pulse generator is configured to generate a clock pulse event at a symbol clock output in response to a trigger event. The first detection circuit is configured to latch the serial clock signal, to detect when a signal state at an input of the first detection circuit becomes different to a signal state at the clock output, and to effect the trigger event in response to such detection. The second detection circuit is configured to latch the serial data signal, to detect when a signal state at an input of the second detection circuit becomes different to a signal state at the data output, and to effect the trigger event in response to such detection while the latched serial clock signal is in a predefined signal state, e.g. in a high state.
[0013] For example, the first and the second detection circuit introduce some delay with the latching function. Hence, a signal state at the input of the detection circuits can become different to the latched state at the respective output, e.g. if the signal state on the respective line of the I2C bus changes. Hence, such change can be detected and may effect the trigger event triggering the generation of the clock pulse event in the pulse generator.
[0014] Due to the specifications of the I2C protocol, a change of the signal state on the serial data line only corresponds to a predefined event if the signal state on the serial clock line has the predefined signal state, which usually is the high state. Hence, the trigger event is only effected by the second detection circuit under this condition of the state of the latched serial clock signal.
[0015] In some implementations the second detection circuit is coupled to the data input by a delay element having a delay time being selectable from a first delay and a second delay, wherein the first delay is shorter than the second delay and is applied i f the latched serial clock signal is not in the predefined signal state as defined above . According to the speci fication of the I2C protocol there are di f ferent requirements for signal state changes on the SDA line when the serial clock signal is high versus when the serial clock signal is low . Hence , the di f ferent delay times depending on the signal state of the latched serial clock signal take these requirements into account and introduce a safety margin required for each case .
[0016] In some implementations of the I2C interface circuit the pulse generator is configured to generate a pulse event in a first intermediate signal at a first predetermined time period after the trigger event , to generate a pulse event in a second intermediate signal at a second predetermined time period after the pulse event in the first intermediate signal , and to generate the clock pulse event at the symbol clock output at a third predetermined time period after the pulse event in the second intermediate signal . Hence , a pulse train with the first and the second intermediate signal and the signal at the symbol clock output is generated, e . g . by applying a chain of delay elements . This allows to not only generate the clock pulse events at the symbol clock output but also to use the intermediate signals for a controlled latching of the signals at the clock input and the data input .
[0017] For example , the first detection circuit comprises a first clock latching element and a second clock latching element . The first clock latching element has a first signal input coupled to the input of the first detection circuit and is configured to forward a signal state at said first signal input in response to the pulse event in the first intermediate signal . The second clock latching element has a second signal input coupled to a signal output of the first clock latching element , has a signal output coupled to the clock output , and is configured to forward a signal state at said second signal input in response to the pulse event in the second intermediate signal . Hence , the signal state at the input of the first detection circuit is latched to its output in two steps controlled by the first and the second intermediate signal and their respective pulse events .
[0018] The first detection circuit further comprises an exclusive OR, XOR gate having a first input coupled to the first signal input of the first clock latching element , a second input coupled to the signal output of the second clock latching element , and an output for providing a logic output signal being a basis for ef fecting the trigger event . Accordingly, a logic value of the logic output signal can only be high i f the signal state at the input of the first clock latching element or the first detection circuit is di f ferent to the signal state at the output of the first detection circuit or at the clock output .
[0019] In some speci fic implementations the I2C interface circuit may comprise an enable input for receiving an enable signal which for example allows enabling and disabling of at least one of the first detection circuit , the second detection circuit and the pulse generator .
[0020] For example , the first and the second clock latching element of the first detection circuit are configured to output a low signal state at their respective signal outputs while the enable signal is in a low state . Hence , while the enable signal is in a low state , no latching of the respective signal states is performed . In alternative implementations the first and the second clock latching element are configured to output a high signal state at their respective signal outputs while the enable signal is in a low state .
[0021] In some implementations the second detection circuit comprises a first and a second data latching element . The first data latching element has a first signal input coupled to the input of the second detection circuit and is configured to forward a signal state at said first signal input in response to the pulse event in the first intermediate signal . The second data latching element has a second signal input coupled to a signal output of the first data latching element , has a signal output coupled to the data output , and is configured to forward a signal state at said second signal input in response to the pulse event in the second intermediate signal . Hence , similarly to what has been described for the example of the first detection circuit , the respective signal states are latched and forwarded controlled by the pulse events in the first and the second intermediate signal .
[0022] The second detection circuit may further comprise an exclusive OR, XOR gate having a first input coupled to the first signal input of the first data latching element , a second input coupled to the signal output of the second data latching element , and an output for providing a logic output signal being a basis for ef fecting the trigger event . As described above , the logic output signal can only have a high state i f the inputs of the XOR gate have di f ferent signal states . For example , the second detection circuit further comprises an AND gate having a first input coupled to the output of the XOR gate of the second detection circuit , a second input coupled to the signal output of the second clock latching element ( or to the clock output ) , and an output for providing a further logic output signal being a basis for ef fecting the trigger event . Hence , a trigger event will only be generated i f both the signal state provided by the XOR gate and the signal state of the clock output are high .
[0023] In some implementations the first and the second data latching element are configured to output a high signal state at their respective signal outputs while the enable signal , i f provided via the enable input , is in a low state .
[0024] In some implementations the pulse generator comprises a first delay element , which has a delay time corresponding to the first predetermined time period and is configured to provide the first intermediate signal , a second delay element , which has a delay time corresponding to the second predetermined time period, is connected downstream of the first delay element and is configured to provide the second intermediate signal . The pulse generator further comprises a third delay element , which has a delay time corresponding to the third predetermined time period and is connected between the second delay element and the symbol clock output . An OR gate has a first input for receiving the trigger event and a second input coupled to a connection between the first delay element and the second delay element . An AND gate has a first input connected to an output of the OR gate , a second input for receiving an inverted version of a signal state at an output of the third delay element , and an output coupled to the first delay element . For example , i f the OR gate of the pulse generator receives the trigger event at its first input , its output will become high . As long as the output of the third delay element is in a low state , the AND gate will forward the high state to the first delay element starting a pulse event in the pulse train which eventually arises at the output of the third delay element . Accordingly, the high state at the output of the third delay element results in the AND gate outputting a low state corresponding to an end of the pulse event in the pulse train . Also the end of the pulse event eventually is delayed to the output of the third delay element or the symbol clock output .
[0025] In implementations where the I2C interface circuit comprises an enable input for receiving the enable signal , the delay time of the third delay element may be selectable from a first delay and a second delay being di f ferent from the first delay depending on a signal state of the enable signal . For example , the first delay, which is applied when the enable signal is in a low state , is shorter than the second delay . This can improve the time for a stable signal at the symbol clock output , reducing the minimum reset time required in the system .
[0026] In some implementations of the I2C interface circuit , the first detection circuit is coupled to the clock input by a first glitch filter . In addition or as an alternative , the detection circuit is coupled to the data input by a second glitch filter . The optional glitch filters allow avoiding the evaluation of glitching events on the signal lines of the I2C bus . In some implementations the I2C interface circuit further comprises an evaluation circuit being coupled to the clock output , to the data output and to the symbol clock output . The evaluation circuit is configured to store the signal state at the clock output as a previous clock state upon detecting the clock pulse event at the symbol clock output . For example , the previous clock state supports evaluation of the signal state changes at the clock output and the data output .
[0027] For example , the evaluation circuit is configured to determine an event type upon detecting the clock pulse event at the symbol clock output depending on the previous clock state and on the signal states at the clock output and the data output .
[0028] For example , the event type is determined as a START event , i f the previous clock state is in a high state , the clock output is in a high state and the data output is in a low state ; a STOP event , i f the previous clock state is in a high state , the clock output is in a high state and the data output is in a high state ; a DATAO event , i f the previous clock state is in a low state , the clock output is in a high state and the data output is in a low state ; and a DATA1 event , i f the previous clock state is in a low state , the clock output is in a high state and the data output is in a high state .
[0029] For example , the event type may also be determined as an SCLFE event , i f the previous clock state is in a high state and the clock output is in a low state , in particular independent of the state of the data output .
[0030] The improved interface concept may be employed in an electronic module comprising an I2C interface according to one of the implementations described above . For example , the electronic module is a sensor module e . g . for medical and / or health sensors or the like .
[0031] Such electronic modules may for example be used in mobile or wearable devices like mobile phones or smartwatches .
[0032] The architecture according to the improved interface concept addresses the problem of structured digital designs that give a strong preference to events triggering of f the edges of a single " clock" signal while comfortably meeting the timing closure target without requiring an additional higher speed clock . It is also extensible to higher I2C bus speeds , very modular, and easily adaptable to other products and technologies .
[0033] By developing a timing model for the pulse generator, the improved interface concept is able to demonstrate timing closure of the entire I2C path, which leads to greatly improved and simpli fied timing closure of the interface . This solution is also able to meet the I2C high-speed speci fication with very low standby power .
[0034] BRIEF DESCRIPTION OF DRAWINGS
[0035] The improved interface concept will be explained in more detail in the following with the aid of the drawings . Elements and functional blocks having the same or similar function bear the same reference numerals throughout the drawings . Hence their description is not necessarily repeated in the following drawings .
[0036] In the drawings :
[0037] Figure 1 shows an example signal diagram of signals on an I2C bus ;
[0038] Figure 2 shows an example implementation of an I2C interface circuit ;
[0039] Figure 3 shows an example pulse generator of an I2C interface circuit ;
[0040] Figure 4 shows an example timing diagram for signals in the pulse generator in Fig . 3 ;
[0041] Figure 5 shows a further example implementation of an I2C interface circuit ;
[0042] Figure 6 shows a further example implementation of an I2C interface circuit ;
[0043] Figure 7 shows an example block diagram of an evaluation circuit of an I2C interface circuit ; and
[0044] Figure 8 shows an example implementation of an electronic module . DETAILED DESCRIPTION
[0045] Figure 1 shows an example signal diagram of a serial data line and a serial clock line of an I2C bus . As mentioned above , events can be generated from edges or changes of signal states on the two lines . For example , a START event can be represented by a transition from a high state to a low state on the serial data line while the serial clock line is in a high state . Similarly, a STOP event can be represented by a signal transition from a low state to a high state on the serial data line while the serial clock line is in a high state .
[0046] A transition from a low state to a high state on the serial clock line can determine a data event . For example , i f during such transition the serial data line is in a low state , a DATAO event is represented, or, i f the serial data line is in a high state , a DATA1 event is represented . These events are for example defined in the I2C speci fication .
[0047] A transition on the serial clock line from a high state to a low state usually can be ignored . However, according to the present disclosure , a special event SCLFE corresponding to an ignore event may be represented .
[0048] The timing relationship between the serial data line and the serial clock line on the I2C bus is crucial for determining the respective events . In order to avoid e . g . a higher clock signal provided by an oscillator or the like , the present disclosure provides an improved interface concept that provides a symbol clock signal with pulse events corresponding to changing signal states on the serial data line and the serial clock line . For example , Figure 2 shows an example implementation of an I2C interface circuit according to the improved interface concept comprising a clock input SCLIN for receiving a serial clock signal scl , which is coupled to a clock output SCLPAD by a first detection circuit DET1 . A data input SDAIN for receiving a serial data signal sda is coupled to a data output SDAPAD by a second detection circuit DET2 . A pulse generator PGEN is configured to generate a clock pulse event at a symbol clock output SYMCLK in response to a trigger event in a trigger signal syken . The first detection circuit DET1 is configured to latch the serial clock signal scl from its input to its output , e . g . depending on an intermediate signal syph . This means that the signal state at the input of the first detection circuit DET1 appears at its output only after the first detection circuit DET1 is triggered via the intermediate signal syph .
[0049] Similarly, the second detection circuit DET2 is configured to latch the serial data signal sda from its input to its output , e . g . also based on the intermediate signal syph . As both detection circuits DET1 and DET2 are triggered by the same signal syph, the respective latching happens in a time synchroni zed fashion .
[0050] The first detection circuit DET1 is further configured to detect when a signal state at its input becomes di f ferent to a signal state at its output or the clock output SCLPAD, and to ef fect the trigger event in response to such detection . Similarly, the second detection circuit DET2 is further configured to detect when a signal state at its input becomes di f ferent to a signal state at its output or the data output SDAPAD, and to ef fect the trigger event in response to such detection . For example , the trigger event is ef fected only under the condition that the latched serial clock signal at the output of the first detection circuit DET1 is in a predefined signal state , e . g . in a high state . To this end the second detection circuit DET2 is coupled to the output of the first detection circuit DET1 .
[0051] The respective detection of the signal state becoming di f ferent in the first and the second detection circuit DET1 , DET2 is forwarded to an OR gate 0R1 for ef fecting the trigger event in the trigger signal syken being output by the OR gate 0R1 .
[0052] Figure 3 shows an example pulse generator PGEN that may be employed in the I2C interface circuit of Figure 2 . The pulse generator PGEN comprises a first delay element DG1 , which has a delay time corresponding to a first predetermined time period and is configured to provide a first intermediate signal syphl , which may be part of the signal syph described in conj unction with Figure 2 . The pulse generator further comprises a second delay element DG2 connected downstream of the first delay element DG1 and being configured to provide a second intermediate signal syph2 , which may also be part of the signal syph . The second delay element has a delay time corresponding to a second predetermined time period . The first and the second predetermined time period may be equal .
[0053] A third delay element DG3 is connected downstream of the second delay element DG2 and provides its output to the symbol clock output SYMCLK .
[0054] The pulse generator PGEN further comprises an OR gate 0R2 having a first input for receiving the trigger signal syken with the trigger event , and a second input coupled to a connection between the first delay element DG1 and the second delay element DG2 . An AND gate ANDI has a first input connected to an output of the OR gate 0R2 , a second input for receiving an inverted version of the signal or signal state at the output of the third delay element DG3 or the symbol clock output SYMCLK, and an output coupled to an input of the first delay element DG1 . Details of the function of the pulse generator PGEN of Figure 3 will be explained by way of an example signal diagram of the respective signals used in the pulse generator PGEN .
[0055] For example , as soon as the signal state of the trigger signal syken changes to a high state , the output of the OR gate 0R2 becomes high as well , irrespective of the signal state at the output of the first delay element DG1 or of the first intermediate signal syphl . Assuming that the signal state of the symbol clock signal at the symbol clock output SYMCLK is in a low state , also the output of the AND gate ANDI becomes high . After the first predetermined time period, denoted with D15 in this example , the first intermediate signal syphl at the output of the first delay element DG1 becomes high . Similarly, after the second predetermined time period, denoted as D15 as well , also the second intermediate signal syph2 at the output of the second delay element DG2 becomes high . Hence , in this example implementation the first and the second predetermined time period are chosen to be equal . However, di f ferent delay times are not excluded by this example .
[0056] Finally, after the third predetermined time period, denoted as D100 in this example , the output of the third delay element DG3 becomes high . Consequently, the output of the AND gate ANDI becomes low and, after the first predetermined time period, the first intermediate signal syphl becomes low, too . The low state propagates through the second delay element DG2 and the third delay element DG3 .
[0057] As can be seen in Figure 4 , in response to the trigger event in the trigger signal syken, a pulse train is initiated through the first and the second intermediate signal syphl , syph2 and the symbol clock signal on the symbol clock output SYMCLK . A length of the pulse event is determined by the sum of the first , the second and the third predetermined time period .
[0058] Referring briefly back to Figure 2 , the signal states of the serial data signal sda and the serial clock signal scl are forwarded in a time synchroni zed fashion to the clock output SCLPAD and data output SDAPAD, and the pulse event at the symbol clock output SYMCLK is generated as well in a synchroni zed fashion, only delayed by the third predetermined time period in this example . This allows a reliable detection of the signal states of the latched serial clock signal and the latched serial data signal based on the pulse event .
[0059] Referring now to Figure 5 , a more detailed example implementation of an I2C interface circuit is described, which is based on the implementation of Figure 2 in conj unction with Figure 3 . Accordingly, only aspects not described before will be discussed in more detail here . For example , the first and the second detection circuit DET1 and DET2 are coupled to the clock input SCLIN and the data input SDAIN, respectively, via respective glitch filters GL1 , GL2 , which for example are configured to suppress glitching ef fects on the respective signal lines . Furthermore , a fourth delay element DG4 , which generally is optional , is coupled between the second glitch filter GL2 and the second detection circuit DET2 . The fourth delay element DG4 has a delay time being selectable from a first delay and a second delay, wherein the first delay is shorter than the second delay and is applied i f the latched serial clock signal at the clock output SCLPAD is not in the predefined signal state , e . g . in the high state . For example , the first delay D5 is 20 times shorter than the second delay D100 . The delay element DG4 can increase the reliability after signal state evaluation due to the di f ferent requirements of the I2C protocol on the serial data line when the serial clock line is high versus when the serial clock line is low .
[0060] Furthermore , in this example implementation, an optional enable input RS IN is included for providing an enable signal rstn, which has a high state when the interface circuit should be enabled and is in a low state when the interface circuit should be disabled . I f the optional enable input is omitted, a signal state of the enable signal rstn simply is to be assumed as a high state , wherever applied .
[0061] Hence , in this example , the output of the AND gate AND2 having one input connected to the enable input RS IN and one input connected to the clock output SCLPAD the selection of the delay time in the fourth delay element DG4 depends not only on the signal state at the clock output SCLPAD but also on the enable signal rstn .
[0062] Further to the embodiment of the pulse generator PGEN described in conj unction with Figure 3 , the pulse generator PGEN comprises an input for receiving the optional enable signal rstn which is provided as a third input to the AND gate ANDI and to a delay time selection input of the third delay element DG3 . Hence , i f the enable signal rstn is in a low state , the output of the AND gate ANDI can never become high . A way of selection of the delay time of the third delay element DG3 corresponds to the selection in the delay element DG4 , although the third delay element DG3 may be implemented di f ferently and / or with di f ferent delay times compared to delay element DG4 .
[0063] The first detection circuit DET1 comprises a first clock latching element FFC1 and a second clock latching element FFC2 , which may both be implemented as gated latches or flipflops . The first clock latching element FFC1 has its signal input coupled to the clock input SCLIN and its output coupled to the signal input of the second clock latching element FFC2 , whose signal output in turn is connected to the clock output SCLPAD . The first clock latching element FFC1 is triggered or gated by the first intermediate signal syphl while the second clock latching element FFC2 is triggered or gated by the second intermediate signal syph2 . Hence , the signal state at the input of the first detection circuit DET1 is forwarded to its output in two steps . This allows a first XOR gate X0R1 to detect when a signal state at an input of the first detection circuit DET1 becomes di f ferent to a signal state at the clock output SCLPAD, and only in this case a high state will be output with a signal SCLKEN as a basis for a trigger event in the trigger signal syken .
[0064] In a similar fashion, the second detection circuit DET2 comprises a first data latching element FFD1 and a second data latching element FFD2 , which may also be implemented as gated latches or flip- flops . The first data latching element FFD1 forwarding the signal state at the output of the delay element DG4 is triggered by the first intermediate signal syphl , and the second data latching element FFD2 forwarding the signal state at the output of the first data latching element FFD1 to the data output SDAPAD is triggered by the second intermediate signal syph2 .
[0065] A second XOR gate X0R2 enables detecting the signal states between input and output of the second detection element DET2 becoming di f ferent . An output of the XOR gate X0R2 is coupled to an AND gate AND3 having its second input coupled to the clock output SCLPAD . Hence , a basis for a trigger event is only forwarded in the signal SDAKEN i f the clock output SCLPAD is in a high state . Since , with reference to Figure 1 , signal transitions on the serial data line only are relevant in that case . An output of the AND gate AND3 is coupled to the OR gate 0R1 .
[0066] In order to initiali ze the signal states at the clock output SCLPAD and data output SDAPAD when the interface circuit is enabled, the latching elements FFC1 , FFC2 , FFD1 , FFD2 each comprise initiali zation inputs provided with the enable signal rstn or an inverted version of the enable signal rstn . Hence , as long as the enable signal rstn is in a low state , corresponding to a disabling of the interface circuit , a fixed output state is imposed on the latching elements . I f the enable signal rstn goes to a high state , the imposed signal state remains until the first or second intermediate signal syphl , syph2 triggers a potential change .
[0067] In the example implementation of Figure 5 , the first and the second clock latching element FFC1 , FFC2 have a preselection with a low signal state , while the first and the second data latching element FFD1 , FFD2 have a high state preselection . Referring now to Figure 6 , an alternative to the implementation shown in Figure 5 is described . However, the only di f ference is the type of preselection performed in the first and the second clock latching element FFC1 , FFC2 . Instead of a low state preselection as implemented in Figure 5 , the I2C interface circuit of Figure 6 features a high state preselection of these latching elements FFC1 , FFC2 .
[0068] Figure 7 shows an example block diagram of an evaluation circuit that can be part of an I2C interface circuit according to one of the implementations described above . The evaluation circuit EVAL has a first block EVI connected to the clock output SCLPAD and triggered by pulse events occurring on the symbol clock output SYMCLK . Accordingly, the evaluation circuit EVAL is configured to store the signal state at the clock output SCLPAD as a previous clock state prevscl upon detecting the clock pulse event at the symbol clock output SYMCLK . A second block EV2 in the evaluation circuit EVAL is configured to determine an event type upon detecting the clock pulse event at the symbol clock output SYMCLK depending on the previous clock state prevscl and on the signal states at the clock output SCLPAD and the data output SDAPAD . For example , the event types are determined according to the scheme in the following table . Herein 0 denotes a low state , 1 denotes a high state and X denotes that the state is not evaluated . It should be noted that through the concurrent triggering of the blocks EVI and EV2 a change in the stored previous clock state prevscl only becomes ef fective with the next pulse event on the symbol clock output SYMCLK . An output of the evaluation circuit EVAL can be further processed to combine data bytes sent over the I2C bus for further processing . Various implementations for such subsequent processing are well known in the art .
[0069] Figure 8 shows an electronic module 800 comprising an I2C interface 200 according to one of the implementations described above . For example , the electronic module 800 is a sensor module like a medical sensor module and / or health sensor module .
[0070] Such electronic modules may be implemented in various electronic devices , in particular in mobile devices or wearable devices like mobile phones or smartwatches .
[0071] The embodiments of the improved interface concept disclosed herein have been discussed for the purpose of familiari zing the reader with novel aspects of the implementation of the improved concept . Although preferred embodiments have been shown and described, many changes , modi fications , equivalents and substitutions of the disclosed concepts may be made by one having skill in the art without departing from the scope of the claims .
[0072] In particular, the implementation of the improved interface concept is not limited to the disclosed embodiments , and gives examples of many alternatives possible for the features included in the embodiments discussed . However, it is intended that any modi fications , equivalents and substitutions of the disclosed concepts be included within the scope of the claims which are appended hereto . Features recited in separate dependent claims may be advantageously combined . Moreover, reference signs used in the claims are not limited to be construed as limiting the scope of the claims . Furthermore , as used herein, the term "comprising" does not exclude other elements . In addition, as used herein, the article "a" is intended to include one or more than one component or element , and is not limited to be construed as meaning only one .
[0073] References
[0074] START, STOP event
[0075] DATAO , DATA1 event sda serial data signal scl serial clock signal
[0076] SDAIN, SCLIN, RSIN input
[0077] SDAPAD, SCLPAD, SYMCLK output
[0078] DET1, DET2 detection circuit
[0079] PGEN pulse generator syph, syphl, syph2 intermediate signal syken trigger event signal
[0080] OR1, OR2 OR gate
[0081] ANDI, AND2, AND3 AND gate
[0082] DG1, DG2, DG3, DG4 delay element
[0083] XOR1, XOR2 XOR gate
[0084] FECI, FFC2, FFD1, FFD2 latching element
[0085] GL1, GL2 glitch filter rstn enable signal
[0086] EVAL evaluation circuit prevscl previous clock state
[0087] 200 I2C interface
[0088] 800 electronic module
Claims
Claims1. An Inter-Integrated Circuit, I2C, interface circuit comprising a clock input (SCLIN) for receiving a serial clock signal (scl) ; a clock output (SCLPAD) coupled to the clock input (SCLIN) by a first detection circuit (DET1) ; a data input (SDAIN) for receiving a serial data signal ( sda) ; a data output (SDAPAD) coupled to the data input (SDAIN) by a second detection circuit (DET2) ; and a pulse generator (PGEN) configured to generate a clock pulse event at a symbol clock output (SYMCLK) in response to a trigger event; wherein the first detection circuit (DET1) is configured to latch the serial clock signal (scl) , to detect when a signal state at an input of the first detection circuit (DET1) becomes different to a signal state at the clock output (SCLPAD) , and to effect the trigger event in response to such detection; and the second detection circuit (DET2) is configured to latch the serial data signal (sda) , to detect when a signal state at an input of the second detection circuit (DET2) becomes different to a signal state at the data output (SDAPAD) , and to effect the trigger event in response to such detection while the latched serial clock signal is in a predefined signal state, in particular in a high state.
2. The I2C interface circuit according to claim 1, wherein the second detection circuit (DET2) is coupled to the data input (SDAIN) by a delay element (DG4) having a delay time being selectable from a first delay and a second delay, thefirst delay being shorter than the second delay and being applied if the latched serial clock signal is not in the predefined signal state.
3. The I2C interface circuit according to claim 1 or 2, wherein the pulse generator (PGEN) is configured to generate a pulse event in a first intermediate signal (syphl) at a first predetermined time period after the trigger event; generate a pulse event in a second intermediate signal (syph2) at a second predetermined time period after the pulse event in the first intermediate signal (syphl) ; and generate the clock pulse event at the symbol clock output (SYMCLK) at a third predetermined time period after the pulse event in the second intermediate signal (syph2) .
4. The I2C interface circuit according to claim 3, wherein the first detection circuit (DET1) comprises a first clock latching element (FECI) having a first signal input coupled to the input of the first detection circuit (DET1) and being configured to forward a signal state at said first signal input in response to the pulse event in the first intermediate signal (syphl) ; a second clock latching element (FFC2) having a second signal input coupled to a signal output of the first clock latching element (FECI) , having a signal output coupled to the clock output (SCLPAD) , and being configured to forward a signal state at said second signal input in response to the pulse event in the second intermediate signal (syph2) ; and an exclusive OR, XOR, gate (X0R1) having a first input coupled to the first signal input of the first clock latching element (FFC1) , a second input coupled to thesignal output of the second clock latching element (FFC2) , and an output for providing a logic output signal being a basis for effecting the trigger event.
5. The I2C interface circuit according to claim 4, further comprising an enable input (RSIN) for receiving an enable signal (rstn) , wherein the first and the second clock latching element (FFC1, FFC2) are configured to output a low signal state at their respective signal outputs while the enable signal (rstn) is in a low state.
6. The I2C interface circuit according to claim 4, further comprising an enable input (RSIN) for receiving an enable signal (rstn) , wherein the first and the second clock latching element (FFC1, FCC2) are configured to output a high signal state at their respective signal outputs while the enable signal (rstn) is in a low state.
7. The I2C interface circuit according to one of claims 3 to 6, wherein the second detection circuit (DET2) comprises a first data latching element (FFD1) having a first signal input coupled to the input of the second detection circuit (DET2) and being configured to forward a signal state at said first signal input in response to the pulse event in the first intermediate signal (syphl) ; a second data latching element (FFD2) having a second signal input coupled to a signal output of the first data latching element (FFD1) , having a signal output coupled to the data output (SDAPAD) , and being configured to forward a signal state at said second signal input in response to the pulse event in the second intermediate signal (syph2) ; andan exclusive OR, XOR, gate (XOR2) having a first input coupled to the first signal input of the first data latching element (FFD1) , a second input coupled to the signal output of the second data latching element (FFD2) , and an output for providing a logic output signal being a basis for effecting the trigger event.
8. The I2C interface circuit according to claim 7, wherein the second detection circuit (DET2) further comprises an AND gate (AND3) having a first input coupled to the output of the XOR gate (XOR2) of the second detection circuit (DET2) , a second input coupled to the clock output (SCLPAD) , and an output for providing a further logic output signal being a basis for effecting the trigger event.
9. The I2C interface circuit according to claim 7 or 8, further comprising an enable input (RSIN) for receiving an enable signal (rstn) , wherein the first and the second data latching element (FFD1, FFD2 ) are configured to output a high signal state at their respective signal outputs while the enable signal (rstn) is in a low state.
10. The I2C interface circuit according to one of claims 3 to 9, wherein the pulse generator (PGEN) comprises a first delay element (DG1) , which has a delay time corresponding to the first predetermined time period and is configured to provide the first intermediate signal (syphl) ; a second delay element (DG2) , which has a delay time corresponding to the second predetermined time period, is connected downstream of the first delay element (DG1) and is configured to provide the second intermediate signal ( syph2 ) ; anda third delay element (DG3) , which has a delay time corresponding to the third predetermined time period and is connected between the second delay element (DG2) and the symbol clock output (SYMCLK) ; an OR gate (OR2) having a first input for receiving the trigger event and a second input coupled to a connection between the first delay element (DG1) and the second delay element (DG2) ; and an AND gate (ANDI) having a first input connected to an output of the OR gate (OR2) , a second input for receiving an inverted version of a signal state at an output of the third delay element (DG3) , and an output coupled to the first delay element (DG1) .
11. The I2C interface circuit according to claim 10, further comprising an enable input (RSIN) for receiving an enable signal (rstn) , wherein the delay time of the third delay element (DG3) is selectable from a first delay and a second delay being different from the first delay depending on a signal state of the enable signal (rstn) .
12. The I2C interface circuit according to one of claims 1 to 11, wherein the first detection circuit (DET1) is coupled to the clock input (SCLIN) by a first glitch filter (GL1) and / or the second detection circuit (DET2) is coupled to the data input (SDAIN) by a second glitch filter (GL2) .
13. The I2C interface circuit according to one of claims 1 to 12, further comprising an evaluation circuit (EVAL) being coupled to the clock output (SCLPAD) , to the data output (SDAPAD) and to the symbol clock output (SYMCLK) , wherein the evaluation circuit (EVAL) is configured to store the signal state at the clock output (SCLPAD) as a previous clock state(prevscl) upon detecting the clock pulse event at the symbol clock output (SYMCLK) .
14. The I2C interface circuit according to claim 13, wherein the evaluation circuit (EVAL) is configured to determine an event type upon detecting the clock pulse event at the symbol clock output (SYMCLK) depending on the previous clock state (prevscl) and on the signal states at the clock output (SCLPAD) and the data output (SDAPAD) , wherein the event type is determined as a START event, if the previous clock state (prevscl) is in a high state, the clock output (SCLPAD) is in a high state and the data output (SDAPAD) is in a low state; a STOP event, if the previous clock state (prevscl) is in a high state, the clock output (SCLPAD) is in a high state and the data output (SDAPAD) is in a high state; a DATAO event, if the previous clock state (prevscl) is in a low state, the clock output (SCLPAD) is in a high state and the data output (SDAPAD) is in a low state; and a DATA1 event, if the previous clock state (prevscl) is in a low state, the clock output (SCLPAD) is in a high state and the data output (SDAPAD) is in a high state.
15. An electronic module (800) comprising an I2C interface according to one of claims 1 to 14.
16. The electronic module (800) according to claim 15, wherein the electronic module (800) is a sensor module.
Citation Information
Patent Citations
Quick disintegrating drug delivery system
US60634931P0
Appaturus and method for data sending and receiving ini2c interface
KR1020080014218A
Method and apparatus for controlling timing of state transition of serial data line in 12c controller
US20080177918A1
System and method for providing a low standby power interface for a low voltage I2C compatible bus
US7521963B1
