Fundamentals of Dot Matrix Pfinting

Print Head

Print Head

&Bit

7.Bit

Pin Number

(toIN

Interface

Interface

 

7

128

ns: used

 

.

 

.

64

64

 

.

32

32

 

.

16

18

 

.

8

8

 

.

4

4

 

.

2

2

 

.

1

1

 

.

not used

not used

d

Based on the chart presented above, if you had a 7-bit computer and wanted to fire pins number 1 and 4 simultaneously, you would send CHR$(64+8). In other words, you’d send CHR$(72): Therein is the pattern. Thus, if you wanted to fire all the pins, using an 8-bit computer, you’d send:

CHR!$(128 + 64 + 32 + 16 + 8 + 4 + 2 + 1) = CHR$(255)

Control

 

Binary

Pin

Code

 

Representation

Fired

CHR$(128)

10000000

 

#l

CHR$(

64)

01000000

 

#2

CHR$(

32)

00100000

 

#3

CHR$(

16)

00010000

 

#4

CHR$(

8)

00001000

 

#5

CHRS(

4)

00000100

 

#6

CHR$(

2)

00000010

 

#7

CHR$(

1)

00000001

 

#8

CHR$(

0)

00000000

 

none

CHR$(255)

1 1 1

1 1 1 1 1

all 8

CHR$(

72)

01001000

 

#2

93

Page 99
Image 99
Gemini Industries Printer user manual Fundamentals of Dot Matrix Pfinting