Circuit for automatically controlling white balance and black balance and the method thereof

Abstract: A compatible circuit for automatically controlling the white balance and black balance comprises a controller 10 for controlling video signals; a color signal processor 20 for variably amplifying the color signal under the control of the controller 10 and processing the color signals; first comparing means 30 for comparing the color signals processed in the color signal processor 20 to control AWB; second comparing means 40 for comparing the color signals processed in the color signal processor to control ABB; transmit means 50 for selectively supplying the color signals processed in the color signal processor under the control of the controller to the first and second comparing means 30, 40, and selectively transmitting outputs of the first and second comparing means to the controller; output means 60 for supplying control data processed in the controller to the color signal processor 20; key input means 70 for transmitting user's defined direction to the controller 10; and a vertical synchronizing signal generator 80 for supplying a vertical synchronizing signal to the controller 10. The method of the present invention comprises a key check sequence, an AWB control sequence, an ABB control sequence, and an information output sequence. In the present invention, the comparing means for white balance and the comparing means for black balance are provided, and the signals received in two comparing means are properly transmitted, so that the white balance control and the black balance control can be carried out in common, and the circuit constitution can be simplified.

Description: Field of the Invention The present invention relates to a circuit and a method for automatically controlling the level balance of color signals , to prevent the deterioration of the picture quality based on the condition of the light shining on an object to be photographed and the ambient temperature. Background of the Invention In general, a video camera is an apparatus for converting an optical image of an object to a video signal into an electric signal. The video signals in the form of electric signals include a green color (hereinafter, referred to as "G") signal, a red color (hereinafter referred to as "R") signal, and a blue color (hereinafter, referred to as "B") signal, of three primary colors, and the three primary colors signals are signals separated by a prism and converted into electric signals by an image pick-up tube. The three primary color signals lose a balance of the white color display level (hereinafter, referred to as "white level") on a screen according to the lighting condition, so that the color is not correctly reproduced. The automatic control of the unbalanced white level of the three primary colors according to the lighting condition of the object to be photographed is called an auto-white balance (hereinafter, referred to as "AWB") control. And, the three primary color signals include a dark current which is varied according to the circuit characteristic. The variation of the dark current changes the reference level (hereinafter, referred to as "pedestal level") of the three primary color signals for representing the level of a state which is not picked-up on the screen, and breaks the pedestal level balance of the three primary color signals. It is called an auto-black balance (hereinafter, referred to as "ABB") control that the pedestal level balance broken by the ambient temperature is automatically controlled. Basically, the AWB control and the ABB control are the same in that the level balance of the three primary colors is controlled by a comparing operation. But, since the ABB control is for controlling an average value of G signals to be equal to an average value of R and B signals with an optical signal, and the AWB control is for controlling the average value of the G signals to be equal to an average value of R and B signals with an optical signal, the AWB circuit and the ABB circuit are separately constituted. And, the AWB circuit and the ABB circuit each include two comparators to usually compare a G signal with a R signal or with a B signal, respectively, or include a comparator to sequentially compare a G signal with a B signal and a R signal, and an A-D converter for analog to digital hereinafter, referred to as "A D") converting of a G signal. In this context, FR-A-2 621 202 (Fig. 22) describes a circuit in which the three color signals R, B and G are compared with each other in a single simultaneous step in both cases of an automatic white balance control (AWB) and black balance control (ABB) as well. This however implies a complicated construction of the conventional circuit comprising four separate comparators. Summary of the invention Accordingly, it is an object of the present invention to provide, in particular for a video camera, a circuit and a method for automatically controlling both the auto-white balance and the auto-black balance as well, in which the level balance of color signals for the white color and the black color are automatically and compatibly carried out. Starting from a prior art as is documented in FR-A-2 621 202, the above object is achieved by the subject-matter claimed in independent claims 1 and 2 respectively. Brief Description of the Drawings The above object and other advantages of the present invention will become more apparent by describing the preferred embodiment of the present invention with reference to the attached drawings, in which: FIG.1 is a circuit diagram of a preferred embodiment according to the present invention; and FIG.2 shows a flow chart of the preferred embodiment according to the present invention. Detailed Description of the Invention FIG.1 is a circuit diagram for an auto-white balance and auto-black balance control according to the present invention. In FIG.1, first to third input terminals 90 to 92 are connected to an image pick-up tube to receive R, G, and B color signals, and also are connected to first to third input terminals of color signal processor 20, respectively. The first and second input terminals of the color signal processor 20 are correspondingly connected to both selection contacts P1 and P2 of a first control switch 51, respectively. A third output terminal of the color signal processor 20 is connected to an input terminal of second buffer means 56 composed of a transistor Q6 and a resistor R6. A reference contact P0 of the first control switch 51 is connected to an input terminal of first buffer means 55 composed of a transistor Q5 and a resistor R5. An output terminal of the first buffer means 55 is connected to an input terminal of first sampling means 31 composed of two transistors Q1 and Q3, a resistor R1, and a capacitor C1, and also to a selection contact P1 of second control switch 52. An output terminal of the second buffer means 56 is connected to an input terminal of second sampling means 32 composed of two transistors Q2 and Q4, a resistor R2, and a capacitor C2, and also to a second selection contact P2 of the second control switch 52. An output terminal of the first sampling means 31 is connected to an non-inverted input terminal of a first comparator A1. An output terminal of the second sampling means 32 is connected to an inverted input terminal of the first comparator A1. A reference contact P0 of the second control switch 52 is connected to a reference contact P0 of a third control switch 53. Both selection contacts P1 and P2 of the third control switch 53 are connected to an input terminal of a first integrator 41 composed of a resistor R3 and a capacitor C3, and an input terminal of a second integrator 42 composed of a resistor R4 and a capacitor C4, respectively. Output terminals of the first and second integrators 41 and 42 are correspondingly connected to a non-inverted input terminal and an inverted input terminal of a second comparator A2, respectively. Output terminals of the first and second comparators A1 and A2 are correspondingly connected to first selection contacts P1 and P2 of a fourth control switch 54, respectively. A reference contact P0 of the fourth control switch 54 is connected to an input terminal I1 of a microcomputer 10 (hereinafter, referred to as "MICOM") used as a controller. Control terminals P3 of the first to fourth control switches 51 to 54 are correspondingly connected to first to fourth control terminals CP1 to CP4 of the MICOM 10, respectively. Control terminals of the first and second sampling means 31 and 32 are commonly connected to a fifth control terminal CP5 of the MICOM 10. A control terminal of a color amplifier 21 included in the color signal processor 20 is connected to a sixth control terminal CP6 of the MICOM 10. An output terminal of a keyboard 70 used as key input means is connected to a third input terminal 13 of the MICOM 10. An output terminal of a vertical synchronizing signal generator 80 is connected to a second input terminal I2 of the MICOM 10. An input port of a D-A converter 61 is connected to an output port OP of the MICOM 10. An input terminal of a multiplexer 62 is connected to an output terminal of the D-A converter 61. And, first to third selection terminals of the multiplexer 62 are connected to seventh to ninth control terminals CP7 to CP9 of the MICOM 10. Also, an output port of the multiplexer 62 is connected to a control port of the color signal processor 20. In the operation of the circuit shown in FIG.1, the color signal processor 20 processes R, G and B signals received through the first to third input terminals 90 to 92 in response to control data supplied from the multiplexer 62 to the control port, and supplies the processed signals via the first to third output terminals. The color signal processor 20 amplifies color signals at a normal amplification rate, or at an amplification rate greater than the normal amplification gain by 18 dB, according to the logic state of the gain control signal GCS supplied from the sixth control terminal of the MICOM 10. Transit means 50 comprising the first and second buffers 55 and 56 selectively supplies R or B signal with G signal to the first comparing means 30, and supplies a selected signal of R, G, and B signals to the second comparing means 40, and selectively transmits output of the first comparing means 30 or the second comparing means 40 to the first input terminal I1 of the MICOM 10. In more detail, the first control switch 51 selects R signal on the first selection contact P1 or B signal on the second selection contact P2 according to a logic state of a first control signal W, and supplies the selected signal through the reference contact P0 to the input terminal of the first buffer 55. The first buffer 55 buffers the selected R or B signal by the first control switch 51, and supplies the buffered signal to the input terminal of the first sampling means 31 and the first selection contact P1 of the second control switch 52. The second buffer 56 buffers the G signal received from the third output terminal of the color signal processor 20, and supplies the buffered signal to an input terminal of the second sampling means 32 and the second selection contact P2 of the second control switch 52. The second control switch 52 selects the buffered R or B signal received on the first selection contact P1 or the buffered G signal received on the second selection contact P2, in response to a second control signal X supplied from the second control terminal CP2 of the MICOM 10 and supplies the selected signal through the reference contact P0 to the reference contact P0 of the third control switch 53. The third control switch 53 supplies the R or B signal or the G signal selected by the second control switch 52 through the first selection contact P1 to the input terminal of the first integrator 41 or through the second selection contact P2 to the input terminal of the second integrator 42, according to the logic state of a control signal Y supplied from the third control terminal CP3 of the MICOM 10 to the control terminal. The fourth control switch 54 selects an output of the first comparator A1 fed to the first selection contact P1 or an output of the second comparator A2 fed to the second selection contact P2 according to a logic state of a fourth control signal Z, and supplies the selected signal to the first input terminal I1 of the MICOM 10 through the reference contact P0. The first comparing means 30 composed of two sampling means 31 and 32 and a first comparator A1 compares G signal with R signal or G signal with B signal supplied through the transit means 50. In more detail, after being initialized by a reset pulse RSP of a high logic state supplied from the fifth control terminal of the MICOM 10 to the reset terminal (i.e., a base of the transistor Q2), the first sampling means 31 stores the buffered R or B signal supplied from the first buffer 55 to the input terminal (i.e., a base of the transistor Q1), and supplies the stored signal to the non-inverted input terminal of the first comparator A1 through the output terminal (i.e., a collector of the transistor Q2). After being initialized by the reset pulse RSP of a high logic state supplied from the fifth control terminal to the reset terminal (i.e., a base of the transistor Q4), the second sampling means 32 stores the buffered G signal supplied from the second buffer 56 to the input terminal (i.e., a base of the transistor Q3), and supplies the stored signal through the output terminal (i.e., a collector of the transistor Q4) to the inverted input terminal of the first comparator A1. The first comparator A1 compares the stored R or B signal fed to the non-inverted input terminal of the first comparator A1 with the stored G signal fed to the inverted input terminal, and supplies the compared result to the first selection contact P1 of the fourth control switch 54. The second comparing means 40 compares two different signals which are successively received through the transit means 50. In more detail, the first integrator 41 stores the color signal received through the first selection contact P1 of the third control switch 53, and supplies the accumulated signal to the inverted input terminal of the second comparator A2. The second integrator 42 stores the color signal received through the second selection contact P2 of the third control switch 53 of the second integrator 42, and supplies the stored signal to the non-inverted input terminal of the second comparator A2. The second comparator A2 compares the output of the first integrator 41 fed to the inverted input terminal, and the output of the second integrator 42 fed to the non-inverted input terminal, and supplies the compared result to the second selection contact P2 of the fourth control switch 54. The MICOM 10 checks the key data received from the keyboard 70. If the key data is an AWB or ABB control direction, the MICOM 10 adjusts logic states of control signals and checks the output logic of the first comparing means 30 or the second comparing means 40 in response to the period of the vertical synchronizing signal supplied from the vertical synchronizing signal generator 80, to control the white level balance or the black set value and the pedestal level balance, and supplies the adjusted control data from the output port to the color signal processor 20 through the output means 60 composed of the D-A converter 61 and the multiplexer 62. The output means 60 converts the control data received from the output port of the MICOM 10 into analog signals, and supplies the converted signals to the corresponding control terminal of the color signal processor 20. In more detail, the D-A converter 61 converts the 8-bit control data received from the output port of the MICOM 10 to the input port into an analog voltage signal, and supplies the converted signal to the input terminal of the multiplexer 62. The multiplexer 62 is used to apply the analog voltage signal fed to the input terminal to a corresponding control terminal of the color signal processor 20 through an output terminal corresponding to a logic value of the selection data supplied to first to third selection terminals S1 to S3 from seventh to ninth control terminals CP7 to CP9 of the MICOM 10. FIG.2 is a flow chart of a preferred embodiment according to the method of the present invention, in which the MICOM 10 shown in FIG.1 performs the following sequences. In FIG.2, steps 101 to 103 correspond to a key check sequence, steps 104 to 117 correspond to an AWB control sequence, steps 118 to 178 correspond to an ABB control sequence, and steps 179 to 184 correspond to an information output sequence. The flow chart shown in FIG.2 will be explained in connection with the circuit diagram shown in FIG.1. The MICOM 10 checks the key data, which has been received from the keyboard 70 through the third input terminal every predetermined period and has been stored in its working buffer (step 101). When the key data is received in the step 101, the MICOM 10 checks the logic value of the received key data to determine if the logic value is an ABB control direction key (step 102). If the logic value is not an ABB control direction key in the step 102, the MICOM 10 checks the logic value of the received key data to determine if the logic value is an AWB control direction key. If the logic value is not an AWB control direction key, the MICOM 10 is returned to the main routine (step 103). If the received key data has been determined to be an AWB control direction key in the step 103, the MICOM 10 sets an AWB mode flag allocated in its register to set up an AWB control mode, and sets a R signal white level control mode flag (hereinafter, referred to as a "RW control mode flag") to set up a R signal control mode, and supplies a first control signal W of a high logic state and a fourth control signal Z of a high logic state through the first and fourth control terminals CP1 and CP4, to make the first control switch 51 select a R signal and make the fourth control switch 54 select an output of the first comparator A1 (step 104). At this time, G and R signals are supplied to the first comparator A1. After the completion of the step 104, the MICOM 10 checks if the output logic state of the first comparator A1 fed from the first comparator A1 through the fourth control switch 54 and the first input terminal I1 and stored in its working buffer is a high logic state (step 105). If the output logic state of the first comparator A1 is a high logic state in the step 105, the MICOM 10 checks if the RW control mode flag has been set, to determine whether the RW control mode has been set (step 106). If the RW control mode flag has been set in the step 106, the MICOM 10 increases the white level of the R signal stored in its RAM by a predetermined value (step 107). If the RW control mode flag has not been set in the step 106, the MICOM 10 increases the white level of the B signal stored in its RAM by a predetermined value (step 108). If the output logic state of the first comparator A1 has not been a high logic state in the step 105, the MICOM 10 checks if the RW control mode flag has been set, in order to determine if the RW control mode has been set (step 109). If the RW control mode flag has been set in the step 109, the MICOM 10 decreases the white level of signal R stored in its RAM by a predetermined value (step 110). If the RW control mode flag has not been set in the step 109, the MICOM 10 decreases the white level of the B signal stored in its RAM by a predetermined value (step 111). After the completion of the step 108 or 107 or the completion of the step 110 or 111, the MICOM 10 checks if the previous output logic state of the first comparator A1 stored in its RAM is equal to the present output logic state of the first comparator A1 received on the working buffer (step 112). If the previous output logic of the first comparator A1 is different from the present output logic in the step 112, the MICOM 10 adds 1 to the value of the comparative change counter which is allocated in its register (step 113). After carrying out the step 113, the MICOM 10 checks-if the value of the comparative value change counter is a predetermined value of 5 (step 114). If the value of the comparative value change counter is 5 in the step 114, the MICOM 10 checks if the RW control mode flag has been set (step 115). If the RW control mode flag has been set in the step 115, the MICOM 10 resets the RW control mode flag, inverts the first control signal W of a high logic state, and supplies the inverted signal through the first control terminal CP1. Also, the MICOM initializes the comparative change counter and then goes back to the step 105 (step 116). If the RW control mode flag has not been set in the step 115, the MICOM 10 decides the completion of AWB control, initializes the AWB mode flag and the comparative change counter, and then goes back to the main routine (step 117). If the received key data is determined to be an ABB control direction key in the step 102, the MICOM 10 sets the ABB mode flag allocated in its register to set the ABB control mode, and sets a G signal black set control mode flag (hereinafter, referred to as "GBS control mode flag") allocated on its register to set the G signal black set control mode, and also supplies the fourth control signal Z of a low logic state via the fourth control terminal CP4, so that the fourth control switch 54 selects the output of the second comparator A2 (step 118). After carrying out the step 118, the MICOM 10 checks if the GBS control mode flag has been set (step 119). If the GBS control mode flag has been set in the step 119, the MICOM 10 awaits until a vertical scanning pulse representing a vertical scanning period is received from the vertical synchronizing signal generator 80 (step 120). If a vertical scanning pulse has been received in the step 120, the MICOM 10 supplies a gain control signal GCS of a high logic state via the sixth control terminal CP6 to control color signals, supplied from the color signal processor 20, to be amplified by a 18 dB, and supplies the second and third control signals X and Y of high logic states via the second and third control terminal CP2 and CP3 to control the second and third control switches 52 and 53 to select the first selection contacts P1, respectively. After carrying out the step 121, the MICOM 10 waits until a vertical scanning pulse is again supplied from the vertical synchronizing signal generator 80 (step 122). When the vertical scanning pulse is received in the step 122, the MICOM 10 inverts high logic states of the gain control signal GCS and the third control signal Y to low logic states to make color signals, i.e., an output of the color signal processor 20, be a normal gain, and makes the third control switch 53 select the second selection terminal P2 (step 123). At this time, the G signal having a normal gain is fed to a non-inverted input terminal of the second comparator A2 through the second buffer 56, the second and third control switches 52 and 53, and a second integrator 42. After carrying out the step 123, the MICOM 10 checks if the output logic state of the second comparator A2, received from the second comparator A2 through the fourth control switch 54 and stored in its working buffer, is a high logic state (step 124). If the output logic state of the second comparator A2 is a high logic state in the step 124, the MICOM 10 increases the G signal black set value (hereinafter, referred to as "GBS value") stored in its RAM by a predetermined level (step 125). If the output logic state of the second comparator A2 is not a high logic state in the step 124, the MICOM 10 decreases the GBS value by a predetermined level (step 126). After carrying out the step 125 or 126, the MICOM 10 checks if the previous output logic state of the second comparator A2 stored in its RAM is equal to the present output logic state of the second comparator A2 received on the working buffer (step 127). If the previous output logic state of the second comparator A2 is different from the present output logic state in the step 127, the MICOM 10 adds 1 to the value of its comparative change counter (step 128). After carrying out the step 128, the MICOM 10 checks if the value of the comparative value change counter is the predetermined value 5 (step 129). If the value of the comparative value change counter is 5 in the step 129, the MICOM 10 sets a R signal black set control mode flag (hereinafter, referred to as a "RBS control mode flag") instead of the GBS control mode flag to set a R signal black set control mode, and initializes the comparative change counter, and goes back to the step 119 (step 130). And, if the output logic state of the second comparator A2 has not been changed in the step 127 or if the value of the comparative change counter is not 5, the MICOM 10 goes back to the step 119. If the GBS control mode flag has not been set in the step 119, the MICOM 10 checks if the RBS control mode flag has been set (step 131). If the RBS control mode flag has been set in the step 131, the MICOM 10 waits until the vertical scanning pulse representing a vertical scanning term is received from the vertical synchronizing signal generator 80 (step 132). If the vertical scanning pulse is received in the step 132, the MICOM 10 supplies the gain control signal GCS of a high logic state via the sixth control terminal CP6 to control the color signal supplied from the color signal processor 20 to be amplified by 18 dB higher than that of the normal time, and supplies the first, second and third control signals W, X, and Y of low and high logic states through the first, second, and third control terminals CP1 to CP3 - to control the first, second, and third control switches 51, 52 and 53 to select each first selection contact P1 (step 133). At this time, the R signal amplified by 18 dB than that of normal time is received in the inverted input terminal of the second comparator A2 through the first control switch 51, the first buffer 55, the second and third control switches 52 and 53, and the first integrator 41. After carrying out the step 133, the MICOM 10 waits until the vertical scanning pulse is again received from the vertical synchronizing signal generator 80 (step 134). If the vertical scanning pulse is again received in the step 134, the MICOM 10 inverts high logic states of the gain control signal GCS and the third control signal Y to low logic states to make the color signals, i.e., an output of the color signal processor 20, have normal gain, and the third control switch 53 selects the second selection terminal P2 (step 135). At this time, the R signal having a normal gain is received in the non-inverted input terminal of the second comparator A2 through the first control switch 51, the first buffer 55, the second and third control switches 52 and 53, and the second integrator 42. After carrying out the step 135, the MICOM 10 checks if the output logic state of the second comparator A2 received from the second comparator A2 through the fourth control switch and stored in its working buffer is a high logic state (step 136). If the output logic state of the second comparator A2 is a high logic state in the step 136, the MICOM 10 increases the R signal black set value (hereinafter, referred to as "RBS value") stored in its RAM by a predetermined level (step 137). If the output logic state of the second comparator A2 is not a high logic state in the step 124, the MICOM 10 decreases the RBS value by a predetermined level (step 138). After carrying out the step 137 or the step 138, the MICOM 10 checks if the previous output logic state of the second comparator A2 stored in its RAM is equal to the present output logic state of the second comparator A2 received on the working buffer (step 139). If the previous output logic state of the second comparator A2 is different from the present output logic state in the step 139, the MICOM 10 adds 1 to the value of its comparative change counter (step 140). After the completion of the step 140, the MICOM 10 checks if the value of the comparative change counter is the predetermined value 5 (step 141). If the value of the comparative change counter is 5 in the step 141, the MICOM 10 sets the B signal black set control mode flag (hereinafter, referred to as "BBS control mode flag") instead of the RBS control mode flag, thereby setting the B signal black set control mode, and initializes the comparative change counter, and goes back to the step 119 (step 142). And, if the output logic states of the second comparator A2 are not changed in the step 139 or if the value of the comparative change counter is not 5 in the step 141, the MICOM 10 goes back to the step 119. If the RBS control mode flag has not been set in the step 131, the MICOM 10 checks if the BBS control mode flag has been set (step 143). If the BBS control mode flag has been set in the step 143, the MICOM 10 waits until the vertical scanning pulse representing the vertical scanning term is received from the vertical synchronizing signal generator 80 (step 144). If the vertical scanning pulse is received in the step 144, the MICOM 10 supplies the gain control signal GCS of a high logic state via the sixth control terminal CP6 to control the color signals supplied from the color signal processor 20 to be amplified by 18 dB greater than that of the normal time, and supplies a first control signal W of a low logic state and the second and third control signals X and Y of low and high logic states via the first, second and third control terminals CP1, CP2 and CP3 to control the first control switch 51 to select the second selection contact P2, and also to control the second and third control switches 52 and 53 to select the first selection contacts P1, respectively (step 145). At this time, the B signal, which is amplified by 18 dB greater than that at the normal time, is received in the inverted input terminal of the second comparator A2 through the first control switch 51, the first buffer 56, and the second and third control switches 52 and 53, and the first integrator 41. After carrying out the step 145, the MICOM 10 waits until the vertical scanning pulse is again received from the vertical synchronizing signal generator 80 (step 146). If the vertical synchronizing pulse is again received in the step 146, the MICOM 10 inverts the gain control signal GCS and the third control signal Y of high logic states to low logic states to make the color signals, i.e., an output of the color signal processor 20, have a normal gain, and makes the third control switch 53 select the second selection terminal P2 (step 147). At this time, the B signal having a normal gain is fed to the non-inverted input terminal of the second comparator A2 through the first control switch 51, the first buffer 55, the second and third control switches 52 and 53, and the second integrator 42. After carrying out the step 147, the MICOM 10 checks if the output logic state of the second comparator A2 received from the second comparator A2 through the fourth control switch 54 and stored in its working buffer is a high logic state (step 148). If the output logic state of the second comparator A2 is a high logic state in the step 148, the MICOM 10 increases the B signal black set value (hereinafter, referred to as "BBS value") stored in its RAM by a predetermined level (step 149). If the output logic state of the second comparator A2 is not a high logic state in the step 149, the MICOM 10 decreases the BBS value by a predetermined level (step 150). After carrying out the step 149 or 150; the MICOM 10 checks if the previous output logic state of the second comparator A2 stored in its RAM is equal to the present output logic state of the second comparator A2 fed to the working buffer (step 151). If the previous output logic state of the second comparator A2 is different from the present output logic state, the MICOM 20 adds 1 to the value of its comparative change counter (step 152). After carrying out the step 152, the MICOM 10 checks if the value of the comparative change counter is the predetermined value 5 (step 153). If the value of the comparative change counter is 5 in the step 153, the MICOM 10 sets the R signal pedestal level control mode flag (hereinafter, "RP control mode flag") instead of the BBS control mode flag to set the R signal pedestal level control mode, and initializes the comparative change counter, and goes back to the step 119 (step 154). And, if the output logic state of the second comparator A2 is not changed in the step 151 or if the value of the comparative change counter is not 5 in the step 153, the MICOM 10 goes back to the step 119. If the BBS control mode flag has not been set in the step 143, the MICOM 10 checks if the RP control mode flag has been set (step 155). If the RP control mode flag has been set in the step 155, the MICOM 10 waits until the vertical scanning pulse is received from the vertical synchronizing signal generator 80 (step 156). If the vertical scanning pulse is received in the step 156, the MICOM 10 supplies the second and third control signals of high logic states through the second and third control terminals CP2 and CP3, to control the second and third control switches 52 and 53 to select the first selection contacts, respectively (step 157). At this time, the G signal is supplied to the inverted input terminal of the second comparator A2 through the second buffer 56, the second and third control switches 52 and 53, and the first integrator 41. After carrying out the step 157, the MICOM 10 waits until the vertical scanning pulse is again received from the vertical synchronizing signal generator 80 (step 158). If the vertical scanning pulse is again received in the step 158, the MICOM 10 supplies the first control signal W of a high logic state and the second and third control signals X and Y of low logic states through the first to third control terminals CP1 to CP3, and controls the first control switch 51 to select the first selection contact P1, and the second and third control switches 52 and 53 to select the second selection contact P2, respectively (step 159). At this time, the R signal is supplied to the non-inverted input terminal of the second comparator A2 through the first control switch 51, the first buffer 55, the second and third control switches 52 and 53, and the second integrator 42. After carrying out the step 159, the MICOM 10 checks if the output logic state of the second comparator A2 received through the fourth control switch 54 and stored in its working buffer is a high logic state (step 160). If the output logic state of the second comparator A2 is a high logic state in the step 160, the MICOM 10 increases the R signal pedestal level value (hereinafter, referred to as "RP value") stored in its RAM by a predetermined level (step 161). If the output logic state of the second comparator A2 is not a high logic state in the step 160, the MICOM 10 decreases the RP value by a predetermined level (step 162). After carrying out the step 161 or 162, the MICOM 10 checks if the previous output logic state of the second comparator A2 stored in its RAM is equal to the present output logic state of the second comparator A2 fed to the working buffer (step 163). If the previous output logic state of the second comparator A2 is different from the present logic state in the step 163, the MICOM 10 adds 1 to the value of its comparative change counter (step 164). After carrying out the step 164, the MICOM 10 checks if the value of the comparative change counter is a predetermined value 5 (step 165). If the value of the comparative change counter is 5 in the step 165, the MICOM 10 sets the B signal pedestal level control mode (hereinafter, referred to as "BP control mode flag") instead of the RP control mode flag to set the B signal pedestal level control mode, and initializes the comparative change counter, and then goes back to the step 119 (step 166). And, if the output logic states of the second comparator A2 are not changed in the step 163 or if the value of the comparative change counter is not 5 in the step 165, the MICOM 10 goes back to the step 119. If the RP control mode flag has not been set in the step 155, the MICOM 10 checks if the BP control mode flag has been set (step 167). If the BP control mode flag has been set in the step 167, the MICOM 10 waits until the vertical scanning pulse is received from the vertical synchronizing signal generator 80 (step 168). If the vertical scanning pulse is received in the step 168, the MICOM 10 supplies the second and third control signals of high logic states through the second and third control terminals CP2 and CP3, thereby controlling the second and third control switches 52 and 53 to select each first selection contact P1 (step 169). At this time, the- G signal is supplied to the inverted terminal of the second comparator A2 through the second buffer 56, the second and third control switches 52 and 53, and the first integrator 41. After carrying out the step 169, the MICOM 10 waits until the vertical scanning pulse is again received from the vertical synchronizing signal generator 80 (step 170). If the vertical scanning pulse is again received in the step 170, the MICOM 10 supplies the first to third control signals W, X, and Y of low logic states through the first to third control terminals CP1 to CP3, to control the first to third control switches 51 to 53 to select each second selection contact P2 (step 171). At this time, the B signal is supplied to the non-inverted input terminal of the second comparator A2 through the first control switch 51 and the first buffer 55, the second and third control switches 52 and 53, and the second integrator 42. After carrying out the step 171, the MICOM 10 checks if the output logic state of the second comparator A2 received through the fourth control switch 54 and stored in its working buffer is a high logic state (step 172). If the output logic state of the second comparator A2 is a high logic state in the step 172, the MICOM 10 increases the B signal pedestal level value (hereinafter, referred to as "BP value") stored in its RAM by a predetermined level (step 173). If the output logic state of the second comparator A2 is not a high logic state in the step 172, the MICOM 10 decreases the BP value by a predetermined level (step 174). After carrying out the step 173 or 174, the MICOM 10 checks if the previous output logic state of the second comparator A2 stored in its RAM is equal to the present output logic state of the second comparator A2 received on the working buffer (step 175). If the previous output logic state of the second comparator A2 is different from the present output logic state in the step 175, the MICOM 10 adds 1 to the value of its comparative change counter (step 176). After carrying out the step 176, the MICOM 10 checks if the value of the comparative change counter is the predetermined value 5 (step 177). If the value of the comparative change counter is 5 in the step 177, or if the BP control mode flag is not set in the step 167, the MICOM 10 initializes the ABB control mode flag and the comparative change counter, and goes back to the main routine (step 178). And, if the output logic states of the second comparator A2 are same in the step 175, or if the value of the comparative change counter is not 5 in the step 177, the MICOM 10 goes back to the step 119. The MICOM 10 carries out the interrupt routine consisting of the steps 179 to 184, whenever the vertical blanking pulse representing the vertical blanking term is received from the vertical synchronizing signal generator 80. When the vertical blanking pulse is received, the MICOM 10 checks if the AWB control mode flag is set, to determine whether the AWB control mode is set (step 179). If the AWB control mode has not been set in the step 179, the MICOM 10 checks if the ABB control mode flag is set, to determine whether the ABB control mode is set (step 180). If the AWB control mode has been set in the step 179 or if the ABB control mode has been set in the step 180, the MICOM 10 checks if an even/odd number vertical synchronizing signal display flag (hereinafter, "E/O vertical synchronizing display flag") allocated in its register is set, and determines if the present vertical synchronizing signal is an vertical synchronizing signal corresponding to an even number order (step 181). If the present vertical synchronizing signal is an even order vertical synchronizing signal in the step 181, the MICOM 10 stores the output value of the first comparator A1 or the output value the second comparator A2, received in its working buffer via the fourth control switch 54, in its RAM and again receives the output value of the first comparator A1 or the second comparator A2 in the working buffer (step 182). If the received vertical synchronizing signal is not the vertical synchronizing signal corresponding to an even number order in the step 181, or after the completion of the step 182, the value of the E/O vertical synchronizing display flag is inverted (step 183). After carrying out the step 183, the MICOM 10 supplies the adjustable control data (i.e., one of the black level value, the black set value, and the pedestal level value) stored in its RAM, to the color signal processor 20 via the output means 60 to control the white balance and the black balance of color signals. As described above, according to the present invention, the signals received in the two comparing means are stepwise processed so that the white balance control and the black balance control can be carried out in common, and the circuit structure can be simplified.

Claims: A circuit for performing an automatic white balance and an automatic black balance between first, second, and third color signals, comprising : a controller (10) for controlling said circuit ; a color signal processor (20) for variably amplifying and processing said color signals under the control of said controller (10) ; key input means (70) for inputting to said controller (10) either an instruction of white balance control (AWB), or an instruction of black balance control (ABB) first and second comparing means (30,40) including several comparators (A1,A2) for comparing with each other said color signals delivered by said color signal processor (20), said first comparing means (30,A1) being activated when an automatic white balance instruction is inputted, and said second comparing means (40, A2) being activated when an automatic black balance instruction is inputted; transit means (50) under the control of said controller (10) for supplying said color signals delivered by said color signal processor (20) depending on the instruction inputted by said key input means (70) either to the first comparing means (30) or to the second comparing means (40) and transmitting output signals of said first or second comparing means to said controller (10) ; and output means (60) for supplying control data processed by said controller on the basis of the output signals of said comparing means to said color signal processor (20) ; characterized in that said first and second comparing means each comprise only a single comparator (A1 and A2), and that said transit means (50) are arranged and controlled in such a manner that both in the case of an inputted automatic white balance instruction and in the case of an inputted automatic black balance instruction as well the single comparator (Al or A2) of the respective activated comparing means (30 or 40) is supplied in a first step with the first and third color signals and in a subsequent second step with the second and third color signals. A method for automatically controlling automatic white balance and automatic black balance, between first, second and third color signals, comprising the steps of : checking whether a user requires automatic white balance control (AWB) or automatic black balance control (ABB) ; when automatic white balance control is required, detecting a level difference between said color signals ; when automatic black balance control is required, detecting a pedestal level difference between said color signals every successive vertical synchronizing period producing control data every successive vertical synchronizing period on the basis of said detected differences and using these control data for performing said automatic white balance and said automatic black balance, characterized in that, when automatic white balance or automatic black balance control is required, comparing in both cases in a first step the first and the third color signals and subsequently in a second step the second and the third color signals. Method according to claim 2, characterized in that, when a black balance control is required, this control is preceded by a black set control in which all color signals are amplified over a vertical scanning period and the amplified signals compared to the non-amplified signals of a successive vertical scanning period respectively, a corresponding correction being made on the basis of said comparison.

Inventors: BYEONG-KWAN JEON, YOUNG-GU EOM, BYEONG-KWAN, JEON, YOUNG-GU, EOM
Applicants: SAMSUNG ELECTRONICS CO LTD, SAMSUNG ELECTRONICS CO. LTD.
Application year: 1990
Main classification: H04N9
IPC codes: H04N9