8-Bit FLASH Microcontroller
Total Page:16
File Type:pdf, Size:1020Kb
AVR Development Tools Shenzhen – April 2005 © Atmel 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