background image

ICE 200

.............................................................................

User Guide

Содержание AVR ICE 200

Страница 1: ...ICE 200 User Guide ...

Страница 2: ......

Страница 3: ... Hardware Requirements 2 3 2 3 2 Software Requirements 2 3 2 3 3 Operating Conditions 2 3 2 3 4 Host Interface 2 3 Section 3 General Description 3 1 Section 4 Using the ICE 200 4 1 4 1 Target Hardware Requirements 4 1 4 2 Power and Signal Operating Conditions 4 1 4 3 Clock Driver Requirements 4 2 4 4 Personality Adapters 4 3 4 5 Special Tiny12 Personality Adapter Settings 4 6 4 6 Connecting to the...

Страница 4: ...External RESET 5 1 5 2 SLEEP Instruction 5 2 5 3 Watchdog Timer WDT 5 2 5 4 EEPROM 5 3 5 5 I O Port Access 5 3 5 6 16 bit I O Access Timer 1 and A D Converter 5 4 5 7 UART Data Register 5 4 Section 6 Appendix 6 1 6 1 Emulating AT90S1200 and ATtiny10 11 6 1 6 1 1 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 Emul...

Страница 5: ... Some sections contain useful tips for using the ICE 200 All the tips are emphasized as shown in the example below Tip This is a tip 1 4 Checklists When the detailed descriptions in the Connecting to the Target Application and in the Configuration sections have been used and you are beginning to feel comfortable with the use of the ICE 200 you can use the checklists at the end of these sections fo...

Страница 6: ...Preface Read this First 1 2 AVR ICE 200 User Guide ...

Страница 7: ...ol ogy as the microcontroller it is emulating This provides identical electrical characteristics On board debugging resources ensure non intrusive software emula tion The ICE 200 hardware also includes an automatic configuration system that makes the process of connecting the target to the emulator an easy task Figure 2 1 The ICE 200 Components When used with the AVR Studio debugging environment t...

Страница 8: ...pping Code Utilizes the AVR Studio Debugging Environment that adds Full Run Time Control run break trace into step over step out run to cursor reset autostep and multistep Unlimited Number of Breakpoints Symbolic Debugging Support Full Visibility of and Access to register File SP PC and Memories Access to all I O Registers See Section 5 Special Considerations Auto Log Points Non real Time Logging ...

Страница 9: ... See the Atmel web site www atmel com for latest version Microsoft Windows NT 3 51 Microsoft Windows NT 4 0 Microsoft Windows 95 Microsoft Windows 98 Note AVR Studio will be updated to execute new versions of these operating systems See AVR Studio User Guide for latest information 2 3 3 Operating Conditions Operation Temperature 0 C 70 C Operating Humidity 10 90 RH non condensing Supply Voltage 9 ...

Страница 10: ...Introduction 2 4 AVR ICE 200 User Guide ...

Страница 11: ...et board the application Power supplies and a host PC are also shown Figure 3 1 ICE 200 Simplified Block Diagram Power Supply Host PC Main Board 5 0V Program Memory Control and Communication Logic Level Converters POD AT90EM04 Personality Adapter Target MCU Socket Target Clock or XTAL or Resonator Target Board 2 7 5 5V Power Supply FPC ...

Страница 12: ...also contains logic for communicating with the host PC and the breakpoint logic The level converters allow the target to operate at a different supply voltage from that of the emulator The level converters also protect the emulator and the target from being damaged if only one of them is powered Due to this feature a strict power up sequence is not required Figure 3 2 ICE 200 Main Board ...

Страница 13: ...le Figure 3 3 connects the main board to the ICE 200 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 ...

Страница 14: ... Guide 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 ...

Страница 15: ...00 Pod to each microcontroller it supports 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 ...

Страница 16: ...General Description 3 6 AVR ICE 200 User Guide ...

Страница 17: ...ICE 200 can not function unless these conditions are met Note that the emulator also supports the internal RC oscillator option to the Tiny12 device Tip You can use an AVR development board ATMCU00100 or ATSTK200 for using the ICE 200 as a standalone emulator platform Please follow the recommended operating conditions listed in the next two sections These conditions also apply for the standard AVR...

Страница 18: ...d operating conditions will cause incorrect operation and can damage the emulator Table 4 2 Recommended Operating Conditions Clock Drive 4 0V to 5 5V TA 0 C to 70 C VCC 4 0V to 5 5V GND 0V Symbol Min Max fosc ATtiny12 32 768 kHz 8 MHz fosc AT90S2313 32 768 kHz 10 MHz fosc AT90S4433 2333 32 768 kHz 10 MHZ fosc AT90S8515 4414 32 768 kHz 8 MHz fosc AT90S8535 4434 32 768 kHz 8 MHz Table 4 3 Recommende...

Страница 19: ...risk of breaking pins on the adapter thus extending adapter lifetime Tip You can mount additional DIP sockets to the adapter to increase the space between the adapter and the target However the number of extra sockets should be kept at a minimum 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 ...

Страница 20: ...Using the ICE 200 4 4 AVR ICE 200 User Guide Figure 4 2 Personality Adapter for AT90S2313 ATadap3300 Figure 4 3 Personality Adapter for AT90S4433 2333 ATadap3200 ...

Страница 21: ... Guide 4 5 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 ...

Страница 22: ...d clock configuration Select the resistor setting based on the table below Default factory resistor setting is internal RC oscillator Figure 4 6 Settings of Resistors on ATadap3400 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 XTAL1 XTAL2 XTAL1 PB4 XT...

Страница 23: ...the target application make sure that the ICE 200 and the target application are not powered This also applies when the ICE 200 is removed from the target When connecting or disconnecting the ICE 200 from the host PC make sure that neither the ICE 200 nor the target application is powered 2 Start inserting a personality adapter see Figure 4 7 Make sure that pin 1 on the personality adapter corresp...

Страница 24: ...d and the Main Board 4 Mount the pod onto the personality adapter as shown in Figure 4 9 Do not use force since the pod only fits one way into the personality adapter Figure 4 9 Mounting the pod onto the Personality Adapter 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 ...

Страница 25: ...ry eliminator is a good alternative to the laboratory power supply shown on the figure Figure 4 11 Connecting Power Supply to ICE 200 8 Enable the target power supply The red LED will now be lit telling that power is present but no connection to the host PC has been established The hardware is now ready for use Use the checklist below to ensure that the setup was done correctly and then proceed to...

Страница 26: ...R Studio as described in previous section 2 Open the object file If the file is opened in AVR Studio for the first time the Emulator Options Window automatically appears see Figure 4 12 The red LED will now be turned off and the green will be turned on if it is not already on indi cating that the connection between the ICE 200 and the host PC is established Figure 4 12 ICE 200 Configuration Dialog...

Страница 27: ...chip When selecting a specific device enter the emulator options menu and select the device from the device list 4 9 2 Clock Selection Settings Many AVR microcontrollers have fuse bits for selecting the reset delay time The reset delay is necessary for the clock oscillator to stabilize The time it takes for the oscillator to stabilize depends on the crystal or the resonator If an external clock so...

Страница 28: ...0 will restore the contents of the buffer to the SRAM before starting code execution Figure 4 13 EEPROM Snapshot Button 4 9 5 Communication Speed Setting The default communication speed between AVR Studio and the ICE 200 is 19200 bps If the option 115200 bps Communication is selected the communication speed is changed to 115200 bps Some systems cannot handle this speed so if AVR Studio looses cont...

Страница 29: ... 200 main board has to be able to control the reset pin on the AVR emulator chip An external reset source must therefore go via the control logic as shown on Figure 5 1 This is handled automatically by the pod and main board Figure 5 1 ICE 200 External RESET Circuit The main board is working with 5V supply and the pod uses the target voltage Therefore a level converter is inserted between the two ...

Страница 30: ...xact timing of the WDT behavior while doing single stepping or when stopping the program execu tion is therefore not supported by the ICE 200 Disabling WDT is secured by the WDTTOE WDT turn off enable bit Following is an assembly program example that shows a WDT disable sequence disableWDT cli only needed if any interrupts are in use ldi r16 1 WDTTOE 1 WDE Set the WDT turn off enable bit and the W...

Страница 31: ...adback ldi r16 0xFF Set all pins as output out DDRx r16 out PORTx r16 Set the PORTx values in r16 PINx Read the PINx values in r17 PINx Read the PINx values When running this example program at full speed in the ICE 200 or in a real chip the value read back in r16 will not end up being the value written at the first line but will contain the value the port pins had the cycle before the port was wr...

Страница 32: ... bit access problem when using symbolic debugging MACROS macro outw cli out 2 0 out 2 1 1 sei endmacro macro inw cli in 2 0 1 in 1 0 sei endmacro USAGE inw r17 r16 TCNT1H Reads the counter value outw TCNT1H r17 r16 Writes the counter value When using symbolic debugging in C the entire C line is executed for each set There fore the 16 bit read or write problem will not occur in this situation 5 7 U...

Страница 33: ...include 1200def inc Then when writing a value to a I O register use the following notation AVR Assembler example ldi r16 1 DDD1 1 DDD4 Set port D pin 1 and 4 as output and the rest as input out DDRD r16 Note the use of the bit definitions DDD1 and DDD4 are pin definitions in form of bit position and therefore they must be shifted this number of bits to the left to make a correct mask Interrupt vec...

Страница 34: ...ctions ld st lds sts ldd std lpm 16 bit Arithmetic Instructions adiw sbiw INT1 Timer Counter 1 and Input Capture Stack Pointer to SRAM AT90S1200 has a 3 level hardware stack Avoiding the use of these features and using only half the program and EEPROM memories allows the AT90S2313 to be used when emulating AT90S1200 IMPORTANT Since the AT90S2313 uses a stack pointer this has to be initialized The ...

Страница 35: ...mount of memory etc A small stand alone sample of code which reproduces the problem A clear explanation of what you expected to happen and what actually happened The commands or menu selections you used Sample output illustrating the problem The information shown in the About dialog box in AVR Studio version numbers The emulated device Documentation The manual title and revision The page number s ...

Страница 36: ...Appendix 6 4 AVR ICE 200 User Guide ...

Страница 37: ...Appendix AVR ICE 200 User Guide 6 5 ...

Страница 38: ...Appendix 6 6 AVR ICE 200 User Guide ...

Страница 39: ......

Страница 40: ...l U K Ltd Coliseum Business Centre Riverside Way Camberley Surrey GU15 3YL England TEL 44 1276 686 677 FAX 44 1276 686 697 Asia Atmel Asia Ltd Room 1219 Chinachem Golden Plaza 77 Mody Road Tsimhatsui East Kowloon Hong Kong TEL 852 2721 9778 FAX 852 2722 1369 Japan Atmel Japan K K 9F Tonetsu Shinkawa Bldg 1 24 8 Shinkawa Chuo ku Tokyo 104 0033 Japan TEL 81 3 3523 3551 FAX 81 3 3523 7581 Atmel Color...

Отзывы: