摘要 |
Apparatus for providing data available interrupts that have a variable threshold for reading data from a receiver FIFO, and for selecting the depth of a variable depth FIFO for use as either the receiver or transmitter FIFO of a UART. The interrupt circuit determines if the FIFO data level is at or exceeds a preselected threshold value, and if it doesn't, triggers the reduction of the threshold level after a preselected period of time if there has been no access of the FIFO. If the data available level is still less than the reduced threshold value, the threshold value is again reduced by a preselected value following each elapse of a second preselected pause between each resetting of the threshold level until either a data available interrupt occurs, the threshold level is dropped to zero, or the FIFO is accessed. Whenever the receiver FIFO is accessed, the threshold level is reset to the original preselected level. The variable depth FIFO has a plurality of storage locations, and the depth of the storage locations is selected from fewer storage locations than the maximum number to the maximum number of the storage locations.
|