English
Language : 

PAK-IV Datasheet, PDF (10/14 Pages) List of Unclassifed Manufacturers – Using the PAK-IV I/O Coprocessor
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-IV 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.
WRITE
This command writes a byte to the PAK-IV's RAM. Data stored here will remain
indefinitely, even surviving power loss. Send an address byte (from 0 to $5F) and
the data byte. The PAK-IV will return a 0.
Typical Circuits and Software
Connecting the Pak-IV to its external components is simple. Supply 5V to Vdd and
ground the Vss pin. Connect the two outer pins of the ceramic resonator to the RES1 and
RES2 pins (the order does not matter). Ground the center pin of the resonator. Connect
the RESET pin to 5V. For the simplest mode of operation connect the ENABLE/BUSY
pin to 5V and the BUSY/MODE pin to 5V through a pull up resistor (10K-22K). Of
course, you'll also need to make connections to the host microprocessor. You may also
want to make different connections to ENABLE/BUSY and BUSY/MODE if you want to
use different methods of synchronizing.
Connections to Host
Data
Clock
4
SIN
5V
3
BUSY/MODE
Both Resistors:
10 to 22K
Busy output (optional)
5
SOUT
ENABLE/BUSY 2
6
10
5V
CLK
RES2
Resonator
1
RESET
9
RES1
7, 8, 19
Vss
20
Vdd
PAK-IV
Example 1. Connections to Stamp or similar host