USRE40635E1 - 32 bit generic asynchronous bus interface using read/write strobe byte enables - Google Patents

32 bit generic asynchronous bus interface using read/write strobe byte enables Download PDF

Info

Publication number
USRE40635E1
USRE40635E1 US11/796,154 US79615407A USRE40635E US RE40635 E1 USRE40635 E1 US RE40635E1 US 79615407 A US79615407 A US 79615407A US RE40635 E USRE40635 E US RE40635E
Authority
US
United States
Prior art keywords
display controller
clock speed
signal
microprocessor
clock
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related, expires
Application number
US11/796,154
Inventor
Phil Van Dyke
Barinder Singh Rai
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to US11/796,154 priority Critical patent/USRE40635E1/en
Application granted granted Critical
Publication of USRE40635E1 publication Critical patent/USRE40635E1/en
Adjusted expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units

Definitions

  • This invention relates generally to computer systems and more particularly to a generic asynchronous bus interface capable of communicating with a variety of microprocessors.
  • Portable consumer electronic devices are pervasive in all aspects of society today. Examples of such devices include personal digital assistants (PDA), mobile phones, pagers, web tablets, etc. These portable devices contain embedded systems that include central processing units (CPU). Due to the narrow range of functions provided by these handheld devices, the CPUs associated with these embedded systems are not required to have as powerful computing power as desktop or laptop CPUs. A number of vendors provide CPUs designed specifically for a type of handheld device. As is well known, the CPUs also include native buses that support the CPUs. Additionally, the devices include a display screen where images are presented under the control of a display controller, such as a liquid crystal display (LCD) controller.
  • LCD liquid crystal display
  • the display controller typically manufactured by a vendor different from the CPU vendor, is customized to include a bus interface that allows the display controller to communicate with specific CPUs through a system bus. Because of the wide variety of the CPUs, the display controllers tend to be customized to interface with a narrow range of CPUs.
  • the various CPUs and the display controllers available on the market can run at different clock speeds.
  • the data bus through which the CPU and the LCD controller communicate may be asynchronous to accommodate the different speeds at which the CPU and LCD controller operate. That is, since events do not happen at predetermined times, as would be the case if the CPU and the LCD controller were using the same clocks, the bus interface accommodates interlocked communication, also referred to as handshaking.
  • the display controllers targeted for specific CPUs switch to an external crystal to provide the clock.
  • the external crystal may be running at a fraction of the frequency of the nominal bus frequency.
  • asynchronous is applied loosely to bus interfaces that include a WAIT signal to allow for a variable length access. If the bas interface allows variable length access through a WAIT signal and the bus master and the bus slave use the same bus clock, i.e., define all bus events relative to a bus clock signal, then the bus interface is not truly asynchronous since the timing is slaved to a single CPU oscillator. Different clocks are used to drive and sample signals under a truly asynchronous bus interface.
  • FIG. 1 is a schematic diagram of an embedded system including a CPU in communication with a display controller, such as a LCD controller.
  • CPU 100 communicates through bus 102 to bus interface 104 of LCD controller 106 .
  • CPU 100 is configured to run at speed Y while LCD controller 106 is configured to run at speed X.
  • the different clock speeds of CPU 100 and LCD controller 106 cause issues when there is a large difference between the two clock speeds.
  • the situation where LCD controller 106 runs at a clock speed of 1 Kilohertz (KHz) and CPU 100 runs at a clock speed of 100 Megahertz (MHz) is considered for exemplary purposes. Under these conditions, CPU 100 asserts a signal over a clock period that is a 100 MHz clock period.
  • LCD controller 106 running at 1 KHz, is unlikely to be able to sample the asserted signal during the allotted clock period because of the discrepancy in clock speeds. Thus, LCD controller 106 will be unable to communicate with CPU 100 .
  • One approach to address the issues caused by the different operating speeds is to set a limit for a difference between the speeds of the LCD controller and the CPU. That is, the LCD controller is targeted for CPUs having particular clock speeds based upon the clock speed difference between the LCD controller and the CPU. In addition, the LCD controller will double or triple sample a signal to guarantee within a certain time period that the signal will be sampled in order to compensate for the speed differences. That is, repeating the sampling of the signal when the speeds of the controllers are within a certain range will guarantee that the signal is sampled within the allotted clock period.
  • One limitation of this approach is that the CPU and the LCD controller must be within a certain speed range of each other or this approach to operating in an asynchronous mode will not work.
  • an asynchronous bus interface can encounter a metastable condition.
  • a flip flop or latch circuit within the bus interface of the LCD controller that receives a signal generated from the CPU has a setup and a hold time associated with the D input to the flip flop. If the setup or hold time of the flip flop is violated, then the output (Q) could become metastable. That is, the flip flop becomes “confused” to which state to go into when the rising edge of the clock for the LCD controller occurs at the same time that the CPU asserts the signal, thereby providing two infinite slopes on a signal.
  • the clock for the flip flop is the LCD clock, which is separate from the clock used by the CPU to generate the signals, it can not be guaranteed that input transitions do not occur during setup intervals.
  • the metastable condition is disastrous for a chip, since the bus cycle will fail.
  • the occurrence of metastable conditions must be minimized in order for an asynchronous bus interface to reliably operate.
  • the present invention fills these needs by providing a generic bus interface of a display controller configured to support asynchronous data exchange that is independent of the difference in clock speed between the LCD controller and a CPU in communication with the LCD controller. Additionally, the asynchronous bus interface includes flip flop chain redundancy circuitry for minimizing the occurrence of a metastable condition. It should be appreciated that the present invention can be implemented in numerous ways, including as a process, a system, or a device. Several inventive embodiments of the present invention are described below.
  • a display controller configured to communicate with a microprocessor.
  • the display controller operates at a first clock speed and the microprocessor operates at a second clock speed.
  • the display controller includes a memory core for storing image data to be displayed and a register set containing configuration data enabling presentation of the image data.
  • An asynchronous bus interface enabling communication over a bus between the memory core of the display controller and the microprocessor is also included.
  • the asynchronous bus interface is configured to be independent of the second clock speed of the microprocessor and a difference between the first clock speed and the second clock speed.
  • Flip flop chain redundancy circuitry is included in the bus interface.
  • a system that allows for the asynchronous exchange of data.
  • the system includes a central processing unit (CPU) and a data bus.
  • a display controller in communication with the CPU through the data bus is also included.
  • the display controller has a bus interface to enable communication over the bus with the CPU.
  • the bus interface is configured to be independent of both a clock of the CPU and a difference between a clock speed of the CPU and a clock speed of the display controller.
  • the asynchronous bus interface also includes flip flop chain redundancy circuitry.
  • a method for communicating between a display controller operating at a first clock speed and a microprocessor operating at a second clock speed begins with a request from a microprocessor being received by a display controller.
  • the request from the microprocessor is generated according to a microprocessor clock.
  • the request is sampled according to a display controller clock.
  • the request from the microprocessor is acknowledged by the display controller to initiate an internal cycle of the display controller.
  • data associated with a read operation or a write operation is provided.
  • a request from the display controller to end the internal cycle is issued to the microprocessor.
  • the request from the display controller is generated according to the display controller clock.
  • an acknowledgement from the microprocessor is received by the display controller.
  • the acknowledgement is generated according to the microprocessor clock.
  • a method for performing a read operation or a write operation between a microprocessor and a display controller over a data bus begins with operating a microprocessor at a first clock speed. Then, a display controller is operated at a second clock speed. Next, a handshaking routine is executed. The handshaking routine includes a request and an acknowledgement between the microprocessor and the display controller. The request is associated with a different clock speed than the acknowledgement. Then, a read operation or a write operation is initiated over the data bus upon completion of the handshaking routine, wherein performance of the read or the write operation is independent of a difference between the first clock speed and the second clock speed.
  • FIG. 1 is a schematic diagram of an embedded system including a CPU in communication with a display controller, wherein the CPU and the display controller operate at different clock speeds.
  • FIG. 2 is a high level schematic diagram of a LCD controller with a generic bus interface in communication with a CPU in accordance with one embodiment of the invention.
  • FIG. 3 is a table illustrating a set of command signals that determine whether the current bus cycle is a read or a write cycle and the location of valid data on the bus in accordance with one embodiment of the invention.
  • FIG. 4 is a timing diagram for a generic bus interface associated with the command signals that determine whether the current bus cycle is a read or a write cycle and to determine a location of valid data on the bus in accordance with one embodiment of the invention.
  • FIG. 5 is a table listing the bus interface timing parameters associated with FIG. 4 .
  • FIG. 6 is a table illustrating the command signal encoding that utilizes two sets of control signals to determine whether the current bus cycle is a read operation or a write operation and the location of valid data on the bus in accordance with one embodiment of the invention.
  • FIG. 7 is a timing diagram for a generic bus interface using separate control signals and enable signals, as discussed with reference to FIG. 6 , to define a bus cycle in accordance with one embodiment of the invention.
  • FIG. 8 is a table representing the bus interface timing parameters associated with FIG. 7 .
  • FIG. 9 is a table illustrating the command signal encoding for an asynchronous generic bus interface that determines whether the current bus cycle is a read or a write cycle and the location of valid data on the bus in accordance with one embodiment of the invention.
  • FIG. 10 is a timing diagram of an asynchronous generic bus interface of a display controller configured to support any difference in clock speed between the display controller and a CPU in communication with the display controller in accordance with one embodiment of the invention.
  • FIG. 11 is a table representing the asynchronous bus interface timing parameters of FIG. 10 .
  • FIG. 12 is a schematic diagram of flip flop chain redundancy circuitry configured to minimize the occurrence of any metastable condition in accordance with one embodiment of the invention.
  • FIG. 13 is a flowchart diagram illustrating the method operations for communicating between a display controller operating at a first clock speed and a microprocessor operating at a second clock speed in accordance with one embodiment of the invention.
  • An invention is described for an apparatus and method for providing a generic bus interface for a controller that is adapted to communicate with a variety of central processing units (CPU).
  • CPU central processing units
  • the various signals processed through the bus interface are referred to herein as an abbreviation for the signal followed by the “#” symbol.
  • other common designations in the art for signals include an abbreviation with an over line or an abbreviation followed by the letter “X”.
  • logic high values may be referred to as having a binary value of “1” while a logic low value may be referred to as having a binary value of “0.” It will be apparent, to one skilled in the art, in view of the following description, that the present invention may be practiced without some or all of these specific details. In other instances, well known process operations have not been described in detail in order not to unnecessarily obscure the present invention.
  • the embodiments of the present invention provide a generic bus interface for a display controller in communication with a CPU.
  • the configuration of the command signals provided to the generic bus interface enables communication with a variety of microprocessors and their associated native buses.
  • the command signals are configured to define a read or write operation to be performed as well as defining a location of valid data on the native bus.
  • the generic bus interface accommodates an asynchronous exchange of data.
  • the display controller and the CPU are controlled by different clocks having different clock speeds. Through the handshaking defined between the CPU and the display controller, previous limitations required due to the inability to accommodate all differences between the clock speeds, no longer apply.
  • the generic bus interface described herein is capable of communicating with a variety of CPUs, particularly the CPUs in the embedded market, which include processors from HITACHI, MOTOROLA, INTEL, etc.
  • embedded systems define microprocessor based electronic systems that perform an application-specific set of functions. Embedded systems tend to be dedicated to sensing and responding to input.
  • the embedded systems exist in many industries, including automotive, communications, consumer and industrial. More specifically, embedded systems are used with compact portable handheld devices, such as personal digital assistants (PDA), mobile phones, pagers, web tablets, etc. These portable handheld devices do not require the same amount of computing power as a desktop or laptop computer because of their specific nature.
  • PDA personal digital assistants
  • devices incorporating embedded systems do not provide the same degree of functionality as desktop computer systems. While the embodiments described below are directed toward CPUs for handheld electronic devices, these embodiments are exemplary and not meant to be limiting. It will be apparent to one skilled in the art that the generic bus interface can be configured to communicate with CPUs for desktop and portable personal computers in addition to handheld devices.
  • the generic bus interface supports a data width of 32 bits addressable over 21 bits of address space.
  • the bus interface can support a data width over any suitable number of bits of address space.
  • the bus interface is configured to accommodate the signals that are necessary to attach to most CPU interfaces through the command signals explained in more detail below. Little and big endian modes are both supported by the generic bus interface. One skilled in the art will appreciate that little and big endian modes describe the order in which a sequence of bytes are stored in memory.
  • the embodiments of the bus interface include a bus interface configured to operate in a synchronous mode and a bus interface configured to operate in an asynchronous mode.
  • the bus cycle can be lengthened through the use of an external WAIT# control signal which can be set to active high or active low.
  • the asynchronous generic bus interface is configured to be independent of the difference between the clock speed of the display controller and the clock speed of the CPU in communication with the display controller.
  • the asynchronous bus interface includes circuitry for minimizing the occurrence of a metastable condition.
  • FIG. 2 is a high level schematic diagram of a display controller, such as a liquid crystal display (LCD) controller with a generic bus interface in communication with a CPU in accordance with one embodiment of the invention.
  • CPU 108 communication with LCD controller 116 through bus 112 .
  • CPU can be any number of suitable microprocessors.
  • CPU 108 is a microprocessor designed for an embedded system.
  • One such embedded system is the HITACHI SH3 microprocessor, which includes a native bus supporting the SH3 microprocessor.
  • LCD controller 116 includes generic bus interface 114 that is configured to communicate with a variety of suitable CPUs of embedded systems and non-embedded systems. As used herein, LCD controller 116 can be any suitable display controller that may or may not be associated with an embedded system.
  • LCD controller 116 includes memory core region 118 and register region 120 .
  • Memory core region 118 contains the data for an image to be presented on an LCD panel.
  • Register region 120 (also referred to as a register set) contains data to configure LCD controller 116 , which includes configuration data for a type of display panel used to display the image, such as resolution, screen size, panel type, etc. That is, the registers of the register set are programmed to allow LCD controller 116 to interface with a display screen for presenting the image data in memory.
  • CPU 108 contains registers that map LCD controller 116 into CPU memory 110 . Thus, when CPU memory 110 is addressed, CPU 108 asserts a chip select signal (CS#). In one embodiment, the CS# signal is used to notify LCD controller 116 that the LCD controller is being addressed as will be explained in more detail below.
  • FIG. 3 is a table illustrating a set of command signals that determine whether the current bus cycle is a read or a write cycle and the location of valid data on the bus in accordance with one embodiment of the invention.
  • the same set of signals which specify the read or write cycle simultaneously specify which bytes of a 32 bit data bus contain valid data.
  • a certain bit width of the 32 bit data bus i.e., 8 bit, 16 bit, or 32 bit, is specified by the same set of signals specifying whether the bus cycle is a read operation or a write operation.
  • each of the command signals define enable data for either the read operation or the write operation.
  • a bus cycle is initiated when a chip select signal (CS#) is asserted low.
  • the assertion of one or more read enable signals (RDn#) after the assertion of the CS# specifies a read cycle.
  • the assertion of one or more write enable signals (WEn#) after the assertion of the CS# sets a write cycle.
  • the configuration of the RD# and the WE# specify which bytes of a 32 bit data bus contain valid data. That is, the read or write cycle can be further specified as a 8-bit, 16-bit or 32-bit read or write cycle.
  • the bus interface of a display controller such as a liquid crystal display (LCD) controller
  • LCD liquid crystal display
  • each of the WE# (WE# 0 -WE# 3 ) are driven high to indicate a read cycle, i.e., where the LCD controller supplies data to a CPU.
  • each of the RD# (RD# 0 -RD# 3 ) are driven high to indicate a write cycle, i.e., where a CPU directs data to the LCD controller.
  • the configuration of the RD# signals indicate the location of valid data on the data bus.
  • the command signal encoding for a high even 8 bit read will be explained in further detail to specify the configuration of the command signals.
  • CS# is asserted low indicating that the LCD controller is being selected by the CPU.
  • WE# 0 -WE# 3 are each asserted high to indicate that a read cycle will occur.
  • RD# 3 , RD# 1 and RD# 0 are asserted high while RD# 2 is asserted low. This combination indicates that valid information is contained over bits 15 - 23 of the data bus.
  • the command signals of row 121 define a high even 8 bit read bus cycle.
  • one set of command signals define both whether a read operation or a write operation is to be performed and a location of valid data on the data bus through which the display controller and the CPU communicate. That is, one command signal is used for each 8 bit segment for either a read or write operation.
  • FIG. 4 is a timing diagram for a generic bus interface associated with the command signals that determine whether the current bus cycle is a read or a write cycle and determine a location of valid data on the bus in accordance with one embodiment of the invention.
  • Bus clock period (TCLK) is indicative of the system speed for the bus clock (CLK).
  • the LCD controller includes 21 bits of address space, as represented by A[ 20 : 0 ], which determines the amount of memory within the LCD controller. It will be apparent to one skilled in the art that the amount of address space of the LCD controller may vary. In one embodiment, the LCD controller has about 2 Megabytes (MB) of memory. That is, 21 bits of address space maps out to about 2 MB of memory.
  • MB Megabytes
  • the memory inside the LCD controller is addressed through address lines A[ 20 : 0 ].
  • the LCD controller can contain any amount of memory suitable for the system containing the LCD controller and is not limited to 2 MB of memory.
  • Memory/Register signal (M/R#) is a signal that selects between memory (M) and registers (R) of the LCD controller. In one embodiment, an additional 2 MB of memory is provided through the M/R# pin.
  • the memory core contains image data to be presented while the registers include configuration data, such as the configuration data for the display screen where the data is to be displayed.
  • the bus interface described in reference to FIG. 4 is a synchronous bus interface as the CPU and the display controller share a common clock.
  • CPU 108 includes registers that map LCD controller 116 into member 110 of the CPU.
  • the CPU 108 asserts a CS# low which tells LCD controller 116 that the LCD controller is being selected.
  • the CS# signal can be asserted low or high to indicate that LCD controller 116 is being selected.
  • the signals are sampled on the rising edge of the clock, however, it will be apparent to one skilled in the art that the signals can be sampled on the falling edge of the clock.
  • parameter t 2 indicates a set up time for the bus clock to see the CS# go low.
  • command signals indicates a type of access, i.e., read operation or a write operation.
  • a command signal where RD 3 # is 0 (low) and the remaining read and write signals are 1 (high) indicates that the type of access is a high odd 8-bit read.
  • data bits 31 through 24 of the bus are selected as these bits have valid data on them as defined by the command signals.
  • the CPU samples bits 31 - 24 of the data bus during the read operation.
  • Parameter t 1 of FIG. 4 represents a set up time for the LCD chip to see the CS# go low and to determine if a read operation or write operation is to occur through the configuration of the WE# or the RD#. It will be apparent to one skilled in the art that the set up time ensures that CS# will be sampled in the desired state.
  • Set up time t 3 allows a window for the read and write command signals to be asserted before the display controller samples the read and write command signals.
  • command signals configured to define a low even 8 bit read operation, as specified in row 123 of FIG. 3 will be referenced to further explain the timing diagram of FIG. 4 with reference to a read operation.
  • the set up and hold times referred to herein accommodates a propagation delay from when a high or low signal is sampled to when a next action occurs based on the high or low signal.
  • a wait signal (WAIT#) is driven low within timing parameter t 4 , as indicated by arrow 126 .
  • WAIT# is output from the display controller, such as a LCD controller, to the CPU and requests that the CPU wait until the LCD controller is ready to supply data.
  • the LCD controller is supplying data to the CPU.
  • WAIT# is low, the CPU extends the cycle until the LCD controller is ready to supply the data.
  • WAIT# goes high when valid data has been put onto the bus as indicated by arrow 128 .
  • the CPU On the rising edge of the bus clock, the CPU will sample the WAIT# and see that WAIT# has gone high, therefore, the CPU can read the data contained over bits 0 - 7 for the low even 8-bit read specified by the command signals.
  • the valid data is supplied to the CPU during timing parameter t 13 of the read cycle.
  • the CPU or the LCD controller can be configured to sample on the falling edge of the clock cycle rather than the rising edge.
  • timing parameter t 5 of the read cycle defines a time period within which the LCD controller will drive the data bus.
  • Dark envelope 122 indicates that the LCD controller is driving the data bus, thereby preventing another controller from taking over the bus.
  • the dark envelopes of FIG. 4 represent that valid data is not available while the light envelopes represent that valid data is available.
  • valid read data becomes available at some point within light envelope 124 .
  • Timing parameter t 16 provides a set up time for the WAIT# to go high in order for the CPU to read the data. Therefore, during timing parameter t 13 data is transferred, i.e., the CPU latches the data, as the rising edge of the bus clock occurs with the WAIT# high. It should be appreciated that within timing parameter t 11 , WAIT# is driven to a high impedance state where control of the bus is relinquished by the LCD controller for use by other devices.
  • the CPU is directing data over the bus to the LCD controller.
  • the CS# is driven low as mentioned above and is sampled by the LCD controller.
  • Set up time t 3 allows a window for the read and write command signals to be asserted before the LCD controller samples the read and write command signals.
  • the configuration of the read and write command signals will indicate the type of access.
  • the 32-bit write of FIG. 3 will be used to describe an exemplary write operation. That is, command signals WE 0 #, WE 1 #, WE 2 #, and WE 3 # are all low (0 values) while RD 0 #, RD 1 #, RD 2 # and RD 3 # are all high (1 values). Therefore, all 32 bits on the data bus are valid.
  • the address will be sampled to determine where the data is being addressed in the memory core of the LCD.
  • the CPU drives the read enable signals high.
  • all four write enable signals (WE 0 #-WE 3 #) are driven low indicating that all 32 bits on the data bus are valid.
  • the WAIT# is driven low to extend the bus cycle until valid data is available.
  • Timing parameter t 6 defines a set up period within which the CPU must drive the data on the data bus. WAIT# is held low until the LCD controller is ready to receive data at which point WAIT# is driven high. When WAIT# is driven high, the data is sampled and latched in by the LCD controller.
  • timing parameter t 12 is a hold time. As mentioned above, there is some propagation delay between the sampling of a signal and the action resulting from the sampling. Thus, t 12 is a hold time defining a time period for data to be held after the LCD controller is ready to receive the data, i.e., the WAIT#. Driving WAIT# high signifies that data has been written. Similar to the read operation, once WAIT# has been deasserted (driven high), the CPU ends the cycle by deasserting the read or write strobe as indicated by line 130 . Additionally, the CPU deasserts the CS#, by driving CS# high as indicated by line 132 . Timing parameter t 9 represents the time period between the WAIT# being deasserted and the read cycle or write cycle being deasserted.
  • FIG. 5 is a table listing the timing parameters associated with FIG. 4 .
  • Timing parameters t 1 - 6 , t 9 , t 11 - 13 and t 16 are discussed above with respect to FIG. 4 .
  • Timing parameters t 7 represents a time period required to keep the current cycle active, i.e., CS# low, after the CPU deasserts the command signals.
  • the minimum time for parameter t 7 is zero nano-seconds (ns), however, one skilled in the art will appreciate that most CPUs do not deassert CS# until one or two clocks after the command signals are deasserted.
  • the LCD controller is capable of handling concurrent deassertion of the command signals and CS# from the CPU, as well as deassertion of CS# after the command signals are deasserted.
  • Timing parameters t 8 represents a time period for which the CS# is deasserted (held high). At the end of time period t 8 , the CS# signal is reasserted, thereby signifying to the LCD controller that it has been selected for another read or write operation.
  • Timing parameter t 10 indicates a time period from which the command signals are deasserted to a point where the command signals are reasserted for another read or write operation.
  • Time period t 14 represents the length of a cycle for a read or write operation.
  • Timing parameter t 15 signifies a time period between the rising edge of the bus clock and the WAIT# being driven high. It should be appreciated that the timing parameters are exemplary timing periods and that the actual time period associated with each timing parameter can be any suitable time period allowing each operation to be accomplished.
  • FIG. 6 is a table illustrating the command signal encoding that utilizes two sets of control signals to determine whether the current bus cycle is a read operation or a write operation and the location of valid data on the bus in accordance with one embodiment of the invention.
  • the command signals of FIG. 6 are all active low.
  • a chip select signal (CS#) is driven low to indicate that the LCD controller has been selected.
  • the assertion of the read control signal (MEMR#) indicates a read cycle while the assertion of the write control signal (MEMW#) indicates a write cycle. It should be appreciated that the MEMR# and MEMW# have no effect on the determination of which parts of the data bus contain valid data. That is, the MEMR# and MEMW# do not include enable data corresponding to the data associated with the read operation or the write operation.
  • BE# byte enable signals
  • FIG. 7 is a timing diagram for a generic bus interface using separate control signals and enable signals, as discussed with reference to FIG. 6 , to define a bus cycle in accordance with one embodiment of the invention.
  • the bus interface supports a data width of 32 bits addressable over 21 bits of address space.
  • the bus interface is not limited to 21 bits of address space as 21 bits of address space is shown here for exemplary purposes only.
  • One skilled in the art will appreciate that the bus interfaces described herein can have up to 32 bits of address space. Little and big endian modes are both supported by the bus interface.
  • a bus cycle starts with the chip select signal (CS#) asserted low followed by the assertion of the MEMR# or the MEMW#.
  • CS# chip select signal
  • an output signal (IOCHRDY#) is asserted to acknowledge the CS#.
  • IOCHRDY# performs the same function as the WAIT# with respect to FIGS. 4 and 5 .
  • the IOCHRDY# is asserted until valid data is ready to be driven onto the bus for a read cycle or when data has been successfully received for a write cycle.
  • the bus cycle can be lengthened by the IOCHRDY#.
  • the configuration of the byte select signals BE 0 #-BE 3 #, in conjunction with MEMR# and MEMW#, with reference to FIG. 6 determines if the data bus bits are driven, i.e., a read operation, or sampled, i.e., a write operation.
  • the CS# and the command signals (BE 0 #-BE 3 # and MEMR# or MEMW#) are deasserted to end the bus cycle.
  • the address used for the bus cycle is sampled once after the start condition (CS# driven low) is recognized. Address bits A 0 and A 1 of the 21 bits of address space are not used in the bus interface in one embodiment since the byte enable signals determine the lower address bits. It will be apparent to one skilled in the art that the bus interface described with respect to FIGS. 6 and 7 is not capable of interfacing with as broad a variety of CPUs as the bus interface described with respect to FIGS. 3-5 .
  • the set of command signals associated with FIGS. 3-5 allows the bus interface to communicate with a broader range of CPUs. However, it should be appreciated that the command signals for both of the above referenced interfaces allows for on command modifiable reads. That is, for a 32 bit bus an 8, 16, or 32 bit read can be performed.
  • FIG. 8 is a table representing the bus interface timing parameters associated with FIG. 7 .
  • the timing parameters of FIG. 8 correlate with the timing parameters of FIG. 5 .
  • the command signals associated with FIG. 5 and the command signals associated with FIG. 7 are different. That is, the set of command signals associated with FIG. 5 are configured to indicate a read operation or write operation and a location of valid data on the bus. Furthermore, each of the command signals of FIG. 5 are configured to concurrently define read or write enable data as discussed with respect to FIG. 3 .
  • the command signals associated with FIG. 8 include separate sets of signals to define if the bus cycle is a read or write operation and the location of valid data on the bus.
  • FIG. 9 is a table illustrating the command signal encoding for an asynchronous generic bus interface that determines whether the current bus cycle is a read or a write cycle and the location of valid data on the bus in accordance with one embodiment of the invention.
  • the command signals of FIG. 9 are all active low.
  • a chip select signal (CS#) is driven low to indicate that the LCD controller has been selected.
  • a read/write control signal (R/W#) is used to indicate whether a read cycle or a write cycle is to be performed.
  • Driving the RW# signal high indicates a read cycle will be performed, while driving the RW# low indicates a write cycle will be performed. It should be appreciated that the R/W# is not related to the determination of which parts of the data bus contain valid data.
  • the R/W# does not include enable data corresponding to the data associated with the read operation or the write operation.
  • Four byte select signals (ByteSeln#) are used to specify which bytes of a 32 bit data bus contains valid data.
  • an 8 bit, 16 bit or 32 bit read bus cycle or write bus cycle can be specified as indicated by the various combinations of ByteSel 0 #-ByteSel 3 #.
  • FIG. 10 is a timing diagram of an asynchronous generic bus interface of a display controller configured to support any difference in clock speed between the display controller and a CPU in communication with the display controller in accordance with one embodiment of the invention.
  • a bus cycle initiates with CS#, also referred to as a request, asserted low by the bus master, i.e., CPU.
  • the bus slave i.e., LCD controller
  • the WAIT# is asserted until valid data is ready to be driven onto the bus for a read cycle or when data has been successfully received for a write cycle.
  • the R/W# determines if the access is a read operation or a write operation and the configuration of ByteSel 0 #-ByteSel 3 # define which data bus bits are driven or sampled.
  • the bus master After the bus master sees WAIT# deasserted, the bus master will deassert the CS# and the command signals.
  • the address used for the bus cycle is sampled once after the start condition is recognized. It should be appreciated that address bits A 0 and A 1 are not used in the bus interface in one embodiment since the byte select signals determine the lower address bits.
  • Bus clock is the clock controlling the bus master, i.e., CPU
  • LCD BCLK is the clock controlling the bus slave, i.e., display controller, such as a LCD controller.
  • the LCD controller includes 21 bits of address space, as represented by A[ 20 : 0 ], which determines the amount of memory within the LCD controller.
  • the LCD controller is not limited to 21 bits of address space as the amount of address space can vary.
  • the LCD controller has about 2 Megabytes (MB) of memory. That is, 21 bits of address space maps out to about 2 MB of memory.
  • the memory inside the LCD controller is addressed through address lines A[ 20 : 0 ].
  • the LCD controller can contain any amount of memory suitable for the system containing the LCD controller and is not limited to 2 MB of memory.
  • Memory/Register signal (M/R#) is a signal that selects between memory (M) and registers (R) of the LCD controller. In one embodiment, an additional 2 MB of memory is provided through the M/R# pin.
  • the memory core contains image data to be presented while the registers include configuration data.
  • the asynchronous bus interface is truly asynchronous as the timing of the signals to the bus interface from the LCD controller are controlled by the LCD clock. That is, the signals to the bus interface from the LCD controller are independent of the CPU clock. As a result, the signals from the LCD controller are not slaved to a single CPU clock or oscillator, thus defining a truly asynchronous bus interface.
  • the CPU requests the cycle from the LCD controller by asserting CS# low.
  • the LCD controller responds to the request with an acknowledge signal, i.e., WAIT#.
  • WAIT# acknowledge signal
  • the request and acknowledge signals are the two handshaking signals used to initiate a bus cycle.
  • the LCD controller samples the request at the clock speed of the LCD controller. That is, the LCD controller is sampling the request on the rising edge of the LCD BCLK, which is independent of the BCLK for the CPU. Of course, the LCD controller can sample on the falling edge of the LCD BCLK also.
  • Timing parameter t 3 represents the time period between the LCD controller sampling CS# low and asserting WAIT# to acknowledge to the CPU that a sample is being requested.
  • the acknowledge signal starts the bus cycle for the LCD controller. It will be apparent to one skilled in the art that t 3 is variable depending on the speeds of the CPU and the LCD controller.
  • the CPU then responds with a R/W# indicating a read or a write operation and ByteSel 0 #-ByteSel 3 # indicating the location of valid data on the data bus.
  • timing parameter t 5 represents the time period within which the LCD controller will drive the data bus.
  • Dark envelope 140 indicates that the LCD controller is driving the data bus, thereby preventing another controller from taking over the bus.
  • the dark envelopes of FIG. 10 represent that valid data is not available while the light envelopes represent that valid data is available. Thus, valid read data becomes available at some point within light envelope 142 .
  • Timing parameters t 8 and t 9 represent the set up time and hold time, respectively, similar to timing parameters t 16 and t 13 of FIG. 4 .
  • the end of the internal cycle for the LCD controller occurs when the WAIT# is deasserted, i.e., WAIT# goes high, which is performed by the LCD controller according to the LCD BCLK.
  • timing parameter t 9 defines a hold time after the CS# has gone high in order to guarantee that data is available for the CPU to sample that data.
  • Arrow 144 indicates the WAIT# being driven high by the LCD controller and the high WAIT# being recognized by the CPU which in turn drives the CS# high. It should be appreciated that the WAIT# is driven according to the clock of the LCD controller and is not synchronous to the CPU clock, thereby allowing the bus interface to run at any clock speed, i.e., independent of the CPU's clock speed. Once the LCD controller sees the CS# go high the LCD controller releases the bus by driving WAIT# to a high impedance state as indicated by arrow 146 .
  • Timing parameter 14 defines a set up period within which the CPU must drive the data on the data bus, while timing parameter t 7 is a hold time defining a time period for data to be held after the LCD controller is ready to receive the data, i.e., the WAIT# is driven high.
  • timing parameters t 4 and t 7 are similar to timing parameter t 7 and t 12 , respectively, of FIG. 4 .
  • two flip flops in series are provided within the circuitry of the LCD controller for receiving the command signals, such as M/R# and the command signals of FIG.
  • the flip flops in series allow for double sampling of the command signals. That is, the command signals are processed through at least two flip flops connected in series to minimize a metastable condition.
  • FIG. 11 is a table representing the asynchronous bus interface timing parameters of FIG. 10 .
  • Timing parameters t 3 -t 5 and t 7 -t 9 have been discussed above with reference to FIG. 10 .
  • Timing parameter t 1 defines a setup time. Thus, parameter t 1 allows a time period for CS# to go low.
  • Timing parameter t 2 indicates a setup time for LCD BCLK to see CS# go low.
  • Parameter t 6 indicates a time period required to keep the current cycle active, i.e., CS# low, after the CPU deasserts the command signals.
  • the minimum time for parameter is zero nanoseconds (ns), however, one skilled in the art will appreciate that most CPUs do not deassert CS# until one or two clocks after the command signals are deasserted.
  • FIG. 12 is a schematic diagram of flip flop chain redundancy circuitry configured to minimize the occurrence of any metastable condition in accordance with one embodiment of the invention.
  • Flip flop 150 is arranged in series with flip flop 152 .
  • Clock 154 is the display controller clock, as flip flops 150 and 152 are contained within the circuitry of the bus interface of the display controller.
  • Signal 156 is the D input of flip flop 150 .
  • the data present at the D input of flip flop 150 is transferred to the Q output of flip flop 150 .
  • the Q output of flip flop 150 is then provided as the D input of flip flop 154 .
  • the D input of flip flop 154 is transferred to the Q output of flip flop 152 where it is output as output signal 158 .
  • a metastable condition may occur.
  • the rising edge of the bus clock and the display controller clock may occur at about the same instant, resulting in two infinite slopes causing a metastable condition.
  • the circuitry within flip flop 152 is configured to output a 0 or a 1 depending on the level at which the output from flip flop 150 floats. It should be appreciated that while two flip flops are shown in FIG. 12 , any number of flip flops arranged in series could be used.
  • the flip flop chain redundancy circuitry is configured to process the command signals and not the read or write data.
  • FIG. 13 is a flowchart diagram illustrating the method operations for communicating between a display controller operating at a first clock speed and a microprocessor operating at a second clock speed in accordance with one embodiment of the invention.
  • the flowchart initiates with method operation 170 where a request from a microprocessor is received.
  • the request is achieved by the microprocessor driving CS# low and thus starts the bus cycle for the microprocessor.
  • CS# being driven low indicates that the display controller is being selected.
  • the request is generated at the clock speed of the microprocessor.
  • the method then advances to operation 172 where the request is sampled according to a display controller clock.
  • a display controller such as a LCD controller, samples the request as discussed above with reference to FIG. 10 .
  • the microprocessor clock and the display controller clock can operate at any difference in clock speed.
  • the CPU and the microprocessor are part of an embedded system for a handheld computing device.
  • the method of FIG. 13 then proceeds to operation 174 where the request from the microprocessor is acknowledged to initiate an internal cycle of the display controller.
  • the initiation of the internal cycle of the display controller is illustrated by the region of the timing diagram of FIG. 10 where WAIT# is driven low.
  • the display controller sends the acknowledgement, therefore the acknowledgement is generated according to the clock of the display controller.
  • the bus interface can be run at any clock speed independent of the CPU's bus speed.
  • the method proceeds to operation 176 where data associated with a read or a write operation is provided.
  • the data is provided to the microprocessor for a read operation, while the data is provided to the display controller for a write operation.
  • the parameters of the read or write operation are discussed above with respect to FIG. 10 .
  • the method then moves to operation 178 where the display controller issues a request to end the internal cycle. In one embodiment, the request is performed by driving WAIT# high as illustrated with respect to FIG. 10 . Of course, the request is issued at the clock speed of the display controller.
  • the method then advances to operation 180 where an acknowledgment from the microprocessor is received by the display controller.
  • the microprocessor samples the request from operation 180 at the clock speed of the microprocessor, and in response drives CS# high (the acknowledgement) as illustrated with reference to FIG. 10 .
  • the display controller then samples CS# high (the acknowledgement) at the clock speed of the display controller.
  • the microprocessor ends the microprocessor bus cycle.
  • the invention may employ various computer-implemented operations involving data stored in computer systems. These operations are those requiring physical manipulation of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated. Further, the manipulations performed are often referred to in terms, such as producing, identifying, determining, or comparing.
  • the invention also relates to a device or an apparatus for performing these operations.
  • the apparatus may be specially constructed for the required purposes, or it may be a general purpose computer selectively activated or configured by a computer program stored in the computer.
  • various general purpose machines may be used with computer programs written in accordance with the teachings herein, or it may be more convenient to construct a more specialized apparatus to perform the required operations.

Abstract

A display controller having an asynchronous bus interface is provided. In one embodiment a display controller configured to communicate with a microprocessor is provided. The display controller operates at a first clock speed and microprocessor operates at a second clock speed. The display controller includes a memory core for storing image data to be displayed and a register set containing configuration data enabling presentation of the image data. An asynchronous bus interface enabling communication over a bus between the memory core of the display controller and the microprocessor processor is also included. The asynchronous bus interface is configured to be independent of the second clock speed of the microprocessor and a difference between the first clock speed and the second clock speed. Flip flop chain redundancy circuitry is included in the bus interface. Also, included is a system having a display controller with an asynchronous bus interface and methods for performing read and write operations between a microprocessor and a display controller.

Description

BACKGROUND OF THE INVENTION
1. Field of the Invention
This invention relates generally to computer systems and more particularly to a generic asynchronous bus interface capable of communicating with a variety of microprocessors.
2. Description of the Related Art
Portable consumer electronic devices are pervasive in all aspects of society today. Examples of such devices include personal digital assistants (PDA), mobile phones, pagers, web tablets, etc. These portable devices contain embedded systems that include central processing units (CPU). Due to the narrow range of functions provided by these handheld devices, the CPUs associated with these embedded systems are not required to have as powerful computing power as desktop or laptop CPUs. A number of vendors provide CPUs designed specifically for a type of handheld device. As is well known, the CPUs also include native buses that support the CPUs. Additionally, the devices include a display screen where images are presented under the control of a display controller, such as a liquid crystal display (LCD) controller. The display controller, typically manufactured by a vendor different from the CPU vendor, is customized to include a bus interface that allows the display controller to communicate with specific CPUs through a system bus. Because of the wide variety of the CPUs, the display controllers tend to be customized to interface with a narrow range of CPUs.
Additionally, the various CPUs and the display controllers available on the market can run at different clock speeds. Thus, the data bus through which the CPU and the LCD controller communicate, may be asynchronous to accommodate the different speeds at which the CPU and LCD controller operate. That is, since events do not happen at predetermined times, as would be the case if the CPU and the LCD controller were using the same clocks, the bus interface accommodates interlocked communication, also referred to as handshaking. Moreover, for power save purposes the display controllers targeted for specific CPUs switch to an external crystal to provide the clock. However, the external crystal may be running at a fraction of the frequency of the nominal bus frequency. Thus, certain limitations on the difference between clock speeds have to be put in place in order for the CPU and the display controller to communicate. Furthermore, it should be appreciated that the term “asynchronous” is applied loosely to bus interfaces that include a WAIT signal to allow for a variable length access. If the bas interface allows variable length access through a WAIT signal and the bus master and the bus slave use the same bus clock, i.e., define all bus events relative to a bus clock signal, then the bus interface is not truly asynchronous since the timing is slaved to a single CPU oscillator. Different clocks are used to drive and sample signals under a truly asynchronous bus interface.
FIG. 1 is a schematic diagram of an embedded system including a CPU in communication with a display controller, such as a LCD controller. CPU 100 communicates through bus 102 to bus interface 104 of LCD controller 106. CPU 100 is configured to run at speed Y while LCD controller 106 is configured to run at speed X. The different clock speeds of CPU 100 and LCD controller 106 cause issues when there is a large difference between the two clock speeds. The situation where LCD controller 106 runs at a clock speed of 1 Kilohertz (KHz) and CPU 100 runs at a clock speed of 100 Megahertz (MHz) is considered for exemplary purposes. Under these conditions, CPU 100 asserts a signal over a clock period that is a 100 MHz clock period. LCD controller 106, running at 1 KHz, is unlikely to be able to sample the asserted signal during the allotted clock period because of the discrepancy in clock speeds. Thus, LCD controller 106 will be unable to communicate with CPU 100.
One approach to address the issues caused by the different operating speeds is to set a limit for a difference between the speeds of the LCD controller and the CPU. That is, the LCD controller is targeted for CPUs having particular clock speeds based upon the clock speed difference between the LCD controller and the CPU. In addition, the LCD controller will double or triple sample a signal to guarantee within a certain time period that the signal will be sampled in order to compensate for the speed differences. That is, repeating the sampling of the signal when the speeds of the controllers are within a certain range will guarantee that the signal is sampled within the allotted clock period. One limitation of this approach is that the CPU and the LCD controller must be within a certain speed range of each other or this approach to operating in an asynchronous mode will not work.
Furthermore, because the CPU asserts signals on a different clock from the clock used by the LCD controller to receive the signals, an asynchronous bus interface can encounter a metastable condition. A flip flop or latch circuit within the bus interface of the LCD controller that receives a signal generated from the CPU has a setup and a hold time associated with the D input to the flip flop. If the setup or hold time of the flip flop is violated, then the output (Q) could become metastable. That is, the flip flop becomes “confused” to which state to go into when the rising edge of the clock for the LCD controller occurs at the same time that the CPU asserts the signal, thereby providing two infinite slopes on a signal. Since the clock for the flip flop is the LCD clock, which is separate from the clock used by the CPU to generate the signals, it can not be guaranteed that input transitions do not occur during setup intervals. The metastable condition is disastrous for a chip, since the bus cycle will fail. Thus, the occurrence of metastable conditions must be minimized in order for an asynchronous bus interface to reliably operate.
As a result, there is a need to solve the problems of the prior art to provide a display controller with an asynchronous generic bus interface capable of communicating with a variety of microprocessors irrespective of the difference in operating speeds between the display controller and the microprocessor. Additionally the circuitry of the display controller should be configured to minimize the occurrence of a metastable condition.
SUMMARY OF THE INVENTION
Broadly speaking, the present invention fills these needs by providing a generic bus interface of a display controller configured to support asynchronous data exchange that is independent of the difference in clock speed between the LCD controller and a CPU in communication with the LCD controller. Additionally, the asynchronous bus interface includes flip flop chain redundancy circuitry for minimizing the occurrence of a metastable condition. It should be appreciated that the present invention can be implemented in numerous ways, including as a process, a system, or a device. Several inventive embodiments of the present invention are described below.
In one embodiment a display controller configured to communicate with a microprocessor is provided. The display controller operates at a first clock speed and the microprocessor operates at a second clock speed. The display controller includes a memory core for storing image data to be displayed and a register set containing configuration data enabling presentation of the image data. An asynchronous bus interface enabling communication over a bus between the memory core of the display controller and the microprocessor is also included. The asynchronous bus interface is configured to be independent of the second clock speed of the microprocessor and a difference between the first clock speed and the second clock speed. Flip flop chain redundancy circuitry is included in the bus interface.
In another embodiment, a system that allows for the asynchronous exchange of data is provided. The system includes a central processing unit (CPU) and a data bus. A display controller in communication with the CPU through the data bus is also included. The display controller has a bus interface to enable communication over the bus with the CPU. The bus interface is configured to be independent of both a clock of the CPU and a difference between a clock speed of the CPU and a clock speed of the display controller. The asynchronous bus interface also includes flip flop chain redundancy circuitry.
In yet another embodiment, a method for communicating between a display controller operating at a first clock speed and a microprocessor operating at a second clock speed is provided. The method initiates with a request from a microprocessor being received by a display controller. The request from the microprocessor is generated according to a microprocessor clock. Then, the request is sampled according to a display controller clock. Next, the request from the microprocessor is acknowledged by the display controller to initiate an internal cycle of the display controller. Then, data associated with a read operation or a write operation is provided. Next, a request from the display controller to end the internal cycle is issued to the microprocessor. The request from the display controller is generated according to the display controller clock. Then, an acknowledgement from the microprocessor is received by the display controller. The acknowledgement is generated according to the microprocessor clock.
In still yet another embodiment, a method for performing a read operation or a write operation between a microprocessor and a display controller over a data bus is provided. The method initiates with operating a microprocessor at a first clock speed. Then, a display controller is operated at a second clock speed. Next, a handshaking routine is executed. The handshaking routine includes a request and an acknowledgement between the microprocessor and the display controller. The request is associated with a different clock speed than the acknowledgement. Then, a read operation or a write operation is initiated over the data bus upon completion of the handshaking routine, wherein performance of the read or the write operation is independent of a difference between the first clock speed and the second clock speed.
Other aspects and advantages of the invention will become apparent from the following detailed description, taken in conjunction with the accompanying drawings, illustrating by way of example the principles of the invention.
BRIEF DESCRIPTION OF THE DRAWINGS
The present invention will be readily understood by the following detailed description in conjunction with the accompanying drawings, and like reference numerals designate like structural elements.
FIG. 1 is a schematic diagram of an embedded system including a CPU in communication with a display controller, wherein the CPU and the display controller operate at different clock speeds.
FIG. 2 is a high level schematic diagram of a LCD controller with a generic bus interface in communication with a CPU in accordance with one embodiment of the invention.
FIG. 3 is a table illustrating a set of command signals that determine whether the current bus cycle is a read or a write cycle and the location of valid data on the bus in accordance with one embodiment of the invention.
FIG. 4 is a timing diagram for a generic bus interface associated with the command signals that determine whether the current bus cycle is a read or a write cycle and to determine a location of valid data on the bus in accordance with one embodiment of the invention.
FIG. 5 is a table listing the bus interface timing parameters associated with FIG. 4.
FIG. 6 is a table illustrating the command signal encoding that utilizes two sets of control signals to determine whether the current bus cycle is a read operation or a write operation and the location of valid data on the bus in accordance with one embodiment of the invention.
FIG. 7 is a timing diagram for a generic bus interface using separate control signals and enable signals, as discussed with reference to FIG. 6, to define a bus cycle in accordance with one embodiment of the invention.
FIG. 8 is a table representing the bus interface timing parameters associated with FIG. 7.
FIG. 9 is a table illustrating the command signal encoding for an asynchronous generic bus interface that determines whether the current bus cycle is a read or a write cycle and the location of valid data on the bus in accordance with one embodiment of the invention.
FIG. 10 is a timing diagram of an asynchronous generic bus interface of a display controller configured to support any difference in clock speed between the display controller and a CPU in communication with the display controller in accordance with one embodiment of the invention.
FIG. 11 is a table representing the asynchronous bus interface timing parameters of FIG. 10.
FIG. 12 is a schematic diagram of flip flop chain redundancy circuitry configured to minimize the occurrence of any metastable condition in accordance with one embodiment of the invention.
FIG. 13 is a flowchart diagram illustrating the method operations for communicating between a display controller operating at a first clock speed and a microprocessor operating at a second clock speed in accordance with one embodiment of the invention.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
An invention is described for an apparatus and method for providing a generic bus interface for a controller that is adapted to communicate with a variety of central processing units (CPU). It should be appreciated that the various signals processed through the bus interface are referred to herein as an abbreviation for the signal followed by the “#” symbol. Of course, other common designations in the art for signals include an abbreviation with an over line or an abbreviation followed by the letter “X”. Additionally, logic high values may be referred to as having a binary value of “1” while a logic low value may be referred to as having a binary value of “0.” It will be apparent, to one skilled in the art, in view of the following description, that the present invention may be practiced without some or all of these specific details. In other instances, well known process operations have not been described in detail in order not to unnecessarily obscure the present invention.
The embodiments of the present invention provide a generic bus interface for a display controller in communication with a CPU. In one embodiment, the configuration of the command signals provided to the generic bus interface enables communication with a variety of microprocessors and their associated native buses. As will be explained in more detail below, the command signals are configured to define a read or write operation to be performed as well as defining a location of valid data on the native bus. In another embodiment, the generic bus interface accommodates an asynchronous exchange of data. Here, the display controller and the CPU are controlled by different clocks having different clock speeds. Through the handshaking defined between the CPU and the display controller, previous limitations required due to the inability to accommodate all differences between the clock speeds, no longer apply.
The generic bus interface described herein, is capable of communicating with a variety of CPUs, particularly the CPUs in the embedded market, which include processors from HITACHI, MOTOROLA, INTEL, etc. As is well known, embedded systems define microprocessor based electronic systems that perform an application-specific set of functions. Embedded systems tend to be dedicated to sensing and responding to input. One skilled in the art will appreciate that the embedded systems exist in many industries, including automotive, communications, consumer and industrial. More specifically, embedded systems are used with compact portable handheld devices, such as personal digital assistants (PDA), mobile phones, pagers, web tablets, etc. These portable handheld devices do not require the same amount of computing power as a desktop or laptop computer because of their specific nature. Additionally, these devices consume less power than the desktop or laptop systems because of battery power limitations. Accordingly, devices incorporating embedded systems do not provide the same degree of functionality as desktop computer systems. While the embodiments described below are directed toward CPUs for handheld electronic devices, these embodiments are exemplary and not meant to be limiting. It will be apparent to one skilled in the art that the generic bus interface can be configured to communicate with CPUs for desktop and portable personal computers in addition to handheld devices.
In one embodiment, the generic bus interface supports a data width of 32 bits addressable over 21 bits of address space. Of course, the bus interface can support a data width over any suitable number of bits of address space. The bus interface is configured to accommodate the signals that are necessary to attach to most CPU interfaces through the command signals explained in more detail below. Little and big endian modes are both supported by the generic bus interface. One skilled in the art will appreciate that little and big endian modes describe the order in which a sequence of bytes are stored in memory. As described in more detail below, the embodiments of the bus interface include a bus interface configured to operate in a synchronous mode and a bus interface configured to operate in an asynchronous mode. In the synchronous mode, the bus cycle can be lengthened through the use of an external WAIT# control signal which can be set to active high or active low. The asynchronous generic bus interface is configured to be independent of the difference between the clock speed of the display controller and the clock speed of the CPU in communication with the display controller. In addition, the asynchronous bus interface includes circuitry for minimizing the occurrence of a metastable condition.
FIG. 2 is a high level schematic diagram of a display controller, such as a liquid crystal display (LCD) controller with a generic bus interface in communication with a CPU in accordance with one embodiment of the invention. CPU 108 communication with LCD controller 116 through bus 112. CPU can be any number of suitable microprocessors. In one embodiment, CPU 108 is a microprocessor designed for an embedded system. One such embedded system is the HITACHI SH3 microprocessor, which includes a native bus supporting the SH3 microprocessor. It should be appreciated that the HITACHI SH3 microprocessor is mentioned for illustrative purposes only and not meant to be limiting on the invention, as LCD controller 116 includes generic bus interface 114 that is configured to communicate with a variety of suitable CPUs of embedded systems and non-embedded systems. As used herein, LCD controller 116 can be any suitable display controller that may or may not be associated with an embedded system.
Still referring to FIG. 2, LCD controller 116 includes memory core region 118 and register region 120. Memory core region 118 contains the data for an image to be presented on an LCD panel. Register region 120 (also referred to as a register set) contains data to configure LCD controller 116, which includes configuration data for a type of display panel used to display the image, such as resolution, screen size, panel type, etc. That is, the registers of the register set are programmed to allow LCD controller 116 to interface with a display screen for presenting the image data in memory. CPU 108 contains registers that map LCD controller 116 into CPU memory 110. Thus, when CPU memory 110 is addressed, CPU 108 asserts a chip select signal (CS#). In one embodiment, the CS# signal is used to notify LCD controller 116 that the LCD controller is being addressed as will be explained in more detail below.
FIG. 3 is a table illustrating a set of command signals that determine whether the current bus cycle is a read or a write cycle and the location of valid data on the bus in accordance with one embodiment of the invention. As will explained below, the same set of signals which specify the read or write cycle simultaneously specify which bytes of a 32 bit data bus contain valid data. Thus, a certain bit width of the 32 bit data bus, i.e., 8 bit, 16 bit, or 32 bit, is specified by the same set of signals specifying whether the bus cycle is a read operation or a write operation. It should be appreciated that each of the command signals define enable data for either the read operation or the write operation.
Still referring to FIG. 3, a bus cycle is initiated when a chip select signal (CS#) is asserted low. The assertion of one or more read enable signals (RDn#) after the assertion of the CS# specifies a read cycle. Alternatively, the assertion of one or more write enable signals (WEn#) after the assertion of the CS# sets a write cycle. In addition, the configuration of the RD# and the WE# specify which bytes of a 32 bit data bus contain valid data. That is, the read or write cycle can be further specified as a 8-bit, 16-bit or 32-bit read or write cycle. It should be appreciated that by accommodating 8-bit, 16-bit and 32-bit reads and writes, the bus interface of a display controller, such as a liquid crystal display (LCD) controller, is not prevented from communicating with a CPU requiring an interface accommodating 8 bit or 16 bit reads. Therefore, the bus interface of the display controller can interface with a wide variety of microprocessors.
Continuing with FIG. 3, it can be seen that the CS# is active low. For a read cycle, each of the WE# (WE#0-WE#3) are driven high to indicate a read cycle, i.e., where the LCD controller supplies data to a CPU. Alternatively, for a write cycle, each of the RD# (RD#0-RD#3) are driven high to indicate a write cycle, i.e., where a CPU directs data to the LCD controller. As the WE# are all high during a read, the configuration of the RD# signals indicate the location of valid data on the data bus. For example, the command signal encoding for a high even 8 bit read, as defined in row 121, will be explained in further detail to specify the configuration of the command signals. Here, CS# is asserted low indicating that the LCD controller is being selected by the CPU. WE#0-WE# 3 are each asserted high to indicate that a read cycle will occur. RD# 3, RD# 1 and RD# 0 are asserted high while RD#2 is asserted low. This combination indicates that valid information is contained over bits 15-23 of the data bus. Thus, the command signals of row 121 define a high even 8 bit read bus cycle. It should be appreciated that one set of command signals define both whether a read operation or a write operation is to be performed and a location of valid data on the data bus through which the display controller and the CPU communicate. That is, one command signal is used for each 8 bit segment for either a read or write operation.
Additionally, each of the command signals of FIG. 3 define enable data for a read operation or a write operation. Thus, WE#0-WE# 3 define enable data for a write operation while RD#0-RD# 3 define enable data for a read operation. Consequently, the bus interface is capable of performing on command modifiable reads and writes to accommodate a broad variety of CPUs. That is, the bus interface is not limited to a 32 bit read operation, therefore, the bus interface is capable of communicating with a CPU interface requiring an 8 bit, 16 bit or 32 bit read. It should be appreciated that the set of command signals may be defined with the logical high and low values, illustrated in FIG. 3, reversed.
FIG. 4 is a timing diagram for a generic bus interface associated with the command signals that determine whether the current bus cycle is a read or a write cycle and determine a location of valid data on the bus in accordance with one embodiment of the invention. Bus clock period (TCLK) is indicative of the system speed for the bus clock (CLK). For exemplary purposes, the LCD controller includes 21 bits of address space, as represented by A[20:0], which determines the amount of memory within the LCD controller. It will be apparent to one skilled in the art that the amount of address space of the LCD controller may vary. In one embodiment, the LCD controller has about 2 Megabytes (MB) of memory. That is, 21 bits of address space maps out to about 2 MB of memory. The memory inside the LCD controller is addressed through address lines A[20:0]. One skilled in the art will appreciate that the LCD controller can contain any amount of memory suitable for the system containing the LCD controller and is not limited to 2 MB of memory. Memory/Register signal (M/R#) is a signal that selects between memory (M) and registers (R) of the LCD controller. In one embodiment, an additional 2 MB of memory is provided through the M/R# pin. As mentioned above, the memory core contains image data to be presented while the registers include configuration data, such as the configuration data for the display screen where the data is to be displayed. It will be apparent to one skilled in the art that the bus interface described in reference to FIG. 4 is a synchronous bus interface as the CPU and the display controller share a common clock.
Referring to FIG. 2, CPU 108 includes registers that map LCD controller 116 into member 110 of the CPU. Thus, when CPU memory 110 is addressed, the CPU 108 asserts a CS# low which tells LCD controller 116 that the LCD controller is being selected. Of course, the CS# signal can be asserted low or high to indicate that LCD controller 116 is being selected. Returning to FIG. 4, the signals are sampled on the rising edge of the clock, however, it will be apparent to one skilled in the art that the signals can be sampled on the falling edge of the clock. When sampling signals on the rising edge of the clock, parameter t2 indicates a set up time for the bus clock to see the CS# go low. The configuration of command signals, WE0#, WE1#, WE2#, WE3#, RD0#, RD1#, RD2# and RD3#, indicates a type of access, i.e., read operation or a write operation. For example, with reference to FIG. 3, a command signal where RD3# is 0 (low) and the remaining read and write signals are 1 (high) indicates that the type of access is a high odd 8-bit read. Accordingly, data bits 31 through 24 of the bus are selected as these bits have valid data on them as defined by the command signals. Thus, the CPU samples bits 31-24 of the data bus during the read operation.
Parameter t1 of FIG. 4 represents a set up time for the LCD chip to see the CS# go low and to determine if a read operation or write operation is to occur through the configuration of the WE# or the RD#. It will be apparent to one skilled in the art that the set up time ensures that CS# will be sampled in the desired state. Set up time t3 allows a window for the read and write command signals to be asserted before the display controller samples the read and write command signals. For exemplary purposes, command signals configured to define a low even 8 bit read operation, as specified in row 123 of FIG. 3, will be referenced to further explain the timing diagram of FIG. 4 with reference to a read operation. Furthermore, it will be apparent to one skilled in the art that the set up and hold times referred to herein accommodates a propagation delay from when a high or low signal is sampled to when a next action occurs based on the high or low signal.
Still referring to FIG. 4, when CS# goes low, a wait signal (WAIT#) is driven low within timing parameter t4, as indicated by arrow 126. WAIT# is output from the display controller, such as a LCD controller, to the CPU and requests that the CPU wait until the LCD controller is ready to supply data. One skilled in the art will appreciate that for a read operation, the LCD controller is supplying data to the CPU. While WAIT# is low, the CPU extends the cycle until the LCD controller is ready to supply the data. Thus, the CPU will continue sampling the WAIT# and extending the cycle until WAIT# goes high. WAIT# goes high when valid data has been put onto the bus as indicated by arrow 128. On the rising edge of the bus clock, the CPU will sample the WAIT# and see that WAIT# has gone high, therefore, the CPU can read the data contained over bits 0-7 for the low even 8-bit read specified by the command signals. The valid data is supplied to the CPU during timing parameter t13 of the read cycle. As mentioned above, the CPU or the LCD controller can be configured to sample on the falling edge of the clock cycle rather than the rising edge.
Continuing with FIG. 4, timing parameter t5 of the read cycle defines a time period within which the LCD controller will drive the data bus. Dark envelope 122 indicates that the LCD controller is driving the data bus, thereby preventing another controller from taking over the bus. The dark envelopes of FIG. 4 represent that valid data is not available while the light envelopes represent that valid data is available. Thus, valid read data becomes available at some point within light envelope 124. Timing parameter t16 provides a set up time for the WAIT# to go high in order for the CPU to read the data. Therefore, during timing parameter t13 data is transferred, i.e., the CPU latches the data, as the rising edge of the bus clock occurs with the WAIT# high. It should be appreciated that within timing parameter t11, WAIT# is driven to a high impedance state where control of the bus is relinquished by the LCD controller for use by other devices.
For a write operation, with reference to FIG. 4, the CPU is directing data over the bus to the LCD controller. The CS# is driven low as mentioned above and is sampled by the LCD controller. Set up time t3 allows a window for the read and write command signals to be asserted before the LCD controller samples the read and write command signals. The configuration of the read and write command signals will indicate the type of access. For exemplary purposes, the 32-bit write of FIG. 3 will be used to describe an exemplary write operation. That is, command signals WE0#, WE1#, WE2#, and WE3# are all low (0 values) while RD0#, RD1#, RD2# and RD3# are all high (1 values). Therefore, all 32 bits on the data bus are valid. At the same time that the read and write command signals are sampled, the address will be sampled to determine where the data is being addressed in the memory core of the LCD. For a write operation, the CPU drives the read enable signals high. As mentioned above, for the 32-bit write all four write enable signals (WE0#-WE3#) are driven low indicating that all 32 bits on the data bus are valid. The WAIT# is driven low to extend the bus cycle until valid data is available. Timing parameter t6 defines a set up period within which the CPU must drive the data on the data bus. WAIT# is held low until the LCD controller is ready to receive data at which point WAIT# is driven high. When WAIT# is driven high, the data is sampled and latched in by the LCD controller.
Still referring to FIG. 4, timing parameter t12 is a hold time. As mentioned above, there is some propagation delay between the sampling of a signal and the action resulting from the sampling. Thus, t12 is a hold time defining a time period for data to be held after the LCD controller is ready to receive the data, i.e., the WAIT#. Driving WAIT# high signifies that data has been written. Similar to the read operation, once WAIT# has been deasserted (driven high), the CPU ends the cycle by deasserting the read or write strobe as indicated by line 130. Additionally, the CPU deasserts the CS#, by driving CS# high as indicated by line 132. Timing parameter t9 represents the time period between the WAIT# being deasserted and the read cycle or write cycle being deasserted.
FIG. 5 is a table listing the timing parameters associated with FIG. 4. Timing parameters t1-6, t9, t11-13 and t16 are discussed above with respect to FIG. 4. Timing parameters t7 represents a time period required to keep the current cycle active, i.e., CS# low, after the CPU deasserts the command signals. The minimum time for parameter t7 is zero nano-seconds (ns), however, one skilled in the art will appreciate that most CPUs do not deassert CS# until one or two clocks after the command signals are deasserted. Thus, the LCD controller is capable of handling concurrent deassertion of the command signals and CS# from the CPU, as well as deassertion of CS# after the command signals are deasserted. Timing parameters t8 represents a time period for which the CS# is deasserted (held high). At the end of time period t8, the CS# signal is reasserted, thereby signifying to the LCD controller that it has been selected for another read or write operation. Timing parameter t10 indicates a time period from which the command signals are deasserted to a point where the command signals are reasserted for another read or write operation. Time period t14 represents the length of a cycle for a read or write operation. Timing parameter t15 signifies a time period between the rising edge of the bus clock and the WAIT# being driven high. It should be appreciated that the timing parameters are exemplary timing periods and that the actual time period associated with each timing parameter can be any suitable time period allowing each operation to be accomplished.
FIG. 6 is a table illustrating the command signal encoding that utilizes two sets of control signals to determine whether the current bus cycle is a read operation or a write operation and the location of valid data on the bus in accordance with one embodiment of the invention. The command signals of FIG. 6 are all active low. A chip select signal (CS#) is driven low to indicate that the LCD controller has been selected. The assertion of the read control signal (MEMR#) indicates a read cycle while the assertion of the write control signal (MEMW#) indicates a write cycle. It should be appreciated that the MEMR# and MEMW# have no effect on the determination of which parts of the data bus contain valid data. That is, the MEMR# and MEMW# do not include enable data corresponding to the data associated with the read operation or the write operation. Four byte enable signals (BE#) are used to specify which bytes of a 32 bit data bus contains valid data. Thus, an 8 bit, 16 bit or 32 BIT read bus cycle or write bus cycle can be specified as indicated by the various combinations of BE0#-BE3#.
FIG. 7 is a timing diagram for a generic bus interface using separate control signals and enable signals, as discussed with reference to FIG. 6, to define a bus cycle in accordance with one embodiment of the invention. The bus interface supports a data width of 32 bits addressable over 21 bits of address space. As mentioned previously, the bus interface is not limited to 21 bits of address space as 21 bits of address space is shown here for exemplary purposes only. One skilled in the art will appreciate that the bus interfaces described herein can have up to 32 bits of address space. Little and big endian modes are both supported by the bus interface. A bus cycle starts with the chip select signal (CS#) asserted low followed by the assertion of the MEMR# or the MEMW#. Once the CS# signal is recognized, an output signal (IOCHRDY#) is asserted to acknowledge the CS#. One skilled in the art will appreciate that that the IOCHRDY# performs the same function as the WAIT# with respect to FIGS. 4 and 5.
Still referring to FIG. 7, the IOCHRDY# is asserted until valid data is ready to be driven onto the bus for a read cycle or when data has been successfully received for a write cycle. The bus cycle can be lengthened by the IOCHRDY#. The configuration of the byte select signals BE0#-BE3#, in conjunction with MEMR# and MEMW#, with reference to FIG. 6, determines if the data bus bits are driven, i.e., a read operation, or sampled, i.e., a write operation. Once the CPU clock sees the IOCHRDY# deasserted, the CS# and the command signals (BE0#-BE3# and MEMR# or MEMW#) are deasserted to end the bus cycle. The address used for the bus cycle is sampled once after the start condition (CS# driven low) is recognized. Address bits A0 and A1 of the 21 bits of address space are not used in the bus interface in one embodiment since the byte enable signals determine the lower address bits. It will be apparent to one skilled in the art that the bus interface described with respect to FIGS. 6 and 7 is not capable of interfacing with as broad a variety of CPUs as the bus interface described with respect to FIGS. 3-5. The set of command signals associated with FIGS. 3-5 allows the bus interface to communicate with a broader range of CPUs. However, it should be appreciated that the command signals for both of the above referenced interfaces allows for on command modifiable reads. That is, for a 32 bit bus an 8, 16, or 32 bit read can be performed.
FIG. 8 is a table representing the bus interface timing parameters associated with FIG. 7. The timing parameters of FIG. 8 correlate with the timing parameters of FIG. 5. Of course, the command signals associated with FIG. 5 and the command signals associated with FIG. 7 are different. That is, the set of command signals associated with FIG. 5 are configured to indicate a read operation or write operation and a location of valid data on the bus. Furthermore, each of the command signals of FIG. 5 are configured to concurrently define read or write enable data as discussed with respect to FIG. 3. On the other hand, the command signals associated with FIG. 8 include separate sets of signals to define if the bus cycle is a read or write operation and the location of valid data on the bus.
FIG. 9 is a table illustrating the command signal encoding for an asynchronous generic bus interface that determines whether the current bus cycle is a read or a write cycle and the location of valid data on the bus in accordance with one embodiment of the invention. The command signals of FIG. 9 are all active low. A chip select signal (CS#) is driven low to indicate that the LCD controller has been selected. A read/write control signal (R/W#) is used to indicate whether a read cycle or a write cycle is to be performed. Driving the RW# signal high indicates a read cycle will be performed, while driving the RW# low indicates a write cycle will be performed. It should be appreciated that the R/W# is not related to the determination of which parts of the data bus contain valid data. That is, the R/W# does not include enable data corresponding to the data associated with the read operation or the write operation. Four byte select signals (ByteSeln#) are used to specify which bytes of a 32 bit data bus contains valid data. Thus, an 8 bit, 16 bit or 32 bit read bus cycle or write bus cycle can be specified as indicated by the various combinations of ByteSel0#-ByteSel3#.
FIG. 10 is a timing diagram of an asynchronous generic bus interface of a display controller configured to support any difference in clock speed between the display controller and a CPU in communication with the display controller in accordance with one embodiment of the invention. A bus cycle initiates with CS#, also referred to as a request, asserted low by the bus master, i.e., CPU. After this start condition is recognized, the bus slave, i.e., LCD controller, acknowledges the request by asserting the WAIT#, referred to as acknowledge. The WAIT# is asserted until valid data is ready to be driven onto the bus for a read cycle or when data has been successfully received for a write cycle. Of course, the R/W# determines if the access is a read operation or a write operation and the configuration of ByteSel0#-ByteSel3# define which data bus bits are driven or sampled. After the bus master sees WAIT# deasserted, the bus master will deassert the CS# and the command signals. The address used for the bus cycle is sampled once after the start condition is recognized. It should be appreciated that address bits A0 and A1 are not used in the bus interface in one embodiment since the byte select signals determine the lower address bits.
Still referring to FIG. 10, an exemplary read operation will be explained. Bus clock (BCLK) is the clock controlling the bus master, i.e., CPU, while LCD BCLK is the clock controlling the bus slave, i.e., display controller, such as a LCD controller. As an exemplary illustration, the LCD controller includes 21 bits of address space, as represented by A[20:0], which determines the amount of memory within the LCD controller. As mentioned above, the LCD controller is not limited to 21 bits of address space as the amount of address space can vary. In one embodiment, the LCD controller has about 2 Megabytes (MB) of memory. That is, 21 bits of address space maps out to about 2 MB of memory. The memory inside the LCD controller is addressed through address lines A[20:0]. One skilled in the art will appreciate that the LCD controller can contain any amount of memory suitable for the system containing the LCD controller and is not limited to 2 MB of memory. Memory/Register signal (M/R#) is a signal that selects between memory (M) and registers (R) of the LCD controller. In one embodiment, an additional 2 MB of memory is provided through the M/R# pin. As mentioned above, the memory core contains image data to be presented while the registers include configuration data. It should be appreciated that the asynchronous bus interface is truly asynchronous as the timing of the signals to the bus interface from the LCD controller are controlled by the LCD clock. That is, the signals to the bus interface from the LCD controller are independent of the CPU clock. As a result, the signals from the LCD controller are not slaved to a single CPU clock or oscillator, thus defining a truly asynchronous bus interface.
The CPU requests the cycle from the LCD controller by asserting CS# low. The LCD controller responds to the request with an acknowledge signal, i.e., WAIT#. It should be appreciated that the request and acknowledge signals are the two handshaking signals used to initiate a bus cycle. Furthermore, while the CPU issues the request according to the CPU clock, the LCD controller samples the request at the clock speed of the LCD controller. That is, the LCD controller is sampling the request on the rising edge of the LCD BCLK, which is independent of the BCLK for the CPU. Of course, the LCD controller can sample on the falling edge of the LCD BCLK also. Timing parameter t3 represents the time period between the LCD controller sampling CS# low and asserting WAIT# to acknowledge to the CPU that a sample is being requested. The acknowledge signal starts the bus cycle for the LCD controller. It will be apparent to one skilled in the art that t3 is variable depending on the speeds of the CPU and the LCD controller. The CPU then responds with a R/W# indicating a read or a write operation and ByteSel0#-ByteSel3# indicating the location of valid data on the data bus.
For a read cycle, with reference to FIG. 10, timing parameter t5 represents the time period within which the LCD controller will drive the data bus. Dark envelope 140 indicates that the LCD controller is driving the data bus, thereby preventing another controller from taking over the bus. The dark envelopes of FIG. 10 represent that valid data is not available while the light envelopes represent that valid data is available. Thus, valid read data becomes available at some point within light envelope 142. Timing parameters t8 and t9 represent the set up time and hold time, respectively, similar to timing parameters t16 and t13 of FIG. 4. The end of the internal cycle for the LCD controller occurs when the WAIT# is deasserted, i.e., WAIT# goes high, which is performed by the LCD controller according to the LCD BCLK. Thereafter, the CPU will see the WAIT# go high when the CPU samples the WAIT# on the rising edge of the BCLK and will acknowledge back to the LCD controller by deasserting CS#. Thus, the bus cycle is completed from the CPU side. Here, a similar handshaking procedure occurs to end the cycle as the handshaking procedure that initiates the cycle, with the exception that the LCD controller issues a request by asserting WAIT# high and the CPU acknowledges edges the request by asserting CS# high. It should be appreciated that timing parameter t9 defines a hold time after the CS# has gone high in order to guarantee that data is available for the CPU to sample that data. Arrow 144 indicates the WAIT# being driven high by the LCD controller and the high WAIT# being recognized by the CPU which in turn drives the CS# high. It should be appreciated that the WAIT# is driven according to the clock of the LCD controller and is not synchronous to the CPU clock, thereby allowing the bus interface to run at any clock speed, i.e., independent of the CPU's clock speed. Once the LCD controller sees the CS# go high the LCD controller releases the bus by driving WAIT# to a high impedance state as indicated by arrow 146.
Still referring to FIG. 10, a write operation follows a similar handshaking method as the read operation. Timing parameter 14 defines a set up period within which the CPU must drive the data on the data bus, while timing parameter t7 is a hold time defining a time period for data to be held after the LCD controller is ready to receive the data, i.e., the WAIT# is driven high. It should be appreciated that timing parameters t4 and t7 are similar to timing parameter t7 and t12, respectively, of FIG. 4. In order to minimize the possibility of any metastability conditions occurring, two flip flops in series are provided within the circuitry of the LCD controller for receiving the command signals, such as M/R# and the command signals of FIG. 9, i.e., CS#, R/W#, and ByteSeln#. Thus, the flip flops in series allow for double sampling of the command signals. That is, the command signals are processed through at least two flip flops connected in series to minimize a metastable condition.
FIG. 11 is a table representing the asynchronous bus interface timing parameters of FIG. 10. Timing parameters t3-t5 and t7-t9 have been discussed above with reference to FIG. 10. Timing parameter t1 defines a setup time. Thus, parameter t1 allows a time period for CS# to go low. Timing parameter t2 indicates a setup time for LCD BCLK to see CS# go low. Parameter t6 indicates a time period required to keep the current cycle active, i.e., CS# low, after the CPU deasserts the command signals. The minimum time for parameter is zero nanoseconds (ns), however, one skilled in the art will appreciate that most CPUs do not deassert CS# until one or two clocks after the command signals are deasserted.
FIG. 12 is a schematic diagram of flip flop chain redundancy circuitry configured to minimize the occurrence of any metastable condition in accordance with one embodiment of the invention. Flip flop 150 is arranged in series with flip flop 152. Clock 154 is the display controller clock, as flip flops 150 and 152 are contained within the circuitry of the bus interface of the display controller. Signal 156 is the D input of flip flop 150. The data present at the D input of flip flop 150 is transferred to the Q output of flip flop 150. The Q output of flip flop 150 is then provided as the D input of flip flop 154. The D input of flip flop 154 is transferred to the Q output of flip flop 152 where it is output as output signal 158. Thus, should input signal 156 change during the set up time, a metastable condition may occur. For example, with respect to an asynchronous bus interface, the rising edge of the bus clock and the display controller clock may occur at about the same instant, resulting in two infinite slopes causing a metastable condition. One skilled in the art will appreciate that if a metastable condition occurs and the output from flip flop 150 floats, i.e. is not a 0 or 1, the circuitry within flip flop 152 is configured to output a 0 or a 1 depending on the level at which the output from flip flop 150 floats. It should be appreciated that while two flip flops are shown in FIG. 12, any number of flip flops arranged in series could be used. In one embodiment, the flip flop chain redundancy circuitry is configured to process the command signals and not the read or write data.
FIG. 13 is a flowchart diagram illustrating the method operations for communicating between a display controller operating at a first clock speed and a microprocessor operating at a second clock speed in accordance with one embodiment of the invention. The flowchart initiates with method operation 170 where a request from a microprocessor is received. The request is achieved by the microprocessor driving CS# low and thus starts the bus cycle for the microprocessor. As mentioned above CS# being driven low indicates that the display controller is being selected. As the request is issued by the microprocessor, the request is generated at the clock speed of the microprocessor. The method then advances to operation 172 where the request is sampled according to a display controller clock. Here, a display controller, such as a LCD controller, samples the request as discussed above with reference to FIG. 10. It should be noted that the microprocessor clock and the display controller clock can operate at any difference in clock speed. In one embodiment, the CPU and the microprocessor are part of an embedded system for a handheld computing device.
The method of FIG. 13 then proceeds to operation 174 where the request from the microprocessor is acknowledged to initiate an internal cycle of the display controller. For example, the initiation of the internal cycle of the display controller is illustrated by the region of the timing diagram of FIG. 10 where WAIT# is driven low. The display controller sends the acknowledgement, therefore the acknowledgement is generated according to the clock of the display controller. Thus, the bus interface can be run at any clock speed independent of the CPU's bus speed.
Still referring to FIG. 13, the method proceeds to operation 176 where data associated with a read or a write operation is provided. The data is provided to the microprocessor for a read operation, while the data is provided to the display controller for a write operation. The parameters of the read or write operation are discussed above with respect to FIG. 10. The method then moves to operation 178 where the display controller issues a request to end the internal cycle. In one embodiment, the request is performed by driving WAIT# high as illustrated with respect to FIG. 10. Of course, the request is issued at the clock speed of the display controller. The method then advances to operation 180 where an acknowledgment from the microprocessor is received by the display controller. The microprocessor samples the request from operation 180 at the clock speed of the microprocessor, and in response drives CS# high (the acknowledgement) as illustrated with reference to FIG. 10. The display controller then samples CS# high (the acknowledgement) at the clock speed of the display controller. As a result of the CS# driven high, the microprocessor ends the microprocessor bus cycle.
With the above embodiments in mind, it should be understood that the invention may employ various computer-implemented operations involving data stored in computer systems. These operations are those requiring physical manipulation of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated. Further, the manipulations performed are often referred to in terms, such as producing, identifying, determining, or comparing.
Any of the operations described herein that form part of the invention are useful machine operations. The invention also relates to a device or an apparatus for performing these operations. The apparatus may be specially constructed for the required purposes, or it may be a general purpose computer selectively activated or configured by a computer program stored in the computer. In particular, various general purpose machines may be used with computer programs written in accordance with the teachings herein, or it may be more convenient to construct a more specialized apparatus to perform the required operations.
The above described invention may be practiced with other computer system configurations including hand-held devices, microprocessor systems, microprocessor-based or programmable consumer electronics, minicomputers, main-frame computers and the like. Although the foregoing invention has been described in some detail for purposes of clarity of understanding, it will be apparent from the foregoing description that certain changes and modifications may be practiced within the scope of the appended claims. Accordingly, the present embodiments are to be considered as illustrative and not restrictive, and the invention is not to be limited to the details given herein, but may be modified within the scope and equivalents of the appended claims.

Claims (34)

1. A display controller configured to communicate with a microprocessor; the display controller operating at a first clock speed, the microprocessor operating at a second clock speed, the display controller comprising:
a memory core for storing image data to be displayed;
a register set containing configuration data enabling presentation of the image data; and
an asynchronous bus interface enabling communication over a bus between the memory core of the display controller and the microprocessor, the asynchronous bus interface being configured to be independent of both the second clock speed and a difference between the first clock speed and the second clock speed, the asynchronous bus interface including flip flop chain redundancy circuitry.
2. The display controller of claim 1, wherein the asynchronous bus interface is configured to communicate with a set of command signals, the command signals defined by four byte select signals defining which bytes of a 32 bit data bus contains valid data and a read/write control signal defining whether a read cycle or a write cycle is to be performed.
3. The display controller of claim 1, wherein the flip flop chain redundancy circuitry includes at least two flip flops in series.
4. The display controller of claim 3, wherein the at least two flip flops are configured to receive command signals.
5. The display controller of claim 4, wherein the command signals include a chip select signal, a read/write control signal, and a byte select signal.
6. The display controller of claim 1, wherein the display controller is configured to issue and sample handshaking signals, the handshaking signals configured to initiate and complete a bus cycle.
7. The display controller of claim 6, wherein the hand-shaking signals include a request signal and an acknowledge signal, the acknowledge signal generated in response to the request signal.
8. The display controller of claim 7, wherein the request signal is issued according to a first clock and the request signal is sampled according to a second clock.
9. The display controller of claim 7, wherein the request signal is a chip select signal issued to the display controller according to the second clock speed and the acknowledge signal is issued from the display controller according to the first clock speed.
10. A system, comprising:
a central processing unit (CPU);
a data bus;
a display controller in communication with the CPU through the data bus, the display controller including a bus interface to enable communication over the data bus with the CPU, the bus interface being configured to be independent of both a clock of the CPU and a difference between a clock speed of the CPU and a clock speed of the display controller, the asynchronous bus interface including flip flop chain redundancy circuitry.
11. The system of claim 10, wherein the system is an embedded system.
12. The system of claim 10, wherein the flip flop chain redundancy circuitry includes at least two flip flops in series, the at least two flip flops in series configured to receive command signals.
13. The system of claim 10, wherein the command signals include a chip select signal, a read/write control signal, and a byte select signal.
14. The system of claim 10, further including:
a display screen in communication with the display controller, the display screen configured to display image data from the display controller.
15. The system of claim 10, wherein the display controller is a liquid crystal display (LCD) controller.
16. The system of claim 10, wherein handshaking signals between the CPU and the display controller initiate and complete a bus cycle.
17. The system of claim 16, wherein the handshaking signals include a request signal and an acknowledge signal in response to the request signal.
18. The system of claim 17, wherein the CPU issues a request signal to the display controller according to the clock of the CPU and the display controller samples the request signal according to a clock of the display controller.
19. A method for communicating between a display controller operating at a first clock speed and a microprocessor operating at a second clock speed, the method comprising:
receiving a request from a microprocessor, the request from the microprocessor being generated according to a microprocessor clock having the second clock speed;
sampling the request according to a display controller clock having the first clock speed, the sampling including double sampling of command signals to minimize an occurrence of a metastable condition;
sending an acknowledgment to the request from the microprocessor to initiate an internal cycle of the display controller;
providing data associated with a read operation or a write operation;
issuing a request from the display controller to end the internal cycle, the request from the display controller being generated according to the display controller clock; and
receiving an acknowledgement from the microprocessor, the acknowledgement being generated according to the microprocessor clock.
20. The method of claim 19, wherein the request from the microprocessor and the acknowledgment from the microprocessor are chip select signals.
21. The method of claim 19, wherein the request from the display controller and the acknowledgment to the request from the microprocessor are WAIT signals.
22. The method of claim 19, wherein the double sampling occurs through flip flop chain redundancy circuitry.
23. The method of claim 19, wherein the command signals include a chip select signal, a read/write control signal and four byte select signals.
24. The method of claim 19, wherein each of the command signals are active low.
25. A method for performing one of a read operation and a write operation between a microprocessor and a display controller over a data bus, the method comprising:
operating a microprocessor at a first clock speed;
operating a display controller at a second clock speed;
executing a handshaking routine including a request and an acknowledgement between the microprocessor and the display controller, the request being associated with a different clock speed than the acknowledgement; and
initiating a read operation or a write operation over the data bus upon completion of the handshaking routine, wherein performance of the read or the write operation is independent of both the first clock speed and a difference between the second clock speed and the first clock speed.
26. The method of claim 25, wherein the method operation of executing a handshaking routine including a request and an acknowledgement between the microprocessor and the display controller further includes:
receiving the request from the microprocessor according to a clock associated with the microprocessor; and
sampling the request from the microprocessor according to a clock associated with the display controller.
27. The method of claim 25 further including:
defining a set of command signals configured to determine whether a bus cycle is a read operation or a write operation and a location of valid data on the data bus.
28. The method of claim 27, wherein the command signals include a chip select signal, a read/write control signal and four byte select signals.
29. The method of claim 28, wherein the read/write control signal determines whether the bus cycle is the read operation or the write operation.
30. The method of claim 27 further including:
minimizing an occurrence of a metastable condition by double sampling the command signals.
31. The method of claim 30, wherein the method operation of minimizing an occurrence of a metastable condition by double sampling the command signals further includes:
processing the command signals through flip flop chain redundancy circuitry.
32. An asynchronous bus interface configured to communicate with a display controller that is operated at a first clock speed and a microprocessor that is operated at a second clock speed, the asynchronous bus interface comprising:
flip flop chain redundancy circuitry;
wherein the asynchronous bus interface is further configured to be independent of both the second clock speed and a difference between the first clock speed and the second clock speed.
33. An asynchronous bus interface, configured to:
receive a request signal generated at a first clock speed;
sample the request signal at a second clock speed that is different from the first clock speed;
drive a write controlling signal at a clock speed substantially equal to the second clock speed;
drive a byte selecting signal at a clock speed substantially equal to the second clock speed;
output an acknowledge signal at a first level, the acknowledge signal being driven at a clock speed substantially equal to the second clock speed;
start outputting a data signal at a clock speed substantially equal to the second clock speed;
output the acknowledge signal at a second level different from the first level, the acknowledge signal being driven at a clock speed substantially equal to the second clock speed; and
stop outputting the data signal.
34. A system, comprising:
a microprocessor;
a display controller configured to communicate with the microprocessor, the display controller including a memory core for storing image data to be displayed, and a register set containing configuration data enabling the presentation of data; and
an asynchronous bus interface that is configured to receive a request signal generated at a first clock speed, sample the request signal at a second clock speed that is different from the first clock speed, drive a write controlling signal at a clock speed substantially equal to the second clock speed, drive a byte selecting signal at a clock speed substantially equal to the second clock speed, output an acknowledge signal at a first level, the acknowledge signal being driven at a clock speed substantially equal to the second clock speed, start outputting a data signal at a clock speed substantially equal to the second clock speed, output the acknowledge signal at a second level different from the first level, the acknowledge signal being driven at a clock speed substantially equal to the second clock speed, and stop outputting the data signal.
US11/796,154 2002-05-23 2007-04-25 32 bit generic asynchronous bus interface using read/write strobe byte enables Expired - Fee Related USRE40635E1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US11/796,154 USRE40635E1 (en) 2002-05-23 2007-04-25 32 bit generic asynchronous bus interface using read/write strobe byte enables

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US10/155,103 US6886067B2 (en) 2002-05-23 2002-05-23 32 Bit generic asynchronous bus interface using read/write strobe byte enables
US11/796,154 USRE40635E1 (en) 2002-05-23 2007-04-25 32 bit generic asynchronous bus interface using read/write strobe byte enables

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US10/155,103 Reissue US6886067B2 (en) 2002-05-23 2002-05-23 32 Bit generic asynchronous bus interface using read/write strobe byte enables

Publications (1)

Publication Number Publication Date
USRE40635E1 true USRE40635E1 (en) 2009-02-10

Family

ID=29548997

Family Applications (2)

Application Number Title Priority Date Filing Date
US10/155,103 Ceased US6886067B2 (en) 2002-05-23 2002-05-23 32 Bit generic asynchronous bus interface using read/write strobe byte enables
US11/796,154 Expired - Fee Related USRE40635E1 (en) 2002-05-23 2007-04-25 32 bit generic asynchronous bus interface using read/write strobe byte enables

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US10/155,103 Ceased US6886067B2 (en) 2002-05-23 2002-05-23 32 Bit generic asynchronous bus interface using read/write strobe byte enables

Country Status (2)

Country Link
US (2) US6886067B2 (en)
JP (1) JP2004005683A (en)

Families Citing this family (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6760772B2 (en) 2000-12-15 2004-07-06 Qualcomm, Inc. Generating and implementing a communication protocol and interface for high data rate signal transfer
US8812706B1 (en) 2001-09-06 2014-08-19 Qualcomm Incorporated Method and apparatus for compensating for mismatched delays in signals of a mobile display interface (MDDI) system
KR101166734B1 (en) 2003-06-02 2012-07-19 퀄컴 인코포레이티드 Generating and implementing a signal protocol and interface for higher data rates
EP2363991A1 (en) 2003-08-13 2011-09-07 Qualcomm Incorporated A signal interface for higher data rates
US8719334B2 (en) 2003-09-10 2014-05-06 Qualcomm Incorporated High data rate interface
CN102801595A (en) 2003-10-15 2012-11-28 高通股份有限公司 High data rate interface
KR100827573B1 (en) 2003-10-29 2008-05-07 퀄컴 인코포레이티드 High data rate interface
KR20090042861A (en) 2003-11-12 2009-04-30 콸콤 인코포레이티드 High data rate interface with improved link control
WO2005053272A1 (en) 2003-11-25 2005-06-09 Qualcomm Incorporated High data rate interface with improved link synchronization
CA2731265A1 (en) 2003-12-08 2005-06-23 Qualcomm Incorporated High data rate interface with improved link synchronization
MXPA06010312A (en) 2004-03-10 2007-01-19 Qualcomm Inc High data rate interface apparatus and method.
US8705521B2 (en) 2004-03-17 2014-04-22 Qualcomm Incorporated High data rate interface apparatus and method
WO2005096594A1 (en) 2004-03-24 2005-10-13 Qualcomm Incorporated High data rate interface apparatus and method
KR100521048B1 (en) 2004-04-20 2005-10-11 주식회사 하이닉스반도체 A method and a circuit for controlling an operation mode of psram, a psram having the same and a method for performing the operation mode thereof
ATE518343T1 (en) 2004-06-04 2011-08-15 Qualcomm Inc INTERFACE DEVICE AND METHOD FOR HIGH DATA RATES
US8650304B2 (en) 2004-06-04 2014-02-11 Qualcomm Incorporated Determining a pre skew and post skew calibration data rate in a mobile display digital interface (MDDI) communication system
US8539119B2 (en) 2004-11-24 2013-09-17 Qualcomm Incorporated Methods and apparatus for exchanging messages having a digital data interface device message format
US8667363B2 (en) 2004-11-24 2014-03-04 Qualcomm Incorporated Systems and methods for implementing cyclic redundancy checks
EP2503719A3 (en) * 2004-11-24 2012-10-24 Qualcomm Incorporated Methods and systems for updating a buffer
US8873584B2 (en) 2004-11-24 2014-10-28 Qualcomm Incorporated Digital data interface device
US8699330B2 (en) 2004-11-24 2014-04-15 Qualcomm Incorporated Systems and methods for digital data transmission rate control
US8723705B2 (en) 2004-11-24 2014-05-13 Qualcomm Incorporated Low output skew double data rate serial encoder
US8692838B2 (en) 2004-11-24 2014-04-08 Qualcomm Incorporated Methods and systems for updating a buffer
US7362629B2 (en) * 2005-09-29 2008-04-22 Hynix Semiconductor, Inc. Redundant circuit for semiconductor memory device
US8730069B2 (en) 2005-11-23 2014-05-20 Qualcomm Incorporated Double data rate serial encoder
US8692839B2 (en) 2005-11-23 2014-04-08 Qualcomm Incorporated Methods and systems for updating a buffer
US8966151B2 (en) * 2012-03-30 2015-02-24 Spansion Llc Apparatus and method for a reduced pin count (RPC) memory bus interface including a read data strobe signal

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4766538A (en) 1984-12-11 1988-08-23 Kabushiki Kaisha Toshiba Microprocessor having variable data width
US5339395A (en) 1992-09-17 1994-08-16 Delco Electronics Corporation Interface circuit for interfacing a peripheral device with a microprocessor operating in either a synchronous or an asynchronous mode
US5671433A (en) 1992-09-18 1997-09-23 Vadem Corporation Mappable functions from single chip/multi-chip processors for computers
US5732250A (en) 1994-09-15 1998-03-24 Intel Corporation Multi-function microprocessor wait state mechanism using external control line
US5812798A (en) 1996-01-26 1998-09-22 Motorola, Inc. Data processing system for accessing an external device and method therefore
US5854944A (en) 1996-05-09 1998-12-29 Motorola, Inc. Method and apparatus for determining wait states on a per cycle basis in a data processing system
US5890196A (en) 1996-03-28 1999-03-30 Motorola, Inc. Method and apparatus for performing page mode accesses
US5968164A (en) 1995-02-24 1999-10-19 International Business Machines Corporation Mixed-endian computing environment for a conventional bi-endian computer system
US6003120A (en) 1993-12-30 1999-12-14 Intel Corporation Method and apparatus for performing variable length processor write cycles
US6049844A (en) 1994-09-20 2000-04-11 Hitachi, Ltd. Microprocessor having a PC card type interface
US6122690A (en) 1997-06-05 2000-09-19 Mentor Graphics Corporation On-chip bus architecture that is both processor independent and scalable
US7062588B2 (en) * 2000-03-31 2006-06-13 Fujitsu Limited Data processing device accessing a memory in response to a request made by an external bus master

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4766538A (en) 1984-12-11 1988-08-23 Kabushiki Kaisha Toshiba Microprocessor having variable data width
US5339395A (en) 1992-09-17 1994-08-16 Delco Electronics Corporation Interface circuit for interfacing a peripheral device with a microprocessor operating in either a synchronous or an asynchronous mode
US5671433A (en) 1992-09-18 1997-09-23 Vadem Corporation Mappable functions from single chip/multi-chip processors for computers
US6003120A (en) 1993-12-30 1999-12-14 Intel Corporation Method and apparatus for performing variable length processor write cycles
US5732250A (en) 1994-09-15 1998-03-24 Intel Corporation Multi-function microprocessor wait state mechanism using external control line
US6049844A (en) 1994-09-20 2000-04-11 Hitachi, Ltd. Microprocessor having a PC card type interface
US5968164A (en) 1995-02-24 1999-10-19 International Business Machines Corporation Mixed-endian computing environment for a conventional bi-endian computer system
US5812798A (en) 1996-01-26 1998-09-22 Motorola, Inc. Data processing system for accessing an external device and method therefore
US5890196A (en) 1996-03-28 1999-03-30 Motorola, Inc. Method and apparatus for performing page mode accesses
US5854944A (en) 1996-05-09 1998-12-29 Motorola, Inc. Method and apparatus for determining wait states on a per cycle basis in a data processing system
US6122690A (en) 1997-06-05 2000-09-19 Mentor Graphics Corporation On-chip bus architecture that is both processor independent and scalable
US7062588B2 (en) * 2000-03-31 2006-06-13 Fujitsu Limited Data processing device accessing a memory in response to a request made by an external bus master

Also Published As

Publication number Publication date
US20030221037A1 (en) 2003-11-27
JP2004005683A (en) 2004-01-08
US6886067B2 (en) 2005-04-26

Similar Documents

Publication Publication Date Title
USRE40635E1 (en) 32 bit generic asynchronous bus interface using read/write strobe byte enables
US5828869A (en) Microprocessor arranged for synchronously accessing an external memory with a scalable clocking mechanism
US5732250A (en) Multi-function microprocessor wait state mechanism using external control line
KR0156922B1 (en) Cpu-bus controller and its control method
US7447932B2 (en) Semiconductor data processing device and data processing system
EP0426329A1 (en) Combined synchronous and asynchronous memory controller
US5675794A (en) Method and apparatus for configuring multiple agents in a computer system
US5734914A (en) Computer system capable of shifting voltage level of data signal between processor and system memory
JPH07122865B2 (en) Computer system having bus interface adapted to control operating speed of bus operation
US5625847A (en) High-speed ISA bus control system for changing command cycle execution speed by selectively using ISA bus controller and high-speed bus controller
US5901322A (en) Method and apparatus for dynamic control of clocks in a multiple clock processor, particularly for a data cache
US5590316A (en) Clock doubler and smooth transfer circuit
US5790884A (en) Integrated controller with first and second controller controlling information transfers when the input address ranges falls within ranges controlled by first and second controller respectively
US6904486B2 (en) 32 bit generic bus interface using read/write byte enables
US5754825A (en) Lower address line prediction and substitution
JP2003186667A (en) Indirect interface
EP0426156B1 (en) Floppy disk controller with DMA verify operations
EP0813149A1 (en) Testing and diagnostic mechanism
US6618790B1 (en) Burst suspend and resume with computer memory
US5548767A (en) Method and apparatus for streamlined handshaking between state machines
US5537664A (en) Methods and apparatus for generating I/O recovery delays in a computer system
US5682548A (en) Interface component for coupling main bus of computer system to peripheral ports having windows each includes bit specifying whether operations are quiet or not quiet
JP2004318877A (en) Intelligent waiting method
Litch et al. StrongARMing portable communications
KR0185601B1 (en) Inter data communication processor

Legal Events

Date Code Title Description
FEPP Fee payment procedure

Free format text: PAYOR NUMBER ASSIGNED (ORIGINAL EVENT CODE: ASPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

FPAY Fee payment

Year of fee payment: 8

REMI Maintenance fee reminder mailed
LAPS Lapse for failure to pay maintenance fees