From: "Jerry J. Haumberger" <[EMAIL PROTECTED]>
>Secondly, I've got the parallel cable for connecting to a printer,
>but my Okidata 9-dot matrix printer will only print one line at a time,
>after which it overwrites continuously on the same line. How do I get
>it to recognize an automatic CR (carriage return)?
Two possibilities:
1. You are only sending CR (carriage return), and not LF (line feed -
0001010 7-bit binary, 0A hexadecimal, 010 decimal) at the end of a line.
Note: on a PC, if you hold down the <Alt> key while you type in the
decimal value of the ASCII code (000 to 255), you can see what it does.
2. You have a problem with the cable, connectors, or printer. Most likely
an open connection on data lines data 1 or data 3 (see the binary,
counting 0, 1, 2... from the right (least significant bit). Compare
what the printer prints with the binary/ASCII code. 100001 binary, 41
hexadecimal, or 65 decimal corresponds to the letter "A". 1000100
binary, 44 hexadecimal, or 68 decimal corresponds to "D". If only
one of these is printed correctly, you can see which data line is open.
>From "Dvorak's Guide to PC Connectivity", p. 53:
DB-25 Pin Definition Direction Centronics-36
1 strobe --> 1
2 data bit 0 --> 2
3 data bit 1 --> 3
4 data bit 2 --> 4
5 data bit 3 --> 5
6 data bit 4 --> 6
7 data bit 5 --> 7
8 data bit 6 --> 8
9 data bit 7 --> 9
10 acknowledge <-- 10
11 busy <-- 11
12 paper end <-- 12
13 select <-- 13
14 auto feed --> 14
15 fault <-- 32
16 initialize printer --> 31
17 select input --> 36
18 to 25 ground 19 to 30, 33
15,16,17,18,34,35 (not used)
Boyd Ramsay
[EMAIL PROTECTED]
To unsubscribe from SURVPC send a message to [EMAIL PROTECTED] with
unsubscribe SURVPC in the body of the message.
Also, trim this footer from any quoted replies.
More info can be found at;
http://www.softcon.com/archives/SURVPC.html