Printer utilizing temperature evaluation and temperature detection

Abstract: A printer for recording a multitone image in which pulse width correction data is generated based on a temperature output of a thermistor for detecting the temperature of a head mount of a thermal head and an output of a data cumulating circuit for cumulating pulse width data inputted to the thermal head; and an adding circuit adds the pulse width data to an output obtained by conversion, from inputted tone data, made by a γ correcting circuit, thus accomplishing a temperature compensation. A method for determining a temperature compensation constants necessary for calculating pulse width correction data.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates to a printer of a thermal transfer type and more particularly to the printer for recording a multitone image. Description of the Related Arts A thermal transfer printing system can more readily deal with colors and can be made more compact than other printing systems like an ink-jet system or an electophotographic system, and because of its further advantages in image quality, cost, and maintenance, this system is widely applied to hard copy apparatus which record pictorial images. Especially, thermal transfer recording method which uses sublimating dye ink as thermosensible ink is suitable for recording a pictorial image. This method utilizes the characteristic of the sublimating dye that the amount of the dye to be transferred to recording paper thereof continuously changes according to heating amount. Consequently, control of the recording density of a multitone image is possible by modulating the width of pulses to be supplied to a heating element of a thermal head. This density control method is superior to other density control methods such as dither method or density pattern method in respect to forming multitone without reduction of the resolution. However, such a system as the sublimation dye thermal transfer printer, which performs density control by the current pulse width modulation, has its recording density dependent on the ambient temperature, and therefore it is difficult to reproduce the density of the image correctly. In full color recording, normally, the primary colors of yellow (Y), magenta (M), and cyan (C) are recorded one by one on one image plane, and recording paper is rewound to superimpose recorded images of the three colors on each other three times. Unless the density of each color is correctly reproduced, the color of each pixel obtained by the mixture of the primary colors is different from a target color. Therefore, it is necessary to develop a temperature compensating technique to reproduce the density of the image by controlling energy to be applied to the printer according to a temperature so as to form an image of high quality. In addition to the change in environmental temperature, the temperature rise (heat reserve) of the thermal head itself during the recording of the image is also a cause of a temperature change. Although heat generated in the heating element of the thermal head during the image recording is partly transmitted to an ink film, the generated heat is mostly transmitted to a head mount via a substrate of the heating element. As a result, during recording, there always exists inconstant temperature distribution in a thermal head according to input recording signals. The temperature measurement for temperature compensation is carried out by a temperature measuring element such as a thermistor installed in the head mount spaced a certain distance from the heating element in order to prevent the measuring operation from giving a bad influence on the image recording. This is not enough to follow a temperature change in a portion disposed in the vicinity of the heating element such as the substrate of the heating element in response to recording signals. To cope with this problem, a temperature compensating method having a prompt response to the temperature change has been proposed. According to USP 5,066,961, the temperature of the substrate of the heating element is evaluated based on the measured temperature of the head mount of the thermal head and energy applied to the heating elements from the first line until a precedent line so as to calculate a compensation coefficient from the temperature of the substrate of the heating element. Then, the compensation coefficient is multiplied by pulse width data. In this manner, a temperature compensation is carried out. In the above-described apparatus, temperature compensation is performed by multiplying the compensation coefficient by the pulse width data. This method has, however, a problem that in a high speed recording, a temperature compensation cannot be accomplished accurately. Therefore, the density of the multitone image cannot be recorded favorably when a temperature has changed. SUMMARY OF THE INVENTION It is therefore an object of the present invention to provide a printer capable of accomplishing a temperature compensation with a high accuracy. In accomplishing these and other objects, there is provided a printer according to claim 1. According to the above construction, the data correcting means adds the pulse width correction data to the output of the γ correcting means. Therefore, the printer is capable of providing a temperature compensation with a high accuracy. BRIEF DESCRIPTION OF THE INVENTION These and other objects and features of the present invention will become clear from the following description taken in conjunction with the preferred embodiments thereof with reference to the accompanying drawings, in which: Fig. 1, (A) and (B), is a block diagram showing the construction of a printer for recording a multitone image according to a first embodiment of the present invention; Fig. 2, (A) and (B), is a view showing a method of determining temperature compensating constants α and A 3 according to the first embodiment of the present invention; Fig. 3 is a flowchart showing a process of determining temperature compensating constants A 1 and A 2 according to the first embodiment of the present invention; Fig. 4, (A) and (B), is an explanatory view showing a method of determining temperature compensating constants A 1 and A 2 according to the first embodiment of the present invention; Fig. 5, (A) and (B), is an explanatory view of an experimental result showing the characteristic of a shift amount τ d under a first recording condition (printing cycle: 16ms, maximum pulse width: 4ms) according to the first embodiment of the present invention; Fig. 6, (A) and (B), is an explanatory view of an experimental result showing the characteristic of a shift amount τ d under a second recording condition (printing cycle: 8ms, maximum pulse width: 8ms) according to the first embodiment of the present invention; Fig. 7, (A) and (B), is an explanatory view of an experimental result showing the characteristic of a shift amount τ d under a third recording condition (printing cycle: 8ms, maximum pulse width: 4ms) according to the first embodiment of the present invention; Fig. 8, (A) and (B), is an explanatory view of an experimental result showing the characteristic of a shift amount τ d under a fourth recording condition (printing cycle: 8ms, maximum pulse width: 2ms) according to the first embodiment of the present invention; Fig. 9, (A) and (B), is an explanatory view of an experimental result showing the characteristic of a shift amount τ d under a fifth recording condition (printing cycle: 4ms, maximum pulse width: 4ms) according to the first embodiment of the present invention; Fig. 10, (A) and (B), is an explanatory view of an experimental result showing the characteristic of a shift amount τ d under a sixth recording condition (printing cycle: 4ms, maximum pulse width: 2ms) according to the first embodiment of the present invention; Fig. 11, (A) and (B), is an explanatory view of an experimental result showing the characteristic of a shift amount τ d under a seventh recording condition (printing cycle: 2ms, maximum pulse width: 2ms) according to the first embodiment of the present invention; Fig. 12, (A) and (B), is an explanatory view in which a comparison is made between a correction error of the printer according to the first embodiment of the present invention and of a conventional printer; Fig. 13 is a block diagram showing the construction of a printer for recording a multitone image according to a second embodiment of the present invention; and Fig. 14 is a block diagram showing the construction of a printer for recording a multitone image according to a third embodiment of the present invention. DETAILED DESCRIPTION OF THE INVENTION Before the description of the present invention proceeds, it is to be noted that like parts are designated by like reference numerals throughout the accompanying drawings. A printer according to a first embodiment of the present invention is described below with reference to Figs. 1 through 12. Fig. 1 is a block diagram showing the construction of the printer according to the first embodiment of the present invention. The printer records the density of a multitone image faithfully in response to input density data and records the tone of the multitone image by means of thermosensible recording method, with a pulse width controlled. Referring to Fig. 1A, the printer comprises a thermal head 1; a power supply 2; a γ correcting means 3; an adding means 4; a head driving means 5; a pulse width averaging means 6; data cumulating means 7; a temperature detection means 8; and a correction data determining means 9. The thermal head 1 comprising (n) (n is an integer more than 1) pieces of heating elements arranged in a line records the image for each line at a constant printing cycle. The power supply 2 supplies power to the thermal head 1. In an m-th printing line (m is an integer more than 1), the γ correcting means 3 converts printing tone data D(m, i) of each heating element (i) (i = 1 ∼ n) into corresponding pulse width data τ(m, i). The pulse width data τ(m, i) corresponds to the first pulse width data as defined in the claim. The γ correcting means 3 comprises a ROM table. Upon input of an address corresponding to the tone data to the ROM table, a pulse width necessary for recording the image density indicated by the tone data is read. The correspondence between the pulse width data and the tone data has been experimentally found at a certain temperature condition, which is defined as a standard state. In order to set the printer in the standard state, a predetermined pulse width τ 0 is repeatedly applied to each heating element in each printing line. As a result, the temperature T of a head mount of the thermal head 1 becomes the reference temperature T st when the heat cumulation of the substrate of the heating element has been saturated, in other words, a difference between the temperature of the substrate and of the head mount has reached constant. The following data inputted to the γ correcting means 3 may be also used as the tone data D(m, i): density data corresponding to the component of each of the primary colors Y, M, and C or luminance data corresponding to the component of each of the complementary colors R, G, and B. In response to the first pulse width data τ(m, i) outputted from the γ correcting means 3, the adding means 4 adds pulse width correction data τ h (m) determined by the correction data determining means 9 to the first pulse width data τ(m, i), thus outputting second pulse width data τ(m, i) + τ h (m) to the head driving means 5. It is to be noted that the adding means 4 corresponds to the data correcting means defined in the claim. In proportion to the second pulse width data τ(m, i) + τ h (m), the head driving means 5 sets the period of time in which electricity is supplied to the heating element (i) disposed in the m-th line. The pulse width averaging means 6 totals the pulse width data {τ(m, 1) + τ h (m) ∼ τ(m, n) + τ h (m)} , of all pixels existing in one line, outputted from the adding means 4 and takes an average value thereof, thus outputting averaged pulse width data τ av (m) to the totaling means 7. In response to the averaged pulse width data τ av (m) outputted from the pulse width averaging means 6, the data cumulating means 7 cumulates the averaged pulse width data τ av (m) for each line by using a recurrence formula of equation 1, thus outputting the cumulated data P(m) to the correction data determining means 9. P ( m )=α· P ( m -1)+(1-α)· A 3 ·τ av ( m -1) where α is a constant greater than 0 and smaller than 1; A 3 is a constant, and P(0) = 0. The recurrence formula of equation 1 is equivalent to an equation of equation 2. Therefore, the cumulated data P(m) of the m-th line could also be obtained by weighting the averaged pulse width data τ av (m) and cumulating the output of the pulse width averaging means 6 for each of the first line through a (m-1)th line. P ( m )=(1-α)· A 3 · j m -1 τ av ( j )·α m - j -1 where α is a constant greater than 0 and smaller than 1; A 3 is a constant, and P(0) = 0. The data cumulating means as defined in the claim includes the pulse width averaging means 6 and the data cumulating means 7. The temperature detection means 8 comprises a thermistor embedded in the thermal head 1 and a converting means for converting the resistance value of the thermistor into temperature data, thus outputting the temperature T(m) of the head mount for each printing line. The correction data determining means 9 calculates the pulse width correction data τ h (m) based on the output T(m) of the temperature detection means 8 and the output P(m) of the data cumulating means 7 by using an equation 3 shown below. τ h ( m )= A 1 ·( T ( m )+ P ( m ))+ A 2 where A 1 and A 2 are constant. The cumulated data P(m) of equation 3 indicates an estimated value of the difference between the temperature of the substrate of the heating element and that of the head mount. Therefore, {T(m) + P(m)} means an estimated value of the temperature of the substrate. Fig. 1B is a partial sectional view showing the construction of the thermal head 1. The thermal head 1 comprises a substrate 1e of a heating element, made of Al 2 O 3 ; a glaze layer 1d formed on the substrate 1e; the heating element 1c formed on the glaze layer 1d by sputtering; an electrode 1b connected with the glaze layer 1d; and a protecting layer 1a for protecting the upper surface of the thermal head 1. The substrate 1e of the heating element 1c is installed on a head mount 1g via an adhesive layer 1f. A thermistor 8a composing the temperature measuring means 8 is embedded in the head mount 1g. The printer having the above-described construction records the image by performing a temperature compensation for each line. The method for determining the constants α, A 1 , A 2 , and A 3 is described below. Fig. 2 shows a heat response of the heating element. As shown in Fig. 2A, electric power W 0 is applied stepwise to each of the heating elements of the thermal head from a time t = 0 so as to measure the temperature of each heating element by means of a radiation thermometer or TCR method (temperature measuring method utilizing change in temperature of resistance value of heating element) and also measure the temperature of the head mount 1g by means of the thermistor. The electric power W 0 is applied to all the heating element 1c for a long time (more than several seconds) until the rise ratio of the temperature of the heating element 1c becomes almost equal to that of the temperature of the head mount 1g. The graph shown in Fig. 2B indicates the result of the application of the electric power W 0 to the heating element 1c. Then, the indential response of the temperature T h (t) of the heating element 1c is given by an approximate expression of equation 4 shown below. The constants C 1 , C 2 , R 1 , and R 2 are determined so that the approximate equation 4 matches the measured temperature T h (t) best. Preferably, the objective heating element of the measurement is chosen so it has a resistance value close to the average resistance value of all the heating elements. The electric power W 0 is not necessarily set to be equal to the electric power required in recording an image tone but set to a value lower than that used in recording the image tone. In this manner, the heating element 1c can be prevented from being broken. In the first embodiment, the indential response of the temperature T h (t) of the heating element is measured based on the characteristic of the temperature thereof at the rise time thereof when electric power has been applied thereto stepwise, but may be measured based on the characteristic of the temperature thereof at the fall time thereof after electric power is interrupted stepwise. T h ( t )= R 1 W 0 {1-exp( - t C 1 R 1 )}+ R 2 W 0 {1-exp( - t C 2 R 2 )}+ T ( t ) The constants α and A 3 are determined based on the constants C 1 , C 2 , R 1 , and R 2 , the line cycle τ L of the printer, and the electric power W applied to the heating element in recording the image tone, by using equations 5 and 6. α = exp ( -τ L C 2 R 2 ) A 3 = R 2 τ L · W Next, a method of determining the constants A 1 and A 2 , is described below. One of the benefits of this method is that γ correction data, which is set in the γ correcting means, is determined concurrently. Fig. 3 is a flowchart showing the process of obtaining γ correction data and determining the constants A 1 and A 2 . In a process 21, an environmental temperature T 0 is set by utilizing a constant-temperature bath and the thermal head 1 is left for a sufficient period of time so as to make the temperature T of the head mount 1g equal to the environmental temperature T 0 . For example, supposing that the reference temperature T st of the head mount 1g is set to 30°C, the environmental temperature T 0 is set to approximately 26°C. In a first recording process 22, the multitone image is recorded by applying different pulse width stepwise to a plurality of heating elements in the main scanning direction (direction in which heating elements are arranged) of the thermal head. In a second recording process 23, a solid image is recorded by giving a predetermined pulse width τ 0 to each of the heating elements so that the temperature in the main scanning direction of the thermal head 1 becomes uniform. This operation is repeated until the temperature T of the head mount 1g becomes the reference temperature T st (30°C). Preferably, the pulse width τ 0 is about a half of the maximum pulse width, and is Equal to the average value of the pulse width given to the heating elements in the first recording process 22. When the temperature T of the head mount 1g has become the reference temperature T st (30°C) in the second recording process 23, the operation of a third recording process 24 is executed. In the third recording process 24, similarly to the first recording process 22, a multitone image is recorded by applying different pulse width stepwise to a plurality of heating elements in the main scanning direction of the thermal head. If the period of time required for recording the multitone image made in the second recording process 23, namely, if the period of time t in which the temperature T of the head mount 1g becomes the reference temperature T st is greater than a time constant C 2 R 2 , the recording operation terminates. If the period of time t in which the temperature T of the heat release base 1g becomes T st is smaller than the time constant C 2 R 2 or much greater than that and thus if the multitone image cannot be recorded on the recording paper in the third recording process 24, the initialization of the temperature of the head mount 1g is altered to record the multitone image again. In a density measuring process 25, the optical density of each portion of the multitone image recorded in the first and third recording processes 22 and 24 is measured. To this end, the pixel of the first one line is measured by a micro-densitometer in the first and third recording processes 22 and 24. It is possible to use a reflection densitometer having a small aperture size ( 2 ∼ 3mm) so as to measure the density of the pixel in the early stage of the operation of the first and third recording processes 22 and 24. In this way of measurement, almost the same result is obtained. In a process 26, the γ correction data is obtained based on the correspondence between the pulse width data and the density data and in addition, the constants A 1 and A 2 are determined. The method of determining the constants A 1 and A 2 by these processes is described in detail with reference to views of Fig. 4. Fig. 4A shows a recorded image obtained in the recording processes. Reference numeral 41 denotes the first multitone image obtained in the first recording process 22. Reference numeral 41a through 41q denote regions of the image recorded by applying different pulse width from 0 to the maximum pulse width to each of 17 regions. The temperature T of the head mount 1g at the time of recording the multitone image is almost equal to the environmental temperature T 0 , and the cumulated value P is almost zero. Accordingly, the temperature (T + P) of the substrate 1e of the heating element of the thermal head 1 is found as T 0 at this time. Reference numeral 42 denotes a second multitone image obtained in the second recording process 24. Reference numeral 42a through 42q denote regions of the image recorded by applying different pulse width, equal to those applied to the regions 41a through 41q, to each of 17 regions. The temperature T of the head mount 1g at the time of the recording the multitone image is almost equal to the reference temperature T st , and the cumulated value P is almost equal to (τ 0 /τ L ) x R 2 x W . Accordingly, the temperature (T + P) of the substrate 1e of the heating element of the thermal head 1 is found as T st + (τ 0 /τ L ) x R 2 x W . As described previously, this condition is set as the standard state. Fig. 4B is a graph obtained by plotting the correspondence between the pulse width data and the density data based on the measured density of each portion of the recorded multitone image A. Reference numeral 43 denotes a γ characteristic function, of the first multitone image, obtained by an insertion between data by means of interpolation such as spline interpolation, with the correspondence between the pulse width data at 17 points of the regions 41a through 41q and the density data plotted. Reference numeral 44 denotes a γ characteristic function, of the second multitone image, obtained by an insertion between data by means of interpolation such as spline interpolation, with the correspondence between the pulse width data at 17 points of the regions 42a through 42q and the density data plotted. The γ correction data can be obtained by finding the inverse function of the γ characteristic function 44 at the reference temperature T st . The γ correction data is set in the ROM of the γ correcting means 3. Referring to Fig. 4B, let it be supposed that the shift amount of the γ characteristic function 43 of the first multitone image with respect to the γ characteristic function 44 of the second multitone image in the abscissa is τ d (τ d > 0). The shift amount means the movement amount for making the γ characteristic function 43 of the first multitone image coincident with the γ characteristic function 44 of the second multitone image when the function 43 is moved in parallel along the abscissa. The shift amount τ d is expressed in terms of a recorded density (or pulse width τ d in reference state) and the temperature (T + P) of the substrate of the heating element so long as the configuration of the γ characteristic function of the first multitone image 43 and that of the γ characteristic function of the second multitone image 44 are not identical to each other. As will be described later, even though the shift amount τ d is expressed in terms of only the temperature (T + P) of the heating substrate, the temperature compensating accuracy is not much degraded. The constants A 1 and A 2 are found based on the shift amount τ d and the temperatures of the substrates of two heating elements by using equations 7 and 8 shown below. A 1 =- τ d (τ 0 /τ L · R 2 · W + T st - T 0 A 2 = τ d ·{(τ 0 /τ L )· R 2 · W + T st (τ 0 /τ L )· R 2 · W + T st - T 0 According to the method of determining the constants A 1 and A 2 in the first embodiment, it is unnecessary to conduct experiments of image recording by changing the environmental temperature from a low temperature to a high temperature, but it is possible to find a temperature compensating constant easily by measuring the recorded density of the multitone image only once. Therefore, in the method for determining the temperature compensating constant according to the first embodiment, an appropriate constant can be set to each printer by executing simple processes at the room temperature in mass production, and thus the method is capable of compensating the environmental temperature even if the thermal head 1 has a nonuniform thermal characteristic. Experiments of tone recording were conducted to find the constants A 1 and A 2 as follows: As shown in Table 2, seven different conditions were applied in printing cycle τ L and maximum pulse width τmax. Electric power W to be applied to the heating element was set so that 2.2 was obtained as optical density when a pulse width of 0.75τmax was applied thereto under the above-described reference condition { (T + P) = T st + (τ 0 /τ L ) x R 2 x W }. The value of 0.75τmax was set in consideration of the allocation of the pulse width of the remaining 0.25τmax to the temperature compensating allowance in practical use. The image described with reference to Fig. 4A was recorded at an environmental temperature T 0 ≒ 30°C. Only the recording of one image is enough for the constant A 1 and A 2 to be determined as described previously. But in the first embodiment, in order to describe the accuracy of the temperature compensating method of the present invention, two solid images were recorded in the above-described condition, with pulse widths τ 0 varied from each other ( τ 0 = 0.75 x τmax and τ 0 = 0.375 x τmax ). recording condition 1 2 3 4 5 6 7 line cycle τ L 16ms 8ms 8ms 8ms 4ms 4ms 2ms maximum pulse width τmax 4ms 8ms 4ms 2ms 4ms 2ms 2ms applied electric power (per 1dot) 430W 184W 348W 655W 246W 471W 389W 0.21W 0.09W 0.17W 0.32W 0.12W 0.23W 0.19W constant A 1 (×10 -3 ms/C°) -8.44 -21.6 -9.53 -3.67 -8.59 -4.45 -3.28 constant A 2 (ms) 0.426 1.45 0.618 0.241 0.711 0.348 0.343 thermal head flat glazed head made of thin film manufactured by Matsushita Electronic Components Co., Ltd. article number TX-CLB5001 resolution 300 DPI dimension of heating element 70 × 90 µm number of heating elements 2048 dots average resistance value 1017 Ω heat resistance R 2 0.58 (°C/W) ink sheet sublimating type ink sheet manufactured by Mitsubishi Kasei Corporation (commercially available) base material PET (thickness 4.5 µm) recorded color cyan recording paper sublimation type image recording/receiving paper manufactured by Mitsubishi Kasei Corporation (commercially available) base material: synthetic paper recorded image (1) recorded image of Fig. 4A (τ 0 =0.75 × τmax) (2) recorded image of Fig. 4A (τ 0 =0.375 × τmax) In each of the above-described conditions, the recorded densities of multitone portions of the two images were measured to obtain the shift amount of the τ d characteristic function for each multitone image. The temperature (T + P) of the substrate 1e of the heating element was found as follows when each multitone image was recorded: (T + P) = T st + (τ 0 /τ L ) x R 2 x W Fig. 5 shows the result of an experiment showing the characteristic of the shift amount τ d in the following recording condition 1 (printing cycle 16ms, maximum pulse width 4ms). Fig. 5A is a graph showing the relationship between the pulse width τ in the standard state and the shift amount τ d , the standard state being set as follows: (T + P) = T st + (0.375 x τmax/τ L ) x R 2 x W = 51°C where T st = 30°C. Reference numeral 51 indicates a function in terms of the shift amount τ d when the temperature (T + P) of the substrate 1e of the heating element is (T + P) = 28°C . Reference numeral 52 indicates a function of the shift amount τ d when the temperature (T + P) of the substrate 1e of the heating element is (T + P) = 74°C . In the first embodiment, temperature is compensated by supposing that the shift amount τ d is constant irrespective of the difference in the pulse width τ. In the conventional temperature compensating method in which pulse width data is multiplied by the compensation coefficient, a temperature compensation is performed by supposing that the shift amount τ d is proportional to the pulse width τ. Comparing these two suppositions with the functions 51 and 52 showing the result of the experiment, the supposition of the first embodiment is closer to the shift amount τ d than the conventional temperature compensating method. Therefore, the temperature compensating method according to the present invention is capable of compensating an environmental temperature more accurately than the conventional temperature compensating method. Fig. 5B is a graph showing the relationship between the temperature (T + P) of the substrate 1e of the heating element and the shift amount τ d . The shift amount τ d indicates the average of points (circles), the maximum value, and the minimum value of the functions 51 and 52 described with reference to Fig. 5A. It was found that the shift amount τ d could be expressed in terms of a linear function of the temperature (T + P) of the substrate 1e of the heating element. The slope of the linear function is the constant A 1 and the intercept thereof is the constant A 2 . Figs. 6 through 11 show the experimental result showing the characteristic of the shift amount τ d in the recording conditions 2 through 7. These result indicate that the higher the printing speed is, the more accurately the printer according to the first embodiment can accomplish a temperature compensation than the conventional printer. Because the shift amount τd gets nearer to constant irrespective of the difference in the pulse width τ, at higher printing speed. It is understood that the shift amount τ d is accurately expressed in terms of a linear function of the temperature (T + P) of the substrate 1e of the heating element in any of the above-described condition of experiment. This indicates that the pulse width correction data τ h (m) to be used for a temperature compensation can be expressed accurately by the simple equation 3 previously described. In the first embodiment, the constants A 1 and A 2 obtained from the slopes and intercepts of linear functions are set in the ROM of the γ correcting means 3. Fig. 12 shows a correction error to be used when recording is effected by the printer having the above-described construction. The correction error means the difference between a target recording density and a recording density obtained after the environmental temperature is compensated. Printing cycles 4ms/line, 8ms/line, and 16ms/line shown in Fig. 12A correspond to the recording condition 6, 3, and 1, respectively. Fig. 12A shows the correction error in temperature compensation in the first embodiment. Fig. 12B shows the correction error in temperature compensation in the conventional printer. The constants of both temperature compensating methods are determined so that compensation accuracy is highest in an intermediate density which changes greater than any other densities. Accordingly, the compensation error is great in low and high densities. A density having the greatest correction error is plotted as the error range in Fig. 12. If a measured density is higher than the target density, the correction error is set to be positive whereas if a measured density is lower than the target density, the correction error is set to be negative. As shown in Fig. 12, the compensation error of the printer according the present invention is small as about half as that of the conventional printer in temperature compensation. That is, the present invention provides a high temperature compensation. Table 2 shows the number of calculations performed by the printer according to the first embodiment and the conventional printer in carrying out temperature compensation of one line comprising (n) pieces of pixels. first embodiment conventional art generation of pulse width correction data addition and subtraction: twice multiplication: once addition and subtraction: twice division: twice correction of pulse width additions and subtractions: n times multiplication: n times A CPU (manufactured by Motrola Corp. 6809) is used as the means for determining the pulse width correction data in the first embodiment. Division is not performed but multiplication is performed in the first embodiment, which allows calculations to be performed at a high speed. Since division is not supported as an instruction of the CPU, it is necessary to perform processing of creating a subroutine or the like in performing division and thus it takes more time than multiplication to perform calculations whereas multiplication can be executed by the instruction of the CPU. A CPU (manufactured by Motrola Corp. 6809) is used as the data correcting means in the first embodiment. Additions and subtractions can be performed faster than multiplications. Therefore, the CPU is capable of correcting processing at a high speed. That is, 11 machine cycles are required for one calculation in multiplication whereas two to eight machine cycles are required for one calculation in additions and subtractions. That is, additions and subtractions can be performed about two to six times faster than multiplication. The data correcting means according to the first embodiment performs calculation at a high speed in the case where the number of pixels is great. As apparent from the foregoing description, the printer according to the first embodiment is capable of accomplishing a temperature compensation at a high speed without equipping the printer with a particular computing device. The printer according to the first embodiment has the above-described features in addition to the feature of the conventional printer described below. The first feature of the conventional printer is that the printer is capable of accomplishing a temperature compensation without delay with respect to a great change in heat reserve amount which occurs every several seconds, because means for correcting the delay in the detection of temperature is provided in the printer in consideration of heat reserve in a substrate of a heating element of a thermal head. The second feature of the conventional printer is that it is capable of accomplishing a multitone recording not a binary recording. The third feature of the conventional printer is that it is capable of coping with arbitrary input signals or arbitrary recording conditions. The second embodiment of the present invention is described below with reference to Fig. 13. Similarly to the first embodiment, the printer according to the second embodiment comprises the means 1, 2, 3, 5 through 8. The pulse width averaging means 61 averages the first pulse width data {τ(m, i) ∼ τ(m, n)} to be corrected outputted from the γ correcting means 3. Then, the pulse width correction data τ h outputted from the correction data determining means 9 is added to the averaged value. Thus, the pulse width averaging means 61 outputs the average pulse width data τ av (m) to the data cumulating means. The temperature compensating effect of the printer according to the second embodiment is similar to that of the printer according to the first embodiment. The third embodiment of the present invention is described below with reference to Fig. 14. Similarly to the first embodiment, the printer according to the third embodiment comprises the means 1 through 5, 7, 8, and 9. The correction data determining means 70 generates a correction coefficient k(m) and pulse width correction data τ' h (m) in response to the output P(m) of the data cumulating means and the output T(m) of the temperature detection means 8 by using equations 9 and 10. The correction data determining means 70 comprises a ROM which outputs the correction coefficient k(m) and the pulse width correction data τ' h (m) to the multiplying means 71 and the adding means 72, respectively in response to the output of the data cumulating means and that of the temperature detection means 8. k ( m )= A 4 + T st +(τ 0 /τ L )· R 2 · W A 4 + T ( m )+ P ( m ) τ' h ( m )= A 5 ·( T ( m )+ P ( m ))+ A 5 where A 4 , A 5 , and A 6 are constants. A multiplying means 71 multiplies the correction coefficient k(m) by the pulse width data τ(m,i) to be corrected outputted from the γ correcting means 3, thus outputting k(m)τ(m,i) to an adding means 72. The adding means 72 adds the pulse width correction data τ' h (m) to the output k(m)τ(m,i) of the multiplying means 71, thus outputting k(m)τ(m,i) + τ' h (m) to the head driving means 5. The temperature compensation in the third embodiment is equivalent to the temperature compensation made by supposing that the functions 51 and 52 are linear functions in terms of the pulse width τ in the reference state. The temperature compensation in the third embodiment is capable of reducing compensation error resulting from the supposition that the functions 51 and 52 are constant with respect to the pulse width τ in the reference state, thus accomplishing a more accurate temperature compensation. Although the present invention has been fully described in connection with the preferred embodiments thereof with reference to the accompanying drawings, it is to be noted that various changes and modifications are apparent to those skilled in the art. Such changes and modifications are to be understood as included within the scope of the present invention as defined by the appended claims unless they depart therefrom.

Claims: A printer for recording a multitone image for each printing line comprising: γ correcting means (3) for converting tonal data (D(m,i)) including at least one of density data and luminance data supplied thereto into corresponding first pulse width data (τ(m,i)) required to obtain a predetermined recording density; a data correcting means (4; 71, 72) for converting first pulse width data (τ(m,i)) into second pulse width data; a thermal head (1) comprising a plurality of heating elements (1c) formed on a supporting member (1d, 1e, 1f, 1g); head driving means (5) for driving each heating element (1c) of the thermal head (1) according to the second pulse width data; temperature detection means (8) for providing an output (T(m)) representing a temperature in a portion (1g) of the supporting member of the thermal head (1); data cumulating means (6, 7; 61, 7) for providing an output obtained by cumulating data, corresponding to the second pulse width data, for each printing line; and correction data determining means (9; 70) for determining at least the pulse width correction data based on the output (T(m)) of the temperature detection means (8) and that (P (m)) of the data cumulating means (7); characterized in that said data correcting means (4; 71, 72) converts the first pulse width data (τ(m,i)) into the second pulse width data (τ(m,i) + τ h (m)) by at least adding a pulse width correction data (τ h (m)) to the first pulse width data (τ(m,i)). A printer as defined in claim 1, wherein supposing that the output of the temperature detection means (8) is T and the output of the data cumulating means (7) is P, the correction data determining means (9) generates pulse width correction data T h based on the following equation: τ h = A 1 x (T + P) + A 2 where A 1 and A 2 are constants. A printer as defined in claim 2, wherein, in the m th printing line, where m is a natural number, the average value of each of the second pulse width data corresponding to each of heating elements (1c) of the thermal head (1) is τ av (m), and the data cumulating means (7) provides an output P(m) in accordance with the following equation: P(m) = α·P(m-1) + (1-α)·A 3 ·τ av (m-1) where α is a constant of 0 < α < 1, A 3 is a constant, and P(O) = 0. A printer as defined in claim 1, wherein said correction data determining means (70) generates a pulse width correction coefficient (k(m)) and pulse width correction data (τ' h (m)) based on the output (T(m)) of the temperature detection means (8) and that (P(m)) of the data cumulating means (7); and said data correcting means (71, 72) multiplies the output (τ(m,i)) of the γ correcting means (3) by the pulse width correction coefficient (K(m)) and adds the pulse width correction data (τ' h (m)) thereto. A printer as defined in claim 4, wherein supposing that the output of the temperature detection means (8) is T and the output of the data cumulating means (7) is P, the correction data determining means (70) generates pulse width correction coefficient K based on the following equation: K = A 5 A 4 + T + P where A 4 and A 5 are constants. A printer as defined in claim 4, wherein supposing that the output of the temperature detection means (8) is T and the output of the data cumulating means (7) is P, the correction data determining means (70) generates pulse width correction data τ' h based on the following equation: τ' h = A 6 x (T + P) + A 7 wherein A 6 and A 7 are constants. A printer as defined in anyone of claims 1 to 6, said data cumulating means (61, 7) provides an output obtained by cumulating the first pulse width data (τ(m,i)) and the pulse width correction data (τ h (m)) for each printing line.

Inventors: MATSUMOTO YASUKI, MUSHIKA YOSHIHIRO, YAMASHITA HARUO, MATSUMOTO, YASUKI, MUSHIKA, YOSHIHIRO, YAMASHITA, HARUO
Applicants: MATSUSHITA ELECTRIC IND CO LTD, MATSUSHITA ELECTRIC INDUSTRIAL CO., LTD.
Application year: 1993
Main classification: B41J2
IPC codes: B41J2