System and method for parallel data transmission
A system for parallel data transmission including a master device and a slave device is provided. The master device includes a first and a second I/O ports for outputting a read signal and a write signal, respectively. The slave device includes a third and a fourth I/O ports electrically coupled to the first and the second I/O ports, respectively. When the master device outputs the read or the write signal, the slave device transmits status information of the slave device to the master device after the master device has transmitted an address latch enable signal and before the slave device receives the address latch enable signal which is active. The master device outputs an address signal after transmitting the address latch enable signal and latches the address signal for the addressing for reading or writing data after the slave device has received the address latch enable signal.
Latest Novatek Microelectronics Corp. Patents:
This application claims the priority benefit of Taiwan application serial no. 94127842, filed on Aug. 16, 2005. All disclosure of the Taiwan application is incorporated herein by reference.
BACKGROUND OF THE INVENTION1. Field of the Invention
The present invention relates to a system for parallel data transmission, and more particularly, to a system and a method for parallel data transmission in which the data transmission is controlled by a master device according to the status of a slave device.
2. Description of the Related Art
Similarly, when the master device 11 intends to write data to the slave device 13, the master device 11 first transmits the address latch enable signal ale at time point T1, and then transmits the address of the data to be written (i.e. the address signal add) to the address bus at time point T2. Then, the slave device 13 latches the address signal add after it has been received at time point T3. When the master device 11 transmits the write signal wr at time point T4, the master device 11 transmits the data to be written (i.e. the data signal da) to the data bus at time point T5. Finally, after the slave device 13 has received the write signal wr, the data signal da is written to positions corresponding to the latched address at time point T6.
When the slave device 13 malfunctions or does not exist, the conventional method mentioned above is not able to resolve the problem of erroneous read/write operation because the status of the slave device 13 is not known by the master device 11, and the whole system may fail to function properly in such a situation.
SUMMARY OF THE INVENTIONTherefore, it is one object of the present invention to provide a system and a method for parallel data transmission, such that the status of the slave device is known by the master device, and the problem of erroneous read/write operation in the whole system is effectively eliminated.
In order to achieve the object mentioned above and others, a system and a method for parallel data transmission are provided by the present invention. The system for parallel data transmission includes a master device and a slave device, wherein the master device includes a first I/O port for outputting a read signal and a second I/O port for outputting a write signal. The slave device includes a third I/O port electrically coupled to the first I/O port and a fourth I/O port electrically coupled to the second I/O port. When the master device outputs the read or the write signal, the slave device transmits status information of the slave device to the master device through the third and the fourth I/O ports during the time period after the master device has transmitted an address latch enable signal and before the slave device receives the address latch enable signal which is active. The master device outputs an address signal after transmitting the address latch enable signal and latches the address signal for the addressing of the reading or writing data after the slave device has received the address latch enable signal.
In the present invention, the information indicating whether the slave device is normally operated is transmitted to the master device during a certain period of the read and write signals, such that the master device can avoid to perform erroneous read/write operation onto the slave device.
The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the invention, and together with the description, serve to explain the principles of the invention.
The master device 35 transmits the read signal RD through a first I/O port 31, and the slave device 36 receives the read signal RD through a third I/O port 33. In addition, the master device 35 transmits the write signal WR through a second I/O port 32, and the slave device 36 receives the write signal WR through a fourth I/O port 34. Moreover, the slave device 36 transmits status information indicating whether the slave device 36 is operating normally through the I/O ports 33 and 34. The master device 35 receives the status information through the I/O ports 31 and 32, and determines whether to perform the read/write operation onto the slave device 36.
Then, the master device 35 receives the status information and recognizes whether the slave device 36 is normally operating at time point T7. For example, if the information contained in both the periods 41 and 42 is logic high, the slave device 36 is not operating normally. In other cases, for example, if the information contained in both the periods 41 and 42 is logic low, or one is logic high and the other one is logic low, the slave device 36 is regarded as operated in other status.
Afterwards, the read signal RD and write signal WR return to the original status at time point T8, for example, they return to the logic high in the present case. Then, if the slave device 36 is normally operating, the slave device 36 transmits the address of the data to be read (i.e. the address signal ADD to the address bus at time point T2. Then, the slave device 36 latches the address signal ADD after the slave device 36 has been received the address latch enable signal ALE which is active at time point T3. When the slave device 36 has been received the read signal RD which is active at time point T4, the slave device 36 transmits the data corresponding to the latched address signal ADD (i.e. the data signal DA) to the data bus at time point T5. Finally, the master device 35 reads the data signal DA from the data bus at time point T6.
Similarly, when the master device 35 intends to write the data to the slave device 36, the master device 35 transmits the address latch enable signal ALE at time point Ti. Then, before the slave device 36 receives the address latch enable signal ALE which is active (i.e. before the time point T3), the slave device 36 transmits the status information of the slave device 36 through the I/O ports 33 and 34 during the periods 41 and 42. Finally, the master device 35 receives the status information instructing whether the slave device 36 is normally operating at time point T7.
Afterwards, if the slave device 36 is normally operating, the slave device 36 transmits the address of the data to be written (i.e. the address signal ADD) to the address bus at time point T2. Then, the slave device 36 latches the address signal ADD after the slave device 36 has been received the address latch enable signal ALE which is active at time point T3. After the slave device 36 has received the write signal WR which is active at time point T4, the slave device 36 transmits the data to be written (i.e. the data signal DA) to the data bus at time point T5. Finally, the slave device 36 writes the data signal DA to positions corresponding to the latched address at time point T6.
It is to be noted that in the timing diagram
In summary, in the system and method for parallel data transmission of the present invention, the status information of the slave device is transmitted by the slave device during a certain period of the read and write signals, such that the master device can understand whether the slave device is operating normally and can further determine whether to perform the read/write operation onto the slave device, such that erroneous read/write operation is effectively eliminated throughout the whole system.
Although the invention has been described with reference to a particular embodiment thereof, it will be apparent to one of the ordinary skill in the art that modifications to the described embodiment may be made without departing from the spirit of the invention. Accordingly, the scope of the invention will be defined by the attached claims not by the above detailed description.
Claims
1. A system for parallel data transmission, comprising:
- a master device comprising a first I/O port for outputting a read signal and a second I/O port for outputting a write signal; and
- a slave device comprising a third I/O port electrically coupled to the first I/O port for receiving the read signal and a fourth I/O port electrically coupled to the second I/O port for receiving the write signal, wherein after the master device outputs the read signal instructing that the master device reads data from the slave device or outputs the write signal instructing that the master device writes data to the slave device, the slave device transmits status information of the slave device to the master device through the third and the fourth I/O ports during the duty cycle of an address latch enable signal which is transmitted by the master device, wherein the master device, wherein the master device transmits an address signal after the address latch enable signal is enabled, and the slave device has latched the address signal for the addressing for reading or writing data after the address latch enable signal is disabled.
2. The system for parallel data transmission of claim 1, wherein during the process of the master device reading data from the slave device, after the master device has transmitted the address latch enable signal, the status information transmitted by the slave device is received by the master device through the first and the second I/O ports for determining whether the slave device is normally operating, and if it is determined that the slave device is normally operating, the address signal is transmitted to an address bus.
3. The system for parallel data transmission of claim 2, wherein after the slave device has received the address latch enable signal which is active, the slave device latches the address signal on the address bus; and after the slave device has received the read signal which is active, the slave device transmits a data signal corresponding to the address signal to a data bus, and then the master device reads the data signal from the data bus.
4. The system for parallel data transmission of claim 1, wherein during the process of the master device writing data to the slave device, after the master device has transmitted the address latch enable signal, the status information transmitted by the slave device is received through the first and the second I/O ports for determining whether the slave device is normally operating, and if it is determined that the slave device is normally operating, the address signal is transmitted to an address bus.
5. The system for parallel data transmission of claim 4, wherein before the slave device has received the address latch enable signal which is active, the master device transmits a data signal to a data bus; after the slave device has received the address latch enable signal which is active, the slave device latches the address signal on the address bus; and after the slave device has received the write signal which is active, the slave device writes the data signal to positions corresponding to the address signal.
6. The system for parallel data transmission of claim 1, wherein the master device comprises a microcontroller.
7. The system for parallel data transmission of claim 1, wherein the slave device comprises an external memory device.
8. A method for parallel data transmission suitable for a system for parallel data transmission, wherein the system for parallel data transmission comprises a master device and a slave device, in which an address signal is transmitted through an address bus and a data signal is transmitted through a data bus between the master device and the slave device, wherein the master device comprises a first and a second I/O ports, and the slave device comprises a third and a fourth 1/0 ports electrically coupled to the first and the second I/O ports respectively, the method for parallel data transmission comprising:
- after the master device outputs a read signal instructing that the master device reads data from the slave device at outputs a write signal instructing that the master device writes data to the slave device, the slave device transmits status information of the slave device to the master device through the third and the fourth I/O ports during the duty cycle of an address latch enable signal which is transmitted by the master device, wherein the master device transmits the address signal after the address latch enable signal is enabled, and the slave device latches the address signal for the addressing for reading or writing data after the address latch enable signal is disabled.
9. The method for parallel data transmission of claim 8, wherein during the process of the master device reading data from the slave device, after the master device has transmitted the address latch enable signal, the status information transmitted by to slave device is received by the master device through the first and the second I/O ports for determining whether the slave device is normally operating, and if it is determined that the slave device is normally operating, the address signal is transmitted to the address bus.
10. The method for parallel data transmission of claim 9, wherein after the slave device has received the address latch enable signal which is active, the slave device latches the address signal transmitted on the address bus; and after the slave device has received the read signal which is active, the slave device transmits the data signal corresponding to the address signal to the data bus, and then the master device reads the data signal from the data bus.
11. The method for parallel data transmission of claim 8, wherein during the process of the master device writing data to the slave device, after the master device has transmitted the address latch enable signal, the status information transmitted by the slave device is received through the first and the second I/O ports for determining whether the slave device is operating normally, and if it is determined that the slave device is operating normally, the address signal is transmitted to the address bus.
12. The method for parallel data transmission of claim 11, wherein before the slave device has received the address latch enable signal which is active, the master device transmits the data signal to the data bus; after the slave device has received the address latch enable signal which is active, the slave device latches the address signal on the address bus; and after the slave device has received the write signal which is active, the slave device writes the data signal to positions corresponding to the address signal.
13. The method for parallel data transmission of claim 8, wherein the master device comprises a microcontroller.
14. The method for parallel data transmission of claim 8, wherein the slave device comprises an external memory device.
4689740 | August 25, 1987 | Moelands et al. |
4949241 | August 14, 1990 | Iwasaki et al. |
5070443 | December 3, 1991 | Priem et al. |
5481675 | January 2, 1996 | Kapogiannis et al. |
6173354 | January 9, 2001 | Khandekar et al. |
6456538 | September 24, 2002 | Song et al. |
6463494 | October 8, 2002 | Morriss et al. |
7079445 | July 18, 2006 | Choi et al. |
20040260969 | December 23, 2004 | Mylly |
Type: Grant
Filed: Sep 27, 2005
Date of Patent: Aug 19, 2008
Patent Publication Number: 20070067526
Assignee: Novatek Microelectronics Corp. (Hsinchu)
Inventors: Jen-Ta Yang (Taipei County), Rei-Hong Chang (Hsinchu)
Primary Examiner: Glenn A. Auve
Assistant Examiner: Trisha Vu
Attorney: Jianq Chyun IP Office
Application Number: 11/162,866
International Classification: G06F 13/38 (20060101); G06F 3/00 (20060101);