Specifications

23 ADC7 ADC1
24 ADC0 ADC2
25 ADC1 ADC2
26 ADC2 ADC2
27 ADC3 ADC2
28 ADC4 ADC2
29 ADC5 ADC2
This function returns an integer value 0-1023 (these are 10-bit analog to digital converters).
The reference voltage is 1.6 volts. Refer to the ATmega128RFA1 datasheets for more information.
Built-in function setRadioRate():
On the ATmega128RFA1, setRadioRate() supports values of 0, 1, 2, and 3. The resulting data
rates are as follows:
setRadioRate() parameter Radio Data Rate
0 250 Kbps
1 500 Kbps
2 1 Mbps
3 2 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-ATMEL ATmega128RFA1 radio, and will only work with an ATmega128RFA1 radio
working at the same rate.
Built-in function setSegments():
On the ATmega128RFA1, setSegments() has no effect.
Built-in function sleep():
The ATmega128RFA1 supports two sleep modes. Mode 1 should always be used if a 32kHz crystal is
installed on the target. Use mode 0 if no RTC is available.
In the original RF100 SNAP Engine, the ticks parameter could accept either a zero, a positive, or a
negative number. Zero indicates “untimed sleep” (i.e. wake up on pin-interrupt only). Positive
numbers indicated how long to sleep in mode-dependant “ticks,” and negative numbers indicated
fractions of a second.
On the ATmega128RFA1, zero still indicates “untimed sleep.” Positive numbers indicate how long to
sleep in 1.0s “ticks” (regardless of mode), and negative numbers indicate the following fractions of a
second:
Ticks Mode 0
Sleep Time
Mode 1
Sleep Time
-1 33 ms 82 ms
-2 33 ms 82 ms
Page 158 of 202 SNAP Reference Manual Document Number 600-0007K