B&B Electronics PPIOの取扱説明書

34ページ 0.19 mb
ダウンロード

ページに移動 of 34

Summary
  • B&B Electronics PPIO - page 1

    . PPIO2899 Manual Cover Page B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815 - 433 - 5100 - Fax 815 - 433 - 5104 Parallel Port Input/Output Converter Model PPIO Document No. PPIO2899 B&B Electronics Mfg. Co. Inc. 707 Dayton Road -- P.O. Box 1040 -- Ottawa, IL 61350 USA Phone (815) 433 - 5100 -- General ...

  • B&B Electronics PPIO - page 2

    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 .............................................................. ...

  • B&B Electronics PPIO - page 3

    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 as either inputs or outputs. As an ou ...

  • B&B Electronics PPIO - page 4

    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 in the shipping carton: 1) PPIO unit 2) ...

  • B&B Electronics PPIO - page 5

    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 port is designed to connect the computer ...

  • B&B Electronics PPIO - page 6

    4 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 used to read the status of the port. The PPIO does not need to use this port as an input port. Again, referring to Table 1, if you input the data on port 0379H, then whatever TTL level p ins 15, 13, 12, 10, ...

  • B&B Electronics PPIO - page 7

    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 outpu t is used to control the interrupt IRQ7. When this bit is HIGH, IRQ7 is enabled and when this bit is LOW, IRQ7 is ...

  • B&B Electronics PPIO - page 8

    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 There are three port addresses that are normally used on a PC for parallel ports: 3BCH, 378H, and 278H. When your PC is reset or turned on these three addresses are scanned by the BIOS in the order shown ab ...

  • B&B Electronics PPIO - page 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 bits of address 379H (pins 13, 12, 10, a ...

  • B&B Electronics PPIO - page 10

    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 ...

  • B&B Electronics PPIO - page 11

    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 G WBASIC code in F igure 2 to see how to input the bits and make one 8 - bit word. 100 OUT &H37A,&H04: REM This disables the 37AH Output ...

  • B&B Electronics PPIO - page 12

    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 all of the rest of the bits OFF then you ...

  • B&B Electronics PPIO - page 13

    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 Fi gure 2, note that you also get the status of the outputs. If some I/O bits are used by the PPIO as outputs the status of the bits you read will t ...

  • B&B Electronics PPIO - page 14

    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 the main routine of the example program. ...

  • B&B Electronics PPIO - page 15

    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 di sable IRQ} END; {Set_IRQ_Off} The function, In_Byte, returns the value of the variable, Input_Byte. It is defined as: FUNCTION In_By ...

  • B&B Electronics PPIO - page 16

    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 bi ts) of the input line status. Since the smallest value that can be read from the port is a byte, some work must be done to get only th ...

  • B&B Electronics PPIO - page 17

    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 15 Notice that in the binary representation of the mask value, line zero’s mask has bit number zero set, and line one’s mask has bit number one set, etc. So, instead of retrieving the mask value from a ta ...

  • B&B Electronics PPIO - page 18

    16 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 As with the function, In_Byte, the mask value is calculated by shifting 00000001b right the same number of times as the desired line number. Once the mask va lue is calculated, it is bitwise ANDed with Out ...

  • B&B Electronics PPIO - page 19

    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 17 For example: Output_Byte = 01010101b Line_Number = 3 Status = 1 00000001b (1 d ecimal) shift - right 3 (Line_Number) = 00001000b XOR 11111111b 11110111b (mask 1) AND 01010101b (Output_Byte) 00000001b (Stat ...

  • B&B Electronics PPIO - page 20

    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 routine of the example program. PPIOFUNC.C ...

  • B&B Electronics PPIO - page 21

    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 19 The function, Set_IRQ_OFF(), tells the parallel port not to generate any interrupts. This sh ould be called immediately after Set_Start(). It is defined as: void Set_IRQ_Off(void) { outport (Control_Addres ...

  • B&B Electronics PPIO - page 22

    20 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 i nput line status. Since the smallest value that can be read from the port is a byte, some work must be done to get only th ...

  • B&B Electronics PPIO - page 23

    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 21 Notice that in the binary representation of the mask value, line zero’s mask has bit number ze ro set, and line one’s mask has bit number one set, etc. So, instead of retrieving the mask value from a t ...

  • B&B Electronics PPIO - page 24

    22 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 Line_Number = 3 Output_Byte = 10101010b 00000001b shift - right 3 (Line_Number) = 00001000b AND 10101010b (Output_Byte) 00001000b The function, Set_Output_Bit(), sets the selected output line ON of OFF. Th ...

  • B&B Electronics PPIO - page 25

    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 23 For example: Output_Byte = 01010101b Line_Number = 3 Status = 1 00000001b (1 decimal) shift - right 3 (Line_Number) = 00001000b XOR 11111111b 11110111b (mask 1 ) AND 01010101b (Output_Byte) 00000001b (Stat ...

  • B&B Electronics PPIO - page 26

    24 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 function, Is_PPIO(), tests whether or not the PPIO is connected to the parallel port and fun ctioning properly. This function should only be used if it is safe to toggle the state of the digital output ...

  • B&B Electronics PPIO - page 27

    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 25 Input_Byte = inp( Control_Address ) & 0x0F; if( (Input_Byte & Output_Byte) == Output_Byte ) { status |= 0x 01; } } /* Restore the state of the digital outputs */ Output_Byte = old_value; outp( Base ...

  • B&B Electronics PPIO - page 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 27 I NTER FACING 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 a light or other load between the outpu ...

  • B&B Electronics PPIO - page 29

    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 ...

  • B&B Electronics PPIO - page 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 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 Conditioning system. The other relay controls th ...

  • B&B Electronics PPIO - page 31

    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 Air off. See line 260. If IB is equal to 3 ...

  • B&B Electronics PPIO - page 32

    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 HIGH 120 REM TO USE THEM AS INPUTS 130 RE ...

  • B&B Electronics PPIO - page 33

    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 Hexadecim al numbers are base - 16 numbers. Instead of only using the digits "0" through "9" to represent a number, the letters "A" through " ...

  • B&B Electronics PPIO - page 34

    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 shows how to convert any v ...

メーカー B&B Electronics カテゴリー TV Converter Box

B&B Electronics PPIOのメーカーから受け取ることができるドキュメントは、いくつかのグループに分けられます。その一部は次の通りです:
- #BRANDの図面#
- PPIOの取扱説明書
- B&B Electronicsの製品カード
- パンフレット
- またはB&B Electronics PPIOの消費電力シール
それらは全部重要ですが、デバイス使用の観点から最も重要な情報は、B&B Electronics PPIOの取扱説明書に含まれています。

取扱説明書と呼ばれる文書のグループは、B&B Electronics PPIOの取り付け説明書、サービスマニュアル、簡易説明書、またはB&B Electronics PPIOのユーザーマニュアル等、より具体的なカテゴリーに分類されます。ご必要に応じてドキュメントを検索しましょう。私たちのウェブサイトでは、B&B Electronics PPIOの製品を使用するにあたって最も人気のある説明書を閲覧できます。

B&B Electronics PPIOデバイスの取扱説明書はどのようなものですか?
取扱説明書は、ユーザーマニュアル又は単に「マニュアル」とも呼ばれ、ユーザーがB&B Electronics PPIOを使用するのを助ける技術的文書のことです。説明書は通常、全てのB&B Electronics PPIOユーザーが容易に理解できる文章にて書かれており、その作成者はその分野の専門家です。

B&B Electronicsの取扱説明書には、基本的な要素が記載されているはずです。その一部は、カバー/タイトルページ、著作権ページ等、比較的重要度の低いものです。ですが、その他の部分には、ユーザーにとって重要な情報が記載されているはずです。

1. B&B Electronics PPIOの説明書の概要と使用方法。説明書にはまず、その閲覧方法に関する手引きが書かれているはずです。そこにははB&B Electronics PPIOの目次に関する情報やよくある質問、最も一般的な問題に関する情報を見つけられるはずです。つまり、それらはユーザーが取扱説明書に最も期待する情報なのです。
2. 目次。B&B Electronics PPIOに関してこのドキュメントで見つけることができる全てのヒントの目次
3. B&B Electronics PPIOデバイスの基本機能を使うにあたってのヒント。 B&B Electronics PPIOのユーザーが使い始めるのを助けてくれるはずです。
4. トラブルシューティング。B&B Electronics PPIOに関する最も重要な問題を診断し、解決するために役立つ体系化された手続き
5. FAQ。よくある質問
6. 連絡先。一人では問題を解決できない場合に、その国におけるB&B Electronics PPIOのメーカー/サービスへの連絡先に関する情報。

B&B Electronics PPIOについてご質問がありますか?

次のフォームを使用してください

見つけた説明書を読んでもB&B Electronics PPIOの問題を解決できない場合、下記のフォームを使用して質問をしましょう。ユーザーのどなたかがB&B Electronics PPIOで同様の問題を抱えていた場合、その解決方法を共有したいと考えるかもしれません。

画像のテキストを入力してください

コメント (0)