The Arduino Microcontroller: Atmel AVR Atmega 328

Slides:



Advertisements
Similar presentations
Developing an AVR Microcontroller System
Advertisements

Robotics Research Laboratory Louisiana State University.
SENIOR DESIGN 10/3.
The domestic refrigerator-An example A car door mechanism.
Micro controllers A self-contained system in which a processor, support, memory, and input/output (I/O) are all contained in a single package.
Arduino Part 1 Topics: Microcontrollers Programming Basics: structure and variables Digital Output Analog to Digital Conversion.
Microprocessor based Design for Biomedical Applications MBE 3 – MDBA II : The ATmega8 Basic Features (1)
Atmega32 Architectural Overview
CS-280 Dr. Mark L. Hornick 1 Parts of a GP Computer (Microcomputer) Contains separate Microprocessor chip Memory/Memory controller MB control chips Peripheral.
Little arduino microcontrollers Meghan Jimenez 12 February 2014.
AVR Microcontrollers.
Arduino Josh Villbrandt February 4, Digital Circuits Analog versus digital – What’s the difference? – How to represent an analog signal in a computer?
1 AVR Session 2 Master : Dr.jafari Authors: M.H Edrisi, hadi.edrisi yyyy aaaa hhhh oooo oooo.... cccc oooo mmmm.
Microprocessors A practical approach Subjects Goals for this module Results Subjects of the module Plans Questions.
بسمه تعالي AVR Microcontrollers. The ATmega8 Basic Features -1.
Atmel Atmega128 Overview ALU Particulars RISC Architecture 133, Mostly single cycle instructions 2 Address instructions (opcode, Rs, Rd, offset) 32x8 Register.
ATMEL AVR 8 bit RISC MICROCONTROLLERS a general comparison.
Sparkfun Electronics ATtiny85 Arduino Quick Reference Sheet
Chapter 2 Introducing the PIC Mid-Range Family and the 16F84A The aims of this chapter are to introduce: The PIC mid-range family, in overview The overall.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
INTRODUCTION TO PIC MICROCONTROLLER. Overview and Features The term PIC stands for Peripheral Interface Controller. Microchip Technology, USA. Basically.
Microcontroller Programming
ECE 371 Microprocessor Interfacing
Components of a typical full-featured microcontroller.
AVR Architecture Prepared By: Avdhesh Soni ( ) Sarthak Patel ( ) Akshay Parekh ( ) Fenil Sachla ( ) Guided.
GROUP MEMBERS: SUMEET HOODA. RAJDEEP PATRE. DHIRAJ GAONKAR. LIVE HUMAN DETECTION USING WIRELESS REMOTE CONTROLLED ROBOT.
Embedded Systems Overview Prepared by Nisha Sinsinbar Subject: Microcontoller & Interfacing Sub code: EC Department.
NAM S.B MDLAB. Electronic Engineering, Kangwon National University 1.
Modified Harvard architecture 8-bit RISC single chip microcontroller Complete System-on-a-chip On Board Memory (FLASH, SRAM & EEPROM) On Board Peripherals.
CEng3361/18 CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT Spring 2007 Recitation 01.
“Atmega32 Architectural Overview” SIGMA INSTITUTE OF ENGINEERING Prepared By: SR.NO NAME OF STUDENT ENROLLMENT 1 Parihar Shipra A Guided By:-
ALPHA COLLEGE OF ENGINEERING & TECHNOLOGY Introduction to AVR ATMega32 Architecture PREPARED BY SHWETA ( ) BHOOMI ( ) YOGEN ( )
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
Introduction to Microcontroller Technology
Arduino.
Arduino Part 1 Topics: Microcontrollers
Sparkfun Electronics ATtiny85 Arduino Quick Reference Sheet
Popular Microcontrollers and their Selection by Lachit Dutta
Embedded Systems Programming
Hoda Roodaki AVR Family Overview Hoda Roodaki
COURSE OUTCOMES OF Microprocessor and programming
Atmega32 Architectural Overview
C. K. Pithawalla College of Engineering and Technology, Surat
AVR ATMEGA 8 MICRO-CONTROLLER
MCI PPT AVR MICROCONTROLLER Mayuri Patel EC-1 5th sem
BITS EDU. CAMPUS , VARNAMA
COMP2121: Microprocessors and Interfacing
AVR Addressing Modes Subject: Microcontoller & Interfacing
Subject Name: Microcontroller Subject Code: 10ES42
ARDUINO     What is an Arduino? Features 14 Digital I/O pins 6 Analogue inputs 6 PWM pins USB serial 16MHz Clock speed 32KB Flash memory 2KB SRAM.
Arduino Analog I/O Analog input pins: 0 – 5
Introduction to Microprocessors and Microcontrollers
میکرو کنترلر های AVR مدرس: مسعود بهمن پور
ریز پردازنده. ریز پردازنده مراجع درس میکروکنترلرهای AVR برنامه نویسی اسمبلی و C محمدعلی مزیدی، سپهر نعیمی و سرمد نعیمی مرجع کامل میکروکنترلرهای AVR.
Tim Sumner, Imperial College, Rm: 1009, x47552
Architecture & Support Components
Architectural Overview
Lecturer: Reza Arjmandi Autumn 2015
Arduino Board.
Introducing the PIC Mid-Range Family and the 16F84A
CSCI1600: Embedded and Real Time Software
AVR – ATmega103(ATMEL) Architecture & Summary
8051 Micro Controller.
CSCI1600: Embedded and Real Time Software
I/O Programming with Arduino
Introduction to Arduino
Arduino Board.
Arduino म्हणजे काय?.
Presentation transcript:

The Arduino Microcontroller: Atmel AVR Atmega 328 Features • Low-power AVR 8-bit Microcontrollerre Advanced RISC ArchitectuHigh-performance, – 131 Powerful Instructions – Most Single-clock Cycle Execution – 32 x 8 General Purpose Working Registers • Memories – 32K Bytes of In-System Self-Programmable Flash – 1024 Bytes EEPROM – 2K Byte Internal SRAM • Peripheral Features – Two 8-bit Timer/Counters – One 16-bit Timer/Counter – Six PWM Channels – 6-channel, 10-bit ADC – Programmable Watchdog Timer – On-chip Analog Comparator • I/O and Packages – 32 Programmable I/O Lines • Speed Grades – 0 - 8 MHz for ATmega32L – 0 - 16 MHz for ATmega32

Detailed ATMega-328 Architecture

On chip-Memory Memory Flash (32K) (15-bit addresses) Program memory – read only Non-volatile Allocate data to Flash using PROGMEM keyword SRAM (2K) Temporary values, stack, etc. Volatile Limited space EEPROM (1K) Long-term data

AVR CPU Instruction Fetch and Decode

AVR Register File 32, 8-bit GP registers Part of SRAM memory space

Interrupt Unit Watchdog Timer Unit Analog Comparator Different I/O modules EEPROM Different I/O lines

Timers Three timers Very flexible Choose clock rate Choose “roll-over” value Generate interrupts Generate PWM signals (represent 8-bit value with using a clock signal) Arduino Timing Functions Delay(ms) wait for ms milliseconds before continuing Delay Microseconds(us) wait for us microseconds before continuing Unsigned long millis( ) return number of milliseconds since program started Unsigned long micros( ) return number of microseconds since program started

I/O Ports Interface to pins Some pins are special 3 8-bit Ports (B, C, D) Each pin directly programmable Program direction Program value Program pull-ups Some pins are special Analog vs. Digital Clocks Reset

Arduino Digital and Analog I/O Pins Digital pins: Pins 0 – 7: PORT D [0:7] Pins 8 – 13: PORT B [0:5] Pins 14 – 19: PORT C [0:5] (Arduino analog pins 0 – 5) digital pins 0 and 1 are RX and TX for serial communication digital pin 13 connected to the base board LED Digital Pin I/O Functions pinMode(pin, mode) Sets pin to INPUT or OUTPUT mode Writes 1 bit in the DDRx register digitalWrite(pin, value) Sets pin value to LOW or HIGH (0 or 1) Writes 1 bit in the PORTx register int value = digitalRead(pin) Reads back pin value (0 or 1) Read 1 bit in the PINx register