Advertisement

Quick Links

ICE 200
.............................................................................
User Guide

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AVR ICE 200 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Atmel AVR ICE 200

  • Page 1 ICE 200 ................User Guide...
  • Page 3: Table Of Contents

    Power and Signal Operating Conditions ...........4-1 Clock Driver Requirements ...............4-2 Personality Adapters .................4-3 Special Tiny12 Personality Adapter Settings ..........4-6 Connecting to the Target Application ............4-7 4.6.1 Checklist .....................4-9 Configuration...................4-10 Quick Start ....................4-10 4.8.1 Checklist ...................4-11 AVR ICE 200 User Guide...
  • Page 4 Using the Include Files ...............6-1 6.1.2 Using the ATtiny12 Adapter for Emulating the ATtiny10/11 ....6-2 6.1.3 Using the AT90S2313 Adapter for Emulating the AT90S1200...6-2 AVR Emulator Chip Errata ................6-2 Troubleshooting ..................6-3 6.3.1 Feedback and Support ...............6-3 Contact Information...................6-3 AVR ICE 200 User Guide...
  • Page 5: Preface - Read This First

    Manual emulator. The AVR ICE 200 User Guide is an easy introduction on how to use the ICE 200, and a detailed reference for advanced users. Throughout the manual, many refer- ences to the AVR microcontrollers are made in short form, i.e. AT90S2313 is referred to as S2313 and so on.
  • Page 6 Preface – Read this First AVR ICE 200 User Guide...
  • Page 7: Introduction

    Introduction The ICE 200 in-circuit emulator provides an easy way of debugging embedded systems that utilizes the Atmel AVR microcontroller. It emulates 11 different devices of the AVR and the Tiny AVR families. The philosophy of the ICE 200 is to provide an easy-to-use debugging platform, with a minimum of differences between the emulator and the actual processor it is emulating.
  • Page 8: Ice 200 Features

    AT90S4414/8515 (40-pin DIP) AT90S4434/8535 (40-pin DIP) 9-pin RS232C Cable Atmel CD ROM containing: AVR data books Application notes AVR Studio AVR Assembler ICE 200 User Guide (this document) Power Cable Diagnostic Adapter for Test Purposes AVR ICE 200 User Guide...
  • Page 9: System Requirements

    16650 Compatible Serial Port (COM port) 2.3.2 Software The following operating systems are currently supported by AVR Studio: Requirements AVR Studio v2.00 or later installed. See the Atmel web site (www.atmel.com) for latest version. Microsoft Windows NT 3.51 Microsoft Windows NT 4.0 Microsoft Windows 95...
  • Page 10 Introduction AVR ICE 200 User Guide...
  • Page 11: General Description

    Figure 3-1. ICE 200 – Simplified Block Diagram Main Board (5.0V) Power Program Memory Supply (AT90EM04) Control and Communication Host PC Logic Personality Adapter Target MCU Socket Target Clock Power (or XTAL or Supply Resonator) Target Board (2.7 - 5.5V) AVR ICE 200 User Guide...
  • Page 12 Due to this feature, a strict power-up sequence is not required. Figure 3-2. ICE 200 – Main Board AVR ICE 200 User Guide...
  • Page 13 Pod. The actual appearance of the FPC may differ from the figure. Figure 3-3. ICE 200 – FPC NOTICE! The Flexible Printed Cable must not be folded. NOTICE! Do not disassemble the Flexible Printed Cable from the pod or ICE 200 main board. AVR ICE 200 User Guide...
  • Page 14 The pod (Figure 3-4) contains the AVR emulator chip. Note that the AVR emulator chip must be supplied with power and a clock source, i.e. a crystal, resonator, oscillator or any other clock generator, from the target. Figure 3-4. The ICE 200 Pod AVR ICE 200 User Guide...
  • Page 15 The adapters include an identification code that AVR Studio uses for automatic device type detection. The ICE 200 kit contains five different personality adapters for dual-in-line package devices. Figure 3-5. The ICE 200 – Personality Adapter for the AT90S8535 – ATadap3100 AVR ICE 200 User Guide...
  • Page 16 General Description AVR ICE 200 User Guide...
  • Page 17: Using The Ice 200

    (RESET pin input Voltage) RESET Note: When V < 2.4V, the AVR emulator chip is reset and the program memory disconnected. The ICE 200 does not support +12V RESET pin voltage that is used for parallel programming. AVR ICE 200 User Guide...
  • Page 18: Clock Driver Requirements

    4 MHz (AT90S4433/2333) 32.768 kHz 4 MHz (AT90S8515/4414) 32.768 kHz 4 MHz (AT90S8535/4434) 32.768 kHz 4 MHz NOTICE! Using the ICE 200 outside the recommended operating conditions will cause incorrect operation and can damage the emulator. AVR ICE 200 User Guide...
  • Page 19: Personality Adapters

    If you are utilizing surface mount device (SMD) versions of the supported AVR micro- controllers, you need to obtain an SMD adapter that converts from DIP to the appropriate socket. Figure 4-1. Personality Adapter for ATtiny12 – ATadap3400 AVR ICE 200 User Guide...
  • Page 20 Using the ICE 200 Figure 4-2. Personality Adapter for AT90S2313 – ATadap3300 Figure 4-3. Personality Adapter for AT90S4433/2333 – ATadap3200 AVR ICE 200 User Guide...
  • Page 21 Using the ICE 200 Figure 4-4. Personality Adapter for AT90S8515/4414 – ATadap3000 Figure 4-5. Personality Adapter for AT90S8535/4434 – ATadap3100 NOTICE! Do not change personality adapter without turning power-off on both the emulator and the target. AVR ICE 200 User Guide...
  • Page 22: Special Tiny12 Personality Adapter Settings

    Resistor Setting XTAL2 XTAL2 XTAL2 XTAL2 The personality adapter board has four additional resistors. These are used as identifi- cation codes for the automatic configuration and for production test purposes. Do not remove these resistors! AVR ICE 200 User Guide...
  • Page 23: Connecting To The Target Application

    2. Start inserting a personality adapter (see Figure 4-7). Make sure that pin 1 on the personality adapter corresponds with pin 1 on the target socket. Figure 4-7. Inserting a Personality Adapter into the Target Hardware AVR ICE 200 User Guide...
  • Page 24 5. Connect the ICE 200 to the host PC. Use the 9-pin RS232C cable that is shipped with the ICE 200. Connect the male cable connector to the ICE 200 and the female cable connector to the host. Figure 4-10. Connecting the ICE 200 to a Host PC AVR ICE 200 User Guide...
  • Page 25: Checklist

    Checklist Turn-off power on all units. Insert personality adapter. Pins on adapter agree with pins on target. Mount pod. Mount FPC (first time only, do not disassemble). Connect RS232C cable. Turn-on power on all units. AVR ICE 200 User Guide...
  • Page 26: Configuration

    4. Press the OK button. 5. The ICE 200 is now ready for use! Tip! To change configuration for the current project, select the Option – Emulator Options menu. 4-10 AVR ICE 200 User Guide...
  • Page 27: Checklist

    One example is when the timer is used in PWM mode. Stopping the timer in this case might damage the equipment that is being controlled by the PWM output. Note that eventual timer interrupts will not be handled before execution is resumed. AVR ICE 200 User Guide 4-11...
  • Page 28: Reset Pin Setting (Attiny12 Only)

    When this option is not selected, PB5 functions as an input pin. The device is then only reset at power-on or when giving a reset command from AVR Studio. Refer to the ATtiny12 datasheet for more information. 4-12 AVR ICE 200 User Guide...
  • Page 29: Special Considerations

    +12V input voltage on the RESET pin which is used for enabling the parallel programming on standard parts. After a power-up, the reset is forced active while configuring the AVR emulator chip, introducing a 1 - 10 ms delay. AVR ICE 200 User Guide...
  • Page 30: Sleep Instruction

    (labelled done in the example above), instead of doing single-step- ping. Or use the following macro (for AVR assembler only). MACRO: .macro disableWDT ( cli ) r16, (1<<WDTTOE)+(1<<WDE) WDTCR, r16 r16, (0<<WDE) WDTCR, r16 ( sei ) .endmacro USAGE: disableWDT AVR ICE 200 User Guide...
  • Page 31: Eeprom

    Clearly this is not a real problem, but it is important to be aware of the effects of the two cases described above. If not, an incorrect program might seem to work in the emulator, but will not work in the real chip. AVR ICE 200 User Guide...
  • Page 32: 16-Bit I/O Access (Timer 1 And A/D Converter)

    Reading the UART Data Register cleans the RXC bit in the UART Control Register. Hence, the monitor program does not attempt to read the UART Data Register. There- Register fore, the value displayed by AVR Studio for this register does not reflect the real value of this register. AVR ICE 200 User Guide...
  • Page 33: Appendix

    (AVR Assembler example) .include "1200def.inc" .org rjmp RESET_Handler .org INT0addr rjmp INT0_Handler .org OVF0addr rjmp OVF0_Handler .org ACIaddr rjmp ACI_Handler ... ( program code starts here ) AVR ICE 200 User Guide...
  • Page 34: Using The Attiny12 Adapter For Emulating The Attiny10/11

    AT90S1200 code if the EEPROM is used. Include the AT90S2313 file when emulating AT90S1200 to get the interrupts placed on the right locations, see Section 6.1.1. AVR Emulator Latest errata is found on the Atmel web site: www.atmel.com. Chip Errata AVR ICE 200 User Guide...
  • Page 35: Troubleshooting

    General suggestions for additions and improvements are also welcome Contact For technical support, please contact your distributor, Atmel sales representative or local Atmel sales office. Atmel sales offices and distributors are listed in the AVR Information Databook and on the Atmel web site: www.atmel.com.
  • Page 36 Appendix AVR ICE 200 User Guide...
  • Page 37 Appendix AVR ICE 200 User Guide...
  • Page 38 Appendix AVR ICE 200 User Guide...
  • Page 40 No licenses to patents or other intellectual prop- erty 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.

Table of Contents