Introduction to the Atmel AVR Butterfly

Slides:



Advertisements
Similar presentations
Robotics Club, Snt Council2 The 3 Schools of Robotics: Mechanical Design – Types of motors – Material selection –
Advertisements

Oscilloscope Watch Teardown. Agenda History and General overview Hardware design: – Block diagram and general overview – Choice of the microcontroller.
Future Designs, Inc. Your Development Partner
Aztec PC Scope Preliminary Design Review Fall 2006 Michael MasonJed Brown Andrew YoungsJosh Price.
HT46 A/D Type MCU Series Data Memory (Byte) Program Memory HT46R22 (OTP) HT46C22 (Mask) 2Kx Kx16 4Kx HT46R23 (OTP) HT46C23 (Mask) HT46R24.
BLDC MOTOR SPEED CONTROL USING EMBEDDED PROCESSOR
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
SENIOR DESIGN 10/3.
AVR  Modern RISC architecture: Compact and FAST.  Tuned for high level languages.  Consistent architecture across entire line.  Small AVR are subsets.
2.0 EMBEDDED CONTROLLER Engr. Hj. Mohamad Fauzi bin Zakaria Department of Mechatronics and Robotics Engineering Faculty of Electrical and Electronic Engineering.
Arduino Josh Villbrandt February 4, Digital Circuits Analog versus digital – What’s the difference? – How to represent an analog signal in a computer?
Objectives How Microcontroller works
1 AVR Session 2 Master : Dr.jafari Authors: M.H Edrisi, hadi.edrisi yyyy aaaa hhhh oooo oooo.... cccc oooo mmmm.
Clock Options and Sleep Modes. Clock Sources Flash Fuse bits can be programmed to choose one of the following Clock sources: 1. External RC Osc. f = 1/(3RC).
بسمه تعالي AVR Microcontrollers. The ATmega8 Basic Features -1.
ELE22MIC Lecture 18 The AVR Sleep Modes The ATMEGA128’s Timer System
Computer Science SS2013 Team 5 Final Presentation 26 June © FH AACHEN | FACHBEREICH 08 | Computer Science, SS2013.
Atmel Atmega128 Overview ALU Particulars RISC Architecture 133, Mostly single cycle instructions 2 Address instructions (opcode, Rs, Rd, offset) 32x8 Register.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
Automatic accident avoiding system PROJECT MEMBERS MUTHUKUMAR.K (05ME33) SAKTHIDHASAN.S (05ME39) SAKTHIVEL.N (05ME40) VINOTH.S (05ME56) PROJECT GUIDE:
AT91 Products Overview. 2 The Atmel AT91 Series of microcontrollers are based upon the powerful ARM7TDMI processor. Atmel has taken these cores, added.
Device Overview 1.  The advantages of all PIC18Fxxxx microcontrollers:  High computational performance  High-endurance  Enhanced Flash program memory.
Components of a typical full-featured microcontroller.
GROUP MEMBERS: SUMEET HOODA. RAJDEEP PATRE. DHIRAJ GAONKAR. LIVE HUMAN DETECTION USING WIRELESS REMOTE CONTROLLED ROBOT.
NAM S.B MDLAB. Electronic Engineering, Kangwon National University 1.
10- Lock Bits, Fuse Bits and Boot Loader. Boot Loader Support – Read-While-Write Self- Programming: The Boot Loader Support provides a real Read-While-Write.
Overview AvrEmbedded128_Pro RTLab. 김태현. Atmega128 Features High-performance, Low-power AVR® 8-bit Microcontroller advanced RISC Architecture – 133 Powerful.
USING TV REMOTE AS A CORDLESS MOUSE FOR THE COMPUTER
CORDLESS MOUSE FEATURES BY TV REMOTE USING PIC MICROCONTROLLER
PORTABLE PROGRAMMABLE MEDICATION REMINDER
ENERGY METER TO INDICATE BILLING IN RUPEES FOR LOAD WISE OR DAY WISE
Application Case Study Christmas Lights Controller
The 8051 Microcontroller architecture
Popular Microcontrollers and their Selection by Lachit Dutta
Embedded Systems Programming
Scrolling LCD using Arduino.
UP AND DOWN CONTROLLED SPEED OF DC MOTOR IN EMBEDDED SYSTEM
PORTABLE PROGRAMMABLE MEDICATION REMINDER
Medication Reminder using PIC Microcontroller
SUBMITTED BY EDGEFX TEAM
Government Engg College Bhuj E. C. Engg. Department
ATMEL AVR 8 bit RISC MICROCONTROLLERS
ARDUINO BASED AUTOMATIC TEMPERATURE BASED FAN SPEED CONTROLLER
C. K. Pithawalla College of Engineering and Technology, Surat
DTMF BASED REMOTE INDUSTRIAL LOAD AND/OR AGRICULTURAL PUMP CONTROL
SUBMITTED BY EDGEFX TEAM
AUTO POWER SUPPLY CONTROL FROM 4 DIFFERENT SOURCES: SOLAR, MAINS, GENERATOR & INVERTOR TO ENSURE NO BREAK POWER.
AVR ATMEGA 8 MICRO-CONTROLLER
Project Title EVM IN 8051 Under the Guidance of Submitted by.
PRE-STAMPEDE MONITERING AND ALARM SYSTEM
Power Management and Sleep Modes
CPU1 Block Specifications
Power Management and Sleep Modes
UNIT – Microcontroller.
SUBMITTED BY EDGEFX TEAM
DIGITAL CALCULATOR USING 8051
Project Title EVM IN PIC Under the Guidance of Submitted by.
PWM BASED SPEED CONTROL FOR DC MOTOR
میکرو کنترلر های AVR مدرس: بهمن پور
The Arduino Microcontroller: Atmel AVR Atmega 328
Subject Name: Microcontroller Subject Code: 10ES42
AVR Hardware Connections and Flash Loading
Introduction to Microprocessors and Microcontrollers
Future Designs, Inc. Your Development Partner
Tim Sumner, Imperial College, Rm: 1009, x47552
Architectural Overview
Lecturer: Reza Arjmandi Autumn 2015
AVR – ATmega103(ATMEL) Architecture & Summary
8051 Micro Controller.
A PROJECT ON PASSWORD BASED CONTROL SYSTEM. A PROJECT ON PASSWORD BASED CONTROL SYSTEM.
Presentation transcript:

Introduction to the Atmel AVR Butterfly

AVR Butterfly The AVR Butterfly is designed to demonstrate the benefits and key features of the AVR microcontrollers The AVR architecture in general and the ATmega169 in particular Low Power Design The MLF package type Using peripherals LCD controller Memories Flash, eeprom, sram, external Data Flash Communication interfaces UART, SPI, USI Programming methods Selfprogamming/ Bootloader, SPI, Parallel, JTAG Analog to Digital Converter (ADC) Timers/Counters Real Time Counter (RTC) Pulse Width Modulation (PWM) etc…. It also serves as a development kit for the ATmega169, and can be bought and used as a standard module in the customers own products Sales price: 19$ 15/11/2018

AVR Butterfly Graphical overview 15/11/2018

ATmega169 MLF ATmega169 16KB Flash 512B EEPROM 1KB Internal SRAM JTAG Interface 4 x 25 Segment LCD Driver Two 8-bit Timer/Counters One 16-bit Timer/Counter Real Time Counter Four PWM Channels 8-channel, 10-bit ADC USART SPI Universal Serial Interface Watchdog Timer Analog Comparator Power-on Reset and Brown-out Detection Internal Calibrated Oscillator Five Sleep Modes: Idle, ADC Noise Reduction, Power-save, Power-down, and Standby 53 Programmable I/O Lines and 1 Input Line 64-lead TQFP and 64-pad MLF Operating Voltage: 1.8 - 3.6V for ATmega169V 2.7 - 3.6V for ATmega169L Temperature Range: 0°C to 70°C Speed Grade: 0 - 1 MHz for ATmega169V 0 - 4 MHz for ATmega169L Ultra-Low Power Consumption Active Mode: 1 MHz, 1.8V: 300µA 32 kHz, 1.8V: 20µA (including Oscillator) 32 kHz, 1.8V: TBD (including Oscillator and LCD) Power-down Mode: 0.5µA at 1.8V 15/11/2018

Input Resources Joystick UART USI Reset 4 directions 1 center push Available on pin header J406 With level converters Just connect TxD, RxD and GND Vcc min 2.0V USI Available on pin header J405 Uses 3 pins: PE4,PE5,PE6 If USI is not needed then the pins can be used as normal IO Reset Short cut pin 5 & 6 on the ISP header (J403) UART USI 15/11/2018

Analog Measurements Temperature Light Voltage Surface mounted NTC (Negative Temperature Coefficient) thermistor Tested -10  +60 deg Connected to ADC0 (PF0) Light Trough hole mounted LDR (Light Dependent Resistor) NSL19M51 CdS photoconductive cell 6K@10lux, 20M@darkness Connected to ADC2 (PF2) Voltage 2 pin header Voltage readings from 0-5V Connected to ADC1 (PF1) 15/11/2018

Output Resources LCD (Liquid Crystal Display) Piezo-element Features six 14-segments digits, and some additional segments All in all the display supports 120 segments ATmega169 supports 100 segments Same LCD and selected segments as on STK502 Piezo-element For alarms and “music” Connected to Timer1 PWM Output A (PB5) 15/11/2018

Memory ATmega169 AT45DB041B 16Kbyte FLASH 512byte EEPROM 1Kbyte SRAM 4Mbit data flash SPI interface Vcc 2.5-3.6V Low level drivers included Connected to SPI bus for external programming 15/11/2018

Clock sources Real Time Counter (RTC) On-board 32kHz Xtal for tracking of clock and date Internal Calibrated RC oscillator on ATmega169 Use prescaler to get 31k-8MHz system clock 15/11/2018

Power sources Button cell battery Using external power supply CR-2450 3V 600mAh Using external power supply GND and Vcc are available on several pin headers J400 & J401pin 9 & 10 Parallel programming header J402 pin 2 & 4 JTAG header J403 pin 6 & 2 SPI header Use of external power will not charge the battery Remove the battery, or use a voltage level higher then the battery Vcc/GND 15/11/2018

Programming & debugging Bootloader Enables upgrade of the application code from a PC without any external hardware Frontend software: AVRprog (included with AVR Studio) Uses UART (J406) While in the bootloader: Hold the ENTER button while starting AVRprog JTAG Programming and On-Chip Debugging JTAG header (J402) is located on the “back side” of the PCB Use an external power source when using JTAGICE due to increased power consumption Always press “stop debugging” in AVR Studio to automatically disable the OCD fuse In System Programming (ISP) STK500 Connect ISP6PIN to SPI bus (J403) Note that ATmega169 uses PB0 to control the external data flash Parallel programming (High voltage) STK500 On the Butterfly, move the 0ohm resistors: R404 to R403 and R203 to R204 Make these connections between the STK500 and the Butterfly: UART JTAG PB PD Parallel ISP 15/11/2018

Included firmware Written in IAR EWAVR All source code included Bootloader code Application code State machine Features included Name-tag Clock (date) Temperature measurements Light measurements Voltage readings Play tunes/melodies Auto power save Adjust LCD contrast More functions that can be added later on.... Calculator Reminder function Alarm (daily alarms, kitchen-timers, etc...) Play tunes/melodies (Karaoke-function) With the 4Mbit dataflash one can store large amount of data. Some examples: AVR Info bank (Basic info on all AVR-parts) Your local bus-table Melodies +++ 15/11/2018

Bootloader Enables upgrade of the application code from a PC without any external hardware Based on the appnote AVR109: Self Programming AVR But uses the new buffer mode for more efficient data downloading Uses AVRprog as PC frontend Included with AVR Studio Uses UART Uses the 1024Byte boot block size Operation AVR fused to start in bootloader after Reset Short cut J403 pin 5 & 6 to make a hardware reset (or jump to bootloader from your application code) Bootloader goes straight into sleep Power Save Mode Hold ENTER button while starting AVRprog, to enable downloading of new application code over the UART. Press UP on joystick to wake up from sleep and enter Application section Lockbits are used to avoid self deletion SPM is not allowed to write to the Boot Loader section UART 15/11/2018

The Application Menu Use the joystick to navigate in the menu UP/DOWN Jump between the menu items RIGHT Enter a sub menu item LEFT Jump back one level Center button is ENTER Edit/play a menu item 15/11/2018

Download text from PC for name tag Connect RS-232 on PC to UART on Butterfly Use joystick to enter sub menu “Download name” and press ENTER to enable UART Start any PC terminal software Use connection settings: Baudrate: 19200 Databits: 8 Parity: None Stop bits: 1 In terminal window: <Type text> Press ENTER () The text is stored in eeprom and scrolls over the display Stores up to 25 characters UART 15/11/2018

Power consumption Sleep modes are used to minimize power consumption Normally Power Save Mode is used. But Idle Mode is used for: Piezo-element (playing tunes) UART communication In Power Save Mode LCD controller is running (if enabled) Asynchronous timer is running Used for wake up for LCD update RTC update “Auto Power Save” Turns off the display controller before entering the sleep mode: Power Save Mode 15/11/2018

Power consumption Power consumption and estimated lifetime Playing tunes (incl. text) Power consumption: approx 400uA Lifetime (playing 24 hours a day): approx 2 month Presenting text in the LCD Power consumption: approx 35-40uA (depends on whether the text is scrolling or not) Lifetime (24 hours a day): over 1,5 year In power save mode (only the RTC ticking) Power consumption: approx 9uA Lifetime: approx 7 years 15/11/2018

Atmel AVR Butterfly