English
Language : 

PAK-IV Datasheet, PDF (13/14 Pages) List of Unclassifed Manufacturers – Using the PAK-IV I/O Coprocessor
Basic Stamp II Library
On the enclosed disk you'll find IO2UTIL.BS2 which contains a simple library for the
PAK-IV. Here are the calls in that file:
Call
XCount
XRRead
XRWrite
XFreqOut
XGetNumber
XHigh
XInput
XLow
XOutput
XPulseIn0
XPulseIn1
XPulseOut
XPWM
XRCTime0
XRCTime1
XRead
XReset
XShiftIn
XShiftOut
XToggle
XBank
Function
Count pulses
Read RAM
Write RAM
Generate tone
Get time-sensitive random
number
Set pin high
Set pin to input
Set pin low
Set pin to output
Read low pulse
Read high pulse
Generate pulse
Generate PWM
RCTime low
RCTime high
Read input
Reset the coprocessor
Shift data in (MSBFIRST)
Shift data out (MSBFIRST)
Toggle pin
Switch bank
Notes
Time in xA, return in
Xoutvalue
Address in xA, return
in Xoutvalue
Address in xA, byte in
xB
Freq=xA, Duration=xB
Result in Xoutvalue
Pin in Xpin
Pin in Xpin
Pin in Xpin
Pin in Xpin
Pin in Xpin, result in
Xoutvalue
Pin in Xpin, result in
Xoutvalue
Pin in Xpin, duration in
xA
Pin in Xpin, duty cycle
in xA, duration in xB
Pin in Xpin, return in
Xoutvalue
Pin in Xpin, return in
Xoutvalue
Pin in Xpin, result in
Xoutvalue
Always call first
Pin in Xpin, 8 bit result
in Xoutvalue
Pin in Xpin, 8 bit data
in xA
Pin in Xpin
Xpin = 0 for A, 1 for B