The invention relates to a bus architecture for transferring information between electronic devices. More specifically, the present invention relates to a dual-wire bus architecture with active pullup devices.
Many similarities exist between seemingly unrelated designs in consumer, industrial, and telecommunication electronics. Examples of similarities include intelligent control, general-purpose circuits (e.g., LCD drives and I/O ports) and application-oriented circuits. One prior art two-wire bus is a bi-directional two-wire, low to medium speed, serial communication bus designed to exploit such similarities in electrical circuits. The two-wire bus was developed in the early 1980s and was created te reduce manufacturing costs of electronic products.
Prior to the two-wire bus, chip-to-chip communications used a large plurality of pins in a parallel interface. Many of these pins were used for chip-to-chip addressing, selection, control, and data transfers. For example, in a parallel interface, eight data bits are typically transferred from a sender integrated circuit (IC) to a receiver IC in a single operation. The two-wire bus performs chip-to-chip communications using two wires in a serial interface, allowing ICs to communicate with fewer pins. The two wires in the bus carry addressing, selection, control, and data, serially, one bit at a time. A data (SDA) wire carries the data, while a clock (SCL) wire synchronizes the sender and receiver during the transfer. ICs utilizing the two-wire bus can perform similar functions to their larger parallel interface counterparts, but with far fewer pins.
Two-wire bus devices are classified as master or slave. A device that initiates a message is called a master (multiple masters are possible), while a device that responds to a message is called a slave (multiple slaves are also possible). A device can potentially be master, slave, or switch between master and slave, depending on a particular device and application. Hence, the device may at one point in time be a master while the device later takes on a role as slave. The two-wire bus can connect a plurality of ICs using two-wires (SDA and SCL, described supra).
Contemporary two-wire slave devices maintain a unique address. Therefore, part of a two-wire protocol requires a slave address at the beginning of a message. (Two-wire protocol specifications are well known. See, for example, U.S. Published Patent Application 2002/0176009 to Johnson et al. entitled “Image Processor Circuits, systems, and Methods.”) Consequently, all devices on the two-wire bus hear the message, but only the slave that recognizes its own address communicates with the master. Devices on the two-wires bus are typically accessed by individual addresses, for example, 00-FF where even addresses are used for writes and odd addresses are used for reads.
Since two-wire buses can connect a number of devices simultaneously to the same pair of bus wires, a problem results when one of the devices malfunctions and pulls a bus signal (clock or data) low; the bus becomes inoperative and a determination of which of the numerous devices connected to the two-wire bus is responsible becomes difficult. A similar problem occurs when one of the bus conductors becomes shorted to a low impedance source, such as, for example, a ground potential.
With reference to
The microcontroller 201 initiates a data transfer by generating a start condition on the two-wire bus 205. This start condition is followed by a byte containing the device address of the intended EEPROM device 203A . . . 203H. The device address consists of a four-bit fixed portion and a three-bit programmable portion. The fixed portion must match a value hard-wired into the slave, while the programmable portion allows the microcontroller 201, acting as master, to select between a maximum of eight slaves on the two-wire bus 205. An eighth bit specifies whether a read or write operation will occur.
The two-wire bus 205 is tied to VDD through a clock line weak resistor 207 and a data line weak resistor 209. If no device is pulling the two-wire bus 205 to ground, the bus 205 will be pulled up by the weak resistors 207, 209 indicating a logic “1” (HIGH). If the microcontroller 201 or one of the EEPROM memory device 203A . . . 203H slaves pulls the bus 205 to ground, the bus will indicate a logic “0” (LOW).
However, despite a widespread us of the two-wire bus, the bus suffers from numerous drawbacks. For example, the two-wire bus is noisy, requiring a noise suppression circuit to filter noise when data are present on the bus. The noise suppression circuit reduces EEPROM device I/O speed. Further, when an EEPROM device outputs a logic “1” onto the two-wire bus, the device relies on the weak resistor to pull up the bus. Therefore, a data transfer rate is limited by the strength of the weak resistor 209 due to an increased RC time constant. If a stronger resistor is employed, a stronger pulldown device is required thus consuming more current to output a logic “0” onto the bus.
Therefore, what is needed is a dual-wire bus that is usable with contemporary communication specifications and protocols that produces less noise and is capable of higher data transfer rates.
The present invention achieves a high speed data transfer rate through a use of at least one active pullup device. The at least one active pullup device serves to reduce a time required due to the RC time constant and minimizes noise, both due primarily to the pullup resistor operating independently in the prior art. However, system designers using the present invention may still utilize some of the existing two-wire protocols, specifications, and existing software.
In one exemplary embodiment, the present invention is a dual-wire communications bus circuit, compatible with many existing two-wire bus specifications. Existing specifications that include a first line of a communications bus, where the first line carries data signals from a master device to a slave device, and a second line of the communications bus, where the second line carries clock signals from the master device to the slave device may also be compatible. Pullup resistors of the prior art are eliminated and are replaced by one or more active devices. In this embodiment, a cascade of slave devices (e.g., EEPROM memory devices) may be replaced by a single device. For example, a single high density memory device could take the place of several smaller individual memory devices. Consequently, addressing pins would not be needed on the slave device (e.g., the memory device) and yet the communication protocol is still usable—the three bit address location is replaced with “don't care” bits.
Another exemplary embodiment of the present invention is a dual-wire communications bus circuit, which includes a portion of the communications bus circuit being configured to couple to a first line of a dual-wire communications bus. The first line is capable of carrying data signals from a master device to a slave device. An active pullup device is located in the portion of the communications bus circuit and is capable of producing and maintaining a high logic level on the first line of the dual-wire communications bus line while not requiring a pullup resistor.
With reference to
A first two or the individual tristate buffers 307A, 307C have an active low control whereas the other two tristate buffers 307B, 307D have an active high control, thus assuring the microcontroller 301 and the high density serial memory device 303 will not drive the data line or clock line at the same time (thereby eliminating “current fighting” or a possible extra pulse on the data line). Accordingly, each of the individual tristate buffers within the high density serial memory device 303 have a similar control scheme. In this case, two of the tristate buffers 311A, 311C have an active low control and the other two tristate buffers 311B, 311D have an active high control. Control lines (C0, C1 in
Since the microcontroller 301 or the high density serial memory device 303 may have a limited current driving capacity (e.g., approximately 5 mA or less), each of the tristate buffers 307A . . . 307D, 311A . . . 311D, provide a much higher current source since each is tied directly to VDD. Therefore, the clock line in
With reference to
With reference to
In the foregoing specification, the present invention has been described with reference to specific embodiments thereof. For example, although active pullup devices described herein are defined in terms of tristate buffers, a skilled artisan will realize that other active devices, such as bipolar devices, may be readily implemented as well. It will, therefore, be evident that various modifications and changes can be made thereto without departing from the broader spirit and scope of the present invention as set forth in the appended claims. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.