×

Method for buffered serial peripheral interface (SPI) in a serial data bus

  • US 4,742,349 A
  • Filed: 05/22/1986
  • Issued: 05/03/1988
  • Est. Priority Date: 05/22/1986
  • Status: Expired due to Term
First Claim
Patent Images

1. In a communication system for the transmission of messages through a data bus between one or more user microprocessors coupled to the data bus, the user microprocessors having either a serial communication interface (SCI) port or a serial peripheral interface (SPI) port along with a clock port and a input/output port, the user microprocessors being coupled to the data bus by a bus interface integrated circuit with a control line, an idle line and a buffer, a method of transmitting data in a buffered SPI mode of operation comprising:

  • a bit-wise contention and a deterministic priority access method to (a) resolve contentions among user microprocessors that try to send messages at the same time and to (b) synchronize each data byte and to (c) allow the priority of an ID byte of the message to determine which of a plurality of messages will be sent first in the case of a contention, the determination of which user microprocessor transmits first being made without losing bus time when contention occurs; and

    checking to see whether another user microprocessor with higher priority is already transmitting on the data bus by reading the state of the control line, waiting if such is the case;

    if no other user microprocessor is already transmitting on the data bus, loading data into the buffer on the bus interface IC;

    signaling the data bus that transmission is about to occur by latching the state of the control line to a predetermined state;

    checking to see whether a start bit is already on the data bus, waiting at least 2 idle bit times if no start bit is on the data bus before generating a start bit;

    sending a signal to the data bus by setting the idle time for predetermined state indicating that the bus is busy;

    waiting for the end of the start bit to occur;

    sending out two bytes of data to the bus from the buffer separated by bus interface IC-generated start and stop bits if not blocked by the bitwise contention and deterministic priority access method in the bus interface IC;

    locking out the user microprocessor from the buffer on the bus interface integrated circuit;

    waiting for the second stop bit to occur;

    arranging data in the buffer to get the first byte in, such that the most significant byte out to the user microprocessor will be sent first;

    locking out data on the bus via the bus interface integrated circuit from the buffer;

    waiting for the reading of the data;

    repeating the previous steps if more data is to be transmitted;

    waiting 11 bit times if the data transmission is complete; and

    releasing the bus to an idle condition.

View all claims
  • 3 Assignments
Timeline View
Assignment View
    ×
    ×