EPSON Mini Printer
EPSON Mini Printer
http://www.datasynceng.com
Push Button
BASIC 1 HBAUD
STAMP
2 FEED
1k
(READY) I/O Pin 1 3 READY
(SEROUT) I/O Pin 0 4 SERIN
5 RESET
Ground
6 GND
7 +5V (Logic)
NiCad NiCad 8 +5V (Printer)
NiCad NiCad
The READY line is a hardware handshake signal that is used for serial data flow control. When the READY
line goes low, the printer is busy and cannot receive any serial data. If you do not want to use the flow
control signal then you must allow sufficient time for the current line to be printed before transmitting the
next line. The program below replaces the hardware flow control with a software delay instruction.
Push Button
4 SERIN
5 RESET
6 GND
7 +5V (Logic)
NiCad NiCad 8 +5V (Printer)
NiCad NiCad
100 REM This program will print 5 lines of a message followed by the
110 REM line number then ends with a one inch paper feed.
120 OPEN “COM1:2400,N,8,1,CS3000” FOR RANDOM AS #1
130 FOR COUNT = 1 TO 5
140 PRINT #1, CHR$(0);”Print line “;COUNT
150 NEXT COUNT
160 PRINT #1, CHR$(0);CHR$(12);
When the printer receives a carriage-return, it will set the READY line low and print out the characters in
the line buffer. During this time, the printer is not able to receive serial data. Some PC programs, including
QBASIC, do not stop transmitting until the next character. Consequently, the character following the
carriage-return is lost.The solution to this problem is to insert a non-printable NULL character, CHR$(0),
after each carriage-return as shown above.
Each printed line contains 8 rows of dots, 7 for the actual character and 1 for the underline. Print lines are
spaced apart by 3 blank dot rows. Printed lines can be spaced closer together or further apart by sending
the appropriate control character followed by a dot row count of 1 to 127. The following program example
reduces the spacing to 2 blank dot rows.
New dot row count settings will not be erased when printer power is turned off.
CHANGING THE FORM -FEED LENGTH
The Form-Feed control character causes the printer to space n number of blank dot rows. The default dot
row count is 60 which produces approximately a one inch paper feed. The following program example will
increase the Form-Feed length to one and one-half inches.
New form-feed settings will not be erased when printer power is turned off.
PRINTER OPERATION
The printer controller contains a 40 character line buffer but will only print the number of columns required
by the attached printer. For example, if a 16 column printer is attached, only the first 16 characters will be
printed when a Carriage-Return is received. Any characters exceeding the column length of the printer are
discarded.
When the DOUBLE-WIDTH character mode is selected, each character occupies two standard character
positions. In this case only the first 8 characters will be printed.
If at any time, the FEED button is pressed, the printer will set READY low and perform single dot-row
paper feeds for as long as the button is pressed. When it is released, the line buffer is erased and the
READY line is set high. Be aware that if a transmission of characters were already in progress, they will
be lost if the FEED button was pressed before the Carriage-Return was received.
The printer controller continuously monitors the printing speed. If it detects a jammed printer or very slow
activity, it will enter a fault condition. During this condition all printer control signals are turned off, the
READY line is set low and the controller waits for the FEED button before re-attempting to power the
printer.
If the FEED button is already pressed, such as when initiating the self-test, the controller will remain in the
fault condition until the key is released then pressed again. Subsequent faults will occur if the problem still
exists.
To begin the self-test, turn the printer power off, depress and hold the FEED button then turn the power on.
Character size (W x H) 1.8 x 2.5 mm 1.7 x 2.4 mm 1.3 x 2.4 mm 1.1 x 2.4 mm 1.3 x 2.4 mm
Print speed 1.0 lines/sec. 0.7 lines/sec. 0.5 lines/sec. 0.4 lines/sec.
05 (5) ctrl “E” ENQ Selects double-width (expanded) character mode for one line.
06 (6) ctrl “F” ACK Selects double-height character mode for one line.
09 (9) ctrl “I” HT HORIZONTAL TAB. Positions print head to next 8-character tab field.
0C (12) ctrl “L” FF FORM-FEED. Paper feeds n number of blank dot lines.
0D (13) ctrl “M” CR CARRIAGE RETURN. Prints contents of character buffer.
12 (18) ctrl “R” DC2 Selects Right-to-Left printing format.
14 (20) ctrl “T” DC4 Selects Left-to-Right printing format. (standard default)
16 (22) ctrl “V” SYN Selects underline mode for one line.
1C (28) ctrl “\” FS Sets print line spacing, next byte = blank dot-line count (1 to 127).
1E (30) ctrl “^” RS Sets form-feed length, next byte = blank dot-line count (1 to 127).
20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F
30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F
40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F
60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F
70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F
INTERFACE CONNECTIONS
1 Home Switch
2 Home Switch
1 3 Motor (-)
PRINTER MECHANISM J2
Connects to J2 on SMP-II 4 Motor (+)
Serial Interface Module 5 Solenoid Common
6 Solenoid (D)
SMP-II 7 Solenoid (C)
8 Solenoid (B)
9 Solenoid (A)
10 Tacho-generator
J3 1 J1 8
11 Tacho-generator
1 HBAUD Leaving this pin open selects 2400 baud, logic low selects 9600 baud
2 FEED Logic low on this pin generates paper feeds
3 READY When this output pin goes low, serial data cannot be received (busy printing)
4 SERIN Serial data input pin, accepts direct or inverted signals, logic or RS-232 levels
5 RESET Logic low on this pin resets printer interface
6 GND Power Ground
7 +5V Logic power, 5 VDC
8 +5V Printer power, 5 VDC
SPECIFICATIONS
GENERAL
PRINT METHOD ................ Impact Dot Matrix, 5 x 7 format (2 dot space between characters)
CHARACTER SET .............. 96 ASCII characters (Hex 20H to 7FH), plus 11 control characters
# OF COLUMNS ................. Auto detect - 1 6 (M150), 24 (M160), 32 (M163) or 40 (M164/170)
PRINT FEATURES ............. D o u b l e W i d t h , D o u b l e H e i g h t , U n d e r l i n e a n d R i g h t-to -Left Printing
POWER SUPPLY
SERIAL INTERFACE