Abstract:
Various embodiments increase the speed of communication over a multi-mode bus by communicating data over multiple pins in the same direction. The bus includes multiple data communication pins communicating over the bus. The bus includes a chip select pin indicating whether communication is occurring between the integrated circuit and another integrated circuit. The bus includes a clock pin. The bus includes a mode control circuit. In one mode, two of the data communication pins communicate in opposite directions between the integrated circuit and another integrated circuit. In another mode, two of the data communication pins communicate in a same direction between the integrated circuit and another integrated circuit. In some embodiments, the bus follows a Serial Peripheral Interface standard. In various embodiments, data is communicated from the integrated circuit to another integrated circuit, or from another integrated circuit to the integrated circuit.

Description:
REFERENCE TO RELATED APPLICATION  
       [0001]     The present application claims the benefit of U.S. Provisional Application No. 60/803,782 filed 2 Jun. 2006 and the U.S. Provisional Application No. 60/806,704 filed 6 Jul. 2006, all of which are incorporated by reference. 
     
    
     BACKGROUND  
       [0002]     The Serial Peripheral Interface (SPI) bus is a well known serial interface, with one data output pin and one data input pin. Serial interfaces such as SPI have a traditional advantage over parallel interfaces, in that serial interfaces tend to have simpler connections. Also, generally increasing clock speeds over time tend to make the speed advantage of parallel interfaces less important. However, in applications where both speed and simplicity are important, it would be desirable to generally maintain the standard SPI bus, but somehow increase its speed.  
       SUMMARY OF THE INVENTION  
       [0003]     An aspect of the technology is an integrated circuit with a bus carrying data between the integrated circuit and another integrated circuit. The bus has multiple pins and multiple operation modes. The pins include a first data communication pin communicating the data over the bus, a second data communication pin communicating the data over the bus, a chip select pin indicating whether the data is being communicated between the integrated circuit and another integrated circuit, and a clock pin clocking the bus. The selective operation modes include a first mode in which the first data communication pin and the second data communication pin communicate in opposite directions between the integrated circuit and another integrated circuit, and a second mode in which the first data communication pin and the second data communication pin communicate in a same direction between the integrated circuit and another integrated circuit. Because the communication occurs selectively, the modes include at least the first and second modes. In various embodiments, in at least of the operation modes (such as the first operation mode or the second operation mode) the data communication pin communicates data from the integrated circuit to another integrated circuit, and/or to the integrated circuit from another integrated circuit.  
         [0004]     In some embodiments, the bus uses dummy cycles to compensate for a delay in another integrated circuit. In some embodiments, the bus follows a Serial Peripheral Interface standard.  
         [0005]     In various embodiments, the integrated circuit is a master integrated circuit or a slave integrated circuit.  
         [0006]     In some master integrated circuit embodiments, the multiple pins include multiple chip select pins, each of which indicates whether the data is being communicated between the master integrated circuit and a respective slave integrated circuit.  
         [0007]     In some slave integrated circuit embodiments the chip select pin indicates whether the data is being communicated between the slave master integrated circuit and a master integrated circuit.  
         [0008]     Some embodiments further comprise a memory within the integrated circuit.  
         [0009]     Another aspect of the technology is a method of communicating data between integrated circuits, comprising the steps of:  
         [0010]     clocking, via a clock pin, a bus carrying data between an integrated circuit and another integrated circuit.  
         [0011]     communicating a chip select signal indicating whether the data is being communicated between the integrated circuit and another integrated circuit.  
         [0012]     selectively communicating the data in one of a plurality of modes, for example, a first mode of the bus communicating the data over a first data communication pin of the bus and a second data communication pin of the bus in opposite directions between the integrated circuit and another integrated circuit, and a second mode of the bus, communicating the data over the first data communication pin of the bus and the second data communication pin of the bus in a same direction between the integrated circuit and another integrated circuit. Because the communication occurs selectively, the modes include at least the first and second modes.  
         [0013]     Other embodiments are as disclosed herein.  
         [0014]     Another aspect of the technology is an apparatus communicating data between integrated circuits, comprising:  
         [0015]     means for clocking the bus carrying data between an integrated circuit and another integrated circuit;  
         [0016]     means for communicating a chip select signal indicating whether the data is being communicated between the integrated circuit and another integrated circuit;  
         [0017]     means for communicating the data selectively, in a first mode of the bus communicating the data over a first data communication pin of the bus and a second data communication pin of the bus in opposite directions between the integrated circuit and another integrated circuit; and in a second mode of the bus communicating the data over the first data communication pin of the bus and the second data communication pin of the bus in a same direction between the integrated circuit and another integrated circuit. Because the communication occurs selectively, the modes include at least the first and second modes.  
         [0018]     Other embodiments are as disclosed herein, such as a bus that follows a Serial Peripheral Interface standard. 
     
    
     BRIEF DESCRIPTION OF THE DRAWINGS  
       [0019]      FIG. 1  shows an SPI configuration with master and slave integrated circuit embodiments.  
         [0020]      FIG. 2  shows an SPI integrated circuit timing diagram with several dummy cycles to compensate for a delay in the slave integrated circuit.  
         [0021]      FIG. 3  shows an SPI integrated circuit timing diagram with more dummy cycles than in  FIG. 2  to compensate for a delay in the slave integrated circuit.  
         [0022]      FIG. 4  shows a flow chart showing operation of an SPI integrated circuit in an operation mode using a single pin to communicate data.  
         [0023]      FIG. 5  shows a flow chart showing operation of an SPI integrated circuit in an operation mode using multiple pins to communicate data.  
         [0024]      FIG. 6  shows an SPI integrated circuit timing diagram communicating data using multiple pins and at a DDR (double data rate).  
         [0025]      FIG. 7  shows an SPI integrated circuit timing diagram communicating data using multiple pins and at a DDR (double data rate) in one direction only between the master and slave.  
         [0026]      FIG. 8  shows an SPI integrated circuit timing diagram communicating data using multiple pins and at a DDR (double data rate) in one direction only between the master and slave, in particular the opposite direction from that of  FIG. 7 .  
         [0027]      FIG. 9  shows an exemplary block diagram of an SPI integrated circuit that includes a nonvolatile memory array. 
     
    
     DETAILED DESCRIPTION  
       [0028]      FIG. 1  shows an SPI configuration with master and slave integrated circuit embodiments.  
         [0029]     The Serial Peripheral Interface (SPI) bus is a serial interface, specifying the signals: serial clock (SCK); master data output or slave data input (MDO/SI); master data input or slave data output (MDI/SO); and chip select (CS#). Many SPI embodiments have two configuration bits, clock polarity (CPOL) and clock phase (CPHA). Because SCK carries a separate clock signal dedicated to clocking the data of the SPI interface, SPI is a synchronous interface, i.e. that does not embed the clock signal into the data stream itself.  
         [0030]     CPOL determines whether the shift clock&#39;s idle state is low (CPOL=0) or high (CPOL=1). CPHA determines on which clock edges data is shifted in and out (CPHA=0 MOSI data is shifted out on falling edge, MISO data is shifted in on rising edge). As each bit has two states, this allows for four different combinations. Two SPI devices talking to each other use the same clock polarity and phase settings.  
         [0031]     Two of the four clock polarity and phase settings allow the SPI interface to talk to different Microwire devices and vice versa. Microwire is a subset of SPI, and is an embodiment of SPI. The Microwire protocol has fixed clock polarity and clock phase, as follows: SI is latched (data shifted in) on the rising edge of the SCK clock and SO changes (data shifted out) on the falling edge. SK is always low if no data is transmitted.  
         [0032]     An embodiment of an SPI interface modifies the SI and SO pins for higher access speed operation. Rather than dedicating the input pin (SI) only for instruction/address input, and the output pin (SO) only for data/status output, both the SO pin and the SI pin perform input at the same time, or output at the same time. During the instruction/address input phase, both the SO and SI pins are regarded as input pins and receive the input data from the master device. During the data output phase, both the SO and SI pins are regarded as output pins and transmit data to the master device. Because the SI and SO pins play roles as both the input and output pin, they are referred to herein as SI/SIO0 and SO/SIO1 respectively. The throughput is doubled by an operation instruction taking advantage of the two IO pins in this fashion, compared to using just the input pin (SI) for instruction/address input and just the output pin (SO) for data/status output.  
         [0033]      FIG. 1  shows an SPI interface configuration with a master integrated circuit device  110  electrically connected to slave integrated circuit devices  100 ,  101 , and  102 . The chip select pins of the master device  110  are CS#0, CS#1, and CS#2, and are electrically connected to the chip select CS# pin of the respective slave devices  100 ,  101 , and  102 . The serial clock (SCK) pin of the master device  110  is electrically connected to the serial clock (SCK) pin of the slave devices  100 ,  101 , and  102 . The master SI/SIO0 (MSI/SIO0) pin of the master device  110  is electrically connected to the SI/SIO0 pin of the slave devices  100 ,  101 , and  102 . The master SO/SIO1 (MSI/SIO1) pin of the master device  110  is electrically connected to the SO/SIO1 pin of the slave devices  100 ,  101 , and  102 . In this configuration, the MSIO0 and MSIO1 pins of the master integrated circuit device and the SI/SIO0 and SO/SIO1 pins of the slave integrated circuit devices are bi-directional input/output pins. During the instruction input phase, the MSIO1 and MSIO0 pins are regarded as output of the master, while the SI/SIO0 and SO/SIO1 pins are regarded as input of the specified slave. Conversely, during data output phase, the SI/SIO0 and SOSIO1 pins are regarded as the output of the particular slave; and the MSIO1 and MSIO0 pins are regarded as input of the master.  
         [0034]      FIG. 2  shows an SPI integrated circuit timing diagram of a read operation with several dummy cycles to compensate for a delay in the slave integrated circuit.  
         [0035]     After the device selecting signal (CS#) is asserted with a falling edge, an 8-bit instruction is transferred and received by SI to enable I/O operation of two pins in the same direction. The address is latched on rising/falling edges of SCK, and address data are shifted two bits at a time on the falling/rising edge of SCK, interleaved on 2 I/O pins, SI/SIO0 and SO/SIO1. The 1st and 2nd bit of addresses are transferred from MSIO0 and MSIO1 of the master device and received by SI/SIO0 and SO/SIO1 of the slave device simultaneously. Thus, address bit are communicated 2 bits at a time via SI/SIO0 and SO/SIO1 pins. Address bit continue to be transferred and received the same way until the 24-bit address transfer is complete. Based on the clock frequency of SCK, a certain number N=0, 0.5, 1, 1.5, 2, 2.5, etc., of dummy cycles can be inserted between the last bit of the address and the first bit of output data. The dummy cycle is used during internal operation of the slave device. For example, after a 4-bit dummy cycle is inserted, the data starts to shift out at falling/rising edge of SCK following the end of the dummy cycles. The data are shifted out 2 bits at a time by pins SO/SIO1 and SI/SIO0. The data of a byte can be shifted out in just a 4 clock falling/rising edge. The two bit output takes advantage of high data throughput enabled by using two pins of the SPI bus. Compared with a simpler SPI interface, this SPI interface has double data throughput and shorter address bit input time. A high throughput interface increases the system access time efficiency and improves overall system performance in the slave device operation duration.  
         [0036]      FIG. 3  shows an SPI integrated circuit timing diagram of a read operation with more dummy cycles than in  FIG. 2  to compensate for a longer delay in the slave integrated circuit.  
         [0037]     Shown is a data transfer with an 8-bit dummy clock cycle. A larger number of dummy cycles is needed to account for internal operation of the slave device, such as when internal operation of the slave device is slower, or when the SCK frequency is higher than the SCK frequency of an implementation associated with fewer dummy cycles, such as the 4-bit dummy cycle implementation of  FIG. 2 . The number of dummy cycles is dependent on the frequency of SCK. In other embodiments, a plurality of dummy cycles other than 8-bits is used, such as more than 8 bits or less than 8 bits.  
         [0038]      FIG. 4  shows a flow chart showing operation of an SPI integrated circuit in an operation mode using a single pin to communicate data.  
         [0039]     In  402 , CS# goes low. In  404 , the READ instruction code is sent which is associated with the use of a single SPI pin to communicate data. In  406 , the 24-bit address is sent on a single pin communicating data. In  408 , waiting occurs for an 8-bit dummy cycle. In  410 , data stored at the address is output on a single pin communicating data. In  412 , CS# goes high, which can occur anytime during  410 .  
         [0040]      FIG. 5  shows a flow chart showing operation of an SPI integrated circuit in an operation mode using multiple pins to communicate data, and a number of dummy cycles after communicating the address and before communicating the data stored at the address.  
         [0041]     In  502 , CS# goes low. In  504 , the READ instruction code is sent which is associated with the use of two SPI pins to communicate data. In  506 , the 24-bit address is interleaved and sent on two pins communicating data. In  508 , waiting occurs for an 8-bit dummy cycle. In  510 , data stored at the address is output on two pins communicating data. In  512 , CS# goes high, which can occur anytime during  510 .  
         [0042]      FIG. 6  shows an SPI integrated circuit timing diagram communicating data using multiple pins and at a DDR (double data rate).  
         [0043]     Both the address sent from the master integrated circuit to the slave integrated circuit, and the retrieved data stored at the address sent back to the master integrated circuit from the slave integrated circuit, are communicated at a DDR. In both directions, two communication pins are used to interleave the data and thereby increase the speed. In another embodiment, a single pin communication pin is used rather than two communication pins.  
         [0044]      FIG. 7  shows an SPI integrated circuit timing diagram communicating data using multiple pins and at a DDR (double data rate) in one direction only between the master and slave.  
         [0045]     The address sent from the master integrated circuit to the slave integrated circuit is not communicated at a DDR. The retrieved data stored at the address sent back to the master integrated circuit from the slave integrated circuit are communicated at a DDR. In both directions, two communication pins are used to interleave the data and thereby increase the speed. In another embodiment, a single pin communication pin is used rather than two communication pins.  
         [0046]      FIG. 8  shows an SPI integrated circuit timing diagram communicating data using multiple pins and at a DDR (double data rate) in one direction only between the master and slave, in particular the opposite direction from that of  FIG. 7 .  
         [0047]     The address sent from the master integrated circuit to the slave integrated circuit is communicated at a DDR. The retrieved data stored at the address sent back to the master integrated circuit from the slave integrated circuit are not communicated at a DDR. In both directions, two communication pins are used to interleave the data and thereby increase the speed. In another embodiment, a single pin communication pin is used rather than two communication pins.  
         [0048]      FIG. 9  shows an exemplary block diagram of an SPI integrated circuit that includes a nonvolatile memory array.  
         [0049]     The integrated circuit  950  includes a memory array  900  implemented using nonvolatile memory cells, such as floating gate, charge trapping, or resistive element (e.g. phase change), on a semiconductor substrate. The memory cells of array  900  may be individual cells, interconnected in arrays, or interconnected in multiple arrays. A row decoder  901  is coupled to a plurality of word lines  902  arranged along rows in the memory array  900 . A column decoder  903  is coupled to a plurality of bit lines  904  arranged along columns in the memory array  900 . Addresses are supplied on bus  905  to column decoder  903  and row decoder  901 . Sense amplifiers and data-in structures in block  906  are coupled to the column decoder  903  via data bus  907 . Data is supplied via the data-in line  911  from input/output ports on the integrated circuit  950 , or from other data sources internal or external to the integrated circuit  950 , to the data-in structures in block  906 . Data is supplied via the data-out line  915  from the sense amplifiers in block  906  to input/output ports on the integrated circuit  950 , or to other data destinations internal or external to the integrated circuit  950 . A bias arrangement state machine  909  controls the application of bias arrangement supply voltages  908 , such as for the erase verify and program verify voltages, and the arrangements for programming, erasing, and reading the memory cells, such as with DDR timing and/or parallel interleaved use of two SPI communication pins.  
         [0050]     While the present invention is disclosed by reference to the preferred embodiments and examples detailed above, it is to be understood that these examples are intended in an illustrative rather than in a limiting sense. It is contemplated that modifications and combinations will readily occur to those skilled in the art, which modifications and combinations will be within the spirit of the invention and the scope of the following claims.