Page 2 - Table of Contents; TABLE OF CONTENTS
PPIO2899 Manual Table of Contents i B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 TABLE OF CONTENTS INTRODUCTION .............................................................................1 P ACKING L IST ..........................
Page 3 - NTRODUCTION; The PPIO allows you to connect your IBM PC (or clone)
PPIO2899 Manual B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 1 I NTRODUCTION The PPIO allows you to connect your IBM PC (or clone) computer to the outside world using the computer’s parallel port. The eight I/O points can be used...
Page 4 - Packing List; Examine the shipping carton and contents for physical damage.
2 PPIO2899 Manual B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 Packing List Examine the shipping carton and contents for physical damage. If there is damage, contact B&B Electronics immediately. The following items should be ...
Page 5 - PC P; ARALLEL; To understand how the PPIO can be controlled you must
PPIO2899 Manual B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 3 PC P ARALLEL P ORT D ESCRIPTION To understand how the PPIO can be controlled you must first understand how the parallel port works inside the computer. The parallel p...
Page 7 - Table 1; that will read the TTL levels on those pins. In this; BIT; See
PPIO2899 Manual B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 5 Table 1 Note 1: X means no connection to any DB-25 pin. Note 2: Bit 4 of 37AH as an output is used to control the interrupt IRQ7. When this bit is HIGH, IRQ7 is enabl...
Page 9 - PPIO D; ESCRIPTION; The PPIO makes use of the eight output pins (pins 2 through 9)
PPIO2899 Manual B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 7 PPIO D ESCRIPTION & C ONNECTION The PPIO makes use of the eight output pins (pins 2 through 9) at address 378H to drive its eight outputs. It uses the upper four ...
Page 10 - Figure 1
8 PPIO2899 Manual B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 Figure 1
Page 11 - ONTROLLING THE; PPIO U; SING; GWBASIC; Refer to the fragment of GWBASIC code in Figure 2 to see how; Figure 2; The above assumes that you are using a parallel port located at
PPIO2899 Manual B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 9 C ONTROLLING THE PPIO U SING GWBASIC Refer to the fragment of GWBASIC code in Figure 2 to see how to input the bits and make one 8-bit word. 100 OUT &H37A,&H0...
Page 12 - Table 2; The big advantage of using the ANDing and ORing as shown in
10 PPIO2899 Manual B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 Table 2 The big advantage of using the ANDing and ORing as shown in Table 2 is that it makes each PPIO pin independent. If you have, for instance, PPIO bit 2 ON and ...
Page 13 - not; work if any of the PPIO pins are connected to
PPIO2899 Manual B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 11 When you input the 8-bit word using lines 300-460 of Figure 2, note that you also get the status of the outputs. If some I/O bits are used by the PPIO as outputs the...
Page 14 - The PPIO disk includes two source code files as an example of
12 PPIO2899 Manual B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 C ONTROLLING THE PPIO U SING P ASCAL The PPIO disk includes two source code files as an example of using the PPIO with the Pascal programming language. PPIO.PAS is t...
Page 15 - ELSE
PPIO2899 Manual B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 13 PROCEDURE Set_IRQ_Off; BEGIN PORT[Control_Address] := $04;{Write 4 to disable IRQ} END; {Set_IRQ_Off} The function, In_Byte, returns the value of the variable, Input...
Page 16 - Mask Value; Line
14 PPIO2899 Manual B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 The parallel port’s status register stores the upper nibble (four bits) of the input line status. Since the smallest value that can be read from the port is a byte, ...
Page 20 - The PPIO disk includes three source code files as an example
18 PPIO2899 Manual B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 C ONTROLLING THE PPIO U SING C The PPIO disk includes three source code files as an example of using the PPIO with the C programming language. PPIO.C is the main rou...
Page 28 - NTERFACING TO THE; PPIO; Each output of the PPIO is capable of handling currents as high; Figure 3; Each input of the PPIO works with voltages up to 50 volts DC
PPIO2899 Manual B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 27 I NTERFACING TO THE PPIO Each output of the PPIO is capable of handling currents as high a 500 mA when the output is low. This means that you can connect a relay or ...
Page 29 - Figure 4
28 PPIO2899 Manual B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 Figure 4
Page 30 - Figure 5 shows a simple use of the PPIO to create an automatic
PPIO2899 Manual B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 29 E XAMPLE U SE OF THE PPIO Figure 5 shows a simple use of the PPIO to create an automatic Heating and Air Conditioning system. The top relay controls the Air Conditio...
Page 31 - Figure 5
30 PPIO2899 Manual B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 Heat and the Air. See line 230. If IB is equal to two then the 72 degree thermostat is on and the 78 degree one is off. At this time we want both the Heat and the Ai...
Page 32 - Figure 6
PPIO2899 Manual B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 31 90 REM IB IS THE INPUT BYTE AND OB IS THE OUTPUT BYTE 100 OUT &H37A,&H4: REM SET UP 37A FOR INPUTTING 110 OUT &H378,&H0: REM FORCE I/O BITS 0&1 H...
Page 33 - PPENDIX; Hexadecimal Numbers; Hexadecimal numbers are base-16 numbers. Instead of only; shows the value of the individual; Table 4; can be used; Table 3; Value
PPIO2899 Manual B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 33 A PPENDIX Hexadecimal Numbers Hexadecimal numbers are base-16 numbers. Instead of only using the digits "0" through "9" to represent a number, the le...
Page 34 - Binary Numbers; Binary numbers are base-2 numbers. They are written as a; shows how to convert any value between 0 and 15 into
34 PPIO2899 Manual B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 Table 4 Binary Numbers Binary numbers are base-2 numbers. They are written as a sequence of one's and zero's and end with a lower or upper case "B". Table 3 ...