SERIAL DATA TRANSMISSION METHOD AND SERIAL DATA TRANSMISSION APPARATUS
Data transmission and reception is effected via a data transmission line between a master device, which is capable of controlling data transfer, and a slave device in synchronism with a clock signal transmitted from the master device to the slave device via a clock transmission line. A signal indicative of the presence or absence of changes in the state of the slave device is sent to a third line connecting the master device to the slave device. The master device effects transmission for the purpose of acquiring data concerning state changes on the slave device side when the signal of the third line indicates that a state change has taken place on the slave device side. The transmission load can be reduced by effecting transmission used by the master device to check data representing the state of the slave device only when necessary.
1 . A serial data transmission method effecting data transmission and reception via a data transmission line between a master device, which is capable of controlling data transfer, and a slave device in synchronism with a clock signal transmitted from the master device to the slave device via a clock transmission line,
wherein a signal indicative of the presence or absence of changes in the state of the slave device is sent to a third line connecting the master device to the slave device, and
the master device effects transmission for the purpose of acquiring data concerning state changes on the slave device side when the signal of the third line indicates that a state change has taken place on the slave device side.
2 . The serial data transmission method according to claim 1 ,
wherein the slave device detects the state on the slave device side and outputs status data, and
the third line is controlled in such a manner that its state alters before changes and after changes in the status data.
3 . The serial data transmission method according to claim 2 ,
wherein control is effected in such a manner that, if the state of the third line has changed, the state of the third line goes back to the state existing prior to the change when the master device checks the status data.
4 . The serial data transmission method according to claim 3 ,
wherein after the state of the third line changes, control is effected in such a manner that even if the status data subsequently changes again and goes back to the initial state, as well as if such operations are repeated, the state of the third line does not go back to the state existing prior to the change until the master device checks the status data.
5 . A serial data transmission apparatus comprising:
a master device capable of controlling data transfer,
a slave device effecting transmission and reception of data to and from the master device,
a clock transmission line used to transmit a clock signal from the master device to the slave device, and
a data transmission line used to transmit data between the master device and the slave device,
the apparatus effecting serial data transmission between the master device and slave device in synchronism with the clock signal, with the master device being configured to effect transmission for the purpose of acquiring data concerning state changes on the slave device side,
wherein the apparatus comprises a third line supplying a signal indicative of the presence or absence of state changes on the slave device side to the master device, and
the master device effects transmission for the purpose of acquiring data concerning state changes on the slave device side when the signal of the third line indicates that a state change has taken place on the slave device side.
6 . The serial data transmission apparatus according to claim 5 ,
wherein the slave device has a status output unit detecting the state on the slave device side and outputting status data and a comparison unit detecting changes in the status data output by the status output unit, and
the state of the third line is changed in response to changes in the status data detected by the comparison unit.
7 . The serial data transmission apparatus according to claim 6 ,
wherein the slave device has a read detection unit detecting that the master device has checked the status data and supplying read detection data, and
the third line, if its state has changed, goes back to the state existing prior to the change in response to the read detection data from the read detection unit.
8 . The serial data transmission apparatus according to claim 7 ,
wherein the slave device has an output holding unit holding changes in the status data detected by the comparison unit, and
the third line, if its state has changed, does not go back to the state existing prior to the change until the read detection data is output from the read detection unit even if the detection result of the comparison unit changes again and goes back to the initial state, as well as if such operations are repeated.