Patent ID: 8422613

Claim:
A communication apparatus including a master device and a slave device mounted on a communication system, wherein the master device and the slave device are mutually communicable via a data line through which data is transmitted/received and a clock line through which a communication clock having a first edge and a second edge that subsequently occurs to the first edge is transmitted/received, a sender that is either a master device or slave device transmits data to the data line at a first edge timing synchronizing to the first edge, and a receiver that is either a master device or slave device receives data from the data line at a second edge timing synchronizing to the second edge, the communication apparatus used as the master device comprising: clock outputting means for outputting the communication clock to the slave device via the clock line; data transmitting means for transmitting the data to the data line in a transmitting period; data receiving means for receiving the data from the data line in a receiving period being different from the transmitting period; and setting means for dynamically setting a first period that is from the first edge to the second edge and a second period that is from the second edge to the first edge, and setting a period of the communication clock, the first period and the second period being set individually; wherein the setting means is adapted to set the first period tA+tb, the second period tc, and the period of communication clock tA+tb+tc, during the transmitting period when the communication apparatus is the sender, and to set the first period ta+tB, the second period tC, and the period of communication clock ta+tB+tC, during the receiving period when the communication apparatus is the receiver, where tA represents an output delay time of the communication apparatus when the communication apparatus is the sender, the output delay time being defined as a period between a time when the communication apparatus starts to transmit data to the data line at the first edge timing and a time when voltage of the data line reaches a predetermined voltage level corresponding to the transmitted data, ta represents the output delay time of the slave device when the slave device is the sender, tB represents a data setup time of the communication apparatus when the communication apparatus is the receiver, the data setup time being defined as a minimum time during which the sender has to define data on the data line, preceding the second edge of the communication clock, tb represents the data setup time of the slave device when the slave device is the receiver, tC represents a hold time of the communication apparatus when the communication apparatus is the receiver, the hold time being defined as a minimum time during which the sender has to continue outputting of the data to the data line even after the occurrence of the second edge in the communication clock, and tc represents the hold time of the slave device when the slave device is the receiver.