The field of the present invention is bi-directional electrical data signal lines.
The SD card and multi-media card (MMC) standards use bi-directional bus lines. Specifically, the four data lines D0-D3 and the CMD lines are bi-directional, and the CLK line for a clock is uni-directional.
Conventionally, signal direction cannot be resolved by monitoring a simple condition. Instead, signal direction is determined by content of bus transactions; i.e., content of messages transferred over a bus.
The SD card and MMC standards also define voltage levels for signals. An SD card, for example, should operate in the 2.7V -3.6V range.
Some advanced silicon processes do not support voltages higher than 1.8V. For such processes, support of SD and MMC requires use of external level shifters, which boost voltages at a terminal. For a bi-directional bus connecting terminals A and B, a level shifter drives terminal A to 3V when terminal B is at 1.8V, for enabling a data signal to travel from A to B. Similarly, a level shifter drives terminal B to 3V when terminal A is at 1.8V, for enabling a data signal to travel from B to A. Thus level shifters require knowledge of signal direction in order to operate properly.
Conventional implementations of level shifting include an additional pin for each bus signal, to determine signal direction. Such an implementation is present in the Level Translator, Model SN74AVCA406 SMC/xD, manufactured and distributed by Texas Instruments, Inc. of Dallas, Tex. Integrated circuits that interface with such level shifters must support directional signals, in addition to the standard SD and MMC signals.
Support of directional signals causes large overhead and cost, for both the level shifter and the integrated circuit that interfaces with it. This is one of the drawbacks of bi-directional data buses.
Devices that require bridges between SD devices, such as a bridge between an SD host and an SD slave, also encounter the problem of determining signal direction. Moreover, often the SD signals being bridged to not have directional signals associated therewith, and thus their direction is unknown.
It would thus be of advantage to have circuitry and logic for determining signal direction in a bi-directional SD or MMC bus, without requiring external direction signals and without requiring decoding of exact content of bus transactions.
Aspects of the present invention relate to circuitry for bi-directional SD and MMC buses, which overcomes drawbacks of conventional circuitry by determining bus direction without use of external directions signals, and without decoding exact content of bus transactions.
In one embodiment, the present invention employs two data buffers, a first buffer that drives signals in a data bus in a direction from a terminal A to a terminal B, and a second buffer that drives signals in the opposite direction. The buffers may be in an enabled or disabled state. When a buffer is enabled, it drives the signal direction.
Special logic is introduced to determine when to enable and disable each of the buffers, based on logical processing of sampled bits at terminals A and B.
There is thus provided in accordance with an embodiment of the present invention a method for determining direction of signal transmission in a bi-directional signal line, including sampling data signals at two terminals, A and B, enabling data flow from A to B when data flow from B to A is not enabled, and a logical 0 bit is sampled at A, enabling data flow from B to A when data flow from A to B is not enabled, and a logical 0 bit is sampled at B, disabling data flow from A to B when data flow from A to B is enabled and two successive logical 1 bits are sampled at A, and disabling data flow from B to A when data flow from B to A is enabled and two successive logical 1 bits are sampled at B.
There is further provided in accordance with an embodiment of the present invention an electrical circuit with bi-directional signal transmission, including a bi-directional data bus for connecting two terminals, A and B, a first signal sampler for sequentially sampling a signal at terminal A, a second signal sampler for sequentially sampling a signal at terminal B, a first level shifter for driving signals on the data bus from A to B, which may be enabled or disabled, a second level shifter for driving signals on the data bus from B to A, which may be enabled or disabled, and circuitry for enabling and disabling the first and second level shifters by carrying out instructions to enable the first level shifter when the second level shifter is not enabled, and a logical 0 bit is sampled by the first signal sampler, enable the second level shifter when the first level shifter is not enabled, and a logical 0 bit is sampled by the second signal sampler, disable the first level shifter when the first level shifter is enabled and two successive logical 1 bits are sampled by the first signal sampler, and disable the second level shifter when the second level shifter is enabled and two successive logical 1 bits are sampled by the second signal sampler.
There is yet further provided in accordance with an embodiment of the present invention an electrical circuit with bi-directional signal transmission, including a bi-directional data bus for connecting a terminal, A, with two terminals, B and C, a controller for selectively connecting terminal A with terminal B or with terminal C, a first signal sampler for sequentially sampling a signal at terminal A, a second signal sampler for sequentially sampling a signal at terminal B, a third signal sampler for sequentially sampling a signal at terminal C, a first level shifter for driving signals on the data bus from A to B, which may be enabled or disabled, a second level shifter for driving signals on the data bus from B to A, which may be enabled or disabled, a third level shifter for driving signals on the data bus from A to C, which may be enabled or disabled, a fourth level shifter for driving signals on the data bus from C to A, which may be enabled or disabled, and circuitry for enabling and disabling the first, second, third and fourth level shifters by carrying out instructions to enable the first level shifter when (i) the controller selects terminal B, (ii) the second level shifter is not enabled, and (iii) a logical 0 bit is sampled by the first signal sampler, enable the second level shifter when (i) the controller selects terminal B, (ii) the first level shifter is not enabled, and (iii) a logical 0 bit is sampled by the second signal sampler, enable the third level shifter when (i) the controller selects terminal C, (ii) the fourth level shifter is not enabled, and (iii) a logical 0 bit is sampled by the third signal sampler, enable the fourth level shifter when (i) the controller selects terminal C, (ii) the third level shifter is not enabled, and (iii) a logical 0 bit is sampled by the fourth signal sampler, disable the first level shifter when the first level shifter is enabled and two successive logical 1 bits are sampled by the first signal sampler, disable the second level shifter when the second level shifter is enabled and two successive logical 1 bits are sampled by the second signal sampler, disable the third level shifter when the third level shifter is enabled and two successive logical 1 bits are sampled by the third signal sampler, and disable the fourth level shifter when the fourth level shifter is enabled and two successive logical 1 bits are sampled by the fourth signal sampler.
The present invention will be more fully understood and appreciated from the following detailed description, taken in conjunction with the drawings in which:
Aspects of the present invention relate to a bi-directional data bus that connects a terminal A with a terminal B. The data bus may be an SD or MMC bridge, wherein terminal A is generally connected to a host device and terminal B is connected to a slave device. Unlike conventional SD and MMC bridges, the bridges of the present invention are capable of determining signal direction without the need for external directional signals, and without the need for decoding exact content of messages being transmitted over the bridge.
Reference is now made to
Generally, one terminal connects to an SD host and the other terminal connects to an SD slave. In such case, there are multiple bi-directional data lines D0-D3 and CMD. The data lines D0-D3 are synchronized so that they change their signal directions simultaneously.
The voltages at terminals A and B may be the same, or may be different. To accommodate different voltages at the terminals, circuit 100 includes two level-shifter buffers, 110 and 115, which drive signals from A to B and from B to A, respectively. Level shifting generates voltage drops across the buffers in order to drive the signal direction. Each buffer has two states; namely, enabled and disabled. When buffer 110 is enabled, signal data is transmitted from A to B, and when buffer 115 is enabled, signal data is transmitted from B to A.
Circuit 100 also includes four data flip flop (DFF) modules; namely, module 120 designated DFF_A, module 125 designated DFF_B, module 130 designated DFF_EnAB, and module 135 designated DFF_EnBA. Each DFF module has an input value, an output value and a clock value. The output of a DFF module delays the input by one clock count; i.e., a DFF module captures the input signal at the moment of a rising clock edge, when the clock goes high, and subsequent input changes to not influence the output until the next rising clock edge.
Modules 130 and 135 are used to enable buffers 110 and 115, respectively. Specifically, when DFF_EnAB.out=0, buffer 110 is enabled, and when DFF_EnAB.out=1, buffer 110 is disabled. Similarly, when DFF_EnBA.out=0, buffer 115 is enabled, and when DFF_EnBA.out=1, buffer 115 is disabled.
Circuit 100 also includes respective by-pass lines 140 and 145, so that previous signal values A and B, denoted A_Delayed and B_Delayed, respectively, are accessible, together with current signal values A and B.
Circuit 100 includes four logical processing units, 150, 155, 160 and 165. Processing unit 150 has inputs A and A_Delayed; processing unit 155 has inputs B and B_Delayed; processing unit 160 has input DFF_EnBA.out in addition to the data coming from processing unit 150 into processing unit 160; and processing unit 165 has input DFF_EnAB.out in addition to the data coming from processing unit 155 into processing unit 165. Operation of processing units 150, 155, 160 and 165 is described in the discussion of
Circuit 100 includes two pull-up resistors, 170 and 175, pull the circuit bus up to logical 1 when both sides of the SD or MMC link are not driving signals.
Reference is now made to
The rationale for the logic illustrated in
The logic of
As seen at steps 225-250, when one side of circuit 100, A or B, is sampled to have a logical 0 input, circuit 100 enables the buffer in the direction from that side to the opposite side, and locks the buffer in the enabled state.
As seen at steps 255-275, circuit 100 disables the enabled buffer when two consecutive logical 1 bits are detected. The event of detecting two consecutive logical 1 bits may represent an end of transaction, or may be part of a transaction. In the former case, both buffers are disabled, and circuit 100 is ready to detect a next transaction, and switch direction as required. In the latter case, the SD or MMC bus remains in its correct logical level due to the pull-up resistors. Since the previous bit was a logical 1, no delay in bus signal stabilization is incurred, due to device and bus capacitance.
In order to avoid potential problems with transient conditions and synchronization to the SD_CLK signal, an embodiment of the present invention includes a sampling mechanism that delays transfer of bits from one direction to the other direction by a single clock, as indicated at steps 220, 235, 250, 270 and 275 of
Reference is now made to the Verilog pseudo-code presented herein, which summarizes one cycle of the logic for enabling and disabling buffers 110 and 115 of
The logic of
Reference is now made to
It will be appreciated by those skilled in the art that although detection of two logical 1 bits triggers circuit 100 to disable the enabled buffer, as indicated in
It will further be appreciated by those skilled in the art that circuit 100 may be used as a component of a more complex circuit that selectively connects terminal A with two terminals, B and C, or more than two terminals. To this end, reference is now made to
As shown in
Circuit 300 includes a B/C_SELECT signal line 400, for selecting terminal B or terminal C. B/C_SELECT line 400 originates from a controller for the host device connected to terminal A.
In distinction from logical processing unit 160 of circuit 100, logical processing units 360 and 460 have four input lines. For each logical processing unit, two of its input lines carry signals from the sub-circuit in which the processing unit is located, one signal for examining two previous bits in the enabled direction and the other signal for examining a bit in the disabled direction. One of its input lines carries a signal from the other sub-circuit, for examining a bit in the disabled direction; and one of its input lines carries a signal from B/C_SELECT line 400. Terminals A, B and C may have the same voltage levels, or different voltage levels. In the foregoing specification, the invention has been described with reference to specific exemplary embodiments thereof. It will, however, be evident that various modifications and changes may be made to the specific exemplary embodiments without departing from the broader spirit and scope of the invention as set forth in the appended claims. Accordingly, the specification and drawings are to be regarded in an illustrative rather than a restrictive sense.
Number | Name | Date | Kind |
---|---|---|---|
5628055 | Stein | May 1997 | A |
5790526 | Kniess et al. | Aug 1998 | A |
6201867 | Koike | Mar 2001 | B1 |
6243578 | Koike | Jun 2001 | B1 |
6516202 | Hawkins et al. | Feb 2003 | B1 |
6617871 | Stark | Sep 2003 | B2 |
6690947 | Tom | Feb 2004 | B1 |
6806737 | Sung et al. | Oct 2004 | B2 |
6898283 | Wycherley et al. | May 2005 | B2 |
6900664 | Wu | May 2005 | B2 |
6999792 | Warren | Feb 2006 | B2 |
7085542 | Dietrich et al. | Aug 2006 | B2 |
7194285 | Tom | Mar 2007 | B2 |
7266391 | Warren | Sep 2007 | B2 |
7266463 | Dixon et al. | Sep 2007 | B2 |
7512671 | Gladwin et al. | Mar 2009 | B1 |
20040233930 | Colby, Jr. | Nov 2004 | A1 |
20050070225 | Lee | Mar 2005 | A1 |
20050159184 | Kerner et al. | Jul 2005 | A1 |
20060105722 | Kumar | May 2006 | A1 |
20060241353 | Makino et al. | Oct 2006 | A1 |
20070004450 | Parikh | Jan 2007 | A1 |
20070018957 | Seo | Jan 2007 | A1 |
20070161404 | Yasujima et al. | Jul 2007 | A1 |
20070266182 | Lanning | Nov 2007 | A1 |
20070266183 | Lanning | Nov 2007 | A1 |
20080026794 | Warren | Jan 2008 | A1 |
20080140886 | Izutsu | Jun 2008 | A1 |
Number | Date | Country |
---|---|---|
1871075 | Dec 2007 | EP |
0059247 | Oct 2000 | WO |
0186922 | Nov 2001 | WO |
03103174 | Dec 2003 | WO |
Number | Date | Country | |
---|---|---|---|
20090179668 A1 | Jul 2009 | US |