參數(shù)資料
型號: PAK-III
廠商: Electronic Theatre Controls, Inc.
英文描述: Using the PAK-III I/O Coprocessor
中文描述: 利用巴基斯坦三的I / O協(xié)處理器
文件頁數(shù): 11/14頁
文件大小: 129K
代理商: PAK-III
If you are using the Basic Stamp II or Basic Stamp IISX, you'll have no problems using
the ShiftIn and ShiftOut commands. Many Basic Stamp-compatible compilers have these
commands too. If you don't have access to these commands, don't worry. Here is some
simple code (written in simple PBasic) that shows the actions you have to take:
' B1 is the byte to shift
shiftoutput:
output datapin
for b7=0 to 7
' Set data pin to 0 or 1
low datapin
if (b1 & $80) <> $80 then so0
high datapin
so0:
b1=b1*2 ' shift byte left
high clkpin
low clkpin ' could use pulsout
next
return
' B1 is byte to input byte
shiftinput:
input datapin
b1=0
for b7=0 to 7
b1=b1*2
b1=b1 | in15
high clkpin
low clkpin ' could use pulsout
next
return
You'll find a library of Basic Stamp II routines that allow you to access the PakIII on the
companion disk. Here is a simple program that generates random numbers while blinking
an LED connected to the PakIII's B4 pin and scanning a button on B3:
agn: xpin=4 ' toggle pin 4
gosub xtoggle
gosub xgetnumber ' get random number & print it
debug hex2 xoutvalue,cr
xpin=3 ' check switch on pin 3
gosub xread
if xoutvalue=1 then nobz ' if switch up, no buzz
xpin=5 ' switch down: buzz on B5 speaker
xA=1000
xB=500
gosub XFreqout
nobz:
goto agn ' do it all again
相關(guān)PDF資料
PDF描述
PAK-II 310 Ivy Glen Court
PAK-IV Using the PAK-IV I/O Coprocessor
PAK-I 310 Ivy Glen Court
PAK-VA 310 Ivy Glen Court
PAK-VI 310 Ivy Glen Court
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PAK-IV 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Using the PAK-IV I/O Coprocessor
PAKKL-3140-01 制造商:Richco 功能描述:CLIP ADJ SNAP IN NAT .31-.40"
PAKKL-3140-19 功能描述:CLIP ADJ. SNAP .31-.40" RoHS:是 類別:線纜,導(dǎo)線 - 管理 >> 線夾和夾具 系列:KWIK KLIP 標(biāo)準(zhǔn)包裝:100 系列:TC 類型:C-夾 開口尺寸:0.79" L x 0.54" W x 0.67" H(20.1mm x 13.7mm x 17.0mm) 安裝類型:釘子 材質(zhì):聚丙烯 顏色:黑
PAKKL-4756-01 制造商:Richco 功能描述:CLIP ADJ SNAP IN NAT .47-.56"
PAKKL-4756-19 制造商:Richco 功能描述:CLIP ADJ SNAP IN NAT .47-.56"