AVR Development Tools

Shenzhen – April 2005

© Norway 2005 AVR Development Tools

Only one chain of tools is required... www.atmel.com Shenzhen – April 2005 1 AVR Studio

• Integrated Development Environment for AVR • Includes Atmel Macro Assembler • Front End for Atmel Starter Kits, Programmers, and Emulators • C and Assembly Source Level Debugging • Supports Third Party Compilers • Maintains Project Information • Available for free from http://www.atmel.com

www.atmel.com Shenzhen – April 2005 2 AVR Studio

ONLINE HELP FILES * ICE50 * ICE40 * JTAGICE mkII * JTAG ICE * AVRISP * STK500 DISASSEMBLER VIEW * STK501 * STK502 View mixed C and assembly code during debugging

•AVR Assembler integrated •Trace supporting ICE50

I/O VIEW SOURCE FILE EDITOR View details on Assembly and ‘C’ Core and Peripherals Statement Highlighting WATCH VIEW View variables and structs

www.atmel.com Shenzhen – April 2005 3 JTAGICE mkII for On-Chip Debugging

• Real-time emulation in actual silicon • Debug the real device at the target board • Talks directly to the device through 4(5)-pin JTAG or 1pin debugWIRE interface • Debugging access to: • All internal peripheral units • Internal and external RAM • The internal register file • Program counter • EEPROM and Flash Memories • Full execution control • Single step, run, etc. • Unlimited number of breakpoints • Supported by AVR Studio www.atmel.com Shenzhen – April 2005 4 JTAGICE mkII Additional Features

• In-System Programming via JTAG • High Speed: Comparable to Parallel Programming • Example: ATmega16: 16kB Flash (write and verify approx 5sek) • Full Support for LockBits and Fuses • Only 4(5) lines required (Uses the JTAG Lines) • Front-end software integrated in AVR Studio • DOS command line front-end • Firmware upgradeable from AVR Studio • Auto detect old firmware • Free

www.atmel.com Shenzhen – April 2005 5 JTAGICE mkII for debugWIRE Debugging

• Communication speed auto detection • No manual clock settings by user • System clock not affected by debugWIRE • OSCCAL can be changed during debugging

• Limited ISP support via SPI interface • DWEN fuse enabling via ISP • Chip erase via ISP

• DWEN disabling via debugWIRE • Disable debugWIRE from AVR Studio

www.atmel.com Shenzhen – April 2005 6 Connecting debugWIRE to an Application

• Recommended connector is 6pin ISP header • Includes ISP communication pins, Vcc, GND and Reset • Ensures all required ISP and debugWIRE pins on the same header • Fit standard ISP programmers

• JTAGICE mkII SCK, MISO and MOSI are high impedance when running debugWIRE • No disconnect of ISP pins are required while debugging MISO VTG

SCK MOSI

RST GND

ISP6PIN www.atmel.com Shenzhen – April 2005 7 ICE50 Emulator

• AVR Studio as front-end • Emulates all peripherals, both digital and analog • Supports all instructions and peripherals real-time • Jumperless Design • All configuration done from AVR Studio • Unlimited Number of Breakpoints • Trace • Profiling • Source Level Debugging

• Supports all new MegaAVR and TinyAVR Products www.atmel.com Shenzhen – April 2005 8 AVR STK500 Starter Kit

• Integrated ISP and Parallel programmer for all AVRs • Early support for new devices • Supports all AVR devices up to 40 pin onboard • Interfaces with AVR Studio • Firmware upgradeable • Software selectable voltage and frequency • Push Buttons, LEDs & RS232 • 6 and 10 pin ISP output • In-System Programming • Onboard oscillator

www.atmel.com Shenzhen – April 2005 9 STK500 Features

• Software selectable Voltage and Frequency • 6 and 10 pin ISP output for In-System Programming • Command-line interface for production programming • Expansion Headers for Plug-In modules and Prototyping Area • Additional RS-232 Port For General Use • Onboard Oscillator • X-tal oscillator • SW adjustable oscillator • Firmware upgradeable from AVR Studio • LEDs and Switches • In-System Calibration of AVR’s internal RC oscillator • Only 4 lines required (Uses the ISP Lines) • AVR053: Calibration of the internal RC oscillator www.atmel.com Shenzhen – April 2005 10 STK501 Top Module

• STK500 top module • ATmega64 / ATmega128 / AT90CANm128 • ZIF socket and PCB footprint for 64pin TQFP • ( Footprint fitting ICE50 adapter ) • JTAG connector • Onboard 32kHz oscillator • Additional RS-232C port • Footprint for 128K XRAM • Address latch included

www.atmel.com Shenzhen – April 2005 11 STK502 Top Module

• STK500 expansion module for ATmega169 • ZIF socket and PCB footprint for ATmega169 • ( Footprint fitting ICE50 adapter ) • Onboard 32KHz oscillator • Onboard LCD Glass • Onboard temperature sensor

• AVR065: LCD Driver for the STK502 • AVR064: STK502 - A Temperature Monitoring System with LCD Output www.atmel.com Shenzhen – April 2005 12 STK503 Overview

• Supports all upcoming 100 pin devices

• Same feature set as STK501 • Pin-out for external SRAM • 2 additional RS232 channels • ZIF socket • Onboard 32kHz crystal

www.atmel.com Shenzhen – April 2005 13 STK504 Overview

• Expansion Module for 100-pin LCD parts • ATmegaxx90 • Onboard 32 kHz Oscillator • Supports all Programming modes • Display Driver for STK504 available for download • Versatile LCD display • ZIF Socket

www.atmel.com Shenzhen – April 2005 14 ATDVK90CAN1- CAN Development Board

• Development Board for AVR with CAN interface • AT90CAN128 • CAN port with RxCAN and TxCAN LEDs • LIN port with RxLIN and TxLIN LEDs • AVR Studio® software interface • ISP and JTAG connectors • Dual RS-232C interface • SPI and TWI port • Available in Q205

www.atmel.com Shenzhen – April 2005 15 ATADAPCAN01 - CAN Extension Adapter

• CAN add-on extension to STK500/STK501 • CAN driver adapter for ATmega128CAN11’s CAN interface • CAN transceivers, termination options, ++ • Footprint for second transceiver on PCB • All the electrical features necessary to seamlessly connect the AT90CAN128 to a CAN bus • AT90CAN128’s CAN controller support BOSCH GmbH’s Controller Area Network (CAN) specification

www.atmel.com Shenzhen – April 2005 16 AVRISP for Low Cost In System Programming

• Supports All In-System Programmable Devices • Front-end software integrated in AVR Studio • Windows and DOS command line front-end • Firmware upgradeable from AVR Studio • 6 and 10 pin programming header • Support 2.7V to 5.5V target voltage • In-System Calibration of • AVR’s internal RC oscillator • Only 4 lines required (Uses the ISP Lines) • AVR053: Calibration of the internal RC oscillator

www.atmel.com Shenzhen – April 2005 17 AVR Butterfly

• Complete reference design based on ATmega169 • Focus on Low Power • Includes: • UART, USI, SPI communication • Boot loader, JTAG, ISP and Parallel Programming interfaces • Light & temp sensors • Graphics, LCD • Sound, Piezo element • Control, Joystick

• Supplied with source code • Encourage SW dev. • Demonstration tool • Development tool • Control module • Gadget ☺ www.atmel.com Shenzhen – April 2005 18 AVR Application Notes

• Released News • AVR001: Conditional Assembly and portability macros • AVR053: Calibration of the internal RC oscillator • AVR054: Run-time calibration of the internal RC oscillator • AVR068: STK500 Communication Protocol • AVR097: Migration between ATmega128 and ATmega2561 • AVR098: Migration between ATmega169 and ATmega329 • AVR151: Setup and use of the SPI • AVR230: DES Bootloader • AVR310: Using the USI module as a I2C master • AVR311: Using the TWI module as I2C slave • AVR312: Using the USI module as a I2C slave • AVR315: Using the TWI module as I2C master • AVR317: Using the USART on the ATmega48/88/168 as a SPI master • AVR318: Dallas 1-Wire® master • AVR319: Using the USI module for SPI communication • AVR336: ADPCM Decoder • AVR502: Migration between ATmega165 and ATmega325 • ++

• Application notes for AVR are available from www.atmel.com • > 90 application notes

www.atmel.com Shenzhen – April 2005 19 News - AVR001, AVR315 and AVR317

• AVR001: Conditional Assembly and portability macros • This application note describes the Conditional Assembly feature present in the AVR Assembler version 1.74 and later. Examples of how to use Conditional Assembly are included to illustrate the syntax and concept. • AVR315: Using the TWI module as I2C master • This Application Note describes a TWI master implementation, in form of a fullfeatured driver and an example of usage for this driver. • AVR317: Using the USART on the ATmega48/88/168 as a SPI master • Some applications might need more than one SPI module. This can be achieved using the new Master SPI Mode of the ATmega48/88/168 USART.

www.atmel.com Shenzhen – April 2005 20 3rd Party Vendors

• Compilers • 16+ companies (22+ products) • C BASIC C++ PASCAL FORTH • Programmers • 35+ companies (53+ products) • Real Time Operating Systems • 8+ companies (10+ products) • Adapters • 5+ companies • Emulator, Programming, Prototype and Logic Analyzer Adapters

www.atmel.com Shenzhen – April 2005 21 AVR Compilers

• Third Parties Provide a Full-Scale of ‘C’ Compilers • Low Cost to High End Compilers • High End Compilers • IAR Embedded WorkBench AVR for AT90S and megaAVR • Low Cost Compilers • ImageCraft • ICCV7 for AT90S and megaAVR • ICCtiny for AVR devices with no on-chip SRAM • CodeVisionAVR for AT90S and megaAVR • Rowley • Crossworks for megaAVR • Freeware • GNU AVR-GCC for tinyAVR, AT90S, and megaAVR

www.atmel.com Shenzhen – April 2005 22 IAR EWAVR Kick Start Edition

• Free evaluation version • Limited to 4kB code • No time limit • Available on AVR Technical Library CD • C-Spy • Full part support • Same as full version • AVR Studio • UBROF-format

www.atmel.com Shenzhen – April 2005 23 CrossWorks - New AVR Compiler

• Rowley Associates (UK) www.rowley.co.uk • Integrated development environment platform • Cross-Compiler and debug targets “plugs in” • Faster timer to market • Currently supports Windows platforms • Linux x86 available soon, Mac OS X + Solaris (SPARC) planned

www.atmel.com Shenzhen – April 2005 24 CrossWorks AVR at a glance

• An integrated tools suite for AVR development • Source editor, project and symbol browser • C-compiler with linker and code optimizer • Pre- and post linker stage • • Debugging targets • Simulator • JTAGICE mkI and mkII • Proprietary object format • ELF/DWARF support expected in 2005 • Required for AVR Studio support • EURO 712 (USD 910)

www.atmel.com Shenzhen – April 2005 25 Highlights/Lowlights

• Very efficent Compiler • Lots of options • Up to 39% smaller code size • High getting started than IAR 3.20C threshold • ~39% on 3DES • May seem like overkill for decode/encode simple projects • Practical symbol browser • Debugger has poor • Linked objects overview interface • Source navigator • Compared to AVR Studio

www.atmel.com Shenzhen – April 2005 26 Zigbee: 3rd Party Ember Developer Kit

• Hardware • 12 carrier boards and 12 EM2420 modules • IAR full-function compiler seat (dongle license) • Power-over-Ethernet injector • Embedded Software [EmberNet 3.3.1 and EmberZNet 1.0] • EmberNet Stack FFD & RFD library • EmberNet low level I/O source code and radio test software • Rangetest low-level Gateway application • Sample sensor and template applications

• PC Software • Documentation • EmberStudio GUI • Gateway PC-side source code and • One Training Seat (2-day course) library • EmberPeek [beta] Java back-end to • 60 Days Support EmberStudio www.atmel.com Shenzhen – April 2005 27 Zigbee: 3rd Party Ember Developer Kit

• Full-featured Development Kits for Rapid prototyping • Ethernet back-channel • Sample applications

Ping Traceroute

www.atmel.com Shenzhen – April 2005 28 Need Help?

• www.atmel.com/avr • Selection Guides, Flyers, Datasheets, Application Notes, FAQ, and Errata Sheets • 3rd party web sites like www.AVRfreaks.net • Atmel and Third Party Tools • AVR Experts Discussion Forum • Software, User Guides and Links • Design Notes and Reference Designs • Consultants, Distributors and Atmel Representatives • [email protected] • Customer Technical Support

www.atmel.com Shenzhen – April 2005 29 AVR Development Tools

• For more information about Atmel, AVR and AVR Development Tools : • www.atmel.com • www.AVRfreaks.net • [email protected]

www.atmel.com Shenzhen – April 2005 30