CITIZEN CBM-202PC-04 User's Manual

User’s Manual
THERMAL PRINTER MECHANICAL CONTROL LSI
MODEL
Rev.1.01 Added notes Dec.14th,1998
CBM-202PC-04
CBM-202PC-04 User’s Manual
<CAUTIONS>
1. Prior to using the printer, read this manual thoroughly for correct operation. After reading the manual, keep it carefully at hand for your future reference.
2. The information herein is subject to change without prior notice due to technical improvements. Upon actual use of the printer, inquire for the up-to-date specifications.
3. It is strictly prohibited to copy part or all of the information contained in this m anual without our prior permission.
4. If you have any question about the information herein or notice any clerical erroror omission, please contact us.
5. We will not be responsible for the effects from the results of operating the printer, regardless of Section 4.
6. We cannot guarantee that the information herein does not infringe upon the industrial property, etc. of a third party, except when there is a written agreement to that effect.
CBM-202PC-04 User’s Manual

CONTENTS

1. OUTLINE............................................................................................................................................................ 5
1.1 Applicable Printer ........................................................................................................................................ 5
2. MAINTENANCE AND SERVICE.................................................................................................................... 6
3. BASIC SPECIFICATIONS................................................................................................................................ 7
3.1 Shapes and Dimensions.................................................................................................................................. 7
3.2 Structure........................................................................................................................................................ 7
3.3 Data Transfer Method .................................................................................................................................... 7
3.4 Printing Function ........................................................................................................................................... 7
3.5 Operating Voltage and Power Consumption.................................................................................................... 7
3.6 Operating Frequency...................................................................................................................................... 7
4. HARDWARE SPECIFICATIONS.................................................................................................................... 8
4.1 Absolute Maximum Ratings...................................................................................................... ..................... 8
4.2 Electrical Characteristics................................................................................................................................ 8
4.3 Pin Layout and Functions............................................................................................................................... 9
4.4 Gate ArrayPin Layout and Functions ............................................................................................................13
4.5 Reset Circuit.................................................................................................................................................14
4.6 Oscillation Circuit.........................................................................................................................................15
4.7 Head-up Detection Circuit.............................................................................................................................16
4.8 Head Control Circuit.....................................................................................................................................17
4.9 PaperEnd Detection Circuit..........................................................................................................................18
4.10 Motor Control Circuit ...................................................................................................................................19
4.11 Auto CutterControl Circuit...........................................................................................................................20
4.12 Parallel Interface Circuit ...............................................................................................................................21
4.13 Serial Interface Circuit..................................................................................................................................23
4.14 Switch Circuit...............................................................................................................................................24
4.15 Error OutputCircuit......................................................................................................................................25
4.16 Function Selection Circuit .............................................................................................................................27
4.17 External RAMInterface................................................................................................................................30
CBM-202PC-04 User’s Manual
5. PRINTER MECHANISM CONTROL SYSTEM ......................................................................................... 33
5.1 Head Drive...................................................................................................................................................33
5.1.1 Head Dividing Method.....................................................................................................................33
5.1.2 Thermal Head Application Energy....................................................................................................34
5.2 Motor Drive..................................................................................................................................................34
5.3 Auto Loading................................................................................................................................................35
6. SELF-PRINTING.............................................................................................................................................36
7. OPERATION TIMING.................................................................................................................................... 37
8. SPECIFICATIONS OF PACKAGE................................................................................................................ 38
9. PRECAUTIONS FOR MOUNTING .............................................................................................................. 39
9.1 Precautions...................................................................................................................................................39
9.2 Reflow Mounting..........................................................................................................................................39
9.3 Recommended Conditions for Different Mounting Methods..........................................................................39
9.4 Clearing Method...........................................................................................................................................41
9.5 StorageMethod.............................................................................................................................................41
10. PRINT CONTROL FUNCTIONS................................................................................................................... 42
10.1 Command List..............................................................................................................................................42
10.2 Command Details............................................................................................................. ............................44
11. CHARACTER CODES TABLE...................................................................................................................... 86
11.1 International..................................................................................................................................................86
11.2 Domestic ......................................................................................................................................................87
11.3 International Character Codes Table..............................................................................................................88
CBM-202PC-04 User’s Manual

1. OUTLINE

This LSI is designed to control the line thermal printer LT-286 by using our Gate Array. It has the following features.
(1) Capable of providing high-quality printing by detecting a temperature and automatically correcting
printingdensity.
(2) Capable of providing high-quality printing by detecting a voltage and automatically correcting printing
density . (3) Capable of selecting the parallel or serial interface. (4) Capable of selecting printing density via a function selectionterminal. (5) Capable of printing a bar code. (6) Capable of printing double-width/height characters, bit images, and so onby various commands.

1.1 Applicable Printer

LSI Name Applicable Mechanism
CBM-202PC-04 LT-286
CBM-202PC-04 User’s Manual

2. MAINTENANCE AND SERVICE

For the informationonmaintenance and service, please contact our dealer or at the following address.
Northern America Other Areas CBM America Corporation Japan CBM Corporation Service Center Information Systems Division 365 VanNess Way CBM Bldg.,5-68-10 Nakano Suit 510 Nakno-ku, Tokyo 164-0001 Torrance, CA 90501, U.S.A Japan
TEL +1-310-781-1460 FAX +1-310-781-9157 FAX +81-3-5345-7541
TEL +81-3-5345-7540
CBM-202PC-04 User’s Manual

3. BASIC SPECIFICATIONS

3.1 Shape and Dimensions (Refer to the “8. SPECIFICAT IONS OF PACKAGE”.)

100-pin flat package

3.2 Structure

C-MOS LSI

3.3 Data Transfer Method

Parallel transfer or serial transfer (Selectable) (1) 8-bit parallel transfer (CENTRONICS based) (2) Asynchronous serial transfer (Selectable)
1,200, 2,400, 4,800, 9,600, or 19,200 bps Parity: Odd, Even, or None parity; 8 bits

3.4 Printing Function

(1) Printing columns and printing speed
Model Digits Total Dots Character Size (mm) PrintingSpeed(m/s)
LT-286
Note) The printing speed above applies when the thermal printer is driven in the following environment:
Drive voltage(VH) = 7.2 V
Thermal head temperature = 30°C or more
Simultaneous power-on(print) dots = Within 64 dots
32 1.25×3.00(Font A) 42
384
0.88×3.00(Font B)

3.5 Operating Voltage and Power Consumption

Voltage : 5V DC ±5%
Current consumption : 80mA at maximum

3.6 Operating Frequency

50
16 MHz

4. HARDWARE SPECIFICATIONS

4.1 Absolute Maximum Ratings

Item Sym bo l Rating
Supply voltage Vcc –0.3 ~ +7.0V
Input voltage Vi –0.3 ~ Vcc+0.3V
CBM-202PC-04 User’s Manual
Reference supply voltage V
Analog supply voltage AVcc –0.3 ~ +7V
Analog input voltage V
Operatingtemperature Topr –20 ~ +75°C
Storage temperature Tstg –55 ~ +125°C

4.2 Electrical Characteristics

Item Symbol MIN MAX Unit Condition
RES,STBY,NM1 MD0,MD1,MD2
Input "HIGH" Level
Input "LOW" level Output "HIGH" level
Output "LOW" level
EXTAL THEM 2.0 AVcc+0.3 V Others
All input term inals V
All output terminals V
RESO 0.4 V IOH= 2.6 LEDER,LEDPE 1.0 V IOL=10 Others
REF
AN
–0.3 ~ AVcc+0.3V
–0.3 ~ AVcc+0.3V
Vcc–0.7 Vcc+0.3 V
V
IH
Vcc×0.7
Vcc+0.3 V
2.0 Vcc+0.3 V
IL
0H
V
0L
–0.3 0.5 V
3.5 V IOH=–1
0.4 V IOL= 1.6
mA
mA
mA
mA
CBM-202PC-04 User’s Manual

4.3 Terminal Layout and Functions

PinNo. Signal I/O Function Logic
1 VCC VCC – 2 LFSW Input LF switch input LOW 3 LEDER Output Error LED output LOW 4 LEDPE Output Paper end LED output LOW 5NC–NC – 6 LATCH Output Head latch signal LOW 7 P APER Input Paper end input NC HIGH 8 DRQ Input DMA request LOW
9NC–NC – 10 RES0 Output Watchdog output LOW 11 VSS GND – 12 DTR Output Serial DTR (RS-232C) HIGH 13 TXD Output Serial TXD (RS-232C) HIGH 14 DI Input Print head output data HIGH 15 RXD Input Serial RXD (RS-232C) HIGH 16 CP Input Print head clock HIGH 17 NC NC – 18 CTSW Input Cutter switch input LOW 19 NC NC – 20 NC NC – 21 NU RESERVED – 22 VSS GND – 23 MOTORA Output Motor A – 24 MOTORB Output Motor B – 25 MOTORA Output Motor A
Note) For notation of the signals whose logic is "LOW"(Negative), a representatio nof
XXX(Upper line) will be omittedfor the subsequent notations.
CBM-202PC-04 User’s Manual
Pin No. Signal I/O Function Logic
26 MOTORB Output Motor B – 27 D0 I/O D0 HIGH 28 D1 I/O D1 HIGH 29 D2 I/O D2 HIGH 30 D3 I/O D3 HIGH 31 D4 I/O D4 HIGH 32 D5 I/O D5 HIGH 33 D6 I/O D6 HIGH 34 D7 I/O D7 HIGH 35 VCC VCC – 36 A0 Output A0 HIGH 37 A1 Output A1 HIGH 38 A2 Output A2 HIGH 39 A3 Output A3 HIGH 40 A4 Output A4 HIGH 41 A5 Output A5 HIGH 42 A6 Output A6 HIGH 43 A7 Output A7 HIGH 44 VSS GND – 45 A8 Output A8 HIGH 46 A9 Output A9 HIGH 47 A10 Output A10 HIGH 48 A11 Output A11 HIGH 49 A12 Output A12 HIGH 50 A13 Output A13 HIGH
10 CITIZEN
CBM-202PC-04 User’s Manual
PinNo. Signal I/O Function Logic
51 A14 Output A14 HIGH 52 A15 Output NC 53 A16 Output NC 54 A17 Output NC 55 A18 Output NC 56 A19 Output NC 57 VSS
GND 58 P60 Output NC 59 P61 Output NC 60 P62 Output NC 61
φ
62 STBY Input
Output Clock output HIGH
(PulluptoVCCat10kΩ)
– – – – – – – – –
LOW 63 RES Input Reset input LOW 64 NMI Input 65 VSS 66 EXTAL
– –
(PulluptoVCCat10kΩ) GND EXTAL (16MHz)
LOW
– –
67 XTAL 68 VCC
– –
XTAL (16MHz) VCC
69 P63 Output NC
– – –
70 RD Output RD LOW 71 HRW Output HRW LOW 72 P66 Output NC 73 MD0 Input 74 MD1 Input 75 MD2 Input
(PulluptoVCCat10kΩ) (Pull down to GND at 10kΩ) (PulluptoVCCat10kΩ)
HIGH
LOW
HIGH
11 CITIZEN
CBM-202PC-04 User’s Manual
PinNo. Signal I/O Function Logic
76 AVCC 77 VREF
– –
VCC
VCC 78 THERM Input Head temperature detection terminal 79 NC Input
(Pull down to GND at 10kΩ) 80 DETECV Input Voltage detection terminal 81 NC Input 82 NC Input 83 NC Input 84 NC Input 85 NC Input 86 AVSS
(Pull down to GND at 10kΩ)
(Pull down to GND at 10kΩ)
(Pull down to GND at 10kΩ)
(Pull down to GND at 10kΩ)
(Pull down to GND at 10kΩ)
GND
– – – – – – – – – – –
87 STB Input Parallel data interrupt LOW 88 HEADUP Input Head up detection terminal LOW 89 CS2 Output Gate Array chip select LOW 90 CS1 Output RAM chip select LOW 91 CS0 Output Kanji ROM chip select LOW 92 VSS
GND 93 NC Output NC
– –
94 STRB1 Outp ut Head strobe 1 HIGH 95 STRB2 Outp ut Head strobe 2 HIGH 96 STRB3 Outp ut Head strobe 3 HIGH 97 STRB4 Outp ut Head strobe 4 HIGH 98 STRB5 Outp ut Head strobe 5 HIGH 99 STRB6 Outp ut Head strobe 6 HIGH
100 DSR Input Serial DSR (RS-232C) HIGH
12 CITIZEN
CBM-202PC-04 User’s Manual

4.4 Gate Array (CBM202LA) Terminal Layout and Functions

PinNo. Signal I/O Function Logic
44 D7 Input Parallel input data D7 HIGH 45 D6 Input Parallel input data D6 HIGH 46 D5 Input Parallel input data D5 HIGH 47 D4 Input Parallel input data D4 HIGH 48 D3 Input Parallel input data D3 HIGH 49 D2 Input Parallel input data D2 HIGH 50 D1 Input Parallel input data D1 HIGH 51 D0 Input Parallel input data D0 HIGH 52 STROBE Input Parallel STROBE LOW 55 BUSY Output Parallel BUSY HIGH 58 PAO7 Output NC 59 ACK Output Parallel ACK
– –
61 PE Output Parallel paper end HIGH 62 FAULT Output Parallel FAULT LOW 63 CUTTERA Output Cutter A 64 CUTT ERB Output Cutter B 65 CUTT ERC Output Cutter C 67 CUTTERD Output Cutter D
– – – –
13 CITIZEN

4.5 Reset Circuit

The reset state is effectuated by setting the RES terminal to "Low." To surely reset, it is necessary to set it to "Low" at least for 20ms at power-on and for 625ns while operating.
If an external reset is notused, the parts enclosed by dotted lines are not required.
CBM-202PC-04 User’s Manual
14 CITIZEN

4.6 Oscillation Circuit

The oscillation circuit incorporates a clock oscillator which generates a system clock and an internal clock. There are two methods to supply a clock; one is to connect a ceramic oscillator, and the other is to input an external clock.
When using the ceramic oscillator, we recommend the CSTCS16.00MXOC3 (With capacitor) made by MURATA. When inputting the external clock, you may either open the XTAL terminal or input an antiphase clock to the XTAL terminal.
CBM-202PC-04 User’s Manual
15 CITIZEN

4.7 Head-up Detection Circuit

Print head up/down is detected by a head-up sensor built in the printer so that the printer will not be energized on with the head up. The circuit is "opened" when the print head is up, and "closed" when down. When the print head is up, HEADUP (Pin 88) of the CPU is turned to "High," and if the printer is printing, it will immediately stop printing and output an error. It resumes printing when the print head is down.
CBM-202PC-04 User’s Manual
16 CITIZEN
CBM-202PC-04 User’s Manual

4.8 Head Control Circuit

VP is controlled in order to prevent electrolytic corrosion of the printing head. HVC(Pin-4) of the Gate Array is turned to "HIGH" when turning on VP , and turned to "LOW" when turning it off.
A temperature detection circuit is provided in order to prevent deterioration of the printing quality or breakage of the printing head due to a temperature. This function detects a temperature by means of a thermistor included in the printer and determines according to that temperature how much energy should be applied to the printing head. If a temperature of the printing head exceeds 60•, it will stop printing to prevent breakage of the printinghead.
As a protection when the CPU crashes, connect in such a manner that the Gate Array will be reset by an output from the watchdog timer of the CPU. The CPU itself has been set so that it will be reset. So that the head strobe will not be turned to ON at that time, be sure to insert one pull-up resistor into STRB1 through STRB3, respectively.
17 CITIZEN

4.9 PaperEnd Detection Circuit

A paper sensor built in the printer detects whether there is the printing paper, so that the printer will not be turned on when it has no paper.
When the printer has no paper,PAPER (Pin7) of the CPU is turned to "HIGH." If printing is under way, it will stop after printing that line, and output an error. When the paper is set, printingis automatically resumed.
CBM-202PC-04 User’s Manual
18 CITIZEN

4.10 Motor Control Circuit

Avoidrunning the motor continuously for 15 minutes or more.
CBM-202PC-04 User’s Manual
19 CITIZEN

4.11 Auto Cutter Control Circuit

This CPU has a function to control the auto cutter, using the Pin 33 of the Gate Array.
When the auto cutter is not used, set the Pin 33 of the Gate Array to "HIGH." If se t to "LOW," the printer will not function properly, resulting in an alarm.
CBM-202PC-04 User’s Manual
20 CITIZEN

4.12 ParallelInterface Circuit

The Gate Array ports are mainly used to provide an 8-bit parallel interface. When the parallel interface is not used, pull up STB(Pin 52) of the Gate Array with a 10kresistor. STB(Pin 87) of the CPU should be connected to INTR(Pin 56) of the Gate Array or pulled up with a 10k resistor.
1) Circuit
CBM-202PC-04 User’s Manual
21 CITIZEN
2) Gate Array Signals and Their Functions
Signal Pin No. I/O Functio n
STROBE 52 Input A signal to read in the data.(Negative logic)
D0 51 D1 50 D2 49
CBM-202PC-04 User’s Manual
D3 48 D4 47 D5 46 D6 45 D7 44
ACK 59 Output
BUSY 55 Output
PE 61 Output A signal to be output when the paper runs out. (Positive logic)
FAULT 62 Output A signal to indicate a printer error. (Negative logic)
GND
3) Timing chart
Input Input data (Positive logic)
A signal to indicate that the data has been read. (Negative logic) A signal to indicate that the data cannot be received. (Positive logic) Send the data when at "LOW."
T1, T2, T3 : 0.5sMIN T4 : 270 ns MAX T5 : 2.3sTYP T6 : 500 ms MIN
22 CITIZEN
CBM-202PC-04 User’s Manual

4.13 Serial Interface Circuit

A serial interface is an asynchronous serial system. When the serial interface is not used, pull up RXD (Pin
15) and DSR (Pin 100) ofthe CPU with a 47kresistor.
1) Circuit
2) Signal names and their functions Signal Name Pin No. Input/Output Function
Transmits the status.
TXD 13 Output
RXD 15 Input
DSR 100 Input
DTR 12 Output
If data reception is disabled when XON/XOFF is selected, XOFF(13H) will be transmitted, and if data reception is enabled, XON(11H) will be transmitted. Received data signal. If a framing error or parity error occurs, the relevant data will be printed "?". With DTR/DSR selected, if this signal is "LOW," the data will be transmitted from the CPU. If "HIGH," the data will be transmitted after the signal is turned to "LOW." Transmit the data when this signal is "LOW." If written when it is "HIGH," an overrun error will result, ignoring the data.
23 CITIZEN

4.14 Switch Circuit

The printer has a switch input function for paper feed. Also provided is a function to perform self -printing, using this switch. (Turn on the power while holding down this switch, or apply a reset with this switch held down whenthe power has beenalready turned on. The printer automa ticallystarts self-printing and returns to the normal waiting state after printing is completed.)
CBM-202PC-04 User’s Manual
24 CITIZEN

4.15 ErrorOutput Circuit

The printer has two kinds of error outputs. (Up to a current of 10mA is available in order to mainly indicate with the LEDs. If this limit is exceeded, the CPU may be destroyed. Select the current control resistors, LEDs, etc. carefully.) LEDPE(Pin 4) of the CPU is a paper error exclusive output. "LOW" is output when the printing paper runs out, and "HIGH" is output when new printing paper is set. LEDER(Pin 3) of the CPU outputs other errors in the follow ing patterns.
1) Error output pattern
Error Display Pattern Description
Memory error
CBM-202PC-04 User’s Manual
Blinks at intervals of 200ms
Cutter lock (Cutter error)
Head-up
VH voltageerror Headtemperature
error Macro execution wait
2) Error descriptions
Error Description Head-up The head-up lever has been shifted up. VH voltage error Whenthe VH voltage is beyondan allowable range (4.2 ~ 8.5V) Headtemperatureerror When a headtemperatureis less than 0°C or 65°C or more
Cutter lock (ASC-220-5V)
Note) The upper-limit voltage of 8.5V for the VH voltage error is a voltage assumed only immediately after
When t he cutter is locked due to an external factor (Paper jam, etc.) at cutter drive time
Blinks at intervals of 150 ms(6 times) and 500 ms(1 time) as one cycle.
Illuminated until the error is reset.
Illuminated until the error is reset.
Blinks at intervals of 1 sec.
Blinks at intervals of 500ms
charging the battery when the battery power is used and cannot be normally used. A maximum normal voltage is 7.2V.
25 CITIZEN
CBM-202PC-04 User’s Manual
3) Resetting methods
Error ResettingMethod No-paper Set the paper. See Note 1. Head-up Shift down the head-up lever.
VH voltageerror
Headtemperatureerror
Cutter lock(ACS-220-5v)
Set the VH voltage to within the allowable range(4.2 ~ 8.5 V) and turn on the power again, or set the LFSW(Pin-2) of the CPU to Active. See Note 2. At the lower limit(Less than 0°C), printing is enabled at 0°C or more. At the upper limit(65°C or more), printing is enabled at 60°C or less. Eliminate the paper jam and set LFSW(Pin-2) of the CPU to Active or turn on the power again.
Note)
1. If auto loading has not been selected with the function selection J4(Jumper), set the paper manually. If it has been selected, the auto loadingfunction will be enabledto facilitate pap e rreplac e ment.
2. The upper-limit voltage of 8.5V for the VH voltage error is a voltage assumed only immediately after charging the battery when the battery power is used and cannot be normally used. A maximum normal voltage is 7.2V.
26 CITIZEN

4.16 Function Selection Circuit

The input port of the Gate Array has function selecting terminals. When connecting the DIP switch, and so on, connect them as they are. When fixing with a Jumper, and so on, only the terminals you want to set to "LOW" should be connected to GND.
CBM-202PC-04 User’s Manual
Gate Array
Function “LOW” “HIGH”
Pin No. Signal
33 PAI0 Auto cutter Enabled Disabled 32 PAI1 CR change LF operation Ignored 31 PAI2 Printing density See Table (3) 30 PAI3 DTR/XON–XOFF XON–XOFF DTR/DSR 29 PAI4 28 PAI5
Interface See Table (1)
27 PAI6 26 PAI7
P AI3 is valid only when the serial interface is used.
Gate Array
Function “LOW” “HIGH”
Pin No. Signal
43 PBI0 42 PBI1
International
characters selection
See Table (2) 39 PBI2 38 PBI3 Auto loading Enabled Disabled 37 PBI4 Drive system Dynamic drive Fixed division 36 PBI5 Printingdensity See Table (3) 35 PBI6 Unused 34 PBI7 Unused
–– ––
P AI6 is valid only when the serial interface is used.
27 CITIZEN
Loading...
+ 61 hidden pages