Bit 0 – Integer overflow
Bit 1 – Floating point overflow
Bit 2 – Floating point underflow
Bit 3 – Divide by zero
Bits 4-7 – Reserved; always 0.
A return of zero indicates no error.
There are several ways you can reset the Pak I. It
is a good idea to reset the unit before using it, or
any time that you want to make sure it is in a
known state. This is especially true when using the
Stamp. Each time the Stamp resets or wakes up
from sleep, the I/O pins briefly become inputs.
This can fool the Pak I into starting a data transfer.
Always reset the Pak I first.
The best way to reset a single Pak I is to send a
special reset sequence over the clock and data
lines. This has the advantage that it doesn't require
any extra I/O from the host. To send a reset
sequence, bring the data pin to 0 and raise the
clock to a 1. While the clock remains in the 1 state,
bring the data pin high. This will indicate to the
Pak I that you wish to reset. When the clock
returns to a zero state, the Pak I will reset. The
reset doesn't change any register values or port
pins, but it does reset communications to a known
You can get the same result by bringing the enable