Title of Invention

"A UART CONTROL CIRCUIT"

Abstract A UART including a logic unit is disclosed, wherein the logic unit automatically enables or disables the UART receiver port whenever data is being processed by the UART for wireless transmission. More specifically, a logic unit is connected to a data store, to a transmit FIFO and to a UART processing unit as well as to an external CPU, wherein the logic unit analyzes the logic states of each of the signals from each of the specified connections to determine whether to enable or disable the receiver unit. An inventive method is also disclosed wherein the logic unit only enables the receiver when the data store is empty and the transmitter FIFO is empty and a receiver enable flag is set to true and a half duplex mode of operation has been specified by an external CPU. Otherwise, the logic enables the receiver only when a full duplex mode of operation has been specified and the receiver enable flag is set to a logic one.
Full Text The present invention relates to a UART control circuit^ a UART for single channel communications and — a — method in — a-UART control circult
1. Technical Field of the Invention
This invention relates to wireless communications and, more specifically to bi-directional communications utilizing only one communications channel.
2 . Description of Related Art
A known problem relating to wireless single channel communications is that of undesirable reception in the receiver portion of the signal transmitted by the transmitter of the same device or system. One approach which has been
used to avoid this problem of undesired reception, is to transmit a signal in one channel and to receive a response in a different channel. However, based upon the technology, it is sometimes impractical or impossible to use different channels for transmitting and receiving signals.
Another approach for preventing signal processing of undesired receptions is to transmit a portion of data and then to delete an equivalent amount of data which was received very shortly after the transmission of the data. Such an approach, however, can become quite complicated in that a device must keep track of the timing of data transmissions so that it can determine what received data requires erasing or flushing.
The use of digital signal formats for transmitting data simplifies the problem of flushing data. The reason, of course, is that the exact amount of data which is transmitted is known and therefore an equivalent amount may be deleted. By way of example, a device may determine that N number of bytes was transmitted. Accordingly, and prior to the receipt of a response from another device, a current device must delete the last N number of bytes received. As may be seen, with this embodiment, a device is allowed to receive the data it transmits, but, by careful data management, such data may be deleted before real data is received from another device.
A challenge with implementing this system, however, is that the received data must be deleted quickly so as to not interfere with the reception of actual signals being transmitted by another device.
One type of device which suffers from the above problems, is an infrared transmitter/receiver which produces noncoherent light, namely light which tends to diverge rather than follow a straight path. In a device which utilizes a known infrared digital signal protocol, such as INFRARED DIGITAL ASSOCIATION (IrDA), transmission and reception of the signals occurs over the same "channel" because signals transmitted in the spectral frequency domain cannot be separated into a plurality of channels as readily as can other electromagnetic signals from other spectrums, such as VHF or UHF. Thus, when non-coherent light is used as a signal medium, the transmitted signal is frequently received by the optical filters of the same system or device. Accordingly, single channel infrared systems are usually adapted to purge data received after every transmission since the received signal is the very signal which was transmitted.
As was stated before, however, a difficulty with purging undesired received signals transmitted by the same device's infrared transmitter is that the response time for purging
data is very small because the receiver must be ready to receive an immediate response from another unit.
Thus, in those systems which utilize a light emitting diode (LED) and which include light detectors as receivers, or any other type of wireless single channel communication, the problem of receiving a device's own transmission is real. What is needed, therefore, is an apparatus and method which prevents a device's own receiver from receiving the signals it transmits in a way which requires less processing resources and which utilizes even less time to implement, and therefore, reduces the risk of missing an initial part of a block of data which is transmitted in response by another device.
SUMMARY OF THE INVENTION
An apparatus and method is disclosed, wherein bidirectional communications are being performed in a single channel of communication which avoids unnecessary processing and allows a more efficient data transmission process in a single channel environment. The inventive apparatus includes logic circuitry that automatically disables and enables the receiver port of the UART in a manner which avoids the UART the reception of data transmitted by a device's own
transmitter. By employing such logic circuitry, at least two specific advantages are recognized.
First, software interrupt handling that occurs whenever data is received by a receiver part of a UART, and which must be processed, are no longer being generated and processed due to the unnecessary reception of data which was transmitted by the UART's own transmitter. This dramatically reduces the number of unnecessary software interrupts that must be processed. Second, because UARTs frequently must be prepared to receive a nearly immediate response from another system within a small and finite amount of time, the purging of undesired data to within the real time constraints is no longer a problem because there is no longer a need to purge such data. The disclosed apparatus and method herein circumvents the timing constraints of a real time system in which unwanted data must be purged quickly by utilizing a circuit and method which automatically disables the receiver while transmissions are occurring and which enables the receiver to receive when transmissions cease to occur.
In one embodiment, a UART control circuit within a UART is disclosed in which the UART control circuit includes an input for receiving a half duplex mode signal. The UART control circuit causes the UART to operate in a half duplex

mode of operation when a half duplex mode of operation indication is received. While in a half duplex mode of operation, the UART disables the receiver whenever at least one signal received at least one input, indicates that there is data for the UART to transmit.
The UART control circuit in one embodiment, includes inputs from a FIFO register set and from a data store, indicating whether there is data therein, respectively, for transmission by the UART. The logic unit also includes an input from a processing unit indicating whether a standard UART receiver enable flag has been set. The UART control circuit also includes an input to receive the half duplex enable mode signal discussed above. The UART receiver is enabled, then, whenever a half duplex mode of operation has been specified, and the transmitter FIFO and the transmitter data store are both empty. The receiver is also enabled if the half duplex mode of operation is not being specified. Otherwise, the receiver is disabled.
The inventive method includes disabling the receiver if the Receiver Enable Flag is not set by the process unit. If the Receiver Enable Flag is set, then the receiver is enabled either if the half duplex mode of operation is not being specified by an external processor or if the transmitter data
store and FIFO register sets are both empty. The receiver is disabled, otherwise, if a half duplex mode of operation is specified and either the transmitter data store or FIFO register set are not empty.
Therefore, the present invention relates to a UART control circuit for single channel communications, comprising:
a transmission data store coupled to receive data for an external source, which transmission data store is for storing data for transmission by said UART as a signal; said received data is a half duplex mode enable signal, which half duplex mode enable signal causes said UART to operate in a half duplex mode of operation and in a full duplex mode of operation, a transmitter port for transmitting signals;
a transmission data register set for temporarily holding up to a predefined amount of data for transmission by said transmitter port, which transmission data register set is coupled to receive data from said transmission data store and is coupled to transmit data to said transmitter port;
a receiver port for receiving transmitted signals;
a receiver data store coupled to said receiver port to receive data representation of said received transmitted signals; a processor unit for controlling UART operations; and a logic unit coupled to said receiver port and to said transmission data store and transmission data register set for enabling and disabling said receiver port at select times.
a receiver data store coupled to said receiver port to receive
data representation of said received transmitted signals;
a processor unit for controlling UART operations; and
a logic unit coupled to said receiver port and to said
transmission data store and transmission data register set for
enabling and disabling said receiver port at select times.
The present invention further relates to a method in a UART control circuit having a data store for transmitting the FIFO, a transmitter, a receiver, a data store for receiving, data input and output lines, and an input for controlling mode, the method comprising the steps of:
determining if said input for controlling mode of operation specifies a half duplex mode of operation; determining if said transmitter FIFO is empty; determining if said transmit data store is empty; enabling said receiver to receiver if said half duplex enable mode is being specified and if said transmit FIFO and data store are both empty;
and enabling said receiver to receive if said half duplex mode of operation is not being specified; and
disabling said receiver when said half duplex mode is being specified and said transmit FIFO is not empty and disabling said receiver when said half duplex enable mode is being specified and said data store is not empty.
BRIEF DESCRIPTION OF THE ^DRAWINGS
A more complete understanding of the method and system of the present invention may be obtained by reference to the following Detailed Description of the preferred embodiment (s) that follow, taken in conjunction with the accompanying drawings, wherein:
Figure 1 is a block diagram representing an exemplary embodiment of a UART.
Figure 2 is a block diagram representing an exemplary embodiment of a UART including a logic circuit.
Figure 3 is a logic diagram illustrating the logic components and their connections of one embodiment of the logic circuit of the invention herein.
Figure 4 is a flow chart illustrating one embodiment of the logic flow of the inventive methods herein.
DESCRIPTION OF THE PREFERRED EMBODIMENT
Referring now to Figure I, there is shown an exemplary embodiment of a UART 100 which is coupled to a CPU 110 by data bus 102. As may be seen, a transmit data store 120 acts as a data queue for data to be transmitted by transmitter 140. A transmit FIFO 130 is connected between data store 120 and transmitter 140 by lines 104 and 106, respectively. FIFO 130 provides to UART processing unit 150 a signal reflecting whether the FIFO 130 contains data for transmission over line 108. Whenever transmitter 140 transmits a signal 160, which signal is received by receiver 170, receiver 170 transmits the signal to store 180 over line 112. Store 180 then indicates to processing unit 150, over line 114, that it has received a data block from receiver 170. Processing unit 150, then, responds by commanding store 180, over line 116, to delete such data block. Typically, processing unit 150 will instruct store 180 to delete a data block whenever such a data block is received as a signal a very short time after transmitter 140 transmitted a signal 160. More specifically, transmitter 140 generates an interrupt which is transmitted to processing unit 150 over line 118 every time it transmits signal 160. Similarly, receiver 170 generates an interrupt which it transmits to processing unit 150 over line 122 every time it

receives a signal 160. As may be seen, therefore, processing unit 150 must process an interrupt received from receiver 170 every time transmitter 140 transmits a signal 160, because the same signal is received by receiver 170. It also should be mentioned that PU 124 sends to receiver 170 a receiver enable flag over line 124 which allows receiver 170 to receive signals. Generally, this receiver enable flag is set on line 124 when transmitter 140 is transmitting as well as when transmitter 140 is not transmitting but the system is powered on.
The use of a digital signal format simplifies the problem of flushing signals, as described above. The reason, of course, is that the exact amount of data which is transmitted is known and therefore an equivalent amount may be deleted. By way of example, a device may determine that N number of bytes was transmitted. Accordingly, and prior to the receipt of a response from another device, a current device must delete the last N number of bytes received. As may be seen, with this embodiment, a device is allowed to receive the data it transmits, but, by careful data management, such data may be deleted before real data is received from another device. A challenge with implementing this system, however, is that the received data must be deleted quickly to not interfere

with the reception of actual signals being transmitted by another device.
Figure 2 shows a block diagram of a UART including a logic circuit. Specifically, UART 200 is connected to external CPU 210 by data bus 202 and by mode control line 204. Transmit data store 220 is connected to transmit FIFO 230 by line 206. Transmit FIFO 230 is also connected to transmitter 240 by line 208. Thus, when UART 200 receives data for transmission from CPU 210 over data bus 202, transmit data store 220 initially acts as a data queue for storing the data to be transmitted. Then, transmit data store 220 transmits to transmit FIFO 230 the data which is to be transmitted by transmitter 240. Transmit FIFO 230, as is known in the art, acts to assist with the timing of data transmissions by transmitter 240. As may be seen, whenever transmitter 240 receives a byte of data from transmit FIFO 230 over line 208, it transmits such byte of data as signal 250. Also, transmitter 240 which is also coupled to processing unit 260 by line 212 transmits to processing unit 260 a software interrupt over line 212 to indicate that a data byte has been transmitted.
Similarly, whenever receiver 270 receives a signal 250, it generates a software interrupt which software interrupt is

transmitted to processing unit 260 over line 214. Receiver 270 also transmits the received signal to receive data store 280 over line 216.
In the UART of Figure 1, as was discussed before, processing unit 150 transmits a receiver enable flag to receiver 170 over line 124. This receiver enable flag is used to enable or disable the receiver. Generally, the receiver enables the flag to set logic 1 regardless of whether the UART is transmitting or receiving signals. In the embodiment of the invention shown in Figure 2, however, the receiver enable flag is transmitted to logic unit 290 over line 218 instead of being transmitted to the receiver, as in the prior art. Logic unit 290 also receives as input a signal over line 222 which indicates whether transmit data store 220 is empty and a signal over line 224 which indicates whether transmit FIFO 230 is empty. According to a logic state of each of the signals received over lines 222, 224, 218 and over mode control line 204, logic unit 290 determines whether to enable or disable receiver 270 over line 226.
In the embodiment of Figure 2, logic unit 290 enables receiver 270 to receive a signal 250 only when a receiver enable flag is set to true on line 218 as well as when the signal on mode control line 204 reflects full duplex mode of
operation rather than half duplex or if it reflects a half duplex mode of operation, the signals received on lines 222 and 224 indicate that transmit data store 220 and transmit FIFO 230 are empty, respectively. Thus, by way of example, if the receiver enable flag received on line 218 is set to true and the mode control line 204 reflects that a half duplex mode of operation has been enabled, receiver 270 will only be enabled to receive a signal 250 by logic unit 290 over line 226 whenever transmit data store 220 and transmit FIFO 230 are both empty as indicated over lines 222 and 224. Thus, whenever UART 200 is in a transmit mode of operation, as indicated by either data store 220 or transmit FIFO 230 having data therein for immediate transmission, receiver 270 is automatically disabled if a half duplex mode of operation has been specified over line 204 by external CPU 210.
The UART 200 of Figure 2 shows a processing unit 260 that is contained within the UART 200. Such processing unit 260 could, just as readily, have its functionality performed by CPU 210. In such an embodiment, each of the lines carrying signals to processing unit 260 would merely carry those signals to external CPU 210 for processing by it.
Referring now to Figure 3, there is shown a logic diagram of one embodiment of logic unit 290 of Figure 2. As may be
seen logic unit 300 of Figure 3 is comprised of an AND gate 310, an OR gate 320, and a second AND gate 330. The two inputs of AND gate 310 receive the signals carried on lines 222 and 224 from the transmit data store 220 and transmit FIFO 220, all of Figure 2, which signals reflect whatever data store 220 and whether transmit FIFO 230 are empty, respectively. A logical output of AND gate 310 is transmitted to one input of OR gate 320 by line 312. The half duplex mode of operation signal, which is carried from CPU 210 to UART 200 over line 204 of Figure 2, is coupled to an inverter 340 which inverts the state of the signal prior to the signal being transmitted to the second input of OR gate 320. The logical output of OR gate 320, is then transmitted to one input of AND gate 330 over line 314. As may be seen, AND gate 330 includes two inputs, one which is the output of OR gate 320 and one input on line 218 of Figure 2 which receives the Rx enable flag. The output of AND gate 330, an Rx Enable Signal, is transmitted on line 226 of Figure 2 to receiver 270 to enable or disable receiver 270. As may be seen, receiver 270 is only enabled by the logic unit depicted in Figure 3, according to the following logical expression:
Rx Enable=((Data Store Empty AND Transmit FIFO Empty) OR Half Duplex Disable) AND Rx Enable Flag
It is understood, of course, that the above expression as well as the circuit of Figure 3 may have many logical equalivents that achieve similar results. For example, a half duplex disable signal is equal to the opposite of a half duplex enable signal. One skilled in the art can readily appreciate the invention being taught herein and how to derive equivalent logical circuits and expressions.
Referring now to Figure 4, there is shown one embodiment of the inventive methods. Step 410 includes determining whether the Rx enable flag has been set. If not, as is shown in step 420, the receiver is disabled. If the Rx enable flag is set, then step 430 includes determining whether the half duplex mode of operation has been specified. If not, the receiver is enabled, as shown in step 440. If a half duplex mode of operation has been specified, however, then the inventive method includes determining whether the transmit data store is empty as is shown in step 450. If the data store is not empty, the receiver disabled in step 460. However, if the transmitter data store is empty, then the inventive method includes determining whether the transmit FIFO is empty as shown in step 470. If the transmit FIFO is not empty, the receiver is disabled as shown in step 460. If the transmit FIFO is empty, however, the receiver is enabled
as shown in step 440. As may readily be appreciated by one skilled in the art, however, the above steps may be followed in a different order without departing from the invention. By way of example/ step 470 could precede step 450. In another example, step 410 could be performed last.
Based upon the foregoing, those skilled in the art should now fully understand that the present invention provides an apparatus and method which significantly reduces software interrupt processing and reduces processor workload. The advantages of the invention, based upon the foregoing, also includes faster UART readiness for receiving a response from another system, and, therefore, having a lower likelihood that incoming signals will not be received.
Although a preferred embodiment of the method and apparatus of the present invention has been illustrated in the accompanying drawings and described in the foregoing detailed description, it will be understood that the invention is not limited to the embodiment disclosed, but is capable of numerous rearrangements, modifications and substitutions without departing from the spirit of the invention as set forth and defined by the following claims.




WE CLAIM:
A UART control circuit for single channel communications, comprising:
a transmission data store (220) coupled to receive data for an external source, which transmission data store is for storing data for transmission by said UART as a signal; said received data is a half duplex mode enable signal, which half duplex mode enable signal causes said UART to operate in a half duplex mode of operation and in a full duplex mode of operation, a transmitter port (240) for transmitting signals;
a transmission data register set (230) for temporarily holding up to a predefined amount of data for transmission by said transmitter port, which transmission data register set is coupled to receive data from said transmission data store and is coupled to transmit data to said transmitter port;
a receiver port (270) for receiving transmitted signals; a receiver data store (280) coupled to said receiver port to receive data representation of said received transmitted signals; a processor unit (260) for controlling UART operations; and a logic unit (290) coupled to said receiver port and to said transmission data store and transmission data register set for enabling and disabling said receiver port at select times.

2. The UART control circuit as claimed in claim 1, wherein said logic unit has an input for receiving a half duplex mode enable signal, which input is coupled to an external device.
3 The UART control circuit as claimed in claim 2 which has an input for
receiving a UART receiver enable flag, which input is coupled to said
processing unit.
4 A UART control circuit for single channel communications
substantially as herein described with reference to the accompanying
drawings.



Documents:

1100-del-1997-abstract.pdf

1100-del-1997-claims.pdf

1100-del-1997-correspondence-others.pdf

1100-del-1997-correspondence-po.pdf

1100-del-1997-description (complete).pdf

1100-del-1997-drawings.pdf

1100-del-1997-form-1.pdf

1100-del-1997-form-13.pdf

1100-del-1997-form-19.pdf

1100-del-1997-form-2.pdf

1100-del-1997-form-26.pdf

1100-del-1997-form-4.pdf

1100-del-1997-form-6.pdf

1100-del-1997-gpa.pdf

1100-del-1997-petition-137.pdf

1100-del-1997-petition-138.pdf

1100-del-1997-petition-other.pdf


Patent Number 223615
Indian Patent Application Number 1100/DEL/1997
PG Journal Number 40/2008
Publication Date 03-Oct-2008
Grant Date 18-Sep-2008
Date of Filing 29-Apr-1997
Name of Patentee ERICSSON INC
Applicant Address 7001 DEVELOPMENT DRIVE,P.O.BOX 13969,RESEARCH TRIANGLE PARK,NORTH CAROLINA 27709, UNITED STATES OF AMERICA
Inventors:
# Inventor's Name Inventor's Address
1 BILLY GAYLE MOON 305 PARKBRANCH LANE,APEX,N.C.27502,USA
PCT International Classification Number HO 4 L 5/16
PCT International Application Number N/A
PCT International Filing date
PCT Conventions:
# PCT Application Number Date of Convention Priority Country
1 NA