Specifications

A raw reading of 0x8000 will look like -32768 to SNAPpy. 0x8001 will be interpreted as -32767,
0xFFFE will be -2, and 0xFFFF will be -1.
To compensate, you will likely need to adjust for this at the point you try to actually use the results of
readAdc(10) – readAdc(19).
For example, in your Portal script you might need a function like the following:
def signedToUnsigned(value):
if value > 0:
return value # already a positive number, no adjustment needed
unsignedValue = 65535 + value + 1
# if you are on a processor with >= 32-bit integers, you can just say 65536 +
value
return unsignedValue
In other programming languages, like C or C++, you can do what is called a cast:
adjustedValue = (unsigned int) signedValue.
Built-in function setRadioRate():
On the ZIC2410, setRadioRate() supports values of 0, 1, and 2. The resulting data rates are as follows:
setRadioRate() parameter Radio Data Rate
0 250 Kbps
1 500 Kbps
2 1 Mbps
Radio rate 0 is compatible with any 802.15.4 SNAP radio using rate 0. Any other rate may not work
with any non-ZIC2410 radio, and will only work with a ZIC2410 radio working at the same rate.
Built-in function sleep():
On ZIC2410, there are three sleep modes supported. Unlike on some of the other platforms, these
sleep modes do not differ in accuracy or tick units. Instead they differ in how they treat I/O pins, how
they recover from sleep, and how much current they draw while sleeping.
Mode 0 maintains all I/O pins while sleeping, and wakes up normally after the requested seconds have
elapsed, or an external interrupt occurs.
Mode 1 does not maintain I/O while sleeping, and instead of waking up, it completely reboots after the
requested seconds have elapsed, or an external interrupt occurs.
Mode 2 does not maintain I/O while sleeping, and also reboots instead of truly waking up. In addition,
this sleep mode does not support timed sleep. The only way to exit a mode 2 sleep is via one of the
external interrupt pins (EXT0 or EXT1).
Page 148 of 202 SNAP Reference Manual Document Number 600-0007K