Specifications
Built-in function pulsePin():
On the ATmega128RFA1, negative durations are in units of approximately 0.94 microsecond.
Here are some requested versus measured pulse timings, taken with a logic analyzer.
Requested duration Measured Pulse Width (µs)
-1 0.94
-2 1.37
-3 1.82
-10 4.88
-20 9.25
-30 13.63
Built-in function random():
On the ATmega128RFA1, the pseudo random number generation is done in hardware, not software.
Built-in function readAdc()
On the ATmega128RFA1, channels 0-7 correspond to direct reads of one of the eight external analog
input pins. Channels 8-29 return various “differential” readings, as shown in the following table.
Channel Number Returns
0 ADC0
1 ADC1
2 ADC2
3 ADC3
4 ADC4
5 ADC5
6 ADC6
7 ADC7
8 10 * (ADC0 – ADC0)
9 10 * (ADC1 – ADC0)
10 200 * (ADC0 – ADC0)
11 200 * (ADC1 – ADC0)
12 10 * (ADC2 – ADC2)
13 10 * (ADC3 – ADC2)
14 200 * (ADC2 – ADC2)
15 200 * (ADC3 – ADC2)
16 ADC0 – ADC1
17 ADC1 – ADC1
18 ADC2 – ADC1
19 ADC3 – ADC1
20 ADC4 – ADC1
21 ADC5 – ADC1
22 ADC6 – ADC1
SNAP Reference Manual Document Number 600-0007K Page 157 of 202