Home

ICE50 User Guide

image

Contents

1. Dez Dare Voltage Aref Out Reference Selection 2523A AVR 11 02 3 6 Power System Description 3 6 1 Power Supply 3 6 2 ICE50 Power System ICE50 User Guide General Description The ADC is built using analog multiplexers programmable gain instrumentation amplifi ers and a 10 bit successive approximation A D converter This construction should have the same performance as the actual part but since the ADC is located on the POD as an external construction the analog components will be more susceptible to ambient noise and noise from switching IO lines Note Internal analog reference voltage is set to 2 5 volt when using the emulator This differs from part which uses 2 56 V Due to this fact ADC conversions done by the emulator using the internal analog reference voltage differ from the conver sions done in part All inputs to the ADC have serial current limiting resistors of 330Q This is to protect the inputs of the ADC circuit when the emulator is switched off and the target power is present The outputs of the input multiplexers are clamped to Vec and GND and thus when target Vec is present and the emulator power is turned off there will flow a current of approximately Vinput 0 3V 330Q through each ADC input pin The ICE50 needs external power in order to function A switching power adapter is sup plied with the unit The power adapter will accept input voltages in the range of 10
2. ICE50 User Guide AIMEL 3 17 2523A AVR 1 1 02 General Description 3 7 1 1 Available Clock Options 3 7 1 2 ICE50 Probe version A9902 3 1200 E 3 7 2 External Clock Signal 3 7 3 Internal Clock Signal Provided by AVR Studio 3 18 2523A AVR 11 02 Figure 3 25 External Clock Enable De XTAL1 a XTAL2 The current version of the Probe has some restrictions with regards to clock options support The unsupported clock modes are quite easy to emulate with simple workarounds as described in Section 3 7 6 and Section 3 7 7 The Probe version can be found on top of the back side of the Probe left side of the right picture above Enable Version A9902 3 1200 E of the Probe supports the following clock options External Clock Signal E Internal Clock Signal provided by AVR Studio External 32 kHz RTC Crystal E Internal Calibrated RC Oscillator The following clock options are not supported by Probe version A9902 3 1200 C A description for workarounds for the unsupported clock modes can be found in section External Crystal and External Resonator on page 19 and External RC Oscillator on page 19 An external clock signal can be applied to the XTAL1 pin on the emulator probe The Emulator can then be set up to use this signal as the system clock See device selection for a description of how to set up AVR Studio for this option The clock signal must meet the conditions as shown in
3. Figure 3 2 Emulator LEDs AIMEL ICE50 User Guide 3 2 2 1 Red Power LED 3 2 2 2 Multi Color Mode LED 3 2 2 3 Green Status LED ICE50 User Guide General Description The red LED is the power indicator LED This will be lit if power on the ICE50 is turned on and the power system is working correctly If the LED stays off after power on make sure the power supply meets the requirements of the ICE50 If using another power sup ply than the one supplied with the ICE50 make sure that the power polarity is correct See the Power System section for more details on power requirements The Multicolor LED displays information about which mode the ICE50 is working in Dur ing the startup sequence this LED is first red next orange Orange indicates that the Emulator is in stopped mode A green light indicates that the ICE is in run mode If the LED turns red it indicates an emulator error If this happens consult the troubleshooting guide The green LED will be turned on when the ICE50 is ready for emulation Once the green LED is on the ICE50 is ready for emulation The LED will flash during upgrading of the ICE50 The LED will be turned off during loading of a new part and lit when the part is finished loading If the LED does not turn on after a power up sequence please consult the troubleshooting guide for possible solutions Figure 3 3 Multi Color Mode Table 3 1 LED Color Definitions LED Meaning State Descript
4. Tips Workaround Checklists ICE50 User Guide Section 1 Preface This manual is using the nomenclature described in this section to show warnings tips workarounds etc This manual contains important warnings to prevent damage to your system and the ICE50 All the warnings are emphasized as shown in the example below WARNING This is a warning Please read all warnings carefully Some sections contain useful tips for using the ICE50 All the tips are emphasized as shown in the example below Gm This is a tip of Workaround This is a workaround Once comfortable with the configurtion and use of the ICE50 the checklists at the end of these sections can be used for fast setup of a new project The checklists are of great help for getting the debugging system on line without prob lems However novice users should also check that the operating conditions of the target system are compliant to the requirements of ICE50 This is described in the Con necting ICE50 section 1 1 Rev 2523A AVR 1 1 02 Preface 1 1 5 1 2 1 2 1 1 2 2 1 2 3 1 3 1 3 1 1 3 2 1 3 3 1 2 Related Documentation ICE50 Firmware History Version 1 0 Version 1 1 Version 1 2 ICE50 Known Issues User Break in Sleep Mode ADC Latch up User Break 2523A AVR 1 1 02 The following electronic documents from Atmel are related to the use of the AVR microcontrollers and of the debuggin
5. 1 Address of instruction 1 N A 1 N A 1 N A N A BRID 1 Address of instruction 1 N A 1 N A 1 N A 2 N A 2 N A 2 N A 2 N A Notes 1 Stack in internal memory Condition not met no skip Condition met skipping 1 word instruction Branch taken Branch not taken 7 12 2523A AVR 1 1 02 1 2 3 4 Condition met skipping 2 word instruction 5 6 AMEL ICE50 User Guide Table 7 4 Bit and Bit test Instructions Trace Instruction Reg Val RegFileL Dat Addr INSTA 0 15 PMem Addr PC A0 22 0 7 RAM_EEADDR O 22 Dat Val Status Register LSL Address of instruction Y N N A N A Z C N V LSR Address of instruction Y N N A N A Z C N V ROL Address of instruction Y N N A N A Z C N V ROR Address of instruction Y N N A N A Z C N V ASR Address of instruction Y N N A N A Z C N V SWAP Address of instruction Y N N A N A N A BSET Address of instruction N A N A N A Z C N V H BCLR Address of instruction N A N A N A Z C N V H SBI 1 Address of instruction 1 N A 1 Y N 1 Y N N A 2 Address of next instruction 2 N A 2 Y N 2 Y N CBI 1 Address of instruction 1 N A 1 Y N 1 Y N N A 2 Address of next instruction 2 N A 2 YIN 2 YIN BST Address of instruction N A N A N A T BLD Address of instruction Y N N A N A N A SEC Address of instruction N A N A N A C CLC Address of instruction N A N A N A C SEN
6. 2 Address of address part of av Val read 2 Address read 2 Value read instruction from k 1 Address of instruction 1 N A 1 N A 1 N A ST X Bil N A 2 Address of next instruction 2 N A a written 2 Value written 1 Address of instruction 1 N A 1 N A 1 N A ST X Brill N A 2 Address of next instruction hs o written 2 Value written 1 Address of instruction 1 N A 1 N A 1 N A ST X Rr N A 2 Address of next instruction 2 N A wr w Written 2 Value written 1 Address of instruction 1 N A 1 N A 1 N A ST Y Rr N A 2 Address of next instruction 2 N A a written 2 Value written 1 Address of instruction 1 N A 1 N A 1 N A ST Y Brill N A 2 Address of next instruction 2 N A Saad Written 2 Value written 1 Address of instruction 1 N A 1 N A 1 N A ST Y Rr i N A 2 Address of next instruction 2 N A Ge wnten 2 Value written 1 Address of instruction 1 N A 1 N A 1 N A STD Y q Rr i N A 2 Address of next instruction 2 N A EES 2 Value written to Y q 1 Address of instruction 1 N A 1 N A 1 N A ST Z Rr N A 2 Address of next instruction 2 N A ea written 2 Value written 1 Address of instruction 1 N A 1 N A 1 N A ST Z Rr N A 2 Address of next instruction 2 N A oe written 2 Value written 1 Address of instruction 1 N A 1 N A 1 N A ST Z Rr i N A 2 Address of next instruction 2 N A e written 2 Value written 1 Address of instruction 1 N A 1 N A 1 N A STD
7. 3 r Zen s Fuses with this marking do not affect emulation ICE Reset SetDefaut Heh Cancel Tip Not all fuse settings are supported by the ICE50 The following fuses are ignored OCDEN On Chip debug is not available in ICE50 SPIEN Serial Programming not available EESAVE Not available in ICE50 JTAGEN Not available in ICE50 ICE50 User Guide AIMEL 5 7 2523A AVR 1 1 02 Configuring AVR Studio 5 5 Lock Bits 5 8 2523A AVR 11 02 By pressing Lock bits the tree expands and it is possible to see the Lock bit settings 0 indicates on 1 indicates off The fuse settings can not be edited here See the datasheet for the part when configuring the Lock bits See Figure 5 9 Figure 5 9 Lock Bits Settings ICE50 Options E WS x Device selection Fuses and Lockbits TCES0 Boot block options Other options e El Extended Fuse OxFF Fuses and Lockbits zx I I High Fuse OxFF ICE Status zc El Low Fuse OxDE f LockBits OxFF 1 5 BLB12 Boot lock bit 1 4 BLB11 Boot lock bit 3 BLB02 Boot Lock bit 2 BLBO1 Boot Lock bit T 1 LB2 Lock bit O LB1 Lock bit Fuses with this marking do not affect emulation ICE Reset SetDefaut Help Cancel 4 MEL ICE50 User Guide Configuring AVR Studio 5 6 ICE Status In AVR Studio go to Debug gt ICE50 Options Highlight ICE Status The report which appear describes the different modules with respect to software ver
8. Address of instruction N A N A N A N CLN Address of instruction N A N A N A N SEZ Address of instruction N A N A N A Z CLZ Address of instruction N A N A N A Z GEI Address of instruction N A N A N A l CLI Address of instruction N A N A N A l SES Address of instruction N A N A N A S CLS Address of instruction N A N A N A S SEV Address of instruction N A N A N A V CLV Address of instruction N A N A N A V SET Address of instruction N A N A N A T CLT Address of instruction N A N A N A T SEH Address of instruction N A N A N A H CLH Address of instruction N A N A N A H ICE50 User Guide AMEL 7 13 2523A AVR 11 02 Trace Table 7 5 MCU Control Instructions Instruction INSTA PMem Addr PC Reg Val RegFileL Dat Addr 0 15 AO 22 0 7 RAM_EEADDR 0 22 Dat Val Status Register NOP Address of instruction N A N A N A N A SLEEP Address of instruction N A N A N A N A WDR Address of instruction N A N A N A N A BREAK Address of instruction N A N A N A N A 7 4 Accessing Instructions that are accessing data memory have different timing based on whether the External Data memory is internal or external For external memory accesses the timing is again Memory ICE50 dependent on the number of wait states This document does not describe the exact Trace timings of these instructions but they are fairly similar to those described above A full description of the timing of these in
9. Chantrerie BP 70602 44306 Nantes Cedex 3 France TEL 33 2 40 18 18 18 FAX 33 2 40 18 19 60 ASIC ASSP Smart Cards Zone Industrielle 13106 Rousset Cedex France TEL 33 4 42 53 60 00 FAX 33 4 42 53 60 01 1150 East Cheyenne Mtn Blvd Colorado Springs CO 80906 TEL 1 719 576 3300 FAX 1 719 540 1759 Scottish Enterprise Technology Park Maxwell Building East Kilbride G75 OQR Scotland TEL 44 1355 803 000 FAX 44 1355 242 743 Theresienstrasse 2 Postfach 3535 74025 Heilbronn Germany TEL 49 71 31 67 0 FAX 49 71 31 67 2340 1150 East Cheyenne Min Blvd Colorado Springs CO 80906 TEL 1 719 576 3300 FAX 1 719 540 1759 Biometrics Imaging Hi Rel MPU High Speed Converters RF Datacom Avenue de Rochepleine BP 123 38521 Saint Egreve Cedex France TEL 33 4 76 58 30 00 FAX 33 4 76 58 34 80 e mail literature atmel com Web Site http www atmel com Atmel Corporation 2002 Atmel Corporation makes no warranty for the use of its products other than those expressly contained in the Company s standard warranty which is detailed in Atmel s Terms and Conditions located on the Company s web site The Company assumes no responsibility for any errors which may appear in this document reserves the right to change devices or specifications detailed herein at any time without notice and does not make any commitment to update the information contained herein No licenses to patents or other
10. Dat Val Register 1 Address of instruction 1 N A 1 N A 1 N A N A BRNE 1 Address of instruction 1 N A 1 N A 1 N A 2 N A 2 N A 2 N A 2 N A 1 Address of instruction 1 N A 1 N A 1 N A N A BRCS 1 Address of instruction 1 N A 1 N A 1 N A 2 N A 2 N A 2 N A 2 N A 1 Address of instruction 1 N A 1 N A 1 N A N A BRCC 1 Address of instruction 1 N A 1 N A 1 N A 2 N A 2 N A 2 N A 2 N A 1 Address of instruction 1 N A 1 N A 1 N A N A BRSH 1 Address of instruction 1 N A 1 N A 1 N A 2 N A 2 N A 2 N A 2 N A 1 Address of instruction 1 N A 1 N A 1 N A N A BRLO 1 Address of instruction 1 N A 1 N A 1 N A 2 N A 2 N A 2 N A 2 N A 1 Address of instruction 1 N A 1 N A 1 N A N A BRMI 1 Address of instruction 1 N A 1 N A 1 N A 2 N A 2 N A 2 N A 2 N A 1 Address of instruction 1 N A 1 N A 1 N A N A BRPL 1 Address of instruction 1 N A 1 N A 1 N A 2 N A 2 N A 2 N A 2 N A 1 Address of instruction 1 N A 1 N A 1 N A N A BRGE 1 Address of instruction 1 N A 1 N A 1 N A 2 N A 2 N A 2 N A 2 N A 1 Address of instruction 1 N A 1 N A 1 N A N A BRLT 1 Address of instruction 1 N A 1 N A 1 N A 2
11. E The ADC may latch up if the target is powered before the ICE Also make sure that no residual voltage is present on the ADC input pins if the ICE is not powered E User break in sleep mode is not supported Use an interrupt to wake up the part or a reset to reset the emulator AMEL ICE50 User Guide Preface 1 4 Reporting Problems with AVR Studio can be reported to avr atmel com Problems with beta Problems releases can be reported to avrbeta atmel com ICE50 User Guide AIMEL 1 3 2523A AVR 1 1 02 Preface 2523A AVR 11 02 AMEL Section 2 Introduction ATICES50 is an advanced In Circuit Emulator that covers a wide range of the eight bits AVR microcontrollers from Atmel This section gives a brief introduction to it s features 2 1 ICE50 Contents Figure 2 1 The ATICE50 contains the following items m ICE50 Main Unit Pod Two FPC Flexible Printed Circuit Cables amp Probe E Personality Adapters for ATmega8 ATmega16 ATmega162 ATmega32 ATmega128 ATtiny26 ICE50 User Guide 2 1 Rev 2523A AVR 11 02 Introduction 2 2 ICE50 Features 2 2 2523A AVR 11 02 E 9 pin RS 232C Cable USB Cable Power Supply European Power Supply Cable US Power Supply Cable m AVR Technical Library CD ROM AVR Data Sheets Application Notes AVR Studio 4 00 or Later E ICE50 Quick Start Guide The ICE50 In circuit Emulator is a High end Emulator from Atmel design
12. N A 2 N A 2 N A 2 N A 1 Address of instruction 1 N A 1 N A 1 N A N A BRHS 1 Address of instruction 1 N A 1 NAD 1 N A 2 N A 2 N A 2 N A 2 N A 1 Address of instruction 1 N A 1 N A 1 N A N A BRHC 1 Address of instruction 1 N A 1 N A 1 N A 2 N A 2 N A 2 N A 2 N A 1 Address of instruction 1 N A 1 N A 1 N A N A BRTS 1 Address of instruction 1 N A 1 N A 1 N A 2 N A 2 N A 2 N A 2 N A 1 Address of instruction 1 N A 1 N A 1 N A N A BRTC 1 Address of instruction 1 N A 1 N A 1 N A 2 N A 2 N A 2 N A 2 N A ICE50 User Guide AIMEL 7 11 2523A AVR 1 1 02 Trace Table 7 3 Branch Instructions Continued Instruction Reg Val Dat Addr INSTA PMem Addr RegFileL RAM_EEADDR Status 0 15 PC AO 22 0 7 0 22 Dat Val Register 1 Address of instruction 1 N A 1 N A 1 N A N A BRVS 1 Address of instruction 1 N A 1 N A 1 N A 2 N A 2 N A 2 N A 2 N A 1 Address of instruction 1 N A 1 N A 1 N A N A BRVC 1 Address of instruction 1 N A 1 N A 1 N A 2 N A 2 N A 2 N A 2 N A 1 Address of instruction 1 N A 1 N A 1 N A N A BRIE 1 Address of instruction 1 N A 1 N A 1 N A 2 N A 2 N A 2 N A 2 N A
13. Select which tests to perform Mainboard test Oscillators Mainboard test MMU Mainboard test Program Memory Mainboard test Breakpoints Mainboard test SRAM Mainboard EE The tests that require a Test Adapter connected to the probe are the ones marked on the list above Select the test that should be run and press the Run button to start the test Finally the test program will show the status of the test Note AVR Studio 4 0 or later is required for ICE50 support AVR Studio 3 x versions will not work with ICE50 Tie AVR Studio is constantly being updated Check for upgrades at www atmel com ICE50 User Guide 2523A AVR 11 02 AMEL 4 1 Connecting ICE50 for Emulation 4 2 Connecting ICE50 to host PC 4 3 Connecting the Probe to the Target Board 4 3 1 Connecting PDIP Adapters Section 4 Connecting ICE50 ICE50 connects to both the PC where the firmware development is being made and the target application This section describes the connection procedure This section will describe how to connect and configure the ICE50 for correct operation This task can be divided in the following tasks 1 Selecting correct Personality Adapter Connecting the Probe to the Target Board Connecting ICE50 to PC Correct Power Up Sequence Configuring AVR Studio Please follow the above description to make sure that the ICE50 is configured properly arf wh The ICE50 connects to the host PC through a standard CO
14. and Personality Adapter as shown above Figure 3 13 m162 Personality Adapter Note 1 SNR A9902 3 1300 B E ATmega162 AMEL 2523A AVR 11 02 General Description 3 4 7 m128 Personality The m128 Personality Adapter is a TQFP64 adapter and it consists of two modules Adapter The bottom module has the TQFP footprint and should be soldered on the target appli cation Make sure to solder it with the correct orientation Pin 1 is indicated with a printed 1 as shown here Once the bottom module is soldered into the application connect the top module Make sure that pin 1 on the top module matches the pin 1 on the bottom module Once the Personality Adapter is securely mounted place the Probe on the Personality adapter The circle marked on the Probe should align with pin 1 on the m128 adapter Figure 3 14 m128 Personality Adapter Note 1 SNR W10635SDF 3 4 7 1 Supported Devices ATmega128 3 4 8 m169 Personality Figure 3 15 m169 Personality AdapterFigure 1 Adapter Note 1 SNR W10634SDF 3 4 8 1 Supported Devices ATmega169 3 10 AUMEL ICE50 User Guide 2523A AVR 11 02 General Description 3 5 POD Description The ICE50 POD implements all digital UO and analog functionality of the current AVR 3 5 1 POD Description ICE50 User Guide family of devices If new AVR devices are made available to the market that contain I O or analog features that cannot be emulated by the current POD Atmel i
15. the ICE50 will still be able to emulate core functions of the AVR e g timers This feature can be useful in some debugging sessions If the POD is inserted and there is no target power applied the ICE will be held in Reset until target power is turned on By disabling POR and BOD Reset in ICE50 other options dialog ICE50 will emulate correctly even if target power is not connected Only original ICE50 Pods should be used with ICE50 and care should be taken when placing or removing the POD During normal use there is no need to remove the POD from the bay If for some reason the POD is disconnected the recommended procedure to re insert the POD is as follows See also Figure 3 5 1 Place the POD in the ICE50 POD connector Make sure that the connector male and female guides align 2 Use both hands and apply pressure on the upper half of the POD on top of the connector 3 After pressing the connector firmly in place use one hand to apply pressure on the lower half of the POD You will hear a click when the POD locks into position A MEL ICE50 User Guide 3 3 3 Expansion Bay 3 3 4 USB Connector 3 3 5 RS 232C Connector 3 3 6 Reset Button 3 3 7 Power Switch ICE50 User Guide General Description Figure 3 5 Inserting POD Into POD Bay 1 Insert POD into bay 2 Apply pressure here 3 Apply pressure here until the connector is A click will be heard when properly connected the POD is in position The expansion connect
16. the editor box AMEL 5 3 2523A AVR 11 02 Configuring AVR Studio Figure 5 4 Device Selection Device ein ICE5O Boot block options Other options 1 Dee Fuses and Lockbits ICE Status D ATmega128 z GE En ormal Mode L Tmega103 compatibility Mode Lb Clock Source Internal TAL Oscillator C Intemal RC Oscillator External clock J Start up time 16K CK 64 ms Frequency 1 000000 MHz ICE Reset Set Defaut Help Cancel In addition two buttons called ICE Reset and Set Default are located in the lower left cor ner See Figure 5 4 The ICE Reset button resets the ICE while the set Default button loads the default settings ICE reset performs the same reset as the reset button on the back of the ICE50 A MEL ICE50 User Guide 5 4 2523A AVR 1 1 02 5 4 Fuses and Lock Bits ICE50 User Guide Configuring AVR Studio The Fuse and Lock bit settings in the part can be viewed and configured from AVR Stu dio The Fuse settings can only be viewed and not edited in the Fuse and Lock bit view Configuration is performed in the other views In AVR Studio go to Debug gt ICE50 options Highlight Fuses and Lock bits It is now possible to view 4 different settings Note that Fuses marked with do not affect emulation Figure 5 5 Fuse and Lock Bits Settings kenen EE Xi Fuses and Lockbits a CEO Device selection Boot block opt
17. 0 mA 30 mA 5 0V 85 mA 125 mA 5 5V 110 mA 165 mA Note The Digital I O drive capabilities of the ICE50 POD differ slightly from what can be expected in the actual device For details on the Digital I O drive capabilities compared to the actual device please see the Digital I O section of the POD description 2523A AVR 11 02 ICE50 User Guide General Description 3 7 Probe The ICE50 probe is the link between the flex cable going out from the POD and the Per Description sonaliy Adapter that fits into the target application The main purpose of the probe is to route all the signals from the flex cable to the appropriate pins of the personality adapter In addition the Probe implements current limitation on all the I O pins in order to protect both the target and the POD The probe also implements proper line termination in order to avoid ringing on high freuency signals 3 7 1 Probe Description The Probe contains clock driver circuitry for the ICE50 voltage polarity and short circuit protection Figure 3 23 show a picture of the probe and a simplified block diagram of how the clock driver circuitry is implemented is shown in Figure 3 24 and Figure 3 25 By putting the clock driver circuitry on the Probe as close as possible to the target board the best possible emulation of the AVR clock options are achieved Figure 3 23 Probe Figure 3 24 Timer Oscillator Enable Output Timer Oscillator Drive
18. 0VAC to 240VAC and frequencies from 50Hz to 60Hz This will cover most situations Figure 3 22 Power Supply The power supply delivered with ICE50 is dimensioned to meet the requirements of the Emulator If another power supply is used it should supply a voltage between 9 and 15 VDC and a minimum of 20W It connects to the main unit through a standard connector with 2 1 mm center tap Ground is connected to the center tap The ICE50 has an internal power regulator designed to deliver regulated voltages for use by the ICE itself The power system is not designed to provide external power to the target application AMEL 2523A AVR 11 02 General Description 3 6 3 Target Application The Probe and parts of ihe POD are powered by the target application power system Power The dynamic power requiremenits of the Probe POD will not differ significantly from the Requirements power requirements of the actual device See below for power requirements The static power requirement for the POD is listed in Table 3 6 The target power system must be dimensioned to tolerate this current consumption Table 3 5 Power Requirements Power Requirements Power Voltage Requirements 9 15 VDC Power Consumption lt 20 W Target Application Voltage Range 2 7 5 5V Table 3 6 Target Voltage ICE50 POD Probe current consumption from Target Application Target Voltage Normal Typical Worst Case 2 5V 5 mA 7 mA 3 3V 2
19. 7 1 Probe Desi DOT ss cini nelayan dkir k na di kanal kanala ke GA AA A 3 17 3 7 2 External Clock Signal iE kk kk kk kek keke 3 18 3 7 3 Internal Clock Signal Provided by AVR Situdio 3 18 3 7 4 External 32 kHz RTC Crystal 3 19 3 7 5 Internal RC Oscilator yx Ai eee Ae NA ES DANA EA NANA AANE aaa KAN a KANG 3 19 3 7 6 External Crystal and External Resonator asanes ene ee eaaa naen 3 19 3 7 7 External RC Oscillator sasen Ek kk kk kk kk k 3 19 3 8 Test AGapter ii saa a ah nani naak Eet adalat 3 19 3 8 1 Using the Test Adapter 3 20 ii AIMEL ICE50 User Guide 2523A AVR 11 02 ICE50 User Guide Table of Contents Section 4 o onnecting ICE ne Sd Re an kazan na n ab kla 4 1 4 1 Connecting ICE50 for Emulation kk keke 4 1 4 2 Connecting ICE50 to host PC ue 4 1 4 3 Connecting the Probe to the Target Board 4 1 4 3 1 Connecting PDIP Adapters kk aana 4 1 4 3 2 Connecting TQFP Adapters E EiEE kk kek kk KRA 4 3 4 4 ICE50 Power up Geouence enr 4 4 Section 5 Configuring AVR Studio Sn een 5 1 5 1 ICE50 Emulator Options ELEuE kek kek k kk Ak KAK KAKA KAR 5 1 5 2 AVR Studio Configuration Quick Start Guide ze 5 2 5 3 Device Selection dessein denis keda hana Na daga de deeg dz 5 3 5 4 Fuses and Lock BIS sasaka rasan ANAA NA AAN KAR Aa KANA Na NANA NAK Kadan A ke wena Ka kan 5 5 55 keck BIS anaa aaa ed asama b
20. Guide 2523A AVR 11 02 Trace Figure 7 8 Trace Window Output juj xj 7 6 Reset ICE50 An External Reset BOD Brown out Detection or a Watchdog Reset while Trace is Trace enabled will be traced in the trace window 7 7 Save Trace The Trace Buffer can be dumped to a file This function is available from the menu File Buffer to File gt Save as Note that the trace window must be the active window ICE50 7 8 Sleep ICE50 If Trace is enabled when the microcontroller enters sleep mode sleep will be logged into Trace the Trace Buffer This applies to all sleep modes Note however that the Time Stamp still counts while the microcontroller is asleep and this can be used to measure how long the microcontroller has been asleep when it is woken up The trace buffer will be filled with sleep instructions for each cycle as long as the microcontroller is in sleep mode ICE50 User Guide AIMEL 7 15 2523A AVR 1 1 02 Trace 7 16 AIMEL ICE50 User Guide 2523A AVR 11 02 AMEL 8 1 Troubleshooting Guide ICE50 User Guide Section 8 Troubleshooting The troubleshooting guide gives advise if errors occurs LEDs Red Power LED does not turn on See Power Supply Trouble Multi color LED turns Red error led lights up See Configuration error Green LED does not light up Start AVR Studio and try to change part Power Supply Trouble Check that power supply is connected Check for wrong polarity Check that
21. M port Make sure that the ICE50 is powered down before connecting the cable between the ICE50 and the host PC Use the 9 pin RS 232C cable that is shipped with the ICE50 Connect the male cable connector to the ICE50 and the female connector to the host PC The communica tion runs at 115200 bit s no parity 8 data bits 1 stop bit N81 and with hardware handshake AVR Studio can not force control over a COM port If other equipment or software driv ers have control of the COM port eg IrDA PDA Scanner communication with the ICE50 will fail Make sure that no other software has control of the COM port that ICE50 is connected to Note The USB interface is not supported in the current version of the ICE50 Once the ICE50 is connected to the host PC continue with connecting the probe to the target board The Probe is connected to the target board through one of the supplied Personality Adapters To ensure correct operation make sure that the correct Personality Adapter is used Before connecting the ICE50 to the target application make sure that the ICE50 and the target application are not powered This also applies when removing the ICE50 When 4 1 ICE50 User Guide Rev 2523A AVR 1 1 02 Connecting ICE50 4 2 2523A AVR 11 02 connecting or disconnecting the ICE50 from the host PC make sure that the ICE50 is not powered 1 Inserting the personality adapter Make sure that pin 1 on the personality adapter corr
22. Table 3 7 Table 3 7 Clock Signal Conditions Value Frequency 5KHz to 20MHz Duty cycle 50 Absolute maximum input voltage 1 8 7 0V Recommended input voltage 1 8 5 5V Minimum high level input voltage 1 7V Maximum low level input voltage 0 5V The Emulator may be set up to run on an internal programmable clock The frequency range of this programmable clock is 5 kHz to 20 MHz However the maximum fre quency cannot be set higher than the speed limit of the actual part Only certain output frequencies are possible to generate with highest accuracy However the clock genera tor generally produces an output frequency within 0 1 of the desired output frequency If the target application should run on the same clock as the AVR chip emulator the internal programmable clock may be driven out on the XTAL2 pin See section device selection for a description of how to set up the internal programmable clock A MEL ICE50 User Guide 3 7 4 External 32 kHz RTC Crystal 3 7 5 Internal RC Oscillator 3 7 6 External Crystal and External Resonator 3 7 7 External RC Oscillator 3 8 Test Adapter ICE50 User Guide General Description The Asynchronous Timers in the emulated part may be clocked by an external 32 kHz crystal This crystal should be connected to the TOSC1 and TOSC2 pins of the person ality adapter To ensure proper operation the crystal should be connected as close to the personality adapter as possib
23. User Guide AMEL T Table of Contents AMEL Section 1 Prelad anaa anae E K ea ae ee Mi DD E aaa a ee ne ee ere 1 1 1 1 About this Manual 1 1 SS SS WANING YY DD MED rr rrr 1 1 TEL TIS ES EE 1 1 13159 VO Karo ln threads a a ab a a an tan 1 1 N Xi TE 1 1 1 1 5 Related Documentation 1 2 1 2 ICE50 Firmware HIStory sasa asa aana aaa gga kag nan aa EA NENG aa E KAN AKA 1 2 12 1 Version AE 1 2 T22 Version E EE 1 2 L23 Version EE 1 2 1 3 ICE50 Known lssues iii 1 2 1 3 1 User Break in Sleep Mode 1 2 1 3 2 ADC Latch E 1 2 T33 User BIG AK 3 n ka isa did anek a ag nn tnt 1 2 1 4 Reporting Problems issu 1 3 Section 2 la Wee lel JN asana saananing a 2 1 2A ICE5SO COMENGE sanak sin aa asang da aa a da aa agak a aa aan a ga aaa daana d k yaka n 2 1 22 I CE5O Features aaa a aa ana NG GAR a ANA EN AKA AA AH A a TA Aa aaa aana 2 2 2 3 System Heouiremente aaa aa anaa aana ss 2 3 2 3 1 Hardware Requirement asana aan aana Anaa KANAN NANAS KARANANE KANTAKA kk kak 2 3 2 3 2 Software Requirements Ek kek kk kk KARA 2 3 2 3 3 Target Hardware Requirement l lllii Ek kk 2 3 2 3 4 Operating Conditions ss 2 3 2 3 5 Host Interface sarasa ena rana aana gagana aaa eaaa aai iaa 2 3 Section 3 General RT de 3 1 3 1 General Hardware Description 3 1 3 1 1 What is an In Circuit Emulatorg kk kk k 3 1 3 2 Main Emulator Unit 3 2 9 241 Gulf teg ET 3 2 9 2 2 Statue EEDS kun
24. YO 2 Address of next instruction 2 Value read SE 2 Value read from Y 1 Address of instruction 1 N A 1 N A 1 N A LD Rd Y N A 2 Address of next instruction 2 Value read 2 Adoress read 2 Value read from Y 1 Address of instruction 1 N A 1 N A 1 N A LD Ra Y N A 2 Address of next instruction 2 Value read Adaress read 2 Value read from Y 1 Address of instruction 1 N A 1 N A 1 N A LDD Rd Y qf N A 2 Address of next instruction 2 Value read EE 2 Value read from Y q 1 Address of instruction 1 N A 1 N A 1 N A LD Rd Z N A 2 Address of next instruction 2 Value read Se 2 Value read from Z 1 Address of instruction 1 N A 1 N A 1 N A LD Rd Z N A 2 Address of next instruction 2 Value read EE 2 Value read from Z 1 Address of instruction 1 N A 1 N A 1 N A LD Rd Z 1 N A 2 Address of next instruction 2 Value read EE 2 Value read from Z 1 Address of instruction 1 N A 1 N A 1 N A LDD Rd Zoll N A 2 Address of next instruction 2 Value read EE 2 Value read from Z q 7 6 AIMEL ICE50 User Guide 2523A AVR 11 02 Table 7 2 Data Transfer Instructions Continued Trace Reg Val Dat Addr Instruction RegFileL RAM_EEADDR Status INSTA 0 15 PMem Addr PC A0 22 0 7 0 22 Dat Val Register 1 Address of instruction 1 N A 1 N A 1 N A LDS Rd ki f N A
25. Z q Rr N A 2 Address of next instruction 2 N A Spades WINEN 2 Value written to Z q 1 Address of instruction 1 N A 1 N A 1 N A STS k Rr N A 2 Address of address part of 2 N A 2 Address written 2 Value written instruction to k ICE50 User Guide AIMEL 7 7 2523A AVR 1 1 02 Trace Table 7 2 Data Transfer Instructions Continued 7 8 2523A AVR 1 1 02 AMEL Reg Val Dat Addr Instruction RegFileL RAM_EEADDR Status INSTA 0 15 PMem Addr PC A0 22 0 7 0 22 Dat Val Register 1 Address of instruction 1 NA 1 N A 1 N A LPM 2 Address of next instruction 2 N A 2 N A 2 N A N A 3 Word address of data read 3 Data read 3 N A 3 N A 1 Address of instruction 1 N A 1 N A 1 N A LPM Rd Z 2 Address of next instruction 2 N A 2 N A 2 N A N A 3 Word address of data read 3 Data read 3 N A 3 N A 1 Address of instruction 1 N A 1 N A 1 N A LPM Rd Z 2 Address of next instruction 2 N A 2 N A 2 N A N A 3 Word address of data read 3 Data read 3 N A 3 N A 1 Address of instruction 1 NA 1 N A 1 N A ELPM 2 Address of next instruction 2 N A 2 N A 2 N A N A 3 Word address of data read 3 Data read 3 N A 3 N A 1 Address of instruction 1 NA 1 N A 1 N A ELPM Rd Z 2 Address of next instruction 2 N A 2 N A 2 N A N A 3 Word address of data read 3 Data read 3 N A 3 N A 1 Ad
26. are ICE50 User Guide Configuring AVR Studio The ICE50 firmware can be upgraded from AVR Studio In AVR Studio go to Tools gt ICE50 Upgrade The window as shown in Figure 5 14 will appear Figure 5 14 CE50 Upgrade Window BER Skip Version check Allow downgrade a COM Port ele d ICESD Info From this window it is possible to select two buttons The Start Upgrade button will per form an upgrade of the ICE50 Note f the skip Version check checkbox is marked all modules and part files will be upgraded If the Allow Downgrade checkbox is marked the ICE 50 firmware can be downgraded The ICE50 Info button shows the current firmware version in all modules and part files See Figure 5 15 AMEL e 2523A AVR 11 02 Configuring AVR Studio Figure 5 15 Version Information Version Information x Module Versionino COM MCU COM CPLO OSC MCU OSC CPLO POD MCU POD CPLO TRACE MCU TRACE CPLD TS CPLD MMU MCL EVENT MCU AVA MCU mmu mchude bin event FPBA bm ATmegal6 bin ATmegal69 bin AT megat bin 2523A AVR 11 02 AMEL 6 1 6 1 1 6 1 2 Electrical Compatibility Power UO Lines ICE50 User Guide Section 6 Special Considerations The ICE50 accurately emulates most AVR features However there are some differ ences worth noting Clock Options m A D Converter Accuracy E Differences from actual part E Electrical Compatibility E Sleep mode E Targ
27. be harmed in any way if a different power up sequence is used but since AVR Studio tries to detect peripherals when started the ICE50 will not be detected if not powered Once the power up sequence is done the next step is to start up and configure AVR Studio For more information on Power Supply requirements follow this link A MEL ICE50 User Guide AMEL 5 1 ICE50 Emulator Options ICE50 User Guide Section 5 Configuring AVR Studio When the ICE50 is properly connected to the target application the next step is to set up the correct device configuration in AVR Studio This is required when an application project is opened for the first time and can later be changed in the emulator options menu The configuration is stored in a separate file and will automatically be loaded when starting the project later This section is divided in two subsections 1 One Quick Start Guide describing the procedure to get the AVR Studio configured 2 One subsection describing all emulator options in detail E Device Selection Options E Fuses m ICE Module Revision list E Special Note AVR Studio 4 0 or later is required for ICE50 support AVR Studio 3 x versions will not work with ICE50 5 1 Rev 2523A AVR 1 1 02 Configuring AVR Studio 5 2 AVR Studio Configuration Quick Start Guide 5 2 2523A AVR 11 02 Follow the procedure described below to configure the ICE50 1 Connect the ICE50 and start AVR Studio See Co
28. d azi de aga a aa Ee ees 5 8 560 ICE Stat EE 5 9 5 7 Boot Block Options ss 5 11 58 Special kasatan Men duel jadi a aga e ee e mrn rrr 5 12 5 9 Downloading New Parts for ICE50 kk kk kek kek 5 12 5 10 Upgrading the ICE50 Firmware kk n kek K k kk 5 13 Section 6 Special Considerations LE den an no me 6 1 6 1 El ctrical Compatibility 482s2errsmnenenninsstedtidanmiti ens 6 1 GES POWER den nn ee 6 1 6 1 2 Ones RAR 6 1 6 2 Sleep MOM sa samia deha see selen yade radey di danaye h laye ka qua kak as dr d yas 6 2 6 3 Target Hardware Heouememts kk kek kk 6 2 8 4 ClocK ODIlOT S sesanan an Sadana DENE eter line die rd ka cw hal aut eee 6 2 6 5 Differences Between Emulator and Part 6 2 Section 7 le 7 1 7 1 Enabling Trace in AVR Studio 7 1 Ta The Trace WINGOW sasira raaa aa KAG NAGA KAWAK AANE KN deel cen cence 7 2 7 3 Contents of Trace Window Based on Instruction ICE50 7 4 7 4 Accessing External Data Memory ICE50 Trace 7 14 7 5 Interrupt Handling ICE50 Trace 7 14 7 6 Reset ICE50 Trace 7 15 7 7 Save Trace Buffer to File ICE50 keke 7 15 7 8 Sleep ICE50 Trace 7 15 ATMEL i 2523A AVR 11 02 Table of Contents Section 8 TOUS SOO e WEE 8 1 8 1 Troubleshooting Guide 8 1 iv AIMEL ICE50 User Guide 2523A AVR 11 02 AMEL 1 1 About this Manual Warnings
29. ddress of instruction 1 N A 1 N A 1 N A N A RCALL 2 N A 2 N A 2 Stack Pointer 2 Return address low byte 3 Address of RCALL 3 N A 3 Stack Pointer 3 Return address high byte destination 1 Address of instruction 1 N A 1 N A 1 N A N A KAUL 2 N A 2 N A 2 Stack Pointer 2 Return address low byte 3 Address of ICALL 3 N A 3 Stack Pointer 3 Return address high byte destination 1 Address of instruction 1 N A 1 N A 1 N A N A 2 Address of address part 2 N A 2 N A 2 N A CALL of instruction 3 N A 3 N A 3 Stack Pointer 3 Return address low byte 4 Address of CALL 4 N A 4 Stack Pointer 4 Return address high byte destination 1 Address of instruction 1 N A 1 N A 1 N A N A RET 2 N A 2 N A 2 Stack Pointer 2 Return address high byte 3 N A 3 N A 3 Stack Pointer 3 Return address low byte 4 N A 4 N A 4 N A 4 N A 1 Address of instruction 1 N A 1 N A 1 N A N A RETI 2 N A 2 N A 2 Stack Pointer 2 Return address high byte 3 N A 3 N A 3 Stack Pointer 8 Return address low byte 4 N A 4 N A 4 N A 4 N A 1 Address of instruction 1 N A 1 N A 1 N A N Aa 1 Address of instruction 1 N A 1 N A 1 N A 2 Address of skipped 2 N A 2 N A 2 N A instruction SES 1 Address of instruction 1 N A 1 N A 1 N A 2 Address of skipped 2 N A 2 N A 2 N A instruction first word 3 Address of skipped 3 NIA 3 N A 3 NAM instruction second word CP Add
30. dress of instruction 1 NA 1 N A 1 N A ELPM Rd Z 2 Address of next instruction 2 N A 2 N A 2 N A N A 3 Word address of data read 3 Data read 3 N A 3 N A 1 Address of instruction 1 N A 1 N A 1 N A SPM 2 Address of next instruction 2 N A 2 N A 2 N A N A Pe Ore ade Ss 01 data 3 Data write 3 N A 3 N A write IN Rd P Address of instruction Value read from port 6 LSB give I O Value read from port N A address A OUT P Rr Address of instruction Value written to port 6 LSB give I O Value written to port N A address A 1 Address of instruction 1 N A 1 N A 1 N A PUSH Rr N A 2 Address of next instruction 2 Value pushed 2 Stack Pointer 2 Value pushed 1 Address of instruction 1 N A 1 N A 1 N A POP Rd N A 2 Address of next instruction 2 Value popped 2 Stack Pointer 2 Value popped Note 1 Internal Memory ICE50 User Guide Table 7 3 Branch Instructions Trace Instruction Reg Val Dat Addr INSTA PMem Addr RegFileL RAM_EEADDR Status 0 15 PC AO 22 0 7 0 22 Dat Val Register RUMP 1 Address of instruction 1 N A 1 N A 1 N A N A 2 N A 2 N A 2 N A 2 N A IJMP 1 Address of instruction 1 N A 1 N A 1 N A N A 2 N A 2 N A 2 Destination address 2 N A 1 Address of instruction 1 N A 1 N A 1 N A N A 2 Address of address part 2 N A 2 N A 2 N A JMP of instruction 3 N A 3 N A 3 N A 3 N A 1 A
31. e ICE50 it is designed to behave as a wide range of AVR devices Exact emulation is the goal for all emulators and the ICE50 offers the highest possible level of compatibility The ICE50 emulator system consists of the following five modules E Main Emulator Unit m POD E Probe E Personality adapters E Test adapter 3 1 Rev 2523A AVR 1 1 02 General Description 3 2 Main Emulator Unit 3 2 1 Emulator Unit 3 2 2 Status LEDs 3 2 2523A AVR 1 1 02 The main emulator unit contains the brain of the ICE50 The main emulator unit is shown in Figure 3 1 The main unit contains the control logic and general hardware necessary to emulate an AVR device Figure 3 1 ICE50 Main Emulator RS 232C Reset USB Button d Power Connector Power Switch E Status LEDs m POD Bay Expansion Bay USB Connector m RS 232C Connector Reset Button m Power Switch m Power Connector There are three LEDs on the front of the ICE50 cabinet One red one red green duo LED and one green LED All these LEDs give important status information on the ICE50 and which mode it is operating in The picture below shows a close up of the LEDs When turning on power on the ICE50 the normal LED sequence will be as follows 1 Red Power LED turns ON 2 Mode LED turns ON and is first red and next orange 3 Green status LED turns ON after approx 15 seconds This indicate that the unit is operating and ready for use
32. e boards have to the Probe the correct orientation On the Personality Adapters a circle indicates pin 1 Make sure that the circle on the Probe matches the circle on the Personality Adapter as shown in Figure 3 8 Figure 3 8 Connecting Personality Adapter to Probe 3 4 2 t26 Personality The t26 Personality adapter is a PDIP adapter for t26 devices The footprint is a stan Adapter dard 20 lead 0 300 wide PDIP package If the target uses another package type an additional adapter has to be purchased from a third party vendor When connecting the Personality Adapter to the Probe make sure to align the circles on the Probe and Per sonality Adapter as shown above Figure 3 9 t26 Personality Adapter Note 1 SNR A9902 3 1370 A 3 4 2 1 Supported Devices W ATtiny26 ICE50 User Guide AIMEL 3 7 2523A AVR 1 1 02 General Description 3 4 3 t28 and t29 The t28 Personality adapter is a PDIP adapter for t28 devices The footprint is a stan Personality Adapter dard 28 lead 0 300 wide PDIP package If the target uses another package type an additional adapter has to be purchased from a third party vendor When connecting the Personality Adapter to the Probe make sure to align the circles on the Probe and Per sonality Adapter as shown above Figure 3 10 t28 and t29 Personality Adapter Note 1 SNR A9902 3 1350 B 3 4 3 1 Supported Devices W ATtiny28 3 4 4 m8 Personality The m8 Personality adapter is a PDIP adapter
33. e cycle in the execution The Trace view contains the columns described below A more detailed description of the contents of each column for the individual AVR instruction is found in the section Contents of Trace Window based on Instruction E Timestamp Column This column contains the value of the Cycle Counter at the time when the information was logged Note that the Cycle Counter has 41 bits so it will wrap at a value of 0x20000000000 or 2199023255552d If executing with a clock frequency of 20 MHz this means that the Cycle Counter will wrap every 30 hours E Program Memory Address column Ins Addr This column contains the current value A MEL ICE50 User Guide ICE50 User Guide Trace of the Program Counter i e it is the address in the Program Memory of the instruction currently being executed For multicycle instructions the contents of this column may contain other values See the description of the various instruction Valid Instruction VI This is a status flag which tells if the instruction is fetched and ready for execution For multicycle instructions this bit will only be 1 in the first cycle Instruction Column Ins This column contains the instruction word and the disassembled mnemonic representation of all instructions being executed For multicycle instructions this column will only contain information in the first cycle of the instruction For the remaining cycles of the instructions the column is le
34. e day ne Wene na EENS 3 2 ICE50 User Guide i 2523A AVR 1 1 02 Table of Contents 3 9 Gel 3 4 3 3 1 Removing POD from POD Bay iiii kk kk kk 3 4 3 3 2 Inserting POD Into POD Bay kk kk 3 4 333 Expansion H 3 5 33A USB CONNECTION sasa Las parani paken baga aaa aan la rise mnt kaa Aa yana 3 5 3 3 5 RS 232C Connector ii 3 5 3 3 6 Reset Button 3 5 9 3 77 Ee 3 5 3 38 PoWer Connector mises an ld hakar sal n daya a b n yax kwa Zinar Wan n k ka 3 6 3 4 Personality Adapter Description 3 6 3 4 1 Personality Adapter Description 3 6 3 4 2 t26 Personality Adapter AA 3 7 3 4 3 t28 and t29 Personality Adapter AAA 3 8 3 4 4 m8 Personality Adapter 3 8 3 4 5 m32 Personality Adapter i kaka nagane Kanan akak nee 3 9 3 4 6 m162 Personality Adapter AA 3 9 3 4 7 m128 Personality Adapter AAA 3 10 3 4 8 m169 Personality Adapter AAA 3 10 3 5 POD DOSGCHPUON EE 3 11 3 5 1 POD Description 3 11 3 52 Digital YO it yey disa sen k anal nay dan all a a aaa K Kina y kaz ke ha ka r da zeka kaba eee ed 3 12 3 5 3 Analog Comparator 22h dha ala el EES 3 14 9 5 4 A D Converter ss ee k ya niya ran manne baqek waii anan n nak AVA z 3 14 3 6 Power System Description kk k k kk kk 3 15 8 6 1 Power Supply Seen 3 15 3 6 2 ICE50 Power System sasana aaa bani gakeh aane et aaa nan sa haa saa naga dada ahaaa kaa 3 15 3 6 3 Target Application Power Requirements AAA 3 16 3 7 Probe Description ss 3 17 3
35. ed to emulate a wide range of AVR devices The ICE50 is controlled by AVR Studio 4 0 or later Present the following devices are supported ATtiny26 ATmega8 ATmegai6 ATmegai62 ATmega32 ATmega1i28 ATmegai69 ATmega8515 ATmega8535 The ICE50 supports the following features E Emulates All Digital and Analog Peripherals E Target Voltage Range 2 2V 5 5V E Full Target Frequency Range for All Supported Devices E Watches E Trace Buffer E Unlimited Number of Break Points E Symbolic Debugging Support E Full Visibility of and Access to Register File SP PC and Memories E Access to all I O Registers E O Configurable to Run or Halt in Stopped Mode m Cycle Counter A MEL ICE50 User Guide 2 3 System Requirements 2 3 1 Hardware Requirements 2 3 2 Software Requirements 2 3 3 Target Hardware Requirements 2 3 4 Operating Conditions 2 3 5 Host Interface ICE50 User Guide Introduction The following minimum requirements apply for the ICE50 For using the ICE50 with AVR Studio a Pentium 233 MHz or more class personal computer with following specifications is recommended 64 MByte RAM or more m 20 MByte of free hard disk HD space m CD ROM or Internet access Recommended Screen Resolution 1024x768 m 16650 Compatible Serial Port COM port E AVR Studio v4 0 or later installed E Acrobat Reader v4 0 or later installed optional The following operating systems are currently su
36. esponds with pin 1 on the target socket footprint 2 Mount the Probe onto the personality adapter Do not use excessive force the Probe only fits one way into the personality adapter Use the circles on the Per sonality Adapters and the Probe to safely determine correct orientation Make sure that the probe is connected to the pod connector on the ICE50 Figure 4 1 Connecting PDIP Adapters Part One of Two Note 1 Place the Personality Adapter in the target application socket Make sure that the dot on the Personality Adapter match pin 1 in the target socket Figure 4 2 Connecting PDIP Adapters Part Two of Two Note 1 Place the Probe on the Personality Adapter The circle on the probe should face in the same direction as the dot on the Personality Adapter A MEL ICE50 User Guide Connecting ICE50 4 3 2 Connecting TQFP The m128 TQFP adapter consists of two parts Adapters The bottom part that should be soldered into the target application and the top part that interface with the ICE50 Probe When mounting the TQFP adapter make sure that the adapter is soldered into the application with the correct orientation 1 Start soldering the bottom part of the Personality Adapter on the target applica tion Make sure that pin 1 on the adapter matches pin 1 in the target application 2 Place the TQFP top module on top of the soldered bottom module Again take care to place it with the correct orientation 3 Place the Probe
37. ess of instruction 1 N A 1 N A 1 N A FMUL Rd Rr ZC 2 Address of next instruction 2 Result of multiplication 2 N A 2 N A 1 Address of instruction 1 N A 1 N A 1 N A FMULS Rd Rr ZC 2 Address of next instruction 2 Result of multiplication 2 N A 2 N A 1 Address of instruction 1 N A 1 N A 1 N A FMULSU Rad Rr Z C 2 Address of next instruction 2 Result of multiplication 2 N A 2 N A ICE50 User Guide AMEL 7 5 2523A AVR 11 02 Trace Table 7 2 Data Transfer Instructions Reg Val Dat Addr Instruction RegFileL RAM_EEADDR Status INSTA 0 15 PMem Addr PC A0 22 0 7 0 22 Dat Val Register MOV Rd Rr Address of instruction value loadedi into N A N A N A register MOVW Rd Rr Address of instruction ae PAGES into N A N A N A LDI Rd Ki Address of instruction TAUG leaded ne N A N A N A register 1 Address of instruction 1 N A 1 N A 1 N A LD Rd KI N A 2 Address of next instruction 2 Value read 2 Adaress read Se E SES from X instruction 1 Address of instruction 1 N A 1 N A 1 N A LD Rd KAU N A 2 Address of next instruction 2 Value read e Adaress read 2 Value read from X 1 Address of instruction 1 N A 1 N A 1 N A LD Rd X N A 2 Address of next instruction 2 Value read EE 2 Value read from X 1 Address of instruction 1 N A 1 N A 1 N A N A LD Rd
38. et hardware requirements If you experience problems not described in this section please see the troubleshooting section for more information ICE50 is created to emulate an actual AVR device in detail When it comes to electrical compatibility some issues must be considered They are described in this section The POD is protected against wrong polarity from the target power In addition the POD will not be powered when ICE50 power is disabled See Figure 6 1 Figure 6 1 Power ICE on Target Power POD Polarity Protection ES The I O lines are current limited by a thermistor Over voltage is suppressed by a schot tky diode This circuit can be seen in Figure 6 2 6 1 Rev 2523A AVR 1 1 02 Special Considerations Figure 6 2 l O Lines Probe I O Resetable Fuse 6 2 Sleep Mode A A 6 3 Target Hardware The target must be able to supply 2 5 5 5V 200 mA Requirements Table 6 1 Target Voltage POD I O When in sleep mode there will be no power reduction as can be seen in an actual part ICE50 POD Probe current consumption from Target Application Target Voltage Normal Worst Case 2 5V 5mA 7 mA 3 3V 20 mA 30 mA 5 0V 85 mA 125 mA 5 5V 110 mA 165 mA 6 4 Clock Options The Current version of the ICE50 Probe has limited support for Clock options See Available Clock Options for an overview of the supported modes Other modes can however easily be emulated using t
39. f a part in grey colour is selected the tool for downloading new parts is launched See download new parts for ICE50 Figure 5 3 AVR Studio 4 Screenshot 5 3 Device Selection 1 ICE50 User Guide Welcome to AVR Studio 4 Select debug platform and device Debug Platform AVR Classic Simulator JTAG ICE ICE50 AYR Simulator gt ICE200 Target d ICEPro Target ICE10 Target Connect Auto Help lt lt Back n gt Finish Cancel In AVR Studio go to Debug gt ICE50 Options Device Selection is highlighted and it is possible to choose from different parts in the pulldown menu Note the icon to the left for each part name Click this icon if this part is to be loaded into the ICE50 A total of four part files can be contained in the ICE50 at the same time Some part files contain two AVR emulator parts The status bar at the right side indicates how many part files ICE50 contains For ATmegai128 it is also possible to choose ATmega103 compatibility mode Select between the following clock sources This will affect the fuse settings for the actual part Internal XTAL Oscillator Internal RC Oscillator External Clock Different start up times can be selected from the Start up time pulldown menu This will affect the fuse settings for the actual part Part frequency can be selected from the frequency pulldown menu as shown in Figure 5 4 or the frequency can be typed in
40. for m8 devices The footprint is a stan Adapter dard 28 lead 0 300 wide PDIP package If the target uses another package type an additional adapter has to be purchased from a third party vendor When connecting the Personality Adapter to the Probe make sure to align the circles on the Probe and Per sonality Adapter as shown above Figure 3 11 m8 Personality Adapter Note 1 SNR A9902 3 1390 C 3 4 4 1 Supported Devices ATmega8 3 8 AUMEL ICE50 User Guide 2523A AVR 11 02 3 4 5 m32 Personality Adapter 3 4 5 1 Supported Devices 3 4 6 m162 Personality Adapter 3 4 6 1 Supported Devices ICE50 User Guide General Description The m32 Personality adapter is a PDIP adapter for m32 m16 devices The footprint is a standard 40 lead 0 600 wide PDIP package If the target uses another package type an additional adapter has to be purchased from a third party vendor When connecting the Personality Adapter to the Probe make sure to align the circles on the Probe and Personality Adapter as shown above Figure 3 12 m32 Personality Adapter Note 1 SNR A9902 3 1310 B E ATmega32 ATmega16 The m162 Personality adapter is a PDIP adapter for m162 devices The footprint is a standard 40 lead 0 600 wide PDIP package If the target uses another package type an additional adapter has to be purchased from a third party vendor When connecting the Personality Adapter to the Probe make sure to align the circles on the Probe
41. ft blank Data Address Column Dat Addr This column contains the active address in the data memory space and only contains information during some cycles in instructions reading from or writing to the data memory See the description of the instructions to see what this field means for each instruction Register File Low High Value column RL amp RH For some of the instructions the result being fed back to the Register File is also sent to the Trace Buffer For other instructions this field does not contain any information See the description of the instructions to see what this means in the various cases Register File Valid Signal VR This status bit indicates if the values on column RL and RH is valid in this cycle E Spare Signals S For future use E Status Register Column SR Contains the AVR Status Register E Function ID PS This column contains the Function ID number E Interrupt Acknowledge Column If an interrupt routine is invoked this column will contain a 1 else a 0 AMEL 5 2523A AVR 11 02 Trace 7 3 Contents of Trace Window Based on Instruction ICE50 As can be seen from Enabling Trace the contents of the different columns varies with which instruction is being executed This section describes how to interpret the contents of the Trace buffer based on which instruction is being executed Some of the explanations are tagged with a number This number indicates the cycle number in
42. g tools All documents can be found on the Atmel Products CD ROM enclosed in the ICE50 kit For more information and document updates please visit our web site www atmel com m AVR Studio user s guide E Describes in detail how to use the AVR Studio debugging environment E Describes in detail how to use the AVR Assembler E Data sheets for the different AVR devices E Errata sheets for the different AVR devices E Application notes describing different application examples for the AVR microcontrollers E Describes in detail how to use the AVR Studio debugging environment Note AVR Studio 4 0 or later is required for ICE50 support AVR Studio 3 x versions will not work with ICE50 There has been several releases of the ICE50 firmware E First released version E Errors in trace module fixed E Version table readout in main module fixed E All parts with ADC ADC bit 3 and 4 where interchanged This is now fixed on all parts with ADC E Trace of Program Counter is now correct in single step Brown out Detection BOD Selection of Brown out Voltage is now enabled for all parts E Megas Reset Disable Fuse added to ICE50 options There are some known issues in the ICE50 that users needs to be aware of E User break in sleep mode is not supported Use an interrupt to wake up the part or a reset to Reset the emulator User break in sleep mode is not supported Workaround A Reset will break and reset the emulator
43. he modes above 6 5 Differences E The ATmega8 personality adapter SNR A9902 3 1390 A does not support External Between Timer Oscillator SE and m ADC internal voltage reference is 2 5V and not 2 56V as in part ar 6 2 2523A AVR 11 02 AMEL ICE50 User Guide AMEL 7 1 Enabling Trace in AVR Studio ICE50 User Guide Section 7 Trace The ICE50 contains a 144 bit wide 128K levels deep Trace Buffer This document describes the contents of the AVR Studio Trace Buffer view 1 To enable Trace in AVR Studio select Trace Normal from the trace toolbar pull down menu See Figure 7 1 Figure 7 1 Enable Trace x Trace normal gt di d ef D JD lt 2 Inthe active source window select Trace start and stop by pressing F8 Press F8 once for Trace to start at this line Press F8 twice for Trace to end at this line Press F8 three times to remove Trace Alternatively the icons on the Trace tool bar menu can be used instead of F8 The hand is equal to Trace start and stop The hands with red marks will remove all Trace points Trace on is marked with a 1 while trace off is marked by a 1 with a red line across See Figure 7 2 Figure 7 2 Start and Stop Trace E c Program Files Atmelinterrupt interrupt asm temp 0x02 out TIMSK temp enable output compare Liwer ldi temp 0x08 out OCRO temp set compare value to 5 El clr temp out TCNTO temp clear TCNTO sel enable global interrup
44. ical OR N A N A Z N V S EOR Rd Rr Address of instruction Result of logical EOR N A N A Z N V S COM Rd Address of instruction Result of complement N A N A Z C N V S NEG Rd Address of instruction Result of negation N A N A Z C N V S H Will never appear is SBR Rd K disassembled to ORI N A N A N A Z N V S instruction Will never appear is CBR Rd K disassembled to ANDI N A N A N A Z N V S instruction INC Rd Address of instruction Result of incrementation N A N A Z N V S DEC Rd Address of instruction Result of decrementation N A N A Z N V S Will never appear is TST Rd disassembled to AND N A N A N A Z N V S instruction CLR Rd Address of instruction Result always 0x00 N A N A Z N V S Will never appear is SER Rd disassembled to LDI N A N A N A N A instruction 7 4 AIMEL ICE50 User Guide 2523A AVR 11 02 Table 7 1 Arithmetic and Logic Instructions Continued Trace Dat Addr Instruction PMem Addr Reg Val RAM_EEADDR Status INSTA 0 15 PCIAO 22 RegFileL 0 7 0 22 Dat Val Register 1 Address of instruction 2 pe at 1 N A 2 MUL Rd Rr Address of next instructior 1 N A 2 Result of multiplication 1 N A 2 N A N A Z C 1 Address of instruction 1 N A 1 N A 1 N A MULS Rd Rr ZC 2 Address of next instruction 2 Result of multiplication 2 N A 2 N A 1 Address of instruction 1 N A 1 N A 1 N A MULSU Rad Rr Z C 2 Address of next instruction 2 Result of multiplication 2 N A 2 N A 1 Addr
45. intellectual property of Atmel are granted by the Company in connection with the sale of Atmel products expressly or by implication Atmel s products are not authorized for use as critical components in life support devices or systems ATMEL AVR and AVR Studio are the registered trademarks of Atmel Corporation Microsoft Windows and Windows NT are the registered trademarks of Microsoft Corporation ee Printed on recycled paper Other terms and product names may be the trademarks of others 2523A AVR 11 02 0M
46. ion 1 N A 1 5 LSB give I O address A 1 N A 2 Address of skipped 2 N A 2 N A 2 N A instruction first word 3 Address of skipped 3 N A 3 N A 3 N A instruction second word 1 Address of instruction 1 N A 1 5 LSB give I O address A 1 N A N A 1 Address of instruction 1 N A 1 5 LSB give I O address A 1 N A 2 Address of skipped 2 NIAID 2 N A 2 N A instruction ZER 1 Address of instruction 1 N A 1 5 LSB give I O address A 1 N A 2 Address of skipped 2 N A9 2 N A 2 N A instruction first word 3 Address of skipped 3 N A 3 N A 3 N A instruction second word 1 Address of instruction 1 N A 1 N A 1 N A N A BRBS 1 Address of instruction 1 N A 1 N A 1 N A 2 N A 2 N A 2 N A 2 N A 1 Address of instruction 1 N A 1 N A 1 N A N A BRBC 1 Address of instruction 1 N A 1 N A 1 N A 2 N A 2 N A 2 N A 2 N A 1 Address of instruction 1 N A 1 N A 1 N A N A BREQ 1 Address of instruction 1 N A 1 N A 1 N A6 2 N A 2 N A 2 N A 2 N A 7 10 AMEL ICE50 User Guide 2523A AVR 11 02 Table 7 3 Branch Instructions Continued Trace Instruction Reg Val Dat Addr INSTA PMem Addr RegFileL RAM_EEADDR Status 0 15 PC AO 22 0 7 0 22
47. ion Off Power not connected or ICE50 Turned off Red Power On Power connected ICE50 on and voltages OK Green Run mode Multi Mode Red Error condition if permanently lit Orange Stopped mode Off ICE50 is initializing Green Status On ICE50 Ready for emulation Blinking The LED will flash when doing an upgrade AMEL 3 2523A AVR 11 02 General Description 3 3 POD Bay 3 3 1 Removing POD from POD Bay 3 3 2 Inserting POD Into POD Bay 3 4 2523A AVR 1 1 02 The ICE50 has a very flexible architecture that will ensure a long product life The differ ent AVR devices are characterised through their number of I O pins and analog features Both the I O pins and the analog features are implemented on the POD board If new AVR devices are made available to the market that contain I O or analog features that cannot be emulated by the current POD Atmel is dedicated to create new POD modules that support the functionality of the new devices If for some reason the POD must be removed from the POD Bay the recommended procedure is as described below See also Figure 3 4 1 Lift the POD on the front edge until a click is heard The POD is now ready to be pulled up from the bay 2 Lift the POD out of the Bay Figure 3 4 Removing POD from POD Bay 1 Apply pressure under 2 Pull the POD up from the front of the POD the bay A click is heard when the POD is loose Without the POD connected
48. ions Other options i El Extended Fuse OxFF Fuses and Lockbits e EI High Fuse OxFF ICE Status F1 Low Fuse OxFF E LockBits OxFF 8 Fuses with this marking do not affect emulation ICE Reset Set Default Help Cancel 1 By pressing Extended Fuse the tree expands and it is possible to see the set tings for this fuse O indicates on or Fuse programmed 1 indicates off It is not possible to edit the Fuse setting here The Extended Fuses are available for selected parts See the datasheet for the part when configuring the Fuses In this case the ATmega128 The Extended Fuse is used to support special features See Figure 5 6 AMEL e 2523A AVR 11 02 Configuring AVR Studio Figure 5 6 Extended Fuse Settings Fuses and Lockbits 4 ICE50 Device selection Boot block options Other options Fuses and Lockbits ICE Status EJ IF EE tended Fuse OxFF 1 1 M103C ATmega103 compatibility mode AU OWDTON Watchdog timer always on 5 F1 High Fuse OxFF o EI Low Fuse OxFF o EI LockBits OxFF E Fuses with this marking do not affect emulation ICE Reset Set Defaul Help Cancel 2 By pressing Low Fuse the tree expands and it is possible to see the settings for this Fuse 0 indicates on 1 indicates off The Fuse settings can not be edited here See the datasheet for the part when configuring the Fuses See Figure 5 7 Figure 5 7 Low Fuse Settings Device se
49. le The Oscillator driver on the probe is designed to work with most parallel mode 32 kHz crystals In AVR Studio the Emulator may be set to run on an Internal RC Oscillator See section device selection for a description of how to set up the Internal RC Oscillator External crystal resonator is not supported on the ICE50 probe Instead configure the Emulator to use the internal programmable clock The XTAL1 pin will then be tri stated XTAL2 pin will be enabled and the internal programmable clock is driven out on the XTAL2 pin See special section for a description of how to set up the XTAL2 clock External RC Oscillator is not supported on the ICE50 probe Instead configure the emu lator to use the internal programmable clock The XTAL1 and XTAL2 pins will then be tristated ICE50 is supplied with a Test Adapter See Figure 3 26 Figure 3 26 Test Adapter Note 1 SNR A9902 3 1400 A The adapter includes an identification code that the ICE50 and AVR Studio uses for detection The ICE50 Test Adapter is used for the following tests E Analog Comparator m Analog Digital Converter E O pins AMEL Se 2523A AVR 11 02 General Description 3 8 1 Using the Test The test adapter must be connected to the probe Adapter To start the test program open AVR Studio and select from the drop down menu Tools gt ICE50 Selftest The window showing in Figure 3 27 will appear Figure 3 27 Start Test Program in AVR Studio x
50. lection Fuses and Lockbits ICE50 Boot block options Other options D Extended Fuse OxFF Fuses and Lockbits e JE High Fuse D I ICE Status Elo Low Fuse OxEB 7 BODLEVEL Brown out detector trigger level 6 BODEN Brown out detector enable 5 SUT1 Select start up time 4 SUTO Select start up time 3 CKSEL3 Select Clock Source 2 CKSEL2 Select Clock Source 1 CKSEL1 Select Clock Source O CKSELO Select Clock Source o DC LockBits DI jo o 2 Fuses with this marking do not affect emulation ICE Reset Set Defaut Help Cancel 3 By pressing High Fuse the tree expands and it is possible to see the settings for this Fuse 0 indicates on 1 indicates off The Fuse settings can not be edited here See the datasheet for the part when configuring the Fuses Note that Fuses marked with do not affect emulation See Figure 5 8 2523A AVR 1 1 02 Configuring AVR Studio Figure 5 8 High Fuse Settings Device selection Fuses and Lockbits LEO Boot block options Other options Fuses and Lockbits ICE Status E Extended Fuse OxFF EF High Fuse D I 08 7 OCDEN Enable OCD 6 JTAGEN Enable JTAG 5 SPIEN Enable Serial programming and Data Downloading 4 CKOPT Oscillator Options SEESAVE EEPROM memory is preserved through chip erase 2 BOOTSZ1 Select Boot Size 1 B00TS20 Select Boot Size O BOOTRST Select Reset Vector ow Fuse IER ockBits OxFF j e jo ele 21e Aral Chal
51. n mode Application section Select between four different types See datasheet for the actual part for more information Boot Lock Protection mode1 Boot section Select between four different types See datasheet for the actual part for more information Note This menu is only available for AVR parts with Boot Block Figure 5 12 Boot Block Options ICE Reset SetDetaut Hep Cancel Device selection Boot block options ICESO Boot block options Other options Boot Size ne pi E Boot Size 512 Words 4 pages FEOO FFFF Boot reset FEO0 Di ICE Status r Reset Vector Application reset address 0 e m Boot Lock Protection mode 0 Application section No restrictions for SPM or EJLPM Boot Lock Protection mode 1 Boot loader section No restrictions for SPM or EJLPM Note AVR Studio 4 0 or later is required for ICE50 support AVR Studio 3 x versions will not work with ICE50 AMEL e 2523A AVR 11 02 Configuring AVR Studio 5 8 Special 5 9 Downloading New Parts for ICE50 5 12 2523A AVR 11 02 Special settings can be configured from AVR Studio In AVR Studio go to Debug gt ICE50 Options Highlight Other Options It is now possible to configure XRAM Reset sources and Timer oscillator See Figure 5 13 XRAM Choose between emulate XRAM memory internally in ICE50 or enable the AVR external XRAM interface for using RAM in the target application Reset So
52. nnecting ICE50 for a more detailed description Select between creating a new or opening an existing AVR Assembler project See picture below If you have already made an object file you can open this directly See Figure 5 1 Figure 5 1 Welcome to AVR Studio 4 4 Welcome to AYR Studio 4 KE Tel 7 Create New Project ei Open Recent projects _Modified C Program Files Atmel interrupt interrupt aps 20 Feb 2002 13 14 27 C Program Files T est instructione aps 19 Feb 2002 10 09 37 7 Show this dialog on open Help Bac News Finist Cancel If a new project is chosen type in the project name Check create initialfile if you would like an assembler file with the same name as the project If you would like a folder created with the same name check this option Browse to select location for the project See Figure 5 2 Figure 5 2 New Project Window Welcome to AVR Studio 4 Ra Create new project Project Type Project name Atmel AVR Assembler V Create initial file Create Folder Initfile asm Location C Program Files Atmel Trace ASM instructions al 4 MEL ICE50 User Guide Configuring AVR Studio Press the next button Now select ICE50 as target and then chose the part to emulate Press finish to complete the wizard AVR Studio will now be ready for use See Figure 5 3 Parts that are downloaded and available in ICE50 are shown highlighted I
53. on the Personality Adapter Use low temperature solder and soldering iron when soldering the bottom part to the tar get This will ensure that the solder on the adapter is not removed during soldering Figure 4 3 Connecting TQFP Adapters Part One of Three 1 Place and solder the bottom module Take care to place it with correct orientation n 2 Place the top module onto the bottom module 3 Place Probe on Personality Adapter Note 1 Place and solder the bottom module Take care to place it with correct orientation ICE50 User Guide AIMEL 4 3 2523A AVR 1 1 02 Connecting ICE50 4 4 ICE50 Power up Sequence 4 4 2523A AVR 11 02 Warning Every design precaution is taken so that the probe and ICE50 POD should not be damaged if incorrectly placed However selecting wrong adapter or placing the adapter with wrong orientation may damage the ICE50 POD Connecting or disconnecting the POD or Personality Adapter while the target application is powered might damage the Probe and or the POD Once the Probe and Personality Adapter are connected continue by correct Power up sequence When the ICE50 is properly connected to the target and the host PC the power can be turned on The following procedure is recommended to ensure proper communication between the ICE50 and AVR Studio Power up ICE50 wait for yellow LED to be lit E Power up target board E Start AVR Studio Note The equipment will not
54. or The Power Connector on the ICE50 system is a standard type with 2 1 mm center tap Ground should be connected to the center tap For more information about power requirements and operating conditions see the Power System Description See Figure 3 7 The personality adapters of the ICE50 provides the physical adaption between the ICE50 and the target device ICE50 is supplied with a range of personality adapters These adapters map the pinout from the ICE50 POD to each of the microcontrollers it supports Each adapter includes an identification code that the ICE50 and AVR Studio use for automatic device detec tion The ICE50 package contains the following Personality Adapters Each adapter corresponds to one pinout type and supports one or more AVR microcon trollers Table 3 2 shows which devices are supported by the different Personality Adapters Table 3 2 Personality Adapters Device Use Personality Adapter Named Seral Number ATmegai6 m32 A9902 3 1310 A ATmega128 m128 W10635SDF ATmega32 m32 A9902 3 1310 B ATtiny28 29 28 129 A9902 3 1350 B ATtiny26 t26 A9902 3 1370 A ATmega162 m162 A9902 3 1300 B ATmega8 m8 A9902 3 1390 C ATmega169 m169 W10634SDF A MEL ICE50 User Guide General Description 3 4 1 1 Connecting the When connecting the Personality Adapter and the Probe make sure that the Probe is Personality Adapter connected with the correct orientation The connectors will only fit when th
55. or is intended for future use and not used in the current version of ICE50 The POD placed in this socket is an empty POD enclosure and serves the purpose of protecting the Expansion Connector USB communication is supported in AVR Studio 4 Build 181 and higher versions USB Drivers are found on the AVR Technical Library CD Rom The USB port is shown in Fig ure 3 6 Figure 3 6 USB RS 232C communication and Reset Button RS232C Present all communication between the ICE50 and AVR Studio is done through a stan dard RS 232C interface This is the communication protocol used by COM ports on PCs The communication runs at 115200 bit s no parity 8 data bits 1 stop bit N81 For information on how to connect the ICE50 to a PC see the Connecting ICE50 to PC section See Figure 3 6 By pressing the reset button on the ICE50 a Warm Reset of the Emulator is preformed After approximately 15 seconds the configuration is completed and the green status LED will turn on indicating that the emulator is ready for use See Figure 3 6 The Power Switch is the main on off switch for the ICE50 Emulator Switching this off will turn off power on the ICE50 The ICE50 will however remain grounded to the power supply See Figure 3 7 AMEL 8 2523A AVR 11 02 General Description 3 3 8 Power Connector 3 4 Personality Adapter Description 3 4 1 Personality Adapter Description 3 6 2523A AVR 11 02 Figure 3 7 Power Switch and Connect
56. pported by AVR Studio m Windows NT Version 3 51 m Windows NT Version 4 0 1 Windows 95 E Windows 98 ME E Windows 2000 E Windows XP E AVR Studio is always updated to fit new operating systems and versions See AVR Studio User s Guide for latest information Note 1 Windows NT 3 51 and Windows NT 4 0 does not support USB communication E The target must be able to supply 2 2 5 5V 150mA See Table 3 6 for further information Operation Temperature 0 C 70 C E Operating Humidity 10 90 RH non condensing Supply Voltage 9 0V to 12 0V DC WARNING Violating the recommended operating conditions for the ICE50 might cause incor rect operation and damage the emulator RS 232C 115200 bps 1 start 8 data and 1 stop bit no parity with hardware hand shaking 9 pin female connector with RTS and CTS connected to support hardware handshaking AMEL T 2523A AVR 11 02 Introduction 2523A AVR 11 02 AMEL 3 1 General Hardware Description 3 1 1 What is an In Circuit Emulator ICE50 User Guide Section 3 General Description This setion describes the different components of the ATICEB50 in detail In this section a brief description of emulation is given and a closer look at the parts that make up the ICE50 The ICE50 is an In Circuit Emulator An emulator is a dedicated piece of hardware designed to emulate the behaviour of another piece of hardware In the case of th
57. ress of instruction N A N A N A N A CPC Address of instruction N A N A N A N A CPI Address of instruction N A N A N A N A ICE50 User Guide AIMEL 7 9 2523A AVR 1 1 02 Trace Table 7 3 Branch Instructions Continued Instruction Reg Val Dat Addr INSTA PMem Addr RegFileL RAM_EEADDR Status 0 15 PC AO 22 0 7 0 22 Dat Val Register 1 Address of instruction 1 N A 1 N A 1 N A N A 1 Address of instruction 1 N A 1 N A 1 N A 2 Address of skipped 2 N A 2 N A 2 N A instruction SES 1 Address of instruction 1 N A 1 N A 1 N A 2 Address of skipped 2 N A 2 N A 2 N A instruction first word 3 Address of skipped 3 N A 3 N A 3 N A instruction second word 1 Address of instruction 1 N A 1 N A 1 N A N A 1 Address of instruction 1 N A 1 N A 1 N A 2 Address of skipped 2 N A 2 N A 2 N A instruction SES 1 Address of instruction 1 N A 1 N A 1 N A 2 Address of skipped 2 N A 2 N A 2 N A instruction first word 3 Address of skipped 3 N A 3 N A 3 N A instruction second word 1 Address of instruction 1 N A 1 5 LSB give I O address A 1 N A N A 1 Address of instruction 1 N A 1 5 LSB give I O address A 1 N A 2 Address of skipped 2 N A 2 N A 2 N A instruction SE 1 Address of instruct
58. s dedicated to create new POD modules that support the functionality of the new devices The ICE50 POD is shown in Figure 3 16 It connects to the main unit through two dock ing connectors When connecting or disconnecting the POD do not use excessive force as this might damage the POD Figure 3 16 ICE50 POD The POD contains all analog and digital logic necessary to emulate the target AVR device The circuitry is designed to give as close as possible electrical characteristics as the real device The POD emulates the following functions E Digital I O E Analog Comparator m A D Converter The ICE50 is a jumperless design All configuration of the POD is done through AVR Studio No manual configuration of jumpers is necessary AMEL 3 11 2523A AVR 11 02 General Description 3 5 2 Digital UO The Digital lO ports of the ICE50 are realized as shown in Figure 3 17 using CMOS buff ers and voltage converters Figure 3 17 Digital I O DIGITAL I O LEVEL CONVERTER Voc Emulator gt Ve Target PULLUP DDRxy amp PORTxy Voc TI DDRxy PORTxy l PINxy lt l PINKEEPx 330K The propagation delay of the IO ports are larger for the ICE50 than for the actual emu lated part The diagram below shows the timing data for driving out and reading in a signal on the IO ports of the Emulator The data direction register is assumed set to 1 in Figure 3 18 Table 3 3 shows
59. sion and firmware version See Figure 5 10 In addition two buttons called ICE Reset and Set Default are located in the lower left corner See figure below The ICE Reset button performs a warm emulator reset and can be used instead of the reset button on the back of the ICE50 while the Set Default button loads the default setting for the actual part Figure 5 10 ICE Status Device selection ICE Status 1 ICESO Boot block options Other options Fuses and Lockb e Device selected ATmegal6 ICE Status Module Software version Firmware version Main 24 0 4 MMU OSC AVR EVENT Module FPGA Configuration filename Event event_FPGA bin MMU mmu_include bi AVR xxxxxxx6 bin xl ICE Reset _ Set Defaul Ge Cancel Reports for the different FPGA configuration files and the hardware revisions in the dif ferent PCB s are also shown See Figure 5 11 ICE50 User Guide AIMEL 5 9 2523A AVR 1 1 02 Configuring AVR Studio Figure 5 11 ICE Staus Window ICE50 Options 5 10 AIMEL IMEL ICE50 User Guide 2523A AVR 1 1 02 5 7 Boot Block Options ICE50 User Guide Configuring AVR Studio In AVR Studio go to Debug gt ICE50 options Highlight Boot Block Options Four different pulldown menus will appear See Figure 5 12 The four menus are 1 2 3 4 Boot Size Select between the available Boot Sizes in the pulldown menu Reset Vector Select application or Boot Reset Vector Boot Lock Protectio
60. structions can be found in Contents of Trace Window based on Instruction It applies to the following instructions LD various forms LDD various forms ST various forms STD various forms LDS STS RCALL ICALL CALL RET RETI PUSH POP 7 5 Interrupt Interrupts are asynchronous events to the regular program flow There is no instruction Handling ICE50 associated with the start of the processor handling an interrupt However once the pro Trace cessor has stored the return address to the stack it will start to execute code from the interrupt vector address An example is shown in below Figure 7 7 shows the code being executed where an interrupt occurs during the execution of the instruction RJMP 0x0001 The Interrupt Acknowledge IA flag is set to 1 as can be seen in Figure 7 8 When this instruction is completed two cycle instruction it can be observed that the program counter is written to the stack at addresses Ox2F before it starts executing from the interrupt vector in this case interrupt vector 0x000013 After the in this case very simple interrupt program has completed execution resumes Figure 7 7 Example Code ldi temp 0x02 out TIMSK temp enable output compare timer0 ldi temp 0x08 out OCRO temp set compare value to 5 clr temp out TCNTO temp clear TCNTO sel enable global interrupt ldi temp 0x01 E TCCRO temp start timerO cit rjmp PC nop nop tim0_compa nop reti gt 7 14 AIMEL ICE50 User
61. t Kit 3 Itis possible to have several start and stop points Each pair of start and stop points will have an unique number Function ID In Figure 7 3 two Trace start stop pair are shown number 1 and 2 7 1 Rev 2523A AVR 1 1 02 Trace 7 2 The Trace Window 7 2 2523A AVR 1 1 02 Figure 7 3 Multiple Start and Stop Trace ES c Program Files Atmel interrupt interruptasm temp 0x02 out TIMSK temp enable output compare timer0 ldi temp 0x08 out OCRO temp set conpare value to 5 clr temp H out TCNT temp clear TCNTO sei enable global interrupt ldi temp 0x01 out TCCR temp start timer gt X WZ The Function ID numbers can be selected from the trace toolbar In Figure 7 4 Function ID 2 is selected from a drop down menu Figure 7 4 Function ID Selection xj Trace normal D M din ef 2 D E CL 4 Open Trace Window To view the Trace output select Trace Output from the view menu or press the trace window icon in the trace toolbar The trace window icon is located as number three from the right in Figure 7 5 Figure 7 5 Trace Output xl Trace normal DI di din af 1 D E D A window like illustrated in Figure 7 6 will appear on the screen The contents of the trace buffer will of course vary with the actual project Figure 7 6 Trace Buffer EEE ZIRT gt J The Trace function of the ICE50 traces the program execution every clock cycle trace every singl
62. the instruction execution important for multi cycle instructions only The term N A is used when a field does not contain any valuable information Table 7 1 Arithmetic and Logic Instructions Dat Addr Instruction PMem Addr Reg Val RAM_EEADDR Status INSTA 0 15 PCIAO 22 RegFileL 0 7 0 22 Dat Val Register ADD Rd Rr Address of instruction Result of addition N A N A Z C N V S H ADC Rd Rr Address of instruction Result of addition N A N A Z C N V S H 1 Address of instruction 1 Result of addition low byte 1 N A 1 N A ADIW Rdl K Z C N V S 2 Address of next instruction 2 Result of addition high byte 2 N A 2 N A SUB Rd Rr Address of instruction Result of subtraction N A N A Z C N V S H SUBI Rd K Address of instruction Result of subtraction N A N A Z C N V S H SBC Rd Rr Address of instruction Result of subtraction N A N A Z C N V S H SBCI Rd K Address of instruction Result of subtraction N A N A Z C N V S H 1 Address of instruction 1 Result of subtraction low byte 1 N A 1 N A SBIW Rdl K Z C N V S H 2 Address of next instruction 2 Result of subtraction high byte 2 N A 2 N A AND Rd Rr Address of instruction Result of logical AND N A N A Z N V S ANDI Rad K Address of instruction Result of logical AND N A N A Z N V S OR Rd Rr Address of instruction Result of logical OR N A N A Z N V S ORI Rd K Address of instruction Result of log
63. the power source is not too weak Power Switch doesn t work Configuration Error Not all modules have signed on See ICE Status Check if a module is missing A module not signed on will report a zero in the version field Communication Errors Check that the serial cable is connected Check that the POD is properly connected See Inserting POD into POD Bay Can t establish communication Check if other equipment has control over the COM port IrDA etc Cycle power and restart AVR Studio Do no use serial port I O card or USB to serial adapter USB communication is not yet supported 8 1 Rev 2523A AVR 1 1 02 Troubleshooting 2523A AVR 11 02 AIMEL HEEE Atmel Headquarters Atmel Operations Corporate Headquarters Memory RF Automotive 2325 Orchard Parkway San Jose CA 95131 TEL 1 408 441 0311 FAX 1 408 487 2600 Europe Atmel Sarl Route des Arsenaux 41 Case Postale 80 CH 1705 Fribourg Switzerland TEL 41 26 426 5555 FAX 41 26 426 5500 Asia Room 1219 Chinachem Golden Plaza 77 Mody Road Tsimhatsui East Kowloon Hong Kong TEL 852 2721 9778 FAX 852 2722 1369 Japan 9F Tonetsu Shinkawa Bldg 1 24 8 Shinkawa Chuo ku Tokyo 104 0033 Japan TEL 81 3 3523 3551 FAX 81 3 3523 7581 2325 Orchard Parkway San Jose CA 95131 TEL 1 408 441 0311 FAX 1 408 436 4314 Microcontrollers 2325 Orchard Parkway San Jose CA 95131 TEL 1 408 441 0311 FAX 1 408 436 4314 La
64. typical data Figure 3 18 Data Direction Register PORTxy Pxy PINxy tiLH 3 12 AIMEL ICE50 User Guide 2523A AVR 1 1 02 General Description Table 3 3 Data Direction Delay Typical Value 2V Target Typical Value 5V Target tonl 13 ns 10 ns East 13 ns 10 ns ti 13 ns 10 ns t u 13 ns 10 ns Notes 1 tOHL Time from clearing the PORT register to the output changes 2 tOLH Time from setting the PORT register to the output changes 3 tIHL Time from changing the input level to the PIN signal changes high to low 4 tILH Time from changing the input level to the PIN signal changes low to high Figure 3 19 shows the timing data for tristating driving the IO pins Table 3 4 shows related typical data Figure 3 19 Timing Data DDRxy PORTxy Table 3 4 Timing Data Delay Typical Value 2V target Typical Value 5V target toz 15ns 15 ns torz 15 ns 15 ns Lol 15 ns 15 ns bag 15 ns 15 ns Notes 1 tDZL time from setting the DDR register to the output is driven low 1 2 tDLZ time from clearing the DDR register to the output is tristated 3 tDZH time from setting the DDR register to the output is driven high 4 tDHZ time from clearing the DDR register to the output is driven low The drive capability of the output buffers are 24 mA at 3V Vec This slightly exceeds the driving capability of the actual parts The operating
65. urces enable disable POR Power on Reset BOD Brown out Detector or External Reset E Timer Oscillator Choose between internal or external The two checkboxes in the upper right corner makes it possible to Disable sourcing of XTAL2 clock Enable Watchdog Timer always on Watchdog ca be configured to break on Watchdog overflow or reset on Watchdog overflow Figure 5 13 Special Settings xi Devoe sce ICE50 Boot block options Other pions XRAM watchdog Fuses and Lockbits G 7 ICE Status Not Use IT Watchdog timer always ON Emulate XRAM memory Overton Reset C Enable XRAM interface E avano broek m Reset Sources j BOD Level I7 Disable POR BOD disabled IV Disable BOD IR Disable External Reset m Timer oscillator Not Use C Intemal Extemal T Disable sourcing of XTAL2 clock ICE Reset Set Defaut Help OK Cancel In addition two buttons called ICE Reset and Set Default are located in the lower left cor ner The ICE Reset button resets the ICE while the Set Default button loads the default setting ICE reset performs the same reset as the reset button on the back of the ICE50 AVR Studio will check if newer files are available in the ICE50 dat file and prompt the user whether an upgrade should be performed AVR Studio is continously updated Check the Atmel web site www atmel com for upgrades A MEL ICE50 User Guide 5 10 Upgrading the ICE50 Firmw
66. voltage range of the IO circuits are 2 Vcc to 5 5 Vcc At 2V Voc the buffers are able to sink 25 mA with a maximal output low voltage VOLmax of 1V The hysteresis voltage for the input buffers are typically 0 8V at 3V Vo and 1 2V at 5 5V ICE50 User Guide AIMEL 3 13 2523A AVR 1 1 02 General Description 3 5 3 Analog Comparator The Analog Comparator is built around a high speed comparator and a CMOS output buffer voltage converter Figure 3 20 shows the Analog Comparator block diagram The total propagation delay from the AINO and AIN1 pins to the internal ACO signal is typi cally 90ns max 210ns For parts the total propagation delay from the AINO and AIN1 pins to the internal ACO signal is typically 500 ns max 750 ns The comparator features an internal hysteresis of typical 1 mV max 4 mV 25 C to ensure clean switching Figure 3 20 Analog Comparator Block Diagram ANALOG COMPARATOR ACBG ACO 3 5 4 A D Converter The block diagram of the ICE50 AD converter is shown in Figure 3 21 Figure 3 21 ICE50 AD Converter A D Converter ADC7 3300 DELA NA 3302 EoosAA 0 __ GE ADC Multiplexer Output 3300 E 10 bit ADC ADC2 7 ADG1 3300 a Q 0 9 r 330Q a ADCO 1x 10x 100x Eed j 1x 2x CH ki 1 1 i LA ref Baka wanan nara ah Vref pa JI E

Download Pdf Manuals

image

Related Search

Related Contents

Mode d`emploi du chauffage pour l`ensemble  Propeller Drilling Guide  Blaupunkt New York 800 User Guide Manual - CaRadio  - Fujitsu  Broan-NuTone N-9960 Combination Heater Heater  SLACKLINE USER MANUAL HEMSEDAL NORWAY  EasyPIC5 Users Manual  Musical Fidelity M1CDT CD Player User Manual  

Copyright © All rights reserved.
Failed to retrieve file