Commodore MPS 1000 — Commodore MPS 1000 Dot Matrix Printer User's Manual PDF

binary numbers, it can't accept decimal numbers larger than 255. Therefore, the graphics mode command uses two numbers for reserving columns. The number of columns reserved is the first number plus 256 times the second number. Since the command is set up for two numbers, you must supply two even if you only need one. When you need less than 256 columns, just make nl the number of columns you are reserving and make n2 = 0. Pin Labels Once you put the printer into graphics mode and reserve the number of columns you want, your next step is to tell the print head which pins to fire in each column.

There are 256 possible combinations of eight pins, and you send only the one number for each column. The number- ing system that allows you to use a single number to specify which of the 256 possible patterns you want is shown in Figure 7-1. 128 0 ,......---...., 64 0 32 0 1: 8 40 20 10 not used 0 Figure 7-1. Pin labels To fire any one pin, you send its number. To fire more than one pin at the same time, add up the numbers of the pins and send the sum to the printer. With these labels for the pins, you fire the top pin by send- ing 128. To fire the bottom graphics pin, you send 1. If you want too fire the top and bottom pins, simply add 128 and 1, then send 129.

By adding the appropriate label numbers together, you can fire any combination of pins you want. Figure 7-2 show you three examples of how to calculate the number that will fire a particular pattern of pins.