This application claims the benefit of priority to Japanese Patent Application No. 2007-152048, filed Jun. 7, 2007, of which full contents are incorporated herein by reference.
1. Field of the Invention
The present invention relates to a data output circuit.
2. Description of the Related Art
An electronic device such as a car stereo having a liquid crystal display panel is equipped with a data processing system for processing data or signals from an operation unit such as a key pad, an infrared remote control, and a rotary encoder switch. Since the data processing at the data processing system is mainly carried out by a microcomputer, it is necessary to input the data from the operating unit into the microcomputer.
In the case of the liquid crystal display unit of a car stereo as mentioned above, it is necessary to input into the liquid crystal display driver IC 602 infrared data or switch signals that were input directly into the microcomputer 600, and to serially output the infrared data or switch signals by using an output signal line 700 that the key data is output into, for the purpose of reducing the number of signal lines leading into the microcomputer.
Moreover, due to the issues of the data processing on the microcomputer side, even if infrared data or switch signals are input into the liquid crystal display driver IC 602, it is required that the timing for starting the output of data coincides with the timing for starting the output of the key data shown in
A data output circuit according to an aspect of the present invention includes: a data generating circuit configured to generate output data; and a serial output circuit configured to receive an address corresponding to the data generating circuit, hold a parallel data input during a time period over which the address is being received, and serially output the output data generated by the data generating circuit and the held parallel data in accordance with an output direction signal for directing the output of the data.
Other features of the present invention will become apparent from descriptions of this specification and of the accompanying drawings.
For more thorough understanding of the present invention and advantages thereof, the following description should be read in conjunction with the accompanying drawings, in which:
At least the following details will become apparent from descriptions of this specification and of the accompanying drawings.
The data output circuit shown in
The address recognition circuit 10 recognizes whether or not an address is an address allocated to the IC including the data output circuit, that is, the liquid crystal display driver IC according to the present embodiment; and outputs an output start signal RDENB based on CE and a clock signal BKDCL based on CL, when recognizing that the address is the address allocated to the liquid crystal display driver IC. It should be noted that according to the present embodiment, RDENB is output at the same logic level as that of CE, and that BKDCL is a clock signal that is at L level when CE is at L level and changes at the same timing as CL does when CE is at H level.
The key data generating circuit 11 serially outputs the key input that is input from the key pad to the shift output circuit 50 as key data, on the basis of RDENB and BKDCL from the address recognition circuit 10.
It should be noted that: the address recognition circuit 10 corresponds an address circuit according to the present invention; the key data generating circuit 11 corresponds to a data generating circuit according to the present invention; the output direction signal CE at H level corresponds to an output direction signal according to the present invention; and RDENB corresponds to an output start signal according to the present invention. Further, it should be noted that the address allocated to the liquid crystal display driver IC corresponds to an address allocated to the data generating circuit according to the present invention.
The multiplexer 20 selects either CL to be input to an A input or BKDCL to be input to a B input in accordance with the level of RDENB to be input to an S input, and then outputs the selected result as a clock signal CLK into the shift output circuit 50. It should be noted that when RDENB to be input to the S input of the multiplexer 20 is at L level, a signal on the A input is output to a Y output, and when the RDENB is at H level, a signal on the B input is output to the Y output. Further, note that multiplexers 80 through 85 operate in the same way as the multiplexer 20 does.
The OR circuit 30, the inverter 31, and the AND circuit 32 output a flag signal RTFLG indicating that the rotary encoder switch is changed. Here, a signal of a logical OR of the switch signal A and the switch signal B, and the output of the inverter 31 are input into the AND circuit 32.
The inverter 31 and the AND circuit 33 output a flag signal IRFLG indicating the presence or absence of the infrared data. Here, the infrared data and the output of the inverter 31 are input into the AND circuit 32.
The shift output circuit 50 holds the switch signal A, the switch signal B, the infrared data, RTFLG, IRFLG, and KMD, all being input in parallel, on the basis of CLK from the multiplexer 20; and serially outputs, when RDENB at H level is input thereinto, the above-mentioned held data and the key data from the key data generating circuit 11 as output data DO on the basis of CLK. Further, the shift output circuit 50 includes the multiplexers 80 through 85, the D flip-flops 90 through 96, and the AND circuit 34. With reference to the timing chart of
During a time period A over which the signal input to the S input of the multiplexer 85 is at L level, the signal at H level input to the A input of the multiplexer 85 is output from the Y output of the multiplexer 85. Since the output from the Y output of the multiplexer 85 is to be input to the D input of the D flip-flop 95, a signal at H level is output from the Q output of the D flip-flop 95 on the basis of a clock signal input to the C input of the D flip-flop 95. The signal from the Q output of the D flip-flop 95 during the time period A is determined in accordance with the last pulse during the time period A, which last pulse is input at the time T0. Note that the output from the AND circuit 34 during the time period A is at L level because a signal at L level is input into the AND circuit 34.
During a time period B over which the signal input to the S input of the multiplexer 85 is at H level, the signal at L level input to the B input of the multiplexer 85 is output from the Y output of the multiplexer 85. The signal on the D input of the D flip-flop 95 therefore becomes L level and the signal at L level is held by the D flip-flop 95 on the basis of a pulse at the time T2, which pulse is input to the C input of the D flip-flop 95 during the time period B. First, the D flip-flop 96 outputs the signal at H level held by the D flip-flop 95 during the time period A from the Q output on the basis of the pulse at the time T2. After that, when a pulse at the time T3 is input to the C input of the D flip-flop 96, the signal at L level held by the D flip-flop 95 on the basis of the pulse at the time T2 is output from the Q output of the D flip-flop 96. Since a signal at H level and the output from the D flip-flop 96 are input into the AND circuit 34 during the time period B, the AND circuit 34 outputs a signal that is the same in logic level as the output of the D flip-flop 96.
The multiplexers 80 through 84 at the shift output circuit 50 operate in the same manner as the above-mentioned multiplexer 85 does, while the D flip-flops 90 through 94 operate in the same manner as the above-mentioned D flip-flop 95 does. As a result, during a time period over which signals input to the respective S inputs of the multiplexers 80 through 85 are at L level, the D flip-flops 90 through 95 hold signals input to the respective A inputs of the multiplexers 80 through 85 on the basis of a pulse at H level input to the respective C inputs of the D flip-flops 90 through 95. Furthermore, the signals held in accordance with a pulse at H level input to the respective C inputs of the D flip-flops 90 through 95 at the end of the time period over which the signals input to the respective S inputs of the multiplexers 80 through 85 are at L level, are sequentially output from the Q output of the D flip-flop 96 on the basis of a clock signal input to the C input of each of the D flip-flops 90 through 96 during the time period over which the signals input to the respective S inputs of the multiplexers 80 through 85 are at H level. Accordingly, the D flip-flops 90 through 96 operate as a shift register when the signals input into the multiplexers 80 through 85 are at H level.
Hereinafter, the operation of the data output circuit shown in
Since RDENB at L level is to be input to the S input of the multiplexer 20, CL is selected as CLK output from the Y output. A flag signal RTFLG indicating that the rotary encoder switch changes becomes H level because of (switch signal A, switch signal B)=(H, L), while a flag signal IRFLG indicating the presence or absence of the infrared data becomes L level because the infrared data is at L level. To sum up the signals or data input into the shift output circuit 50, it reads (RDENB, switch signal A, switch signal B, infrared data, RTFLG, IRFLG, KMD)=(L, H, L, L, H, L, H). It should be noted that CL is selected for CLK and BKDCL is at L level. Since RDENB is input to the respective S inputs of the multiplexers 80 through 85 of the shift output circuit 50, (switch signal A, switch signal B, infrared data, RTFLG, IRFLG, KMD)=(H, L, L, H, L, H) is held by the D flip-flops 90 through 95 as described above. It should be noted that during this time period, BKDCL input to the C input of the D flip-flop 96 is at L level and RDENB input into the AND circuit 34 is also at L level, so that the shift output circuit 50 does not output the data held by CLK.
Secondly, the operation of the data output circuit during the time period over which the output direction signal CE is at H level will be described below. When CE input into the address recognition circuit 10 becomes H level, the address recognition circuit 10 outputs RDENB at H level and BKDCL based on CL. The key data generating circuit 11 serially outputs key data to the shift output circuit 50 on the basis of BKDCL. The key data output from the key data generating circuit 11 is input to the B input of the multiplexer 80 of the shift output circuit 50, and the shift output circuit 50 sequentially outputs the held (switch signal A, switch signal B, infrared data, RTFLG, IRFLG, KMD)=(H, L, L, H, L, H) and the key data on the basis of BKDCL. Note that D1 through D6 shown in
The data output circuit according to the present embodiment described above holds data (switch signal A, switch signal B, infrared data, RTFLG, IRFLG, KMD) input during a time period over which the address at the time of CE at L level is input, and serially outputs the held data and the key data when the CE at H level is input thereinto. It therefore becomes possible to start outputting the held data and the key data at the same start timing as that of the key data shown in
Further, since a clock signal CL for receiving the address is used when the data input into the data output circuit are held by the D flip-flops 90 through 95, there is no need to provide an extra circuit for generating a clock signal.
Furthermore, the data output circuit according to the present embodiment includes the address recognition circuit 10 for receiving the address during the time period over which CE is at L level, and the key data generating circuit 11 for serially outputting the key data on the basis of BKDCL by RDENB based on CE, and the shift output circuit 50 for holding the data (switch signal A, switch signal B, infrared data, RTFLG, IRFLG, KMD) input on the basis of CL for receiving the address of the liquid crystal display driver IC during the time period over which CE is at H level and sequentially serial-outputting the held data and the key data on the basis of the BKDCL.
In the data output circuit according to the present embodiment, the held data such as infrared data is output bit by bit when CE becomes H level. In order to output the infrared data five bits, therefore, the data output circuit must repeat such operation five times that it holds infrared data during the time period over which CE is at L level, and outputs the held infrared data on the basis of BKDCL during the time period over which CE is at H level. In this case, it is unknown whether the key data is always present or not at the time in which the infrared data is output. The data output circuit according to the present embodiment is therefore so configured as to output KMD indicating the presence or absence of the key data before outputting the key data. As a result, the microcomputer can determine whether the key data is present or not by receiving KMD, and the data processing time can be shortened when no key data is present.
The above embodiments of the present invention are simply for facilitating the understanding of the present invention and are not in any way to be construed as limiting the present invention. The present invention may variously be changed or altered without departing from its spirit and encompass equivalents thereof.
Number | Date | Country | Kind |
---|---|---|---|
2007-152048 | Jun 2007 | JP | national |