Microcontrollers Introduction

Total Page:16

File Type:pdf, Size:1020Kb

Microcontrollers Introduction EE 308: Microcontrollers Introduction Aly El-Osery Electrical Engineering Department New Mexico Institute of Mining and Technology Socorro, New Mexico, USA January 17, 2019 Overview Choosing a Microcontroller Microcontroller Architectures AVR Microcontroller Atmega1284 Assembly vs C Toolchain Aly El-Osery (NMT) EE 308: Microcontrollers January 17, 2019 1 / 25 What are microcontrollers? A microcontroller is a processor with memory and several other components integrated on a a single chip making it perfect for a variety of applications covering a wide range, e.g., coffee machines, automotive industry, communications, defense systems, satellites, etc. Overview Choosing a Microcontroller Microcontroller Architectures AVR Microcontroller Atmega1284 Assembly vs C Toolchain Aly El-Osery (NMT) EE 308: Microcontrollers January 17, 2019 2 / 25 Differences between microcontrollers and microprocessor Microcontroller Microprocessor EEPROM/ Timer/ CPU SRAM Flash Counter EEPROM/ Timer/ CPU SRAM Flash Counter Digital I/O Serial Other Serial Digital I/O ADC ADC module interface peripherals General Purpose interface module Microprocessor Microcontroller Contains a processor Processor is standalone, memory and I/O Has memory and I/O modules integrated on modules are seperate the same chip Designer can choose components for memory Compact and I/O Cheap High processing power Small power consumption General purpose Overview Choosing a Microcontroller Microcontroller Architectures AVR Microcontroller Atmega1284 Assembly vs C Toolchain Aly El-Osery (NMT) EE 308: Microcontrollers January 17, 2019 3 / 25 Variety of microcontroller manufacturers 68HC11/12 — Freescale Semiconductors’s (Formerly Motorola) 8051 — Intel AVR — Atmel Z8 — Zilog PIC — Microchip Overview Choosing a Microcontroller Microcontroller Architectures AVR Microcontroller Atmega1284 Assembly vs C Toolchain Aly El-Osery (NMT) EE 308: Microcontrollers January 17, 2019 4 / 25 Evaluation boards BigAVR6 Dragon12 Plus ATtiny85 Zilog Overview Choosing a Microcontroller Microcontroller Architectures AVR Microcontroller Atmega1284 Assembly vs C Toolchain Aly El-Osery (NMT) EE 308: Microcontrollers January 17, 2019 5 / 25 Embedded systems Control unit performed by a microcontroller is integrated into the system. Overview Choosing a Microcontroller Microcontroller Architectures AVR Microcontroller Atmega1284 Assembly vs C Toolchain Aly El-Osery (NMT) EE 308: Microcontrollers January 17, 2019 6 / 25 Mechatronics Integration for mechanical systems with electronics and information processing. Overview Choosing a Microcontroller Microcontroller Architectures AVR Microcontroller Atmega1284 Assembly vs C Toolchain Aly El-Osery (NMT) EE 308: Microcontrollers January 17, 2019 7 / 25 Factors to consider Capability of meeting the specification of the task at hand Speed Packaging Power consumption Amount of memory Number of I/O pins Upgradability Cost Development tools Availability Overview Choosing a Microcontroller Microcontroller Architectures AVR Microcontroller Atmega1284 Assembly vs C Toolchain Aly El-Osery (NMT) EE 308: Microcontrollers January 17, 2019 8 / 25 CISC vs RISC Complex Instruction Set Computer (CISC) Larger architecture Variable code size Powerful instruction set Requires several clock cycles to execute instructions Reduced Instruction Set Computer (RISC) Simple architecture Small set of instructions One or few clock cycles to execute instructions Overview Choosing a Microcontroller Microcontroller Architectures AVR Microcontroller Atmega1284 Assembly vs C Toolchain Aly El-Osery (NMT) EE 308: Microcontrollers January 17, 2019 9 / 25 Von Neumann vs Harvard Von Neumann Harvard Code Data data bus data bus memory memory Code Data data bus CPU memory control bus control bus memory address bus CPU control bus address bus address bus Harvard architecture Von Neumann architecture Separate buses for accessing code and Code and data are accessed through the data same bus Faster Results in a bottle neck since we can’t Less delays access code and data at the same time Requires more hardware More delays Overview Choosing a Microcontroller Microcontroller Architectures AVR Microcontroller Atmega1284 Assembly vs C Toolchain Aly El-Osery (NMT) EE 308: Microcontrollers January 17, 2019 10 / 25 AVR Core RISC with Harvard architecture Code ROM Data RAM Data EEPROM Timers I/O ports ADC PWM Communication interfaces: USART, SPI, I2C (TWI), CAN, USB Overview Choosing a Microcontroller Microcontroller Architectures AVR Microcontroller Atmega1284 Assembly vs C Toolchain Aly El-Osery (NMT) EE 308: Microcontrollers January 17, 2019 11 / 25 Atmega1284 RISC architecture 131 instructions (most executes in single clock cycle) 128K bytes code ROM 4K bytes EEPROM 16K bytes SRAM JTAG Timers/counters, PWM, 8-channel 10bit ADC Watchdog timer USART, SPI, I2C Overview Choosing a Microcontroller Microcontroller Architectures AVR Microcontroller Atmega1284 Assembly vs C Toolchain Aly El-Osery (NMT) EE 308: Microcontrollers January 17, 2019 12 / 25 Atmega1284 PDIP Package This will be the chip used through out the semester. Overview Choosing a Microcontroller Microcontroller Architectures AVR Microcontroller Atmega1284 Assembly vs C Toolchain Aly El-Osery (NMT) EE 308: Microcontrollers January 17, 2019 13 / 25 Reasons for using assembly More efficient use of computing power and memory Closer to the hardware If mass production is the goal, then there will be money saving by going to smaller cheaper parts Overview Choosing a Microcontroller Microcontroller Architectures AVR Microcontroller Atmega1284 Assembly vs C Toolchain Aly El-Osery (NMT) EE 308: Microcontrollers January 17, 2019 14 / 25 Assembly language Assembly language consists of, instructions referred to as mnemonics, directives and labels. .INCLUDE "M1284DEF.INC" LDI R16, hi8(RAMEND) OUT SPH, R16 LDI R16, lo8(RAMEND) 5 OUT SPL, R16 ;initialize stack pointer SBIDDRC, 0 ;set bit0 of DDRC HERE: SBIPORTC, 0 10 CALLDELAY ;call DELAY subroutine CBIPORTC, 0 CALLDELAY RJMPHERE 15 DELAY: LDI R20, 255 DL1 :DEC R20 BRNE DL1 RET Overview Choosing a Microcontroller Microcontroller Architectures AVR Microcontroller Atmega1284 Assembly vs C Toolchain Aly El-Osery (NMT) EE 308: Microcontrollers January 17, 2019 15 / 25 Assembly language Assembly language consists of, instructions referred to as mnemonics, directives and labels. .INCLUDE "M1284DEF.INC" Directive LDI R16, hi8(RAMEND) OUT SPH, R16 LDI R16, lo8(RAMEND) 5 OUT SPL, R16 ;initialize stack pointer SBIDDRC, 0 ;set bit0 of DDRC HERE: Label SBIPORTC, 0 10 CALLDELAY ;call DELAY subroutine CBIPORTC, 0 CALLDELAY RJMPHERE Comment 15 DELAY: LDI R20, 255 DL1 :DEC R20 Instruction BRNE DL1 RET Overview Choosing a Microcontroller Microcontroller Architectures AVR Microcontroller Atmega1284 Assembly vs C Toolchain Aly El-Osery (NMT) EE 308: Microcontrollers January 17, 2019 15 / 25 Software tools GNU AVR toolchain (will be used in lectures) Free Open source Linux and Windows (WinAVR) Arduino IDE is based on it Requires a bit more effort to make it work Atmel Studio (mostly used in the lab) Free Supports all their products Runs only on Windows Has and additional assembler (used by default): avrasm2 Can’t handle mixed C and assembly, and relies on GCC to do that Overview Choosing a Microcontroller Microcontroller Architectures AVR Microcontroller Atmega1284 Assembly vs C Toolchain Aly El-Osery (NMT) EE 308: Microcontrollers January 17, 2019 16 / 25 What to download on the microcontroller Assembler — replaces mnemonics by their opcodes, resolves include directives, translates register names to addresses, removes comments, etc. avr-as -mmcu=atmega1284 -o ex.o ex.s Linker — links multiple files avr-ld -mavr51 -o ex.elf ex.o Translate object files avr-objcopy -j .text -j .data -O ihex -o ex.hex ex.elf Overview Choosing a Microcontroller Microcontroller Architectures AVR Microcontroller Atmega1284 Assembly vs C Toolchain Aly El-Osery (NMT) EE 308: Microcontrollers January 17, 2019 17 / 25 Intel Hex vs S19 Motorola S19 Intel Hex S01100006578616D706C65345F332E686578C9 :1000000000E40EBF0FEF0DBF389A409A0E940C001B S113000000E40EBF0FEF0DBF389A409A0E940C0017 :1000100040980E940C00F9CF4FEF4A95F1F70895F0 S113001040980E940C00F9CF4FEF4A95F1F70895EC :00000001FF S9030000FC Start code (:) Record type (2 characters) Byte count data only (2 characters) S0 Block header Address (4 characters) S1-3 Data records Record type (2 characters) S5 Record count 00 data record S7-9 End of block 01 end of file Byte count (2 characters) Address + Data + Checksum Data (2k characters) Address (4 characters) Checksum (2 characters) Data (2k characters) Checksum (2 characters) Overview Choosing a Microcontroller Microcontroller Architectures AVR Microcontroller Atmega1284 Assembly vs C Toolchain Aly El-Osery (NMT) EE 308: Microcontrollers January 17, 2019 18 / 25 Downloading the hex file Using Dragon Board avrdude -v -c dragon_jtag -p m1284 -Pusb -U flash:w:ex.hex Using ArduinoISP avrdude -v -c arduino -p m1284 -Pusb -b 19200 -U flash:w:ex.hex Overview Choosing a Microcontroller Microcontroller Architectures AVR Microcontroller Atmega1284 Assembly vs C Toolchain Aly El-Osery (NMT) EE 308: Microcontrollers January 17, 2019 19 / 25 avr-as vs avrasm2 There are differences between the GCC assembler and the one used by Atmel. For full list you need to consult the documentation but below are some of the frequently used ones. avr-as avrasm2 .equ DDRA, 0x01 .equ DDRA = 0x01 .asciz “hello” .db “hello”,0 .section .data .dseg .section .text .cseg hi8 high lo8 low Overview Choosing a Microcontroller
Recommended publications
  • Atmega328p Xplained Mini User Guide
    USER GUIDE ATmega328P Xplained Mini User Guide Introduction This user guide describes how to get started with the Atmel® ATmega328P Xplained Mini board. The ATmega328P Xplained Mini evalutation kit is a hardware platform to evaluate the Atmel ATmega328P microcontroller. The evaluation kit comes with a fully integrated debugger that provides seamless integration with Atmel Studio 6.2 (and later version). The kit provides access to the features of the ATmega328P enabling easy integration of the device in a custom design. 42287A-MCU-05/2014 Table of Contents Introduction .................................................................................... 1 1. Getting Started ........................................................................ 3 1.1. Features .............................................................................. 3 1.2. Design Documentation and Related Links .................................. 3 1.3. Board Assembly .................................................................... 3 1.3.1. In Customer Development Assembly ............................. 3 1.3.2. Connecting an Arduino Shield ..................................... 3 1.3.3. Standalone Node ...................................................... 3 1.4. Connecting the Kit ................................................................. 3 1.4.1. Connect the Kit to Atmel Studio ................................... 3 1.4.2. Connect the Target UART to the mEBDG COM Port ......... 3 1.5. Programming and Debugging .................................................
    [Show full text]
  • Getting Started with STK200 Dragon Introduction This Guide Is Designed to Get You up and Running with Main Software and Hardware
    Getting Started with STK200 Dragon Introduction This guide is designed to get you up and running with main software and hardware. As you work through it, there could be lots of details you do not understand, but these are covered in books and other documentation that you can read later. The main software package is AVRStudio, which is Atmel’s Integrated Development Environment or IDE. There is also a plugin C Compiler module called WinAVR that compiles C programs within AVRStudio. The Kanda installer will install these packages and copy documentation to a folder on your hard drive. Default install path is C:\Program Files\STK200 Dragon AVRStudio has its own Atmel-AVR Tools folder in Program Files, and can be run from there or you can run from desktop icon. WinAVR never needs to be run directly, only from AVRStudio. The AVRStudio IDE is designed for writing source code, in C (.c files) or assembler (.asm files). These are then built or compiled into object code (.hex files) for programming into the AVR using ISP or debug files (.elf files) to step through the code. The AVR Dragon hardware is a programmer and In Circuit Emulator (ICE) in one tool. Once source code is built, it can be programmed into the AVR using ISP, which will just run the code or it can be set in Debug mode (using DebugWire or JTAG )that allows you to examine the code operation to find bugs. There are two Debug methods depending on the AVR device you are using • JTAG Mode for AVR devices with 40-pins or more • DebugWire for smaller pin-count devices.
    [Show full text]
  • Power Debugger [USER GUIDE] 2 Atmel-42696D-Power-Debugger User Guide-10/2016 5.2.5
    Programmers and Debuggers Power Debugger USER GUIDE Atmel-42696D-Power-Debugger_User Guide-10/2016 Table of Contents 1. The Atmel Power Debugger...................................................................................... 4 1.1. Kit Contents..................................................................................................................................5 2. Getting Started with the Power Debugger................................................................. 6 3. Connecting the Power Debugger...............................................................................8 3.1. Connecting to AVR and SAM Target Devices...............................................................................8 4. Detailed Use Cases.................................................................................................10 4.1. Low-power Application............................................................................................................... 10 4.1.1. Requirements.............................................................................................................. 10 4.1.2. Initial Hardware Setup................................................................................................. 10 4.1.3. Connections.................................................................................................................12 4.1.4. Disabling the debugWIRE Interface.............................................................................13 4.1.5. Disabling On-board Power Supply on the Xplained
    [Show full text]
  • Digital and System Design
    Digital System Design — Use of Microcontroller RIVER PUBLISHERS SERIES IN SIGNAL, IMAGE & SPEECH PROCESSING Volume 2 Consulting Series Editors Prof. Shinsuke Hara Osaka City University Japan The Field of Interest are the theory and application of filtering, coding, trans- mitting, estimating, detecting, analyzing, recognizing, synthesizing, record- ing, and reproducing signals by digital or analog devices or techniques. The term “signal” includes audio, video, speech, image, communication, geophys- ical, sonar, radar, medical, musical, and other signals. • Signal Processing • Image Processing • Speech Processing For a list of other books in this series, see final page. Digital System Design — Use of Microcontroller Dawoud Shenouda Dawoud R. Peplow University of Kwa-Zulu Natal Aalborg Published, sold and distributed by: River Publishers PO box 1657 Algade 42 9000 Aalborg Denmark Tel.: +4536953197 EISBN: 978-87-93102-29-3 ISBN:978-87-92329-40-0 © 2010 River Publishers All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, mechanical, photocopying, recording or otherwise, without prior written permission of the publishers. Dedication To Nadia, Dalia, Dina and Peter D.S.D To Eleanor and Caitlin R.P. v This page intentionally left blank Preface Electronic circuit design is not a new activity; there have always been good designers who create good electronic circuits. For a long time, designers used discrete components to build first analogue and then digital systems. The main components for many years were: resistors, capacitors, inductors, transistors and so on. The primary concern of the designer was functionality however, once functionality has been met, the designer’s goal is then to enhance per- formance.
    [Show full text]
  • MPLAB Snap In-Circuit Debugger Information Sheet
    MPLAB® SNAP IN-CIRCUIT DEBUGGER MPLAB® Snap In-Circuit Debugger Information Sheet INTRODUCTION The MPLAB® Snap In-Circuit Debugger (PG164100) is an ultra-low priced debugging solution for projects not requiring high-voltage programming or advanced debug features. Therefore, it supports many of Microchip’s newer MCU offerings but not some legacy products. With a nominal feature set, the debugger is geared toward developers who don’t require advanced features. It is not intended for production programming. Note: Refer to the MPLAB® PICkit™ 4 In-Circuit Debugger and the MPLAB X IDE User’s Guides or online help for additional information. • Description • Features • MPLAB Snap In-Circuit Debugger Components • Additional Items Needed • MPLAB Snap vs. MPLAB PICkit 4 Comparison • Pinout Information • LEDs • Debugger to Target Communication • Debugger Options Selection • Troubleshooting DESCRIPTION The MPLAB Snap In-Circuit Debugger allows fast and easy debugging and programming using the powerful graphical user interface of MPLAB X IDE (Integrated Development Environment) or MPLAB IPE (Integrated Programming Environment). The debugger works with Microchip PIC®, dsPIC® Flash, AVR®, or DSC® devices. It will also work with 32-bit based microcontroller, such as SAM, CEC and PIC32 devices. The MPLAB Snap connects to the computer using a high-speed 2.0 USB interface and connects to the target via a Microchip debug 8-pin Single In-Line (SIL) connector. The SIL connector uses two device I/O pins and the reset line to implement in-circuit debugging and In-Circuit Serial Programming™ (ICSP™). The MPLAB Snap supports advanced interfaces such as 4-wire JTAG and Serial Wire Debug with streaming Data Gateway, while being backward compatible for demo boards, headers and target systems using 2-wire JTAG and ICSP.
    [Show full text]
  • Pyxos FT EVK User's Guide
    @ECHELON® Pyxos FT EVK User’s Guide @® 078-0342-01A Echelon, LONWORKS, LONMARK, NodeBuilder, LonTalk, Neuron, 3120, 3150, LNS, i.LON, ShortStack, LonMaker, and the Echelon logo are trademarks of Echelon Corporation registered in the United States and other countries. OpenLDV, Pyxos, and LonScanner are trademarks of Echelon Corporation. Other brand and product names are trademarks or registered trademarks of their respective holders. Each user of the Pyxos FT Chip and protocol assumes responsibility for, and hereby agrees to use its best efforts in, designing and manufacturing equipment licensed hereunder to provide for safe operation thereof, including, but not limited to, compliance or qualification with respect to all safety laws, regulations and agency approvals, as applicable. The Pyxos FT Chip and protocol are not designed or intended for use as components in equipment intended for surgical implant into the body, or other applications intended to support or sustain life, for use in flight control or engine control equipment within an aircraft, or for any other application in which the failure of the Pyxos FT Chip or protocol could create a situation in which personal injury or death may occur, and the user shall have no rights hereunder for any such applications. Parts manufactured by vendors other than Echelon and referenced in this document have been described for illustrative purposes only, and may not have been tested by Echelon. It is the responsibility of the customer to determine the suitability of these parts for each application. ECHELON MAKES AND YOU RECEIVE NO WARRANTIES OR CONDITIONS, EXPRESS, IMPLIED, STATUTORY OR IN ANY COMMUNICATION WITH YOU, AND ECHELON SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
    [Show full text]
  • Quick Guide to Microchip Development Tools
    Development Tools Quick Guide to Microchip Development Tools www.microchip.com/tools Introduction MPLAB® X IDE, Atmel Studio and Software Tools Microchip is proud to offer development tools for AVR® and SAM MCUs and MPUs in addition to our classic development tools for PIC® MCUs and dsPIC® DSCs. Together, Microchip offers the strongest development tool chains for the industry’s most popular products. Microchip produces approximately 2,000 development tools, of which only a selection are featured in this document. For the full listing of Microchip’s development tools, please visit the online Development Tools Selector (DTS) at www.microchip. com/dts or visit our application sites on www.microchip.com. Development Tool Selector Microchip’s development tools selector is an online/offline application that allows you to view development tools through a Graphi- cal User Interface (GUI) with filter and search capabilities to easily find development tools associated with Microchip products. Just enter a development tool or Microchip device in the search box and DTS quickly displays all related tools and devices. Updated after every MPLAB X IDE release, DTS is available online and offline at:www.microchip.com/dts. Development Tool Ecosystem: Software AVR® MCU PIC® MCU dsPIC® DSC SAM MCU xEC** MCU MPU MPLAB® X IDE ü ü ü ü ü ü MPLAB Xpress ü ü ü IDEs Atmel Studio ü ü ü MPLAB XC ü ü ü ü ü ü AVR GCC ü Compliers Arm® GCC ü ü MPLAB Code Configurator ü ü ü MPLAB Harmony ü* ü ü Configurators Atmel Start ü ü ü *32-bit PIC only ** xEC is the CEC/MEC families of devices 2 www.microchip.com/tools MPLAB X IDE MPLAB X IDE MPLAB X IDE is Microchip’s free integrated development environment for PIC, AVR and SAM MCUs and MPUs and dsPIC DSCs.
    [Show full text]
  • Quick Guide to Microchip Development Tools
    Development Tools Quick Guide to Microchip Development Tools www.microchip.com/tools Introduction MPLAB® X IDE, Atmel Studio and Software Tools Microchip is proud to offer development tools for AVR® MCUs in addition to our classic development tools for PIC® MCUs and dsPIC® DSCs. Together, Microchip offers the strongest development tool chains for the industry’s most popular products. Micro- chip produces approximately 2,000 development tools, of which only a selection are featured in this document. For the full listing of Microchip’s development tools, please visit the online Development Tools Selector (DTS) at www.microchip.com/dts or visit our application sites on www.microchip.com. Development Tool Selector Microchip’s development tools selector is an online/offline application that allows you to view development tools through a Graphi- cal User Interface (GUI) with filter and search capabilities to easily find development tools associated with Microchip products. Just enter a development tool or Microchip device in the search box and DTS quickly displays all related tools and devices. Updated after every MPLAB X IDE release, DTS is available online and offline at:www.microchip.com/dts. Development Tool Ecosystem: Software AVR® MCU PIC® MCU dsPIC® DSC SAM MCU CEC1702 MPLAB® X IDE ü ü ü ü MPLAB Xpress ü ü IDEs Atmel Studio ü ü MPLAB XC ü ü ü ü AVR GCC ü Compliers Arm® GCC ü MPLAB Code Configurator ü ü MPLAB Harmony ü* Configurators Atmel Start ü ü *32-bit PIC only 2 www.microchip.com/tools MPLAB X IDE MPLAB X IDE MPLAB X IDE is Microchip’s free integrated development environment for PIC and AVR MCUs and dsPIC DSCs.
    [Show full text]
  • MPLAB X IDE User's Guide
    MPLAB X IDE User’s Guide MPLAB® X IDE User’s Guide Notice to Customers Important: All documentation becomes dated, and this manual is no exception. Microchip tools and documentation are constantly evolving to meet customer needs, so some actual dialogs and/or tool descriptions may differ from those in this document. Please refer to our website (www.microchip.com) to obtain the latest documentation available. Documents are identified with a “DS” number. This number is located on the bottom of each page, in front of the page number. The numbering convention for the DS number is “DSXXXXXA”, where “XXXXX” is the document number and “A” is the alphabetic revision level of the document. For the most up-to-date information on development tools, see the MPLAB® IDE online help. Select the Help menu, and then Help Content to open a list of available online help files. © 2019 Microchip Technology Inc. User Guide DS-50002027E-page 1 MPLAB X IDE User’s Guide Table of Contents Notice to Customers.......................................................................................................................................1 1. What is MPLAB X IDE?...........................................................................................................................7 1.1. An Overview of Embedded Systems............................................................................................7 1.2. The Development Cycle.............................................................................................................19 1.3. Project
    [Show full text]
  • Embedded Programming 11.3. 2015 This Week We Will Learn About
    Week 7: Embedded Programming 11.3. 2015 This week we will learn about embedded programming. The agenda: http://academy.cba.mit.edu/classes/embedded_programming/index.html architectures Harvard, von Neumann RISC, CISC microprocessor, microcontroller FPGA, CPLD ALA memory registers SRAM DRAM EEPROM FLASH fuse peripherals A/D comparator D/A timer/counter/PWM USART USB ... word size 8 16 32 64 families 8051 PIC MSP AVR ARM STM32 PSoC, xCORE, Propeller vendors Octopart Digi-Key Mouser Newark Farnell SparkFun AVR processors ATtiny10 ATtiny45V ATtiny44A ATmega328P ATmega16U2 ATxmega16E5 ATxmega16C4 tutorials data sheets packages DIP SOT SOIC TSSOP TQFP LQFP MLF, CSP, BGA clocks RC (10%, 1% calibrated) ceramic (0.5%) quartz (50 ppm) in-system development ISP (header, pads, clip) bootloader JTAG, debugWire, PDI ICE programmers ISP AVRISP FabISP avrdude JTAG, debugWIRE, PDI Atmel-ICE assembly language hex file instruction set, opcodes mnemonics, directives, expressions avr-as gavrasm C GCC AVR Libc modules types math avr-libc, binutils-avr, gcc-avr WinAVR CrossPack Atmel Studio host communication RS232 bit timing VT100/ANSI/ISO/ECMA terminal Kermit Minicom term.py USB software hardware FTDI cable libFTDI echo hello-world hello.ftdi.44.cad board components traces interior programming hello.ftdi.44.echo.c hello.ftdi.44.echo.c.make hello.ftdi.44.echo.interrupt.c hello.ftdi.44.echo.interrupt.c.make hello.ftdi.44.echo.asm hello.ftdi.44.echo.asm.make IDE Atmel Studio Eclipse AVR Firefly Scratch Modkit boards Arduino board + C libraries + IDE + bootloader
    [Show full text]
  • Getting Started with Atmel Studio 7
    Atmel Studio 7 Getting Started with Atmel Studio 7 © 2018 Microchip Technology Inc. User Guide DS-50002712A-page 1 Atmel Studio 7 Table of Contents 1. Getting Started.......................................................................................................... 3 1.1. AVR® and SAM Development Tools Overview............................................................................. 5 1.2. AVR® and SAM HW Tools and Debuggers...................................................................................6 1.3. Data Visualizer and Power Debugging Demo.............................................................................. 8 1.4. Installation and Updates.............................................................................................................10 1.5. Atmel Gallery and Studio Extensions.........................................................................................12 1.6. Atmel START Integration............................................................................................................13 1.7. Creating a New Project.............................................................................................................. 18 1.8. Creating From Arduino Sketch...................................................................................................24 1.9. In-System Programming and Kit Connection............................................................................. 25 1.10. I/O View and Other Bare-Metal Programming References ......................................................
    [Show full text]
  • Programmers and Debuggers Atmel-ICE
    Programmers and Debuggers Atmel-ICE The Atmel-ICE Debugger Atmel-ICE is a powerful development tool for debugging and programming Arm® Cortex®-M based Microchip SAM and AVR® microcontrollers with On-Chip Debug capability. It supports: • Programming and on-chip debugging of all Microchip AVR 32-bit microcontrollers on both JTAG and aWire interfaces • Programming and on-chip debugging of all Microchip AVR XMEGA® family devices on both JTAG and PDI two- wire interfaces • Programming (JTAG, SPI, UPDI) and debugging of all Microchip AVR 8-bit microcontrollers with OCD support on either JTAG, debugWIRE or UPDI interfaces • Programming and debugging of all Microchip SAM Arm Cortex-M based microcontrollers on both SWD and JTAG interfaces • Programming (TPI) of all Microchip tinyAVR® 8-bit microcontrollers with support for this interface © 2020 Microchip Technology Inc. User Guide DS50002999A-page 1 Programmers and Debuggers Table of Contents The Atmel-ICE Debugger...............................................................................................................................1 1. Introduction............................................................................................................................................. 4 1.1. Introduction to the Atmel-ICE....................................................................................................... 4 1.2. Atmel-ICE Features......................................................................................................................4 1.3. System Requirements..................................................................................................................4
    [Show full text]