You are on page 1of 13

Application Report

SPMA071 – March 2014

Thermal Printer Reference Design Using TM4C1233H6PM

Jabir VS

ABSTRACT
Thermal printers are very common due to their wide-spread use in so many devices in our day-to-day life.
Some of them are handheld devices used for point-of-sales, ticketing machines, metering, and so forth.
The benefits of thermal printers are compelling. There is no toner, ink or ribbons required for a thermal
printer. A thermal receipt printer uses a printhead with few moving parts and it fits in a thin space about
three inches across. By contrast, the standard receipt printer is composed of about 20 moving parts and
electrical devices, and takes up at least twice the space. Nowadays, thermal printer mechanisms are even
available with an integrated electro-mechanical paper cutter in it. All of these features make thermal
printers a right choice in a wide variety of applications.
This application report discusses the complete hardware and software required for a thermal printer
solution based on Texas Instruments Tiva™ controllers. Tiva controllers are 32-bit ARM® Cortex®-M4 80-
MHz processor core with IEEE754-compliant single-precision Floating-Point Unit (FPU), on-chip memory,
featuring 256 KB single-cycle Flash, 32 KB single-cycle SRAM; internal ROM loaded with TivaWare™ for
C Series software; 2KB EEPROM and several other features.
With all the above hardware features and the graphics library support available for Tiva controllers makes
it easy to do the text rendering and simultaneous printing required for thermal printing.
Project collateral and source code discussed in this application report can be downloaded from the
following URL: http://www.ti.com/lit/zip/spma071.

Contents
1 Introduction ................................................................................................................... 2
2 System Block Diagram ...................................................................................................... 3
3 Circuit Diagram ............................................................................................................... 3
4 Firmware ...................................................................................................................... 4
5 Theory of Operation ......................................................................................................... 6
6 Graphical User Interface .................................................................................................... 9
7 Thermal Printer Graphical Interface ..................................................................................... 10
Appendix A Schematic .......................................................................................................... 12

List of Figures
1 System Block Diagram ...................................................................................................... 3
2 Flowchart - Part 1 ............................................................................................................ 4
3 Flowchart - Part 2 ............................................................................................................ 5
4 Software Flowchart .......................................................................................................... 6
5 Timing Chart for Using Fixed Six Divisions Printing..................................................................... 8
6 Thermal Printer Demo Interface .......................................................................................... 10
7 Schematic ................................................................................................................... 12

Tiva, TivaWare are trademarks of Texas Instruments.


Stellarisware is a registered trademark of Texas Instruments.
ARM, Cortex are registered trademarks of ARM Limited.
All other trademarks are the property of their respective owners.

SPMA071 – March 2014 Thermal Printer Reference Design Using TM4C1233H6PM 1


Submit Documentation Feedback
Copyright © 2014, Texas Instruments Incorporated
Introduction www.ti.com

1 Introduction

1.1 Specifications
• Main controller – TM4C1233H6PM 64 LQFP
• Supporting chipsets
– DRV8834
– TS5A1066
– TPS76833
• External connectivity Interfaces
– Universal Asynchronous Receiver/Transmitter (UART)
– Universal Serial Bus (USB)
• Software features
– Support 2 inch thermal heads
– Can be extended easily for 3 inch printer head
– Wide support for fonts
• Multi-sized fonts
• Italics fonts
• Bold fonts
– Also support Image
– Architecture supports implementation of escape commands
This application report explains the working of the software and hardware required for building a thermal
printer solution.
The hardware for the system is designed around Texas Instruments TM4C1233H6PM Microcontroller. It is
a 80 Mhz processor with 256Kbytes of Flash and 32Kbytes of internal RAM. There are two motor driver
sections implemented in the system: one motor driver section for the printer motor and the other for the
paper cutter integrated to the printing mechanism. The motor driver sections are implemented using the
DRV8834 motor driver ICs from Texas Instruments. The hardware also provides the facility for
communication using UART and USB interfaces through the inbuilt peripherals available inside the
controller.
The thermal printer firmware is running in a foreground and background execution approach. It utilizes
various peripheral interrupts available in the microcontroller to achieve the performance. For example, the
design utilizes the UART interrupts for collecting the data from an external host, uses the timer interrupt
for accurately controlling the heating strobes of the printer mechanisms, and so forth. The font tables
(used for text rendering, and so forth) are stored in the built in Flash. The font tables are stored in a
compressed format for saving the application Flash. The images are stored in the form of C arrays.
The various functions performed by the firmware are listed below:
• Rendering of the text character received through the communication port to the printable image
• Logo printing using the onboard switch provided
• Font management by selecting the appropriate Font Table
• Increasing or decreasing the height of the printed text
• Increasing or decreasing the width of the printed text
• Precisely controlling the printing strobes as per the timing specification of the mechanism
• Auto cutter facility using the built-in paper cutter
• Provides a basic set of escape commands for data and commands
• Provision for adding more escape commands for data and commands
• Monitor the battery voltage of the system

2 Thermal Printer Reference Design Using TM4C1233H6PM SPMA071 – March 2014


Submit Documentation Feedback
Copyright © 2014, Texas Instruments Incorporated
www.ti.com System Block Diagram

2 System Block Diagram

DRV8834 for
Printer Motor

4-Wire/2-Wire
Serial Interface

Mini USB Thermal Printer


Connector Mechanism

TM4C1237

RS232
/TTL UART
TS5A1066
Printer Motor
Current Control

Power Supply
TPS76833
DRV8834 for
Cutter Motor

TI Components

Figure 1. System Block Diagram

3 Circuit Diagram
For the schematic details, see Appendix A.

SPMA071 – March 2014 Thermal Printer Reference Design Using TM4C1233H6PM 3


Submit Documentation Feedback
Copyright © 2014, Texas Instruments Incorporated
Firmware www.ti.com

4 Firmware

4.1 Flowchart

Power On Reset

Initialize GPIO
Initialize UART
Initialize TIMER
Initialize ADC

Set the Font Table


Set the Max Character
Length and Width
Set the Max Character
Per Line

Set the <otor Driver


to Half Step Mode

Set the Motor Drivers


to Forward Direction
Mode

B NO

Check for NO ERROR LED ON


Paper Roll Check for Paper

YES YES

Auto Feed the Paper


ERROR LED OFF From Paper Roll

Figure 2. Flowchart - Part 1

4 Thermal Printer Reference Design Using TM4C1233H6PM SPMA071 – March 2014


Submit Documentation Feedback
Copyright © 2014, Texas Instruments Incorporated
www.ti.com Firmware

A
UART Interrupt Handler

If Graphics YES If Graphics YES


Command Set CALL graphicprint();
Graphics Mode Enabled
Received
Mode
and
return()
NO
NO

If Print YES
Command Set Text
Received Print
If Text Print YES
Mode CALL text_print();
and Mode Enabled
return()
NO

Set
If Paper CUT YES CutFlag NO
Command and
Received
return()
YES
If Switch 1 CALLLogo_Print();
NO Pressed

If any Escape NO
return()
Commands NO
Received

YES
If Switch 2 YES
Pressed CALLLinefeed();
Enable Corresponding
Flags or Settings and
return ()*

NO

YES
If CutFlag Set CALL FullCut();

Figure 3. Flowchart - Part 2

SPMA071 – March 2014 Thermal Printer Reference Design Using TM4C1233H6PM 5


Submit Documentation Feedback
Copyright © 2014, Texas Instruments Incorporated
Theory of Operation www.ti.com

Timer Interrupt Handler ADC Interrupt Handler

Ÿ Clear ADC Interrupt


Ÿ Clear Timer Interrupt
Ÿ Get the Values From
Ÿ Disable Timer
ADC Registers
Ÿ Clear Print Motor Flag Ÿ Stor the Values to
to Zero Application Variables

Return() Return()

Figure 4. Software Flowchart

5 Theory of Operation

5.1 General Information About Thermal Printers


Thermal printing is a non-impact method of creating images on paper and synthetic film. The process
applies heat from a thermal printhead onto thermal material. The base material used in the thermal
printing process may be selected from a variety of paper grades or synthetic films (PP, PE, or PET) with a
special chemical coating applied to one side to make it sensitive to heat.
Thermal printing has a number of important advantages over traditional printing processes; it is fast, clean,
quiet, reliable and easy to maintain. There are a limited number of mechanical parts, no messy ribbons or
toners, and no inking devices are needed to create the image.
Since thermal printers only have one or two moving components, they are very reliable and economical to
operate and maintenance costs are extremely low. The entire system is compact, simple to operate and
suitable for use in virtually all applications. Thermal printheads are usually much smaller and lighter than
the printing elements used by other imaging processes, so thermal printers are suitable when compact
size, portability and on-demand printing are needed. At the same time, a sharp and precise image of
excellent quality is produced consistently and quickly by properly matching the thermal paper to the
printhead by varying the chemical coating formulation.
In recent years, microprocessors have been installed to control printhead operation with major
improvements in image sharpness and clarity. A thermal printhead has a large number of tiny resistors,
which individually react to convert an electrical impulse into heat. The heat from the printhead on thermal
material creates a reaction with the chemical coating to produce an image. The image is produced within
milliseconds of contact and is normally black in color. The depth and range of colors may be produced by
varying the chemical formulation applied to the base material.
The quality and performance of thermal printing depends heavily on the careful matching of thermal
material to printhead equipment specification. As a result, a range of thermal materials is used across a
wide spectrum of thermal printers for different applications. To give the required physical characteristics
and properties, the type of base material - paper, board, or synthetic film - varies from application to
application, as does the thickness and weight of various base materials.

6 Thermal Printer Reference Design Using TM4C1233H6PM SPMA071 – March 2014


Submit Documentation Feedback
Copyright © 2014, Texas Instruments Incorporated
www.ti.com Theory of Operation

5.2 Specification of the Thermal Printer Head Used With This Document
The thermal printer mechanism used for this application report is from Seiko. The model number is
CAPD245D-E. It has a built-in auto-cutter mechanism integrated into it. Table 1 shows the electrical
specification for CAPD245D-E.

Table 1. Electrical Specification for CAPD245D-E


Specifications
CAPD245 CAPD345
Items CAPD245D CAPD245E CAPD345D CAPD345E
Printing method Thermal dot lin printing
Total dots per line 384 dots 576 dots
Printable dots per line 384 dots 576 dots
Simultaneously activated dots 96 dots 96 dots
*2
Resolution W 8 dots/mm x H 16 dots/mm
Paper feed pitch 0.03125 mm
Maximum print speed 100 mm/s *3 80 mm/s *3
Print width 48 mm 72 mm
0 0
Paper width 58 -1 mm 80 -1 mm
Thermal head temperature detection Thermistor
Platen position detection Mechanical switch
Out-of-paper detection Reflection type photo interrupter
Cutter home position detection Transmission type photo interrupter
Operating voltage range
4.75 V to 9.5 V *4 6.5 V to 9.5 V
VP line
2.7 V to 3.6 V, 4.75 V to 5.25 V 2.7 V to 3.6 V, 4.75 V to 5.25 V
VDD line
Printer current consumption
5.49 A max. (at 9.5 V) *5 5.40 A max. (at 9.5 V) *5
VP line Thermal head drive
0.60 A max. 0.60 A max.
Motor drive
0.10 A max. 0.10 A max
VPP line Thermal head logic
Auto-cutter current consumption
0.70 A max.
VP line Motor driving
Paper cutting method Slide cutting
Type of paper cutting Full cut and partial cut (1.5 ±0.5 mm tab left at the center)
Paper curling tendency Fixed blade side and movable blade side
Minimum paper core diameter ᶲ 8 mm
Minimum paper cutting length 10 mm
Cutting processing time Approximately 1.0 s/cycle
Cutting frequency 1 cut/2 s maximum
Operating temperature range -10°C to 50°C (non condensing)

5.3 Printer Drive Motor and Thermal Head Drive Method


The printer drive motor and the thermal head must be driven at the same time for printing. The printer has
half dot pitch thermal head, the pitch to the paper feed direction is one-half dot of the heat elements.
Configure 1 dot by 2 half dots.
The motor feeds the thermal paper for 1 dot line by the 4 steps. It is necessary to feed the thermal paper 4
steps and activate the thermal head once every 2 steps, to configure the 1 dot line.

SPMA071 – March 2014 Thermal Printer Reference Design Using TM4C1233H6PM 7


Submit Documentation Feedback
Copyright © 2014, Texas Instruments Incorporated
Theory of Operation www.ti.com

Figure 5 describes the drive method as an example of the CAPD245 and shows a timing chart for using
fixed six divisions printing.

Figure 5. Timing Chart for Using Fixed Six Divisions Printing

5.4 Motor Driver Sections


The motor driver section is built around the DRV8834 dual-H-Bridge current-control motor driver ICs. It
has a built-in Indexer logic with simple STEP/DIRECTION control and up to 1/32-step micro-stepping. Due
to the availability of the indexer, the microcontrollers burden of driving the stepper motor in the printer
mechanism is totally off-loaded. Rather than generating the appropriate pulses using four output lines, the
microcontroller can now drive the stepper motor very easily using a single output line connected to the
STEP pin of DRV8834. Through this single control line, the microcontroller sends square pulses to turn
the motor as per the step size selected through the configuration pins in DRV8834. In this application, the
DRV8834 is configured to operate in half-step mode for each square pulse sent through the STEP input.
The cutter stepper motor is also operated in the same way explained above for the printer stepper motor.

5.5 RS232 Communication From External Host Board


This board has a RS232 conversion section available for sending and receiving signals from an external
host controller. This section is designed around the TI max3232 RS232 level converter.
There is also a provision for bypassing the rs232 converter IC section for connecting the TTL/CMOS level
directly. This can be done by mounting the R23,24,25,26 zero Ω resistor option on the board.

8 Thermal Printer Reference Design Using TM4C1233H6PM SPMA071 – March 2014


Submit Documentation Feedback
Copyright © 2014, Texas Instruments Incorporated
www.ti.com Theory of Operation

5.6 Text Rendering and Data Transfer to the Printer Head


The main challenge in any thermal printer driver solution is the text rendering. Usually the text characters
to be printed on the paper will come through one of the communication interface like UART or USB. The
data received through the communication interface will be in ASCII format represented in 8-bit length. This
data has to be written to the thermal paper in the actual form of the character it represents, which is called
text rendering. A straight forward way to do this is to have a bitmap table stored inside the microcontroller
Flash and pick the corresponding bitmap from the character table. But the drawback of this approach is
the memory required to store the bit map tables.
Another innovative approach to address this issue is to use the bitmap tables in a compressed format.
This can be done easily in TIVA controllers with the help of Stellarisware® or Tivaware software library.
The compression and decompression of the bitmap is taken care of by the library. The application takes
the output of the library functions and remaps it in such a way that it can be sent to the printer for a proper
printing. All the required functions for doing the remapping is taken care of by the application code
provided with this application report.
The application uses the library functions for un-compressing the characters from the compressed bitmap
table. Then, the uncompressed character bitmaps are written to an internal memory location, which is
considered as a two dimensional plane. From there, the characters are picked by the data transfer routine
to send the bitmaps to the thermal printer head using an hardware SPI or an GPIO emulated SPI.

5.7 Temperature and Battery Monitoring


The battery voltage is fed to a resistor divider network and the voltage at the divider point is fed directly to
the microcontroller ADC pin. The microcontroller captures multiple samples of this voltage and stores the
information in the corresponding register for further use of the application.
The temperature of the printer head is measured using the built-in temperature sensor inside the printer
mechanism. A voltage is applied to the internal thermistor through a 10K resistor on board. The junction of
this external resistor and the internal thermistor is connected to the ADC pin of the microcontroller for
measuring the instantaneous temperature of the printing head to avoid damage and optimizing the speed.

5.8 Push Button Operation


There are two push buttons provided on the board named as SW1 and SW2.
• Pressing SW1 automatically prints a logo of Texas Instruments.
• Pressing SW2 does the paper feed function.

Indicator LEDs
There are two indicator LEDs provided for displaying various status signals:
• Led 1 is the indication for 3.3 V power.
• Led 2 is the indication for any error. For example, paper roll not present.

6 Graphical User Interface


To enable the quick evaluation of the thermal printer solution, a graphical user interface (GUI) is also
available along with this application. The GUI has developed using C# language from Microsoft. Using this
GUI, its very easy to send and receive commands and data to and from the printer. The communication
interface used here is the commonly available UART interface. All the built-in escape commands are
available as a function in the GUI.

SPMA071 – March 2014 Thermal Printer Reference Design Using TM4C1233H6PM 9


Submit Documentation Feedback
Copyright © 2014, Texas Instruments Incorporated
Thermal Printer Graphical Interface www.ti.com

7 Thermal Printer Graphical Interface

Figure 6. Thermal Printer Demo Interface

Figure 6 shows the GUI for the Tiva thermal printer demo. Using this GUI, you can print sample text from
the comfort of a Windows-based PC . You can try various commands supported by the firmware by using
this interface. It supports multiple commands like cutting, double height printing, image printing, and so
forth. It also displays the command byte information it sent through the UART.
Before sending any commands, you have to select the appropriate com port number and enter it into the
box given on the right hand top corner and press the OK button. If the port is free and usable, the software
issues the message “PORT OPENED SUCCESSFULLY”. After this, you can start using the various
command buttons.

7.1 Button 1 – Print Sample Text


This button enters sample text in the text box provided above the button to directly print on the paper.
Enter the sample text and click on the “Print Sample Text” button.

7.2 Button 2 – Send Image


This button prints images through the uart channel. You can paste the graphics image data in the box
provided above this button. The image box accepts the Stellarisware compatible C array of the image.
You can directly copy and paste the Stellarisware compatible C array of the image and press the “Send
Image” button. The software transfers the data in multiple blocks if the image size is more than 104 lines,
which is equivalent to 5000 bytes of internal UART memory buffer.

7.3 Button 3 - GRAPHICS MODE ON


This button prints graphical data to the paper in a line-by-line basis. The number of lines of data to be
printed at a single instance is selected from the pull down menu adjacent to this button. The value can
range from 1 line to 255 lines. After the specified number of lines, the mode will automatically be
transferred to text mode.

10 Thermal Printer Reference Design Using TM4C1233H6PM SPMA071 – March 2014


Submit Documentation Feedback
Copyright © 2014, Texas Instruments Incorporated
www.ti.com Thermal Printer Graphical Interface

7.4 Button 4 – Double Height On


This button increases the height of the text printing. It will print the text in double size in height from
normal.

7.5 Button 5 – Double Height Off


This button reduces the height of text printing to normal size. It will cancel the effect of “DOBLE HEIGHT
ON” button.

7.6 Button 6 – Double Width On


This button increases the width of the text printing. It will print the text in double size in width from normal.

7.7 Button 7 – Double Width Off


This button reduces the width of text printing to normal size. It will cancel the effect of “DOBLE WIDTH
ON” button.

7.8 Button 8 – INTENSITY +


This button increases the darkness (intensity) of the printing. Each press on this button increase the
intensity by a small delta, which is equivalent to a delay of 1000 units of clock of the controller applied to
thermal head energizing.

7.9 Button 8 – INTENSITY -


This button decreases the darkness (intensity) of the printing. Each press on this button decrease the
intensity by a small delta, which is equivalent to a delay of 1000 units of clock of the controller applied to
thermal head energizing.

7.10 Button 9 – Full Cut


This button operates the built-in cutter to perform a full cut operation.

7.11 Button 10 – LIne Feed


This button pushes the paper to approximately 10 cms for a demonstration purpose. This length can easily
be adjusted in the firmware code.

7.12 Button 11 – GET SYSTEM VOLTS


This button collects the ADC value of the battery monitoring channel pin for implementing the intensity
control loop from a host machine through commands. It returns the 12-bit value of the ADC in hex format.

SPMA071 – March 2014 Thermal Printer Reference Design Using TM4C1233H6PM 11


Submit Documentation Feedback
Copyright © 2014, Texas Instruments Incorporated
12
5 4 3 2 1

3.3V
3.3V
POWER MOTOR CURRENT CONTROL 3.3V

R4 VREFO_C VREFO_P
10K R8
10K VM R7
J6 VCC F1 VM 330E
R30 U3 R5 R35 R33 3.3V
1 3 5 330E 27K 27K U11 U8
2 4 IN OUT 6
3 IN OUT 90_MA_EXCITATION4 5 nSLEEP_P 1 24 VREFO_P
4 FUSE 1E/1W 7 IN V+ 2 nSLEEP VREFO 23 REFV_P C40 D2
5 C44 C30 2 FB/NC 8 PGOOD REFV_C REFV_P R31 1K 1 2 ADECAY_P 3 BDECAY BVREF 22 REFV_P .1uF LED_RED

GND
6 100uF 100uF EN PG D1 NO COM AOUT_P 4 ADECAY AVREF 21
D 3 5 AOUT1 GND 20 D

1
LED_RED GND AISEN VINT
TPS76833 C31 AINV_P 6 19
CON6 10uF R34 R32 BINV_P 7 AOUT2 VM 18
4.75K 3.57K TS5A1066 8 BOUT2 VM 17
BOUT_P 9 BISEN VCP 16 nFAULT_P
nENBL/AENBL_P 10 BOUT1 nFAULT 15 CONFIG_P
STEP_P 11 nENBL/AENBL CONFIG 14 M1_P
R3 R6 R9 DIR_P 12 STEP/BENBL M1 13 M0_P
.15E .15E 330E DIR/BPHASE M0/APHASE

PPAD
C39
Appendix A Schematic

2.2uF
DRV8834

25
MOTOR CONTROL - PRINTER
3.3V

J2

J8 1 TMS
2 TCK MCU - LM4F120
STEP_P 1 3 TDI C32 C33
2 4 TDO C34 C35 C36 C37 C38 2.2uF 1uF 3.3V
5 .1uF .1uF .1uF .1uF .1uF 3.3V
3.3V
CON2
CON5 R16
R2 10K VM R15
10K 330E
U1

2
42
54
26
11
56
25
U9
JTAG RST 38
RST 4 nSLEEP_P nSLEEP_C 1 24 VREFO_C

VDD
VDD
VDD
VDD
90_MA_EXCITATION 13 PB7 1 nENBL/AENBL_P 2 nSLEEP VREFO 23 REFV_C

VDDA
VDDC
VDDC
C42 D3

1
3
CUTS 14 PC7 PB6 57 STEP_P ADECAY_C 3 BDECAY BVREF 22 REFV_C .1uF
PC6 PB5 ADECAY AVREF LED_RED
15 58 4 21

1
3
SW4 PS DIR_P AOUT_C
LF SWITCH TEST PRINT SWITCH ERR LED 16 PC5 PB4 48 nSLEEP_C 5 AOUT1 GND 20
TACT SWITCH PC4 PB3/I2C0SDA AISEN VINT
C C29 TDO 49 47 nENBL/AENBL_C AINV_C 6 19 C
.1uF TDI 50 PC3/TDO/SWO PB2/I2C0SCL 46 UART1TXD VM VUSB BINV_C 7 AOUT2 VM 18

2
4
TMS 51 PC2/TDI PB1 45 UART1RXD 8 BOUT2 VM 17

1
3
1
3
TCK 52 PC1/TMS/SWDIO PB0 BOUT_C 9 BISEN VCP 16 nFAULT_C

2
4
PC0/TCK/SWCLK 10 BOUT1 nFAULT 15

1
3
1
3
SW6 SW5 nENBL/AENBL_C CONFIG_C
10 LF SWITCH R21 R28 STEP_C 11 nENBL/AENBL CONFIG 14 M1_C
TACT SWITCH TACT SWITCH PD7 STEP/BENBL M1
DST6 60 53 TEST PRINT SWITCH 22K 0E R13 R14 R17 DIR_C 12 13 M0_C
DST5 59 PE5 PD6 44 USB+ .15E .15E 330E DIR/BPHASE M0/APHASE

2
4
2
4
PPAD

DST4 6 PE4 PD5/USBDP 43 USB- C41


DST3 7 PE3 PD4/USBDM 64 2.2uF

2
4
2
4
DRV8834
25

DST2 8 PE2 PD3 63


DST1 9 PE1 PD2 62 BATSENSE
PE0 PD1 61 THERMISTOR
PD0 R22
TEST SWITCHES

Thermal Printer Reference Design Using TM4C1233H6PM


M1_C 17 5 STEP_C 10K C43 C45
M0_C 18 PA0/U0RX
PA1/U0TX
PF4
PF3
31 DIR_C 2.2uF 2.2uF MOTOR CONTROL - CUTTER
CLK 19 30 HS
LAT 20 PA2/SSI0CLK PF2 29 UART1CTS
21 PA3/SSI0FSS PF1 28 UART1RTS
ERR LED DI 22 PA4/SSI0RX PF0
M1_P 23 PA5/SSI0TX
M0_P 24 PA6 41
R29 PA7 OSC1 40
330E OSC0
37 34
J7 32 VBAT XOSC0 36 VM
7 8 33 WAKE XOSC1 35 16Mhz J3
6 7 8 9 HIB GNDX
Y3
6 9 R27 D4 1

VB
D-
D+
ID
GD
GND
GND
GND
GND
GNDA
2 1
0E LED_RED 2
VUSB C6 C7 3

1
2
3
4
5
3
LM4F120B2QR 3

39
55
12
27
10PF 10PF 4
5 4
6 5
CON-USB-MINIB DI 7 6
CLK 8 7

Figure 7. Schematic
9 8
9

USB-
USB+
10
B 11 10 B

3.3V 12 11
USB 13 12
13
14
R12 DST6 15 14
10K 3.3V DST5 16 15
DST4 17 16
18 17
TH2 19 18

Copyright © 2014, Texas Instruments Incorporated


TH1 20 19
THERMISTOR TH1 21 20
3.3V DST3 22 21
DST2 23 22
RS232 DST1 24 23
24
25
26 25
27 26
28 27
3.3V 3.3V 3.3V 3.3V 29 28
C27 C26 C25 30 29
.1uF .1uF .1uF LAT 31 30
3.3V 32 31

2
6
16
R20 R18 R11 R10 VM 33 32
430E 36K 36K 300E 34 33

V-
V+
J5 35 34

VCC
UART1RXD 12 R19 36 35
UART1TXD 11 ROUT1 14 UART1TXD_232 1 47K 37 36
DIN1 DOUT1 7 UART1RTS_232 UART1TXD_232 2 J4 38 37
UART1CTS 9 DOUT2 13 UART1RXD_232 UART1RXD_232 3 1 PS 39 38
UART1RTS 10 ROUT2 RIN1 8 UART1CTS_232 UART1RTS_232 4 2 1 40 39
C24 DIN2 RIN2 C28 UART1CTS_232 5 3 2 41 40
1 4 CUTS 4 3 HS 42 41
3 C1+ C2+ 5 BINV_C 5 4 TP1 43 42
C9 C8
C1- C2- CON5 BINV_C 6 5 470PF 470PF 1 FG 44 43

GND
.1uF .1uF AINV_C 7 6 45 44
C10 AINV_C 8 7 46 45

15
470PF BOUT_C 9 8 TEST POINT AINV_P 47 46
A BOUT_C 10 9 BOUT_P 48 47 A
MAX3232CPW AOUT_C 11 10 AOUT_P 49 48
U7 AOUT_C 12 11 BINV_P 50 49
12 50

0545501271
UART1TXD R23 0E UART1TXD_232
0541045031
UART1RXD R24 0E UART1RXD_232
UART1RTS R25 0E UART1RTS_232 PRINTER INTERFACE
UART1CTS R26 0E UART1CTS_232

CUTTER INTERFACE
Title
TI THERMAL PRINTER REFERENCE DESIGN

Size Document Number Rev


C <Doc> <RevCode>

Date: Monday, July 01, 2013 Sheet 1 of 1


5 4 3 2 1

SPMA071 – March 2014


www.ti.com

Submit Documentation Feedback


IMPORTANT NOTICE
Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, enhancements, improvements and other
changes to its semiconductor products and services per JESD46, latest issue, and to discontinue any product or service per JESD48, latest
issue. Buyers should obtain the latest relevant information before placing orders and should verify that such information is current and
complete. All semiconductor products (also referred to herein as “components”) are sold subject to TI’s terms and conditions of sale
supplied at the time of order acknowledgment.
TI warrants performance of its components to the specifications applicable at the time of sale, in accordance with the warranty in TI’s terms
and conditions of sale of semiconductor products. Testing and other quality control techniques are used to the extent TI deems necessary
to support this warranty. Except where mandated by applicable law, testing of all parameters of each component is not necessarily
performed.
TI assumes no liability for applications assistance or the design of Buyers’ products. Buyers are responsible for their products and
applications using TI components. To minimize the risks associated with Buyers’ products and applications, Buyers should provide
adequate design and operating safeguards.
TI does not warrant or represent that any license, either express or implied, is granted under any patent right, copyright, mask work right, or
other intellectual property right relating to any combination, machine, or process in which TI components or services are used. Information
published by TI regarding third-party products or services does not constitute a license to use such products or services or a warranty or
endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectual property of the
third party, or a license from TI under the patents or other intellectual property of TI.
Reproduction of significant portions of TI information in TI data books or data sheets is permissible only if reproduction is without alteration
and is accompanied by all associated warranties, conditions, limitations, and notices. TI is not responsible or liable for such altered
documentation. Information of third parties may be subject to additional restrictions.
Resale of TI components or services with statements different from or beyond the parameters stated by TI for that component or service
voids all express and any implied warranties for the associated TI component or service and is an unfair and deceptive business practice.
TI is not responsible or liable for any such statements.
Buyer acknowledges and agrees that it is solely responsible for compliance with all legal, regulatory and safety-related requirements
concerning its products, and any use of TI components in its applications, notwithstanding any applications-related information or support
that may be provided by TI. Buyer represents and agrees that it has all the necessary expertise to create and implement safeguards which
anticipate dangerous consequences of failures, monitor failures and their consequences, lessen the likelihood of failures that might cause
harm and take appropriate remedial actions. Buyer will fully indemnify TI and its representatives against any damages arising out of the use
of any TI components in safety-critical applications.
In some cases, TI components may be promoted specifically to facilitate safety-related applications. With such components, TI’s goal is to
help enable customers to design and create their own end-product solutions that meet applicable functional safety standards and
requirements. Nonetheless, such components are subject to these terms.
No TI components are authorized for use in FDA Class III (or similar life-critical medical equipment) unless authorized officers of the parties
have executed a special agreement specifically governing such use.
Only those TI components which TI has specifically designated as military grade or “enhanced plastic” are designed and intended for use in
military/aerospace applications or environments. Buyer acknowledges and agrees that any military or aerospace use of TI components
which have not been so designated is solely at the Buyer's risk, and that Buyer is solely responsible for compliance with all legal and
regulatory requirements in connection with such use.
TI has specifically designated certain components as meeting ISO/TS16949 requirements, mainly for automotive use. In any case of use of
non-designated products, TI will not be responsible for any failure to meet ISO/TS16949.
Products Applications
Audio www.ti.com/audio Automotive and Transportation www.ti.com/automotive
Amplifiers amplifier.ti.com Communications and Telecom www.ti.com/communications
Data Converters dataconverter.ti.com Computers and Peripherals www.ti.com/computers
DLP® Products www.dlp.com Consumer Electronics www.ti.com/consumer-apps
DSP dsp.ti.com Energy and Lighting www.ti.com/energy
Clocks and Timers www.ti.com/clocks Industrial www.ti.com/industrial
Interface interface.ti.com Medical www.ti.com/medical
Logic logic.ti.com Security www.ti.com/security
Power Mgmt power.ti.com Space, Avionics and Defense www.ti.com/space-avionics-defense
Microcontrollers microcontroller.ti.com Video and Imaging www.ti.com/video
RFID www.ti-rfid.com
OMAP Applications Processors www.ti.com/omap TI E2E Community e2e.ti.com
Wireless Connectivity www.ti.com/wirelessconnectivity

Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2014, Texas Instruments Incorporated

You might also like