CN101648462B - Control circuit of stylus printer based on FPGA module - Google Patents

Control circuit of stylus printer based on FPGA module Download PDF

Info

Publication number
CN101648462B
CN101648462B CN200910306375XA CN200910306375A CN101648462B CN 101648462 B CN101648462 B CN 101648462B CN 200910306375X A CN200910306375X A CN 200910306375XA CN 200910306375 A CN200910306375 A CN 200910306375A CN 101648462 B CN101648462 B CN 101648462B
Authority
CN
China
Prior art keywords
module
cpu
motor
pulse width
width modulation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN200910306375XA
Other languages
Chinese (zh)
Other versions
CN101648462A (en
Inventor
张帆
张志星
陈宙
邹亮
孙西杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Great Wall Information Co Ltd
Original Assignee
Hunan Greatwall Information Financial Equipment Co Ltd
Greatwall Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan Greatwall Information Financial Equipment Co Ltd, Greatwall Information Industry Co Ltd filed Critical Hunan Greatwall Information Financial Equipment Co Ltd
Priority to CN200910306375XA priority Critical patent/CN101648462B/en
Publication of CN101648462A publication Critical patent/CN101648462A/en
Application granted granted Critical
Publication of CN101648462B publication Critical patent/CN101648462B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a control circuit of a stylus printer based on a FPGA module, comprising a data bus, a decrypting module, an assistant motor module, a pulse width modulation control module, an interrupting module, a synchronous serial port module, a panel control module, a carriage unit motor module, a paper feeding motor module, a printing head module, a power source control module and a CPU. One end of the assistant motor module, the pulse width modulation control module, the interrupting module, the panel control module, the carriage unit motor module, the paper feeding motor module and the printing head module is respectively connected with the decrypting module, the other end is respectively connected with the data bus, the CPU is respectively connected with the decrypting module and the data bus, the power source control module is connected with the decrypting module, the synchronous serial port module is respectively connected with the printing head module and the CPU. Excepting the CPU, other modules are integrated in the FPGA module, and the invention has simple structure and low cost, thereby improving the efficiency and the reliability.

Description

Control circuit of stylus printer based on the FPGA module
Technical field
The present invention relates to a kind of control circuit of stylus printer based on the FPGA module.
Background technology
Impact printer is used product very widely as one in finance and field of securities, has more and more obtained the attention in market.But because the impact printer industry of China is started late, present most of impact printer factory assembles by the parts of the external impact printer of direct buying, these control circuit of stylus printer complex structures, cost height are unfavorable for promoting the use of.
Summary of the invention
In order to solve the above-mentioned technical problem that existing control circuit of stylus printer exists, the invention provides a kind of simple in structure, possibility is high, cost is low control circuit of stylus printer based on the FPGA module.
The technical scheme that the present invention solves the problems of the technologies described above is: comprise data/address bus, decoding module, the stand-by motor module, the pulse width modulation controlled module, interrupt module, the synchronous serial interface module, the panel control module, word vehicle motor module, the paper feed motor module, printhead module, energy supply control module, CPU, described data/address bus, decoding module, the stand-by motor module, the pulse width modulation controlled module, interrupt module, the synchronous serial interface module, the panel control module, word vehicle motor module, the paper feed motor module, printhead module, energy supply control module is integrated in the FPGA module EP2C5Q208C8 chip, described stand-by motor module, the pulse width modulation controlled module, interrupt module, the panel control module, word vehicle motor module, one termination decoding module of paper feed motor module and printhead module, another termination data/address bus, CPU respectively with decoding module, data/address bus links to each other, energy supply control module links to each other with decoding module, the synchronous serial interface module respectively with printhead module, CPU links to each other.
Technique effect of the present invention is: the present invention is except CPU, and other module all is integrated in the FPGA module, and it is relatively simple for structure like this, saved cost, and has improved efficient and reliability.
The present invention is further illustrated below in conjunction with accompanying drawing.
Description of drawings
Fig. 1 is a structural representation of the present invention.
Fig. 2 is the structural representation of paper feed motor module of the present invention.
Fig. 3 is the structural representation of modular printhead module among the present invention.
The specific embodiment
Referring to Fig. 1, the present invention includes data/address bus, decoding module, stand-by motor module, pulse width modulation controlled module, interrupt module, synchronous serial interface module, panel control module, word vehicle motor module, paper feed motor module, printhead module, energy supply control module, CPU, except CPU, other module all is integrated in the FPGA module, and it adopts the EP2C5Q208C8 chip of Cyclone II series.Wherein the major function of decoding module is to provide necessary enable signal (enable signal) for other each functional modules, the external input signal of this module is mainly the address wire of CPU, and address wire is converted to the enable signal of other functional modules of control through various decoding circuits then.These enable signals can be divided into two classes substantially, and a class is for reading effective enable signal, and FPGA's read control end when effective when CPU makes, these enable signals are effective, these enable signals generally use in interrupt module, by enabling these signals, send the information of interrupting to CPU.Another kind of signal then is with imitating enable signal, writes control end when effective when what CPU made FPGA, and these enable signals are effective.Data/address bus, what the transfer of data of FPGA and CPU relied on is data/address bus, this module only is to make an input at the characteristic of bus, output (high resistant) module.By the selection of read-write, thus the direction of selection data flow.The major function of interrupt module is the interrupt signal that focuses on other each functional modules.Each functional module sends interrupt signal separately to interrupt module.Interrupt module is combined into two interrupt sources with these interrupt signals and passes to CPU.CPU can understand the ruuning situation of each functional module by the variation of these two interrupt sources.The main port of this module mainly is divided into the input port of CPU, data input/output port, the interrupt request singal port of enable port and inner each functional module.Interrupt signal mainly comprises the paper feed motor module, word vehicle motor module, the interruption of energy supply control module and printhead module.The major function of paper feed motor module is the motion of control paper feed motor, and whole module is made up of following four little modules, and they are respectively state machine module, copped wave module, pulse width modulation module, reach memory module, as shown in Figure 2.The paper feed motor module obtains the associated motor parameter that CPU sends from data/address bus, and be stored in the memory module, state machine module then according to this moment printer state the parameter in the memory module is selectively passed to copped wave module and pulsewidth adjusting module, rotate according to the instruction of CPU thereby drive peripheral circuit for controlling motor.Wherein state machine module has comprised 4 states and has resetted respectively, and no paper is read phase place, the reading speed state.According to these four different states, whether copped wave module and the selection of pulsewidth adjusting module are read the data in the memory module and are read the data of which section in the memory module.The output of copped wave module is the phase signal that the control motor rotates, and this phase signal of generation is to calculate according to the valid data that read from memory module.The input of copped wave module has then reflected size of current in the motor coil.Pulse width modulation module control reference current signal (this signal is compared with the input of copped wave module and judged whether the electric current in the motor coil has surpassed rated value).If the electric current in the motor coil has surpassed rated value, the copped wave module will be adjusted its output, makes that the current value in the motor coil is lower than load current value.The peripheral components of panel control module control is the operation interface (control panel) of the man-machine interaction of printer, and the operator comes printer operation by the button on the control panel, and can be according to the LED lamp bright, go out or dodge the state of judging that printer is present.So the importation of this circuit is a button, output then is the bright of LED lamp, goes out and glimmers.We can judge whether each functional module is normal among the FPGA by the state of the LED lamp on the control panel, are in which kind of pattern or state.This module major function is that the control signal position to the LED lamp in the program is passed to this module, and the key information that receives of this module and switch cover information send CPU to and transfers to routine processes then.What its major function of printhead module was the control printhead according to program setting goes out pin order printable character or Chinese character.Referring to Fig. 3, printhead module is made up of matrix of printed dots generation module and register and cache memory module.The operational process of whole printhead module is as follows: CPU is by the time constant of data/address bus with printer, and information such as mode parameter pass in the register in the printhead module.CPU will need the lattice information of the character printed or Chinese character to pass in the cache memory module in the printhead module by dma mode.CPU passes to related register in the printhead module by the synchronous serial interface module with the configuration information of printhead.These data information transfer that printhead module will receive are before given inner matrix of printed dots generation module.
When these information all are stored in the printhead module, and printhead has been when having moved to the position that needs to print, and the data message that the matrix of printed dots generation module just transmits according to CPU is controlled peripheral print needle drive circuit and begun printing.Word vehicle motor module functions is the motion of control word vehicle motor, and the function of whole module is almost completely the same with the paper feed motor module with implementation.The function of pulse width modulation controlled module is that the 80V power supply that is used to print is controlled and produced to the light emitting diode on printer photosensor and the photosensitive tube.The control of light emitting diode, by pulse width modulation module make the gray scale of light emitting diode have 256 kinds optional, accurately select only electric current gear to reach only luminance difference.Thereby judging more accurately has paper still not have paper and test paper border and black mark etc.The function of energy supply control module mainly is that the power supply of the power supply of 5V and 38V is monitored, and when 38V power supply or 5V voltage instability advance, can send an interrupt signal and turn-off the enable signal of each functional module.The stand-by motor module functions sends the control motor signal of CPU to motor, and this can be used as the control signal of servomotor chip.The function of synchronous serial interface module is by determining whether transmitting type information in the printing function module to some signal judgment in the print head functions module.

Claims (2)

1. control circuit of stylus printer based on the FPGA module, it is characterized in that: comprise data/address bus, decoding module, the stand-by motor module, the pulse width modulation controlled module, interrupt module, the synchronous serial interface module, the panel control module, word vehicle motor module, the paper feed motor module, printhead module, energy supply control module, CPU, described data/address bus, decoding module, the stand-by motor module, the pulse width modulation controlled module, interrupt module, the synchronous serial interface module, the panel control module, word vehicle motor module, the paper feed motor module, printhead module, energy supply control module is integrated in the FPGA module EP2C5Q208C8 chip, the stand-by motor module, the pulse width modulation controlled module, interrupt module, the panel control module, word vehicle motor module, one termination decoding module of paper feed motor module and printhead module, another termination data/address bus, CPU respectively with decoding module, data/address bus links to each other, energy supply control module links to each other with decoding module, the synchronous serial interface module respectively with printhead module, CPU links to each other.
2. the control circuit of stylus printer based on the FPGA module according to claim 1, it is characterized in that: described paper feed motor module is made up of copped wave module, memory module, pulse width modulation module, state machine module, state machine module links to each other with memory module, and memory module links to each other with copped wave module, pulse width modulation module respectively.
CN200910306375XA 2009-08-31 2009-08-31 Control circuit of stylus printer based on FPGA module Active CN101648462B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910306375XA CN101648462B (en) 2009-08-31 2009-08-31 Control circuit of stylus printer based on FPGA module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910306375XA CN101648462B (en) 2009-08-31 2009-08-31 Control circuit of stylus printer based on FPGA module

Publications (2)

Publication Number Publication Date
CN101648462A CN101648462A (en) 2010-02-17
CN101648462B true CN101648462B (en) 2011-12-21

Family

ID=41670837

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910306375XA Active CN101648462B (en) 2009-08-31 2009-08-31 Control circuit of stylus printer based on FPGA module

Country Status (1)

Country Link
CN (1) CN101648462B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104129077A (en) * 2014-08-04 2014-11-05 覃琴 3D (three dimensional) printer controller and 3D printer control method

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404539A (en) * 2010-09-14 2012-04-04 北京首科软件及系统集成有限责任公司 Novel mobile and printable video law enforcement terminal system
CN101980178B (en) * 2010-11-01 2012-05-02 福建鑫诺通讯技术有限公司 Time sequence control method for miniature thermal printer driver
US9710733B2 (en) * 2012-02-21 2017-07-18 Markem-Imaje Holding Field programmable gate array and corresponding method for dynamic print technologies
CN103049944B (en) * 2012-12-31 2016-03-23 株洲南车时代电气股份有限公司 Diesel locomotive service data pen recorder
CN106394023B (en) * 2016-08-31 2019-01-04 福建联迪商用设备有限公司 The control circuit of stylus printer
CN111016443B (en) * 2018-10-09 2021-05-11 上海宝信软件股份有限公司 Dot matrix size controllable type spray head control system and method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6036297A (en) * 1994-10-28 2000-03-14 Canon Kabushiki Kaisha Method and apparatus for correcting printhead, printhead correction by this apparatus, and printer using this printhead
EP1517222A1 (en) * 2003-09-22 2005-03-23 Brother Kogyo Kabushiki Kaisha Electronic apparatus that conserves energy

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6036297A (en) * 1994-10-28 2000-03-14 Canon Kabushiki Kaisha Method and apparatus for correcting printhead, printhead correction by this apparatus, and printer using this printhead
EP1517222A1 (en) * 2003-09-22 2005-03-23 Brother Kogyo Kabushiki Kaisha Electronic apparatus that conserves energy

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开平5-8515A 1993.01.19

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104129077A (en) * 2014-08-04 2014-11-05 覃琴 3D (three dimensional) printer controller and 3D printer control method

Also Published As

Publication number Publication date
CN101648462A (en) 2010-02-17

Similar Documents

Publication Publication Date Title
CN101648462B (en) Control circuit of stylus printer based on FPGA module
CN105984241B (en) Thermal printer and thermal printing method
US4096578A (en) Data system with microprocessor featuring multiplexed data transfer and repeat cycle driving arrangement
CN103171309A (en) Minitype thermal printer
CN205272894U (en) Miniature thermal printer control system
CN201824653U (en) Small-sized embedded type control module of thermal printer
CN101638008A (en) Printer, printing format extension method and printing system
CN109515006A (en) A kind of thermal printing machine control system
CN112590401B (en) Thermal printer control method, thermal printer control device, thermal printer and medium
CN100480894C (en) Printing method with small margin or no margin
CN105620060A (en) Printer control circuit
CN202923132U (en) Flatbed printer with man-machine interaction function
CN205674686U (en) A kind of miniature serial printer based on EFM32 microcontroller
CN206023636U (en) Controllor for step-by-step motor based on 51 single-chip microcomputers
CN207825756U (en) A kind of miniature stylus printer of linux system
CN110936741A (en) Single-chip SOC (system on chip) of thermal printer
CN202372821U (en) Multifunctional control module for novel automobile instrument
CN106394023B (en) The control circuit of stylus printer
CN112590400B (en) Thermal printer control method, thermal printer control device, thermal printer and medium
KR950017220A (en) Paper saving device of laser printer
CN103342054A (en) Thermal printer for automotive fault diagnostic apparatus and automotive fault diagnostic apparatus
CN104850366A (en) Printing task generating and controlling system for printer
CN102935764B (en) Real-time thermal printing apparatus
CN205311097U (en) Serial number label printer
CN204556722U (en) Digital voltmeter

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190809

Address after: 410100 No. three, No. 5, East Road, Changsha economic and Technological Development Zone, Hunan

Co-patentee after: Hunan Great Wall Science and Technology Information Co.,Ltd.

Patentee after: HUNAN GREATWALL INFORMATION FINANCIAL EQUIPMENT Co.,Ltd.

Address before: 410100 East Changsha Road, Changsha economic and Technological Development Zone, Hunan, China, No. 5, No. three

Co-patentee before: GREATWALL INFORMATION INDUSTRY Co.,Ltd.

Patentee before: HUNAN GREATWALL INFORMATION FINANCIAL EQUIPMENT Co.,Ltd.

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 410100 No. 5, three East Road, Changsha economic and Technological Development Zone, Hunan, Changsha

Patentee after: Great Wall Information Co.,Ltd.

Patentee after: Hunan Great Wall Science and Technology Information Co.,Ltd.

Address before: 410100 No.5, Dongsan Road, Changsha Economic and Technological Development Zone, Hunan Province

Patentee before: HUNAN GREATWALL INFORMATION FINANCIAL EQUIPMENT Co.,Ltd.

Patentee before: Hunan Great Wall Science and Technology Information Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220712

Address after: 410100 No.5, east 3 Road, Changsha Economic and Technological Development Zone, Changsha City, Hunan Province

Patentee after: Great Wall Information Co.,Ltd.

Address before: 410100 No. 5, three East Road, Changsha economic and Technological Development Zone, Hunan, Changsha

Patentee before: Great Wall Information Co.,Ltd.

Patentee before: Hunan Great Wall Technology Information Co., Ltd