AVR
®
ATICE30 User Guide 4-1
Section 4
Emulating ATmega163/ATmega83
4.1 The
ATmega163POD
To emulate ATmega163/83/32, the ATmega163POD should be used. The
ATmega163POD is fully configurable from AVR Studio. It includes two sockets that can
be used to supply clock signals to the target application.
A crystal can be mounted in the socket labeled ECLK (external clock) to supply system
clock to the target application. Both ATmega163/83/32 and ATmega163POD have an
asynchronous timer that can be clocked by an external crystal. To emulate this, a crystal
can be mounted in the socket labeled TCLK (timer clock).
See below for detailed explanations of the ATmega163POD clock options and
configurations.
The ATmega163POD has a reset button, and this can be used to reset the application
when it is running.
4.2 Configuration
of the
ATmega163POD
ATmega163POD is configured directly from AVR Studio. When an object file is opened
in AVR Studio for the first time, a dialog box with the ICE30 emulator options is dis-
played (Figure 4-1). The option can also be changed later from the Options > Emulator
Options menu.
Figure 4-1. Emulator Options Dialog
Emulating ATmega163/ATmega83
4-2 AVR
®
ATICE30 User Guide
4.2.1 AVR Clock Source Internal Oscillator: If a clock is not available in the target application, select internal
oscillator. The internal frequency is selectable in the range 400 kHz to 8 MHz. Note
that this option is not available in an actual device. If the internal RC oscillator in
ATmega163/83 is used, the frequency will be fixed to 1 MHz.
External Oscillator: If the target application supplies its own clock, select external
oscillator as clock source.
External XTAL: If a crystal in the target application or in the socket on the pod card is
used, select external XTAL as clock source. A crystal should not be mounted in the
socket on the pod card if there are any connections on the XTAL pins in the target
application.
If internal oscillator is selected, any signals on XTAL pins are overridden.
4.2.2 AVR Clock
External Range
If an external clock source or a crystal is selected, the clock range must be specified.
Please select from the four ranges available.
Note: Note that the selected frequency range may not correspond to the crystal
frequency due to load capacitor and/or stray capacitors in the system.
This selection is not available if internal oscillator is selected.
4.2.3 AVR Clock Output If internal oscillator is selected, this box can be checked to output the AVR clock on the
XTAL2 pin.
4.2.4 AVR Clock Load
Capacitors
If a crystal is mounted in the socket on the pod card it may be desirable to connect the
load capacitors on the XTAL lines. The load capacitors have the value 22 pF and can be
enabled or disabled here.
4.2.5 Timer Oscillator
Source
The timer oscillator can have one of three different clock sources:
External Oscillator: If the target application uses an external oscillator.
External XTAL: If the target application uses a crystal or the crystal socket on the
pod card is used.
No Clock: If the timer oscillator is not used, a clock source does not have to be
supplied.
4.2.6 Timer Oscillator
Range
The emulator needs to know the clock speed of the timer oscillator clock. Please select
from the two ranges available.
4.2.7 Timer Oscillator
Load Capacitors
If a crystal is mounted in the socket on the pod card, load capacitors may be connected
to the TOSC lines. The load capacitors have the value 22 pF and can be enabled or dis-
abled here.
Note: The timer oscillator settings are only active when the timer oscillator is used.
4.2.8 Internal Frequency Selects the frequency of the AVR clock. This setting is available only if internal oscillator
is selected as AVR clock source. The internal frequency is selectable in the range
400 kHz to 8 MHz.
4.3 Connecting to
the System
The pod card is connected to the bottom pod connector of ICE30 using the pod cable
(the wide cable). The 40-pin probe cable (DIL) should be connected to the probe con-
nector and to the target application.
Note: It is important that the probe cable is correctly connected to the user application.
The colored wire of the probe cable indicates pin 1 of the AVR device.
AVR
®
ATICE30 User Guide 5-1
Section 5
AVR Studio Emulator Options
When opening a new project the Emulator Options dialog will appear. This dialog can
also be found in AVR Studio under Options > Emulator Options.
5.1 Device Select the device from the list. The device list includes all devices currently supported in
the emulator.
The pod cables may introduce noise problems on the ALE line when emulating 103/603
and 161 with external memory. As a workaround, ATmega103/603 and ATmega161 can
be emulated with 64 KB internal RAM. Alternatively, an apx. 68 pF capacitor may be
hooked to the ALE line.
5.2 Clock Source
(ATmega103,
ATmega603 and
ATmega161)
If a crystal in the target application or in the socket on the pod card is used, select exter-
nal oscillator as clock source. The clock range for the external oscillator must be
specified. Please select from the four ranges available. This selection is not available if
internal oscillator is selected.
If a clock is not available in the target application, select internal oscillator. The internal
frequency is selectable in the range 400 kHz to 8 MHz. Note that this option is not avail-
able in an actual device.
The internal RC oscillator option of the ATmega163/ATmega83/ATmega32 device can
be emulated by selecting internal oscillator and setting the frequency to 1 MHz.
5.3 Fuse Bits
(ATmega163,
ATmega161,
ATmega83 and
ATmega32)
The only fuse settings that affect the emulators operation is the BOOTRST fuse and the
BOOTSIZE fuses. In ATmega163/161/83/32 it is possible to read the fuse settings by
means of LPM (and SPMCR). Therefore, all fuses are possible to set from AVR Studio
even if they do not affect the emulators behavior. The only way to program/clear the
fuses is via this Options window. In an actual device, the fuses will be pro-
grammed/cleared when programming the Flash memory.
5.4 Lock Bits
(ATmega163,
ATmega161,
ATmega83 and
ATmega32)
The BLB0 and BLB1 lock bits determine whether or not LPM and SPM should be
allowed within the different program memory blocks. See the ATmega163/161/83/32
datasheet for details. The LB lock bits do not affect the emulators behavior. In
ATmega163/161/83/32, it is possible to read and program the lock bits by means of
LPM and SPM. Therefore, all lock bits are possible to set from AVR Studio. The only
way to clear the lock bits is to clear them from this Options window. In an actual device,
the lock bits will be cleared when performing a chip-erase.

ATICE30

Mfr. #:
Manufacturer:
Description:
EMULATOR IN CIRCUIT MEGAAVR
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet