English
Language : 

PAK-III Datasheet, PDF (9/14 Pages) List of Unclassifed Manufacturers – Using the PAK-III I/O Coprocessor
PULSIN0, PULSIN1
Measures low and high pulses. Returns the length, 16-bits, in 4uS units.
PULSOUT
Pulses the output for the specified duration (a 16-bit word specifying 4uS units).
PWM
PWM generates a pulse width train of the specified duty cycle (a byte; 0 is 0%,
255 is 100%) for the alloted time (a 16-bit number in 2ms units).
RCTIME0, RCTIME1
Measures the time for a capacitor to charge or discharge. Returns a zero and the
time in 4uS units (16-bits).
READ
Use this command to read a byte from the PAK-III's EEPROM. Write the address
(from 0 to 63) and the return value will be a zero byte, followed by the data byte.
Please note that accessing EEPROM is relatively slow, so be sure to wait for the
PAK-III's acknowledgement before sending more commands.
REVERSE
Changes an input pin to an output pin and vice versa. Always returns 0.
SHIFTIN
ShiftIn requires a single byte argument. The top four bits of this argument specify
the mode. The bottom four bits is the number of bits to shift (1 to 8). The mode
may be any of the following:
0 – MSBPRE (MSB first, sample before clock)
1 – LSBPRE (LSB first, sample before clock)
2 – MSBPOST (MSB first, sample after clock)
3 – LSBPOST (LSB first, sample after clock)
The PAK-III returns a 0 and the byte shifted in.
SHIFTOUT
ShiftOut requires a byte argument followed by a data byte. The top four bits of
this argument specify the mode. The bottom four bits is the number of bits to shift
(1 to 8). The mode may be any of the following:
0 – LSBFIRST (LSB shifted out first)
1 – MSBFIRST (MSB shifted out first
The PAK-III returns a 0.
TOGGLE
Forces the specified pin to be an output and then reverses its state (that is makes a
1 a 0 and a 0 a 1). Always returns 0.