1. Field of the Invention
The present invention generally relates to a method and a circuit for asynchronous transmission, and more particularly, to a method and a circuit for asynchronous transmission that are applicable to serial data communication.
2. Description of the Related Art
A start-stop synchronization system is one of conventional asynchronous transmission systems. The start-stop synchronization system inserts a start bit F-Top at the head of a data item and a stop bit at the tail of the data item, allowing a receiving device to recognize the head and tail of the transmitted data item without transmitting any sync signal (see Japanese Patent Laid-Open Application No. 9-8863, for example).
The data item starting with the start bit and ending with the stop bit may be referred to as a “frame.” A state in which no data is transmitted through a communication channel is referred to as an “idle” state (logical value “1”). In response to detection of a start bit F-Top (logical value “0”), the receiving device in the idle state detects the start of data item, and start the sampling of the data item. The receiving device continues the sampling for a predetermined data length, and returns to the idle state in response to detection of the stop bit (logical value “1”). The receiving device receives subsequent frames in the same manner.
It is necessary that a transmitting device and a receiving device share information such as bit rate, data length, stop bit length, and error detection (parity bit and CRC, for example) in advance.
In the case of conventional asynchronous data communication, an idle state period needs to be longer than transmission time required for the transmission of a single data frame in order to keep the reliability of communication high, that is, in order to detect the start bit without fail thereby to receive the data. This is because the start bit is detected under the following condition (communication protocol): “an idle state (successive logical values “1”) longer than transmission data, and transition to logical value “0””. Otherwise, if the transmission data contains successive logical values “1” followed by a transition to logical value “0”, the receiving device may erroneously detect the transition to the logical value “0” as a start bit, resulting in the reception of false data.
There exists an idle state period longer than the data frame after the transmission of each data frame. This degrades the efficiency of data transmission significantly.
It is a general object of the present invention to provide a method and a circuit for asynchronous transmission in which the idle state period can be reduced thereby to gain great improvements in transmission efficiency.
To achieve at least one of the above objects, according to the present invention, a method for serial asynchronous transmission of data of fixed length, wherein a start bit and a stop bit are inserted at the head and tail of the data, respectively, is characterized in that a fixed bit having a predetermined logical value is inserted every predetermined number of bits of the data.
The method for serial asynchronous transmission according to the present invention allows the idle state period to be reduced up to at least the predetermined number plus one bits, resulting in significant improvement in transmission efficiency.
Other objects, features and advantages of the present invention will become more apparent from the following detailed description when read in conjunction with the accompanying drawings.
The preferred embodiments of the present invention are described in detail with reference to the drawings.
The length of the data frame is: 1(start bit)+16(first data block)+1(fixed bit)+16(second data block)+1(stop bit)=35 bits.
According to the above arrangements, the receiving device can detect the start bit F-Top as the first transition of logical value to “0” after an idle state period, the length of which is more than 16 bits (17 bits or more).
This allows the idle state period to be reduced up to 17 bits, which is about a half of idle state period required by conventional asynchronous transmission systems, that is, 33 bits or more. The addition of the 1 bit-long fixed bit considerably improves the efficiency of transmission.
Even if the amount of data contained in a data frame is increased up to 96 bits or 128 bits, for example, the addition of 1 bit-long fixed bit in every 16 bits of data makes an idle state period of length of 17 bits or more sufficient for the receiving device to recognize the start bit. The fixed bits can be removed by the receiving device after the reception of the data frame is completed.
The transmission/reception control unit 12 supplies the bit rate clock to a transmission shift register 14, and further supplies the sampling clock to a reception shift register 16. In response to reception of transmission request from an upper rank apparatus via a data bus 22, the transmission/reception control unit 12 sends a write/read instruction signal to a transmission data register 18. When the transmission/reception control unit 12 detects the start bit following an idle state in the received data, the transmission/reception control unit 12 sends a write/read instruction signal to a reception data register 20.
In response to receipt of a write instruction sent by the transmission/reception control unit 12, the transmission data register 18 stores 32-bit parallel transmission data transferred from a memory unit (described below) via the data bus 22. Then, the transmission data register 18 supplies the stored transmission data to the transmission shift register in response to reception of a read instruction sent by the transmission/reception control unit 12.
The transmission shift register 14 can store a data frame of length of 35 bits or more. When the transmission shift register 14 receives 32 bit-long parallel transmission data from the transmission data register 18, the upper 16 bits of the received transmission data are stored as the 2nd through 17th bits, and the lower 16 bits of the received transmission data are stored as the 19th through 34th bits in accordance with the write instruction from the transmission/reception control unit 12. In addition, a fixed bit “0” is inserted as the 1st bit and 18th bit, and a stop bit “1” is inserted as the 35th bit. Then, the transmission data is serially transmitted in accordance with the bit rate clock provided from the transmission/reception control unit 12.
The reception shift register 16 receives and shifts incoming serial data in accordance with the sampling clock. The reception shift register 16 is capable to store at least 51 bit-long data, and supplies the 1st through 18th bits stored therein to the transmission/reception control unit 12 in parallel. In response to reception of a read instruction signal from the transmission/reception control unit 12, the reception shift register 16 supplies the 19th through 34th bits and the 36th through 51st bits, 32 bits in total, to a reception data register 20 as parallel data.
The reception data register 20 stores the 32-bit parallel received data provided by the reception shift register 16 in accordance with a write instruction from the transmission/reception control unit 12. In response to reception of a read instruction from the transmission/reception control unit 12, the reception data register 20 reads the received data and sends the data to the memory unit (to be described below) via the data bus 22.
If a positive determination is made in step S10, the transmission/reception control unit 12 sends a write instruction signal to the transmission data register in step S12 thereby to store transmission data. Then, in step S14, the transmission/reception control unit 12 sends a read instruction signal to the transmission data register 18 thereby to read the transmission data. The transmission/reception control unit 12 further sends a write instruction signal to the transmission shift register 14 thereby to set: the upper 16 bits of the transmission data in the 2nd through 17th bits of the transmission shift register 14, the lower 16 bits of the transmission data in the 19th through 34th bits of the transmission shift register 14, the fixed bit “0” in the 1st and 18th bits of the transmission shift register 14, and the stop bit “1” in the 35th bit of the transmission shift register 14.
Next, in step S16, the transmission/reception control unit 14 provides the bit rate clock the transmission shift register 14. The transmission shift register 14 performs parallel-to-serial transform on the stored content, and serially outputs them. The procedure is terminated.
If the determination in step S22 is positive, the transmission/reception control unit 12 sends a read instruction signal to the reception shift register 16 in step S24. In response to the reception of the read instruction signal, the reception shift register 16 outputs the 19th through 34th bits and the 36th through 51st bits, 32 bits in total, of the stored reception data as parallel data. The transmission/reception control unit 12 sends a write instruction signal to the reception data register 20 thereby to store the 32-bit long output reception data. Then, in step S26, the transmission/reception control unit 12 sends a read instruction signal to the reception data register thereby to transfer the 32-bit long reception data to the data bus 22. If the determination made in step 22 is negative, the procedure is terminated.
A conventional asynchronous transmission system requires an idle state period longer than transmission data. An asynchronous transmission system according to an embodiment of the present invention allows the idle state period to be reduced up to at least n+1 bits by inserting a fixed bit in every n (16 for example) bits of the transmission data. The transmission efficiency of asynchronous transmission can be improved considerably.
In the case of the transmission of long transmission data, even if additional fixed bits are inserted in a data frame, the interval between data frames can be reduced up to at least n+1 bits, still resulting in improvements in efficiency. The increase in bit rate directly improves the capacity of data transmission.
The present invention is applicable to such a situation that a user intends to provide the data transmission of a large amount of data between two units built in an apparatus such as an exchanger (switchboard) where there remains little transmission capacity left available between the two units. The data communication interface circuit as shown in
A memory unit 34 stores 64-bit (2 words) long setting information, for example. The unit 30 causes the setting information to be supplied to the data bus 22 (
The setting information is serially output from a transmission shift register 14 of the data communication interface 32, and sent to a reception shift register 16 of the data communication interface 42 via a data transmission line 35. The setting information received by the data communication interface 42 is stored in a memory unit 44 word by word via a data bus 22 (
According to the above arrangements, the two unit 30 and 40 can exchange 64-bit long setting information using a single serial line efficiently.
In the case in which the two units 30 and 40 use system clock signals of different frequencies, a clock generator may be provided in the unit 30, for example. A clock signal generated by the clock generator provided in the unit 30 is supplied to the data communication interface 32 as a system clock signal, and further supplied to the data communication interface 42 via a control line connecting the units 30 and 40 thereby to synchronize the system clock signals used by the units 30 and 40.
The transmission shift transistor 14 corresponds to a transmission shift register in the claims. The transmission/reception control unit 12 corresponds to a storage control unit in the claims. The reception shift register 16 corresponds to a reception shift register in the claims. The transmission/reception control unit 12 corresponds to an output control unit in the claims.
This patent application is based on PCT application No. JP03/00284 filed on Jan. 15, 2003, the entire contents of which are hereby incorporated by reference.
This application is a U.S. continuation application filed under 35 USC 111(a) claiming benefit under 35 USC 120 and 365(c) of PCT application JP2003/00284, filed on Jan. 15, 2003.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/JP03/00284 | Jan 2004 | US |
Child | 11063196 | Feb 2005 | US |