This application is based upon and claims the benefit of priority from Japanese Patent Application No. 2023-068573, filed on Apr. 19, 2023, the entire contents of which are incorporated herein by reference.
Embodiments described herein relate generally to a thermal printer.
A thermal head configured such that a large number of mounted heating elements are divided into blocks, and drive data is input in parallel for each block is known.
In a thermal printer using a thermal head having such a configuration, drive data for driving the heating elements of each block is input to the thermal head in synchronization with the same clock signal.
For this reason, change timings of a plurality of pieces of drive data supplied to the thermal head may coincide with each other, leading to an increase in common-mode noise, which may cause a problem with electromagnetic interference (EMI).
Due to such circumstances, it is desired to reduce common-mode noise.
There is provided a thermal printer that can reduce common-mode noise.
In general, according to at least one embodiment, a thermal printer includes a thermal head, a drive data generation unit (drive data generator, a clock generation unit (clock generator), and a drive data supply unit (drive data supply). The thermal head is configured such that a large number of heating elements divided into a plurality of blocks are mounted thereon, and is configured to input drive data for driving the large number of heating elements to the plurality of blocks in parallel in synchronization with a plurality of different first clock signals. The drive data generation unit is configured to generate a plurality of pieces of drive data for each of the plurality of blocks from print data and to output the plurality of pieces of drive data in synchronization with a plurality of second clock signals. The clock generation unit is configured to generate a plurality of clock signals whose phases are shifted from each other as the first clock signals. The drive data supply unit is configured to take in the plurality of pieces of drive data, which are output from the drive data generation unit, in synchronization with the plurality of second clock signals and to supply the plurality of pieces of drive data to the thermal head in synchronization with the plurality of first clock signals generated by the clock generation unit.
An example of at least one embodiment will be described below with reference to the drawings.
The thermal printer 1 includes a thermal head 10, a motor group 20, a motor driver 30, a sensor element group 40, a sensor circuit 50, a clock generation circuit 60, an input port 70, a central processing unit (CPU) 80, a read-only memory (ROM) 90, a random-access memory (RAM) 100, and a complex programmable logic device (CPLD) 110.
The thermal head 10 includes a large number of heating elements 11 and four drive circuits 12. All of the large number of heating elements 11 generate heat by applying a current. The large number of heating elements 11 are arranged, for example, in a row at equal intervals. However, the large number of heating elements 11 may be arranged in multiple rows or in a zigzag manner. The large number of heating elements 11 are divided into four groups. The four drive circuits 12 correspond to the four groups of heating elements 11, respectively. The heating elements 11 belonging to the corresponding group are connected to the drive circuit 12. The drive circuit 12 controls application of a current to each of the heating elements 11 belonging to the corresponding group.
The motor group 20 includes a plurality of motors. The motors included in the motor group 20 are power sources for conveying print paper and the like.
The motor driver 30 drives the motors included in the motor group 20 under the control of the CPU 80.
The sensor element group 40 includes various sensor elements for detecting an operating state of the thermal printer 1.
The sensor circuit 50 determines the operating state of the thermal printer 1 based on the state of each of the sensor elements included in the sensor element group 40.
The clock generation circuit 60 generates a system clock signal CA that serves as a reference for an operation timing of the thermal printer 1.
The input port 70 is a port to which a host device is connected and through which print data transmitted from the host device is input. It is assumed that, for example, a well-known communication device based on a universal serial bus (USB) is used as the input port 70.
The CPU 80 generates four pieces of drive data DBA, DBB, DBC, and DBD for driving the thermal head 10 from the print data that is input through the input port 70. The CPU 80 outputs the drive data DBA, DBB, DBC, and DBD together with clock signals CBA, CBB, CBC, and CBD in synchronization with the clock signals CBA, CBB, CBC, and CBD having different timings. The pieces of drive data DBA, DBB, DBC, and DBD correspond to the four groups of heating elements 11, respectively, and are supplied to the drive circuits 12 corresponding to the same groups via the CPLD 110.
The CPU 80 outputs a latch signal LAT for giving an instruction for a timing at which the drive data DBA, DBB, DBC, and DBD are latched to each of the drive circuits 12 and a strobe signal STB for giving an instruction for a timing at which a current is applied to the heating elements 11 to each of the four drive circuits 12.
The CPU 80 outputs the drive data DBA, DBB, DBC, and DBD, the latch signal LAT, and the strobe signal STB and controls the motor driver 30 in order to execute a necessary print operation while referring to the operating state determined by the sensor circuit 50.
The ROM 90 stores various types of software that describe a processing procedure of the CPU 80 and various types of data to be referred to by the CPU 80 at the time of executing various types of information processing.
The RAM 100 temporarily stores data used if the CPU 80 executes various types of information processing.
The CPLD 110 is programed to constitute a logic circuit for generating clock signals CCA, CCB, CCC, and CCD to be described later and supplying the drive data DBA, DBB, DBC, and DBD to the thermal head 10 in synchronization with the clock signals CCA, CCB, CCC, and CCD.
Next, an operation of the thermal printer 1 configured as described above will be described.
An operation of printing an image using the thermal printer 1 may be basically the same as that of other existing thermal printers of the same type. An operation of the thermal printer 1 which is different from those of other existing thermal printers is the supply of the drive data DBA, DBB, DBC, and DBD to the thermal head 10, which will be described below.
The CPLD 110 generates the clock signals CCA, CCB, CCC, and CCD whose phases are shifted by 90 degrees from each other, as shown in
The CPLD 110 takes in the drive data DBA output from the CPU 80 in synchronization with the clock signal CBA, buffers the drive data DBA, and outputs the drive data DBA to one of the drive circuits 12 in synchronization with the clock signal CCA. The drive circuit 12 receiving the drive data DBA and the clock signal CCA takes in the drive data DBA in synchronization with the clock signal CCA.
The CPLD 110 takes in the drive data DBB output from the CPU 80 in synchronization with the clock signal CBB, buffers the drive data DBB, and outputs the drive data DBB to one of the drive circuits 12 in synchronization with the clock signal CCB. The drive circuit 12 receiving the drive data DBB and the clock signal CCB takes in the drive data DBB in synchronization with the clock signal CCB.
The CPLD 110 takes in the drive data DBC output from the CPU 80 in synchronization with the clock signal CBC, buffers the drive data DBC, and outputs the drive data DBC to one of the drive circuits 12 in synchronization with the clock signal CCC. The drive circuit 12 receiving the drive data DBC and the clock signal CCC takes in the drive data DBC in synchronization with the clock signal CCC.
The CPLD 110 takes in the drive data DBD output from the CPU 80 in synchronization with the clock signal CBD, buffers the drive data DBD, and outputs the drive data DBD to one of the drive circuits 12 in synchronization with the clock signal CCD. The drive circuit 12 receiving the drive data DBD and the clock signal CCD takes in the drive data DBD in synchronization with the clock signal CCD.
Each of the four drive circuits 12 latches the taken-in drive data in synchronization with the latch signal LAT. Each of the four drive circuits 12 controls application of a current to the corresponding heating element 11 in synchronization with the strobe signal STB based on the drive data latched in this manner.
As described above, the clock signals CBA, CBB, CBC, and CBD correspond to a plurality of first clock signals, and the clock signals CCA, CCB, CCC, and CCD correspond to a plurality of second clock signals. The CPU 80 also has a function as a drive data generation unit. The CPLD 110 has functions as a clock generation unit and a drive data supply unit.
Fluctuations in a power supply current due to fluctuations in the clock signal CCA are as in a current CUA shown in
As shown in
Thus, according to the thermal printer 1, it is possible to reduce common-mode noise.
In the thermal printer 1, a phase difference between the clock signals CCA, CCB, CCC, and CCD is set to 90°, which is obtained by 4/360 because the number of groups of the heating elements 11 is four. Thereby, as described above, fluctuations in the power supply current CUX can be logically set to zero, and common-mode noise can be minimized.
This embodiment can be modified in various ways as follows.
The number of groups of the heating elements 11 may be any integer equal to or greater than 2.
If the number of groups of the heating elements 11 is expressed as n, it is desirable that a phase difference between n clock signals be set to be an angle obtained by n/360 as in the above-described embodiment. However, if the n clock signals have a phase difference, it is possible to reduce common-mode noise as compared to a case where there is no phase difference, and thus a phase difference of an angle different from an angle obtained by n/360 may be provided.
The functions implemented by the CPLD 110 can be partially or entirely implemented by hardware that executes processing that is not based on a program, such as a logic circuit.
While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the disclosure. Indeed, the novel embodiment described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the embodiments described herein may be made without departing from the spirit of the disclosure. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
2023-068573 | Apr 2023 | JP | national |