參數(shù)資料
型號: PIO-96
英文描述: 96 CHANNEL PROGRAMMABLE INPUT/
中文描述: 96通道可編程的輸入/
文件頁數(shù): 15/29頁
文件大?。?/td> 108K
代理商: PIO-96
Page 16
Example Programs
Page 16
01271015.doc
Blue Chip Technology Ltd.
6.0
EXAMPLE PROGRAMS
Example Program 1
The following program in Microsoft Basic will test the operation of the PIO-96
if a link is made between corresponding pins on the rear of the connector.
10 P1=&H300 : REM BASE OF FIRST PIA
15 P2 = &H304 : REM BASE OF SECOND PIA
20 GOSUB 60
30 P1 = &H304 : P2 = &H300
40 GOSUB 60
50 GOTO 10 : REM LOOP CONTINUOUSLY
60 OUT P1+3, &H80 : OUT P2+3, &H9B
70 FOR P = 0 TO 2
80 F = 0
90 A = 1
100 OUT P1+P,A
110 IF INP(P2+P)<>A THEN PRINT “ERROR”, P,A,INP(P2+P):F=F+1
120 A=A+A
130 IF A=256 THEN GOTO 150
140 GOTO 100
150 IF F>0 THEN PRINT P, “FAILED”, F:GOTO 170
160 PRINT P,”PASSED”
170 NEXT P
180 RETURN
The program runs continuously and can only be stopped by pressing
Control-Break on the PC keyboard.
相關(guān)PDF資料
PDF描述
PIO48 ISA BUS KARTE 48K EIN/ AUSGANG PROGRAMM
PIP201-12M Analog IC
PJ20C40CZ 20 A, 40 V, SILICON, RECTIFIER DIODE, TO-220AB
PJRAS1X2S01X GENERAL PURPOSE AUDIO CONNECTOR, JACK
PJRAS1X2S02AUX GENERAL PURPOSE AUDIO CONNECTOR, JACK
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PIOD24 制造商:Misc 功能描述:
PIO-F627R3-R72B+-NODE 制造商:SUPER MICRO COMPUTER, INC. 功能描述:SUPER SERVER - INTELFOR SPARE PART & RMA ONLY - Trays
PIP02-5,08 功能描述:可插拔接線端子 PCB Hdr, 45 Deg, 5,08 PitchClosed End,2 pole,12A,300V,Grn RoHS:否 制造商:Phoenix Contact 產(chǎn)品:Plugs 系列:PTS 端接類型:Spring Cage 位置/觸點數(shù)量:5 線規(guī)量程:26-14 節(jié)距:5 mm 電流額定值:10 A 電壓額定值:250 V 安裝風格: 安裝角: 觸點電鍍:
PIP03-5,08 功能描述:可插拔接線端子 PCB Hdr, 45 Deg, 5,08 PitchClosed End,3 pole,12A,300V,Grn RoHS:否 制造商:Phoenix Contact 產(chǎn)品:Plugs 系列:PTS 端接類型:Spring Cage 位置/觸點數(shù)量:5 線規(guī)量程:26-14 節(jié)距:5 mm 電流額定值:10 A 電壓額定值:250 V 安裝風格: 安裝角: 觸點電鍍:
PIP04-5,08 功能描述:可插拔接線端子 PCB Hdr, 45 Deg, 5,08 PitchClosed End,4 pole,12A,300V,Grn RoHS:否 制造商:Phoenix Contact 產(chǎn)品:Plugs 系列:PTS 端接類型:Spring Cage 位置/觸點數(shù)量:5 線規(guī)量程:26-14 節(jié)距:5 mm 電流額定值:10 A 電壓額定值:250 V 安裝風格: 安裝角: 觸點電鍍: