Programming Embedded Systems

Slides:



Advertisements
Similar presentations
StackPC Stackable Computers
Advertisements

LOGSYS Development Environment of Embedded Systems Tamás Raikovich Béla Fehér Péter Laczkó Budapest University of Technology and Economics Department of.
ARM development environment Modified Content Philips LPC2106 ARM chip ARM target board PSPad customised development environment Troubleshooting.
Microcomputer Systems 1
Travis Reed Todd Hummel Kwan-Truc. Concept USB 1.1 SPI b.
Aztec PC Scope Preliminary Design Review Fall 2006 Michael MasonJed Brown Andrew YoungsJosh Price.
ECE Department: University of Massachusetts, Amherst Lab 1: Introduction to NIOS II Hardware Development.
Aztec PC Oscilloscope Michael Mason Jed Brown Josh Price Andrew Youngs.
CSCE 430/830 A Tutorial of Project Tools By Dongyuan Zhan Feb. 4, 2010.
ASPPRATECH.
Asst. Prof. Dr. Alper ŞİŞMAN
Khaled A. Al-Utaibi  What is Arduino?  Arduino Boards  Arduino Shields  Arduino Uno Hardware.
BLDC MOTOR SPEED CONTROL USING EMBEDDED PROCESSOR
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
ATMEL AVR 8 bit RISC MICROCONTROLLERS
Camera Interfacing using ARM7
Introduction to the Orbit Edu Board Ahmad Rahmati Teaching Assistant, ELEC424 Rice Efficient Computing Group Sep 12, 2007.
CALLISTO Double - Heterodyne - Frequency Agile - Radio - Spectrometer ERAC Symposium Heppenheim Sep 5/6/7th 2003 Meyer Hansueli ETH Zürich.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Using Embedded Tools for I2C, SPI, and USB Debugging for.
Silicon Labs ToolStick Development Platform
The 6713 DSP Starter Kit (DSK) is a low-cost platform which lets customers evaluate and develop applications for the Texas Instruments C67X DSP family.
Department of Electronic & Electrical Engineering Embedded system Aims: Introduction to: Hardware. Software Ideas for projects ? Robotics/Control/Sensors.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: Rapid Development on the Renesas RX63N RDK using.
© Copyright Xilinx 2004 All Rights Reserved 9 November, 2004 XUP Virtex-II Pro Development System.
AT91SAM9261-EK WinCE 6.0 DEMO ATMEL AT91 Application & Support Group
NetBurner MOD 5282 Network Development Kit MCF 5282 Integrated ColdFire 32 bit Microcontoller 2 DB-9 connectors for serial I/O supports: RS-232, RS-485,
COMPUTER SYSTEM LABORATORY Lab10 - Sensor II. Lab 10 Experimental Goal Learn how to write programs on the PTK development board (STM32F207). 2013/11/19/
COE4OI5 Engineering Design Chapter 2: UP2/UP3 board.
AT91SAM9261-EK WinCE 5.0 DEMO ATMEL AT91 Application & Support Group Version 1.O February 2007.
Lab 1 Department of Computer Science and Information Engineering National Taiwan University Lab1 - Sensor 2014/9/23/ 13 1.
The IT700 PIM only supports up to network layer, all other above layers must be executed by other processor. Therefore in the PLC control network two types.
ARM 7 & ARM 9 MICROCONTROLLERS AT91 1 Development Tools & Partners.
MICROPROCESSOR AND MICRO CONTROLLER
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.
ATMEL AVR 8 bit RISC MICROCONTROLLERS a general comparison.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
AT91 Products Overview. 2 The Atmel AT91 Series of microcontrollers are based upon the powerful ARM7TDMI processor. Atmel has taken these cores, added.
IT-AMS Applied Microcontroller Systems (5 ECTS , Q3, E/IKT/EP)
The “Drink Mixer” Design Constraints. Project Success Criteria An ability to digitally mix audio and adjust individual levels An ability to digitally.
ChibiOS/RT Demo A free embedded RTOS
Embedded Systems Design with Qsys and Altera Monitor Program
ARM 7 & ARM 9 MICROCONTROLLERS AT91 1 AT91RM9200 Software delivery.
NAM S.B MDLAB. Electronic Engineering, Kangwon National University 1.
Embedded C- Language Lets Learn fundamentals !!. An Embedded system is combination of computer hardware and software, and perhaps additional mechanical.
Slides created by: Professor Ian G. Harris Embedded Systems  Computer-based systems which do not appear to be computers Complexity is hidden from the.
Programming and Debugging with the Dragon and JTAG Many thanks to Dr. James Hawthorne for evaluating the Dragon system and providing the core content for.
ENERGY METER TO INDICATE BILLING IN RUPEES FOR LOAD WISE OR DAY WISE
Arduino.
Lets Learn fundamentals !!
Neumann János Informatikai Kar
Introduction of Embedded C and demo programs
Popular Microcontrollers and their Selection by Lachit Dutta
Programming and Debugging with the Dragon and JTAG
Government Engg College Bhuj E. C. Engg. Department
ATMEL AVR 8 bit RISC MICROCONTROLLERS
Lab 1: Using NIOS II processor for code execution on FPGA
Computer System Laboratory
Implementation of Embedded OS
DSC - fundamente MPU MCU DSP DSC Alternative Freescale
USING TV REMOTE AS A CORDLESS MOUSE FOR THE COMPUTER
Getting Started with Programmable Logic
Introduction to the Orbit Edu Board
Microcomputer Systems 1
ECE 3551 Microcomputer Systems 1
AVR32 UC3 EVK1100 Control Panel Tutorial
Future Designs, Inc. Your Development Partner
ریز پردازنده. ریز پردازنده مراجع درس میکروکنترلرهای AVR برنامه نویسی اسمبلی و C محمدعلی مزیدی، سپهر نعیمی و سرمد نعیمی مرجع کامل میکروکنترلرهای AVR.
Introduction to the Atmel AVR Butterfly
Journey: Introduction to Embedded Systems
Presentation transcript:

Programming Embedded Systems Hands on Experience with AVR32 By: Stefan Persson Mazhar Hussain Muhammad Amir Yousaf stefan.persson@miun.se mazhar.hussain @miun.se amir.yousaf@miun.se amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17

Tutorial Overview Introduction to Development Board Live Demonstration µ-Controller Sensors Display Peripherals AVR Studio Getting Started Workspace creation Project creation Project building Target creation and Loading Program Course Objective Live Demonstration amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17

Introduction to Development Board µ-Controller Sensors Display Peripherals EVK1100 Evaluation kit and development system for the AVR32UC3A family EVK1100 is a fully functional embedded computer system. Circuit board has a flexible power system that accepts 8-20V DC input and can be operable via USB port. The EVK1100 embeds an Atmel Data flash (8MBytes) and a SDRAM (32MBytes). Several communication interfaces are available on the EVK1100: RS232, USB and ETHERNET. amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17

µ-Controller Sensors Display Peripherals A JTAG connector is provided to interface JTAGICE mkII (Programmer and debugger) . EVK1100 provides three clock inputs for controller Main clock Oscillatior i.e 12MHz A spare clock Oscillator i.e 12MHz RTC clock at 32.768 KHz Block Diagram EVK1100 amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17

µ-Controller Sensors Display Peripherals Published BY ATMEL amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17

µ-Controller Sensors Display Peripherals Lowest power Consumption (2xAA battery=19years) Support High data throughput. High Speed Communication Interfaces USB up to 480 Mbit/s Ethernet up to 100 Mbit/s SPI up to 33 Mbit/s SSC up to 33 Mbit/s (I2S) USART up to 33 Mbit/s UART up to 4 Mbit/s I/O pin toggle up to 33 MHz amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17

µ-Controller Sensors Display Peripherals Support Provided : Optimized drivers for all peripherals to speed up development. Floating point and DSP arithmetic USB and TCP/IP stacks Optimized audio, picture and video codec's, display drivers, TCP/IP services, web server, FAT12/16/32 file system, plus a complete freeRTOS Real Time OS amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17

µ-Controller Sensors Display Peripherals Published BY ATMEL amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17

µ-Controller Sensors Display Peripherals Name GPIO Names Alt. Function Used Light PA 23 ADC2 Temperature PA21 ADC0 Potentiometer PA22 ADC1 amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17

µ-Controller Sensors Display Peripherals 4x20 LCD to Design Human to Machine Interface for Soft. Development LCD Pin GPIO Name Alt. Function 5 PA16 SPI1_MOSI 7 PA17 SPI1_MISO 6 PA15 SPI1_CLK 4 PA19 SPI1_CS2 18 PA18 PWM_6 amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17

µ-Controller Sensors Display Peripherals On Board Peripherals: µ-Controller Sensors Display Peripherals USB (2.0 mini A-B receptacle) Ethernet (External Ethernet Phy 10/100 and RJ45 connector) Atmel DataFlash (8 MBytes) SDRAM (32 MBytes) USARTs (Dual) LEDs on board (Six) Push Buttons (Three excluding Reset Push button) Joystick SD/MMC slot SPI (Two SPI interface one is dedicated for LCD one free) TWI (Two wire Interface) amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17

µ-Controller Sensors Display Peripherals Expansion Connectors: µ-Controller Sensors Display Peripherals >>SSC, PWM output 0 to 6,Timer A and timer B,TWI,ADC inputs line 0 to 7, SPI 0 to 1,USART 0 to 3,MAC,GPIO amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17

Tutorial Overview Introduction to Development Board Course Objectives µ-Controller Sensors Display Peripherals AVR Studio Getting Started Workspace creation Project creation Project building Target Creation and Loading Program Course Objectives Live Demonstration amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17

AVR Studio Getting Started Workspace creation Project creation Project building Target Creation & Loading program Start -> Program -> Atmel AVR Tools -> AVR32 Studio amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17

amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17

Running an Example Project Workspace creation Project creation Click File >> New >> Project >>AVR32 Example Project Workspace creation Project creation Project building Target Creation & Loading program Running your own Project Click File >> New >> Project >>AVR32 C Project From Template amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17

Target Creation & Loading program Building a Project Select the project from the project plan (on left side of the window) and right click Click ‘Build Project’ Workspace creation Project creation Project building Target Creation & Loading program Build complete for project ’myproject’ ’Debug’ directory will be added in the workspace myproject.elf will be created in the Debug directory and is ready to be loaded in the controller amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17

Tool for using programming is JTAG or USB cable (for ISP) For Programming EVK1100 there are three listed methods available, (Note: we can use two among them) In system Programming (ISP) Programming Via JTAG port Self Programming via One chip BOOT program Tool for using programming is JTAG or USB cable (for ISP) JTAG ICE mkII Workspace creation Project creation Project building Target Creation & Loading program amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17

For Programming EVK1100 we need to add a Target Workspace creation Scan the target as shown in Picture Workspace creation Project creation Project building Target Creation & Loading program amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17

Workspace creation Project creation Project building Target Creation & Loading program Configure the target device i.e JTAGICE mkII for downloading your program amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17

Loading Code in the Micro-controller Loading through USB DFU Loading through JTAG Workspace creation Project creation Project building Target Creation & Loading program On EVK1100 Press the joystick downwards and hold it. Now press the re-start button to put the device in programming mode On AVR Studio Right-click on target for USB-programming and click program. Browse the target file and press ‘ok’ in newly appeared window to start loading the program amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17

Loading Code in the Micro-controller Loading through JTAG Workspace creation Project creation Project building Target Creation & Loading program Right click on JTAGICE mkII and click on ‘Program’. Browse the target .elf file and press ok to start loading amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17

Tutorial Overview Introduction to Development Board Live Demonstration µ-Controller Sensors Display Peripherals AVR Studio Getting Started Workspace creation Project creation Project building Target creation and Loading Programs Course Objective Live Demonstration amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17

Application Our WSN Platform (Sentio) SENTIO32: Number of different platforms targeting different application areas SENTIO a stackable platform developed in 2004 (IEEE802.15.4 compatible(Zigbee), having three layers i.e communication layer, processing layer (Atmel Mega 128L 8-bit uC), and analog/digital interfaces to sensor layer. Sufficient for short range communication. SENTIO-HP high-precision wireless instrument that can be used for characterizing processes SENTIO-BT for urban sensing applications. SENTIO-e2 for  environmental monitoring, communicating at 433MHz at ranges up to 1 km. Global communication via GSM/GPRS or to a PC via USB SENTIO32: A latest platform that is very compact with (IEEE802.15.4 compatible (Zigbee)) and processor (AVR32) on the same board. It is a Development Board, can be used for variety of wireless sensor applications amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17

Tutorial Overview Introduction to Development Board µ-Controller Sensors Display Peripherals AVR Studio Getting Started Workspace creation Project creation Target creation Project building and Downloading Course Objective Live Demonstration amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17

Demonstration amir.yousaf@miun.se mazhar.hussain@miun.se 2017-04-17