Printer implementation circuit of payment terminal

The printer's analog signals are converted into digital signals by a voltage comparator, and overheat detection and paper out detection are implemented using the GPIO resources of the safety chip. This solves the problem of insufficient ADC resources in the POS terminal and ensures the normal operation of the printer.

CN223815583UActive Publication Date: 2026-01-20ADDITIONAL INFORMATION TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202520057227.3
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Priority Date
2024-12-13
Filing Date
2025-01-09
Publication Date
2026-01-20
Estimated Expiration
2035-01-09

AI Technical Summary

Technical Problem

The ADC resources of the main control chip of the POS terminal are limited, which makes it impossible to effectively allocate them for overheat detection and paper out detection of thermal printers. In conventional designs, there are insufficient resources when converting analog signals to digital signals.

Method used

A voltage comparator is used to convert the analog signal of the printing chip into a digital signal, and the overheat detection and paper shortage detection are realized through the GPIO resources of the safety chip, thus freeing up the ADC resources.

Benefits of technology

In the case of insufficient ADC resources, overheat detection and paper shortage detection of thermal printers were realized, solving the problem of resource shortage and ensuring the safe operation of the printer.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223815583U_ABST
    Figure CN223815583U_ABST
Patent Text Reader

Abstract

The utility model relates to a printer implementation circuit of a payment terminal, which comprises a printing chip, a voltage comparator and a security chip, and is characterized in that the printing chip outputs a temperature detection output signal and a photoelectric sensor output signal; the voltage comparator is used for converting analog signals of a temperature detection output signal of the printing chip and an output signal of the photoelectric sensor into digital signals, the security chip has common GPIO resources, and an output signal of the voltage comparator is electrically connected with a GPIO port of the security chip; analog signals of a temperature detection output signal of a printing chip and an output signal of a photoelectric sensor are converted into digital signals, overheat detection and paper shortage detection of the thermal printer are achieved through common GPIO resources, ADC resources are released to other functional modules, and the problems that the ADC resources are in shortage, and the AD conversion function cannot be achieved are solved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of electronic payment terminal device, and particularly relates to a printer implementation circuit of a payment terminal. BACKGROUND

[0002] The printer is one of important modules of a POS terminal, and a handheld POS usually adopts a thermal printer. At present, mainstream thermal printers have "temperature detection" and "photoelectric sensor", and overheat detection and paper shortage detection can be realized in the application circuit thereof. Since the two signals of "temperature detection" and "photoelectric sensor" are analog signals, the conventional design idea is to use the ADC pin of a master control chip to realize the conversion of analog signals and digital signals.

[0003] However, the ADC resource of the master control chip is limited and is used for many purposes, such as battery temperature detection, version recording and the like, and the ADC resource needs to be used. In the design of a POS terminal, the situation that the ADC resource is not enough for distribution is often encountered. CONTENT OF THE INVENTION

[0004] Therefore, the present application provides a printer implementation circuit of a payment terminal.

[0005] According to an aspect of the present application, a printer implementation circuit of a payment terminal is provided, comprising: a printing chip, outputting a temperature detection output signal and a photoelectric sensor output signal;

[0006] a voltage comparator, used for converting analog signals of the temperature detection output signal and the photoelectric sensor output signal of the printing chip into digital signals;

[0007] a security chip having a common GPIO resource, and an output signal of the voltage comparator is electrically connected to a GPIO port of the security chip, realizing overheat detection and paper shortage detection.

[0008] In a possible implementation manner, the printing chip is PT48DS, Pin11 of the printing chip is used for outputting a fever temperature detection output signal, and Pin22, Pin23 and Pin24 jointly send a photoelectric sensor output signal.

[0009] In a possible implementation manner, the voltage comparator comprises a first input end, a first output end, a second output end and a second input end.

[0010] The first input end obtains a positive output signal of an emitting tube of the photoelectric sensor of the printing chip, and the first output end outputs a corresponding digital signal.

[0011] The second input end obtains a temperature detection output signal of the printing chip, each input end generates a reference voltage through a voltage dividing circuit, and the size of the input signal and the reference voltage is compared, and the second output end outputs a corresponding digital signal.

[0012] In a possible implementation, the reference voltage of the first input end is set to 1.25V, and is used to realize a paper shortage detection function.

[0013] The reference voltage of the second input end is set to 0.399V, and is used to realize an overheating detection function.

[0014] In a possible implementation, the voltage comparator further comprises a pull-up resistor.

[0015] The output signal of the voltage comparator is electrically connected to a positive terminal of a power supply through the pull-up resistor.

[0016] In a possible implementation, when the input voltage of the first input end is greater than 1.25V, the first output end outputs a high level.

[0017] When the input voltage of the first input end is less than 1.25V, the first output end outputs a low level.

[0018] When the input voltage of the second input end is less than 0.399V, the second output end outputs a low level.

[0019] When the input voltage of the second input end is greater than 0.399V, the second output end outputs a high level.

[0020] The printer implementation circuit of the payment terminal has the following beneficial effects: through the dual-channel voltage comparator, analog signals are converted into digital signals and input to the GPIO resource of the security chip, thereby realizing the overheating detection and paper shortage detection of the thermal printer, wherein the security chip is MH1902, the printing chip is PT48DS, the voltage comparator is LM393, Pin11 of PT48DS is an analog output, and the function is temperature detection; PT48DS internally integrates a photoelectric sensing module, and Pin22, Pin23 and Pin24 realize the function of the photoelectric sensor together. In this way, in the case that the ADC resource is insufficient, the analog signals of the temperature detection output signal of the printing chip and the photoelectric sensor output signal are converted into digital signals, the GPIO resource is used to realize the overheating detection and paper shortage detection of the thermal printer, the ADC resource is released to other functional modules, and the problem of insufficient ADC resource and the inability to realize the AD conversion function is solved.

[0021] Other features and aspects of the present application will become apparent from the following detailed description of exemplary embodiments, taken in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS

[0022] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate examples of the present application, and together with the description, serve to explain the principles of the present application.

[0023] Figure 1 A circuit schematic diagram of a voltage comparator of an embodiment of the present application is shown;

[0024] Figure 2 A circuit schematic diagram of a print chip of an embodiment of the present application is shown;

[0025] Figure 3 A circuit schematic diagram of a security chip of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0026] Various example embodiments, features, and aspects of the present application will be described in detail below with reference to the accompanying drawings. Like reference numerals in the drawings denote like or similar elements throughout. Although various aspects of the embodiments are illustrated in the drawings, the drawings are not necessarily drawn to scale unless specifically indicated.

[0027] Wherein, it needs to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application or simplifying the description, and therefore cannot be understood as indicating or implying that the devices or elements indicated must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as limiting the present application.

[0028] In addition, the terms "first", "second" are only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the technical features indicated. Therefore, the features defined with "first", "second" can explicitly or implicitly include one or more of the features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise specifically limited.

[0029] The word "exemplary" is used herein to mean "serving as an example, instance, or illustration." Any implementation described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other implementations.

[0030] In addition, in order to better illustrate the present application, numerous specific details are set forth in the following detailed description. One skilled in the art will understand, however, that the application can be practiced without certain of the specific details set forth in the detailed description. In some instances, methods, apparatuses, elements and circuits that are well known to those skilled in the art are not described in detail in order to avoid obscuring the present application.

[0031] As shown in Figure 1 , Figure 2 and Figure 3 , the printer circuit of the payment terminal of the embodiment of the present application comprises a printing chip, a voltage comparator and a security chip, the printing chip outputs a temperature detection output signal and a photoelectric sensor output signal, the voltage comparator is used to convert the analog signals of the temperature detection output signal and the photoelectric sensor output signal of the printing chip into digital signals, and the security chip has a general GPIO resource, the output signal of the voltage comparator is electrically connected with the GPIO port of the security chip, and the overheat detection and the paper shortage detection are realized.

[0032] In the embodiment, the analog signals are converted into digital signals by the dual-channel voltage comparator and input to the GPIO resource of the security chip, the overheat detection and the paper shortage detection of the thermal printer are realized, the security chip adopts MH1902, the printing chip adopts PT48DS, the voltage comparator adopts LM393, Pin11 of PT48DS is an analog output, and the function is temperature detection, the photoelectric sensing module is integrated in PT48DS, and Pin22, Pin23 and Pin24 three pins jointly realize the function of the photoelectric sensor. In this way, in the case that the ADC resource is not enough for distribution, the analog signals of the temperature detection output signal and the photoelectric sensor output signal of the printing chip are converted into digital signals, the overheat detection and the paper shortage detection of the thermal printer are realized by using the general GPIO resource, the ADC resource is released to other functional modules, and the problem of shortage of ADC resource and the failure of AD conversion function are solved.

[0033] The printing chip is used to output the temperature detection output signal and the photoelectric sensor output signal, the temperature detection output signal is used to reflect the temperature state of the printer, and the photoelectric sensor output signal is used to reflect the remaining situation of the paper. The voltage comparator is used to convert the analog signals output by the printing chip into digital signals. The security chip has a general GPIO resource, the output signal of the voltage comparator is electrically connected with the GPIO port of the security chip, by reading the digital signals, the security chip can judge whether the printer is overheated or whether the printer is out of paper, and take corresponding measures to ensure the safe operation of the printer.

[0034] In a specific embodiment, the printing chip is PT48DS, Pin11 of the printing chip is used to output the fever temperature detection output signal, and Pin22, Pin23 and Pin24 jointly send the photoelectric sensor output signal.

[0035] In one embodiment, the voltage comparator comprises a first input terminal, a first output terminal, a second output terminal and a second input terminal, the first input terminal obtains the positive output signal of the emitting tube of the photoelectric sensor of the print chip, the first output terminal outputs the corresponding digital signal, the second input terminal obtains the temperature detection output signal of the print chip, each input terminal generates a reference voltage through a voltage dividing circuit to compare the size of the input signal and the reference voltage, and the second output terminal outputs the corresponding digital signal.

[0036] In one embodiment, the reference voltage of the first input terminal is set to 1.25V to realize the paper shortage detection function, and the reference voltage of the second input terminal is set to 0.399V to realize the overheating detection function.

[0037] In one embodiment, the voltage comparator further comprises a pull-up resistor, the output signal of the voltage comparator passes through the pull-up resistor and is electrically connected to the positive terminal of the power supply to ensure the stability and reliability of the signal.

[0038] In one embodiment, when the input voltage of the first input terminal is greater than 1.25V, the first output terminal outputs high level, indicating paper shortage, when the input voltage of the first input terminal is less than 1.25V, it indicates that the paper is sufficient, and the first output terminal outputs low level, when the input voltage of the second input terminal is less than 0.399V, it indicates that the printer is overheating, and the second output terminal outputs low level, when the input voltage of the second input terminal is greater than 0.399V, the second output terminal outputs high level, indicating that the temperature of the printer is normal.

[0039] The above has described the embodiments of the present application, the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes are obvious to those skilled in the art without departing from the scope and spirit of the described embodiments. The choice of terms used herein is intended to best explain the principles, practical applications or improvements to the technology in the market of the embodiments, or to enable other ordinary skilled persons in the art to understand the embodiments disclosed herein.

Claims

1. A printer implementation circuit of a payment terminal, characterized by, The application relates to a temperature and light sensor detection system for a printer. The system comprises: a print chip, which outputs a temperature detection output signal and a photoelectric sensor output signal; a voltage comparator, which is used for converting analog signals of the temperature detection output signal and the photoelectric sensor output signal of the print chip into digital signals; 2. The printer implementation circuit of a payment terminal according to claim 1, characterized in that, a security chip, which has a common GPIO resource, and an output signal of the voltage comparator is electrically connected to a GPIO port of the security chip to realize overheat detection and paper shortage detection.

3. The printer implementation circuit of a payment terminal according to claim 1, characterized in that, The print chip is PT48DS, Pin11 of the print chip is used for outputting a fever temperature detection output signal, and Pin22, Pin23 and Pin24 are used for jointly outputting a photoelectric sensor output signal. The voltage comparator comprises a first input end, a first output end, a second output end and a second input end. The first input end obtains a positive output signal of an emitting tube of a photoelectric sensor of the print chip, and the first output end outputs a corresponding digital signal.

4. The printer implementation circuit of a payment terminal according to claim 3, characterized in that, The second input end obtains a temperature detection output signal of the print chip, and each input end generates a reference voltage through a voltage dividing circuit to compare the size of an input signal and the reference voltage, and the second output end outputs a corresponding digital signal. The reference voltage of the first input end is set as 1.25V, and is used for realizing a paper shortage detection function.

5. The printer implementation circuit of a payment terminal according to claim 1, characterized in that, The reference voltage of the second input end is set as 0.399V, and is used for realizing an overheat detection function. The system further comprises a pull-up resistor.

6. The printer implementation circuit of a payment terminal according to claim 4, characterized in that, The output signal of the voltage comparator is electrically connected to a positive end of a power supply through the pull-up resistor. When the input voltage of the first input end is greater than 1.25V, the first output end outputs a high level. When the input voltage of the first input end is less than 1.25V, the first output end outputs a low level. When the input voltage of the second input end is less than 0.399V, the second output end outputs a low level. When the input voltage of the second input end is greater than 0.399V, the second output end outputs a high level.