AVR
®
ATICE10 User Guide
6-1
Section 6
Special Considerations
There are a few important differences between emulating devices with the ICE10 and
running code in the actual device. In this section some of the special considerations are
listed. For more issues and considerations see the separate
avrtools.pdf
document on
the supplied CD-ROM, or download the latest version from the Atmel web site
(www.atmel.com).
6.1
Stack
There is no hardware stack in the ICE10. Therefore, a stack must be set up in the emu-
lator’s SRAM when emulating devices with hardware stack. The following two
instructions will set up the stack.
ldi r16, $6F
out $3D, r16
Further writing to I/O locations $3D and $3E must be avoided.
6.2
Assembling
Some instructions that are not available in tiny AVR devices will work in the ICE10. Use
the assembler device directive when assembling to generate warnings when illegal
instructions are used.
6.3
ADC
The ADC featured in ATtiny15 is implemented on the ATtiny15POD using an AD con-
verter chip, several analog multiplexers, an operational amplifier to provide 20x gain and
an instrumentation amplifier to provide differential mode inputs. See Figure 6-1. Due to
this construction with discrete ICs on an open PCB, the ADC will be more susceptible to
ambient noise and have electrical characteristics that differ from the actual chip. See
Table 6-1.
Figure 6-1.
ATtiny15POD
The internal voltage reference on the pod has a nominal voltage of 2.495V (minimum
2.440V, maximum 2.550V). This is within the specification of ATtiny15 (2.40V - 2.7V).
+
-
ADC0
ADC1
ADC2
ADC3
20x
Instrumentation
Amplifier
Gain Amplifier
Gain
Selection
10-bit ADC A
REF
Int. Ref
A
REF
A
VCC