MEXLE. International Educational Platform. International Educational Platform. for Informatics based on Embedded Systems

Similar documents
Arduino Uno R3 INTRODUCTION

AVR XMEGA Product Line Introduction AVR XMEGA TM. Product Introduction.

VLSI Design Lab., Konkuk Univ. Yong Beom Cho LSI Design Lab

AVR XMEGA TM. A New Reference for 8/16-bit Microcontrollers. Ingar Fredriksen AVR Product Marketing Director

AVR Training Board-I. VLSI Design Lab., Konkuk Univ. LSI Design Lab

ARDUINO MEGA INTRODUCTION

ATmega128. Introduction

Doc: page 1 of 6

Doc: page 1 of 8

AVR- M16 development board Users Manual

An Arduino Controlled 1 Hz to 60 MHz Signal Generator

EasyAVR6 Development System

Bolt 18F2550 System Hardware Manual

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software!

3.3V regulator. JA H-bridge. Doc: page 1 of 7

SBAT90USB162 Atmel. SBAT90USB162 Development Board User s Manual

Lecture 14. Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Cerebot Nano Reference Manual. Overview. Revised April 15, 2016 This manual applies to the Cerebot Nano rev. A

ARDUINO MICRO WITHOUT HEADERS Code: A000093

AVRminiV3.1 Manual. 1. AVRminiV3.1 Overview. 2. AVRminiV3.1 Features and Specifications Standard Features: 2.2. Optional Features:

MICROPROCESSOR BASED SYSTEM DESIGN

Clock and Fuses. Prof. Prabhat Ranjan Dhirubhai Ambani Institute of Information and Communication Technology, Gandhinagar

AVR-TLCD-128CAN development board Users Manual

Doc: page 1 of 6

DBAT90USB162 Atmel. DBAT90USB162 Enhanced Development Board User s Manual

keyestudio Keyestudio MEGA 2560 R3 Board

Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform.

ARDUINO MEGA 2560 REV3 Code: A000067

Arduino Uno. Arduino Uno R3 Front. Arduino Uno R2 Front

ARDUINO UNO REV3 SMD Code: A The board everybody gets started with, based on the ATmega328 (SMD).

Hardware Manual. Crumb128. Rapid Prototyping Module with the Atmega128 AVR Microcontroller

ARDUINO UNO REV3 Code: A000066

EasyPIC5 Development System

ARDUINO MEGA ADK REV3 Code: A000069

STK User Guide

Various power connectors. 3.3V regulator. 64K Flash (Internal) 2K EEPROM (Internal) 4K SRAM (Internal) JA Mem Adr/ Data. Doc: page 1 of 9

LBAT90USB162 Atmel. LBAT90USB162 Development Board User s Manual

Microcontroller basics

More than Compatibility

JED MICROPROCESSORS PTY LTD

AVR Peripheral Board. Campus Component Pvt. Ltd.

Display Real Time Clock (RTC) On LCD. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

PIC-32MX development board Users Manual

Mega128-Net Mega128-Net Mega128 AVR Boot Loader Mega128-Net

Breeze Board. Type A. User Manual.

Figure 1-1 ISPAVRU1 application

Supplement for module D061 incl. ATMega128 Prozessor

Mega128-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

MicroBolt. Microcomputer/Controller Featuring the Philips LPC2106 FEATURES

The Atmel ATmega328P Microcontroller

Control System Implementation

Electronic Control systems are also: Members of the Mechatronic Systems. Control System Implementation. Printed Circuit Boards (PCBs) - #1

Arduino ADK Rev.3 Board A000069

MT2 Introduction Embedded Systems. MT2.1 Mechatronic systems

Microprocessors And Microcontrollers (Practical)

ET-BASE AVR ATmega64/128

User Manual For CP-JR ARM7 USB-LPC2148 / EXP

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad

This manual provides information for the final user application developer on how to use SPC57S-Discovery microcontroller evaluation board.

M32 Development Board

Wireless Sensor Networks. FireFly 2.2 Datasheet

Sanguino TSB. Introduction: Features:

Interconnects, Memory, GPIO

AC : INFRARED COMMUNICATIONS FOR CONTROLLING A ROBOT

Embedded programming, AVR intro

Robotics Training Module ABLab Solutions

2011 Pearson Higher Education, Mazidi, Naimi, and Naimi Pearson Higher Education, 2011 Pearson Higher Education,

Goal: We want to build an autonomous vehicle (robot)

SECURE DIGITAL ACCESS SYSTEM USING IBUTTON

PC87435 Enhanced IPMI Baseboard Management Controller

ARDUINO YÚN MINI Code: A000108

Design and development of embedded systems for the Internet of Things (IoT) Fabio Angeletti Fabrizio Gattuso

Programming Microcontroller Assembly and C

ARDUINO LEONARDO WITH HEADERS Code: A000057

Amarjeet Singh. January 30, 2012

LAMPIRAN. Universitas Sumatera Utara

STK User Guide

Z8 Encore! XP F1680 Series 8-Bit Flash Solution with Extended Peripherals

Revision: 05/05/ E Main Suite D Pullman, WA (509) Voice and Fax. Various power connectors. 3.3V regulator

DEVBOARD3 DATASHEET. 10Mbits Ethernet & SD card Development Board PIC18F67J60 MICROCHIP

M68HC08 Microcontroller The MC68HC908GP32. General Description. MCU Block Diagram CPU08 1

APPLICATION NOTE. Atmel ATA6612/ATA6613/ATA6614 Development Board ATA6612/ATA6613/ATA6614. Features

DEV-1 HamStack Development Board

PIC Microcontroller Introduction

PVK40. User's manual. Feature Rich Development and Educational Kit for 40-pin Microchip PIC microcontrollers

联系人黄生 : QQ: General Description The KN02GxxA series are low-cost 32-bit microcontroller with embedded ARM Cortex -M0 core for i

Nuvoton 1T 8051-based Microcontroller NuTiny-SDK-N76E885 User Manual

Alessandra de Vitis. Arduino

Supplement for module D041 incl. ATMega8 Prozessor

8051 Intermidiate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

PIC-LCD-3310 development board Users Manual

Atmel AVR datasheet. Matrix Multimedia Atmel AVR Board EB Contents

The Atmel ATmega168A Microcontroller

Network Embedded Systems Sensor Networks Fall Hardware. Marcus Chang,

BIG8051. Development system. User manual

EXL x240 Graphic LCD Smart Module 3,8 SHORT FORM TECHNICAL SPECIFICATIONS. Via di Corticella, Bologna, Italy

Serial Peripheral Interface. What is it? Basic SPI. Capabilities. Protocol. Pros and Cons. Uses

U6DIL. AVR USB Module. Rev. 1.1 Documentation Rev. 18. Reusch Elektronik Reusch Elektronik, Dipl.-Ing. (FH) Rainer Reusch

ACU6. Technical Reference Manual. Specifications Interfacing Dimensions. Document topics. ANSARI Controller Unit Type 6 technical reference manual

FIFTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLOGY-MARCH 2014 EMBEDDED SYSTEMS (Common for CT,CM) [Time: 3 hours] (Maximum marks : 100)

Transcription:

MEXLE for Informatics based on Embedded Systems Overview 1. Introduction 2. MiniMEXLE Hardware 3. ATMEL AVR Microcontrollers 4. Teaching Informatics with MEXLE 2 HSHN G. Gruhler (2006) Einfuehrung-miniMEXLE-AVR.ppt 1

Overview 1. Introduction 2. MiniMEXLE Hardware 3. ATMEL AVR Microcontrollers 4. Teaching Informatics with MEXLE 3 MEXLE Philosophy =Microcontrollers in EXperiment + LEarning The basic ideas behind are: 1. Learning by doing instead of chalk-informatics 2. Benefit of the students play instinct for learning 3. Low cost affordable also low budget environment 4. Shared platform with international partners 5. Multifunctional use within different study courses 6. Extendable family including a lot of peripherals 4 HSHN G. Gruhler (2006) Einfuehrung-miniMEXLE-AVR.ppt 2

MEXLE The family (1) MiniMEXLE - Microcontroller ATmega48/88-2x16 LCD-Display, 4 push buttons - Analog interface: 2 A/D and 2 D/A channels 5 MEXLE - The family (2) MEXLE - Microcontroller ATmega8515 or AT89S8252-6x7-segment LEDs, 4 buttons, 4 switches - Bar graph, serial interface to PC 6 HSHN G. Gruhler (2006) Einfuehrung-miniMEXLE-AVR.ppt 3

MEXLE - The family (3) µmexle - Microcontroller ATtiny2313 or AT89S2051 - compact, no display, simple peripherals 7 MEXLE - The family (overview) MiniMEXLE MEXLE µmexle MEXLE family Microcontroller ATmega48/88 2x16 LCD-Display, 4 push buttons Analog interface: 2 A/D and 2 D/A channels Microcontroller ATmega8515 or AT89S8252 6x7-segment LEDs, 4 buttons, 4 switches Bar graph, serial interface to PC Microcontroller ATtiny2313 or AT89S2051 compact, no display, simple peripherals all boards can be used with AVR Controllers - common environment for development - common programming interface 8 HSHN G. Gruhler (2006) Einfuehrung-miniMEXLE-AVR.ppt 4

MEXLE Development Environment (1) MEXLE board plus PROGI (programmer board) with USB interface Simple connection to standard PC Low cost programmer usable for most AVR microcontrollers Compatible to STK-500 ATMEL evaluation board programmer Programmer powered by USB connection 9 MEXLE Development Environment (2) AVR Studio Tool with: Project management Editor, Assembler GNU C-Compiler Simulation Programming 10 HSHN G. Gruhler (2006) Einfuehrung-miniMEXLE-AVR.ppt 5

MEXLE Network Heilbronn University, Germany: Faculty of Mechanics and Electronics (10 Staff, 250 Students/year) International: - STU Bratislava, Slovakia - UNN Newcastle, GB - GTU, TESAU, ATSU, Georgia 11 MEXLE Educational Platform MEXLE Webpage MEXLE Wiki Basic + fixed information Created by MEXLE team Responsibility on staff Contents by students Publishing projects International forum 12 HSHN G. Gruhler (2006) Einfuehrung-miniMEXLE-AVR.ppt 6

Overview 1. Introduction 2. MiniMEXLE Hardware 3. ATMEL AVR Microcontrollers 4. Teaching Informatics with MEXLE 13 MiniMEXLE Hardware Controller ATmega88 Jumper and Peripherals Buzzer Analog Interface Power Supply 9V DC External Connector Programming Interface 4 Push Buttons and LCD Display 2x16 Characters 14 HSHN G. Gruhler (2006) Einfuehrung-miniMEXLE-AVR.ppt 7

MiniMEXLE Block diagram DC In Regulator 9V 5V 2x16 Character LCD Display 18,432 MHz Clock Generation Reset Generation µc ATmega 48/88 4 Buttons for Functions A/D-D/A Interface Analog Input NTC, Opto-Sensor PWM Output Buzzer External Connector Programming Interface AVR-USB-PROGI 15 MiniMEXLE Power Supply DC input voltage 9-12 VDC (AC Adaptor) ; Tip has + polarity Regulator 7805 creates Vcc 5V. C2, C3 for stability reasons Diode D2: for safety reasons: against wrong polarity at DC input Diode D1: for safety reasons: protects regulator against back powering Power-ON-LED (LED1) 16 HSHN G. Gruhler (2006) Einfuehrung-miniMEXLE-AVR.ppt 8

MiniMEXLE Clock and Reset Generator Reset sources: -RC(Power-on) -Button -External(PROGI) Connector for Debug-Wire interface Separate filtered analog supply External crystal (18,432 MHz) 17 MiniMEXLE User Interface 2x16 LCD display with backlight (connected by 4 Bits) (RS: Data/Control) (E=1: Enable Display) (R variable: Contrast) 4 Buttons connected at the same pins as the LCD display (E=0: Read buttons) (Port µc bidirectional) 18 HSHN G. Gruhler (2006) Einfuehrung-miniMEXLE-AVR.ppt 9

MiniMEXLE Analog Interfaces 2 Analog Inputs 0 5 V - voltage protected R4, D3, D5; R14, - DC/AC coupling (C6, C11) selectable by jumper - Low Pass 1,6 khz (C8, C12) Alternative: - Temperature measurement: (NTC Resistor R11) - Light intensity: (LED2 used as photo sensor) 2 PWM Outputs (8 Bit) - Low Pass 1,6 khz (selectable) - on Board Buzzer 19 minimexle Expansion Connectors Full access to signals at µc pins by External Connector 34 pins Connector for radio clock signal (DCF77) - 3 pins Connector for serial interface, IrDA or USB expander 6 pins 20 HSHN G. Gruhler (2006) Einfuehrung-miniMEXLE-AVR.ppt 10

MiniMEXLE Programming Interface SPI Interface (Serial Peripheral Interface) to programmer (PROGI) (programming active for RESET = 0) Visual interface by LED3 SPI signal names: MISO = Master IN, Slave OUT MOSI = Master OUT, Slave IN SCLK = Serial Clock SS = Slave Select EXT RESET 21 AVR-USB USB-PROGI Function USB to PC incl. 5V DC USB-Serial-Convertor FT232BL RxD Serial Interface TxD Protocol Conversion ATmega8 µc SPI-Interface to Target-µC Connection direct to USB (COM interface emulation) - Power supply of PROGI programmer by USB - specific USB driver for FT232BL needed on PC USB protocol to serial protocol conversion by FT232BL - no programming needed µc ATmega8: protocol conversion to SPI for target interface - programming of ATmega8 possible by PC trough USB (jumper placement needed) 22 HSHN G. Gruhler (2006) Einfuehrung-miniMEXLE-AVR.ppt 11

AVR-USB USB-PROGI Hardware Compact unit in plastics box USB connector series A to PC 10 pin connector to target µc USB-Serial-Converter on bottom plane 3 LEDs for status 23 Overview 1. Introduction 2. MiniMEXLE Hardware 3. ATMEL AVR Microcontrollers 4. Teaching Informatics with MEXLE 24 HSHN G. Gruhler (2006) Einfuehrung-miniMEXLE-AVR.ppt 12

AVR µc C family with RISC structure Reduced Instruction Set Computer Powerful8 Bit RISC CPU ProgramFlash 8 KByte Data EEPROM 512 Bytes Data SRAM 1 KByte 23 programmable I/O lines 3 Timer/Counter Units with PWM USART, SPI, I²C Interface Analog Comparator 10 Bit A/D-Converter In-System Self-programmable 25 AVR CPU core Harvard structure 131 instructions (most single cycle) 32 x 8 Bit registers Fully static operation 20 MIPS at 20 MHz 2-cycle HW multiplier 26 HSHN G. Gruhler (2006) Einfuehrung-miniMEXLE-AVR.ppt 13

AVR Clock Generation 4 Clocksources -HF Crystal -LF Crystal - RC-Oscillator -ExternalClock Programable prescaler Watchdogtimer Flexible power management Different sleep modes 27 AVR RESET Functions Power-on Reset (no external components) External Reset with Spike Filter Brown-outReset (monitoring Vcc) Watchdog Reset (separate Osc.) Reset source is readable in Status Register 28 HSHN G. Gruhler (2006) Einfuehrung-miniMEXLE-AVR.ppt 14

AVR On-chip Memory 8 KByte Flash for program code (programming parallel or SPI) Bootloader Flash Lock bits for software protection 1 KByte SRAM for Data (adress space with registers+ I/O) 512 Bytes EEPROM for nonvolatile data in I/O-space 29 AVR On-chip Peripherals Up to 23 digital bidirectional I/Olines (Read-Modify- Write functionality) 3 Timer/Counters 2x 8 Bit, 1x 16 Bit (with Capture and Compare units and PWM generation) 10-Bit A/D-Converter (up to 72 khz rate) 3 serial interfaces (USART, SPI, TWI) 30 HSHN G. Gruhler (2006) Einfuehrung-miniMEXLE-AVR.ppt 15

AVR Digital I/O Flexible structure (In, Out, In/Out, Read/Modify/Write) by 2 Flip-Flops Selectable Pull-Up resistor per pin Sleep mode inputs Synchronizerfor external signals to avoid meta stable situations Alternate functions selectable per pin 31 AVR Timer/Counter Units Timer for internal clock signals with extra prescaler Counterfor external signals with edge detect Output compare functions for PWM waveforms Input compare function only on 16 Bit Timer 1 (measurement) 32 HSHN G. Gruhler (2006) Einfuehrung-miniMEXLE-AVR.ppt 16

AVR SPI Interface High speed serial 8- Bit interface for peripherals and programming of chip Max. speedclk/2 = 10 MBit/second Master/Slave structure with fullduplex function Clock prescaler Wake up functionality 33 AVR USART Interface Full-duplex 8 Bit USART with 5..9 data bits and 1..2 stop bits Internal baud rate generator Asynchronuous and synchronuous modes Multiprocessormode for communication network Noise filtering High speedspi mode 34 HSHN G. Gruhler (2006) Einfuehrung-miniMEXLE-AVR.ppt 17

AVR TWI/I²C C Interface Powerful 2 lines interface (SCL, SDA) Master and Slave operation Multimaster ability Up to 400kBits/sec Up to 128 slave adress space Adressrecognition for wake-up functionionality 35 AVR A/D Converter 6 A/D-channels up to 10 Bits resolution 13 260 µs conversion time (max. 15 ksamples/sec with full resolution) Internal bandgap reference Input voltage range from GND - Vcc Severalclockingmodes: - free running - single conversion - event triggered 36 HSHN G. Gruhler (2006) Einfuehrung-miniMEXLE-AVR.ppt 18

AVR PWM Generation Timer-based PWM generation by Output Compare Registers and additional logic Different waveforms with SET clear and TOGGLE of the output pin Fast PWM-Modes (up to 72 khz at 8 Bits) Single slope application with fixed or variable puls period Phase correct PWM- Mode especially for motor drives applications 37 AVR Internet Resources http://www.atmel.com/products/avr/ http://www.avrprojects.net/ 38 HSHN G. Gruhler (2006) Einfuehrung-miniMEXLE-AVR.ppt 19

Overview 1. Introduction 2. MiniMEXLE Hardware 3. ATMEL AVR Microcontrollers 4. Teaching Informatics with MEXLE 39 What is Informatics? Technical Informatics Hardware components Microcontrollers Architecture of Computers Computer Networks Practical Informatics Algorithms Data Structures Programming languages Operating systems Theoretical Informatics Theory of automats Formal semantics Analysis of algorithms Compilers Applied Informatics Information systems Computer graphics Artificial intelligence Digital signal processing 40 HSHN G. Gruhler (2006) Einfuehrung-miniMEXLE-AVR.ppt 20

Basic Informatics for Engineers Digital Circuits Microcontroller Technology Function of State Mashines Memory components Programming in C Realtime and Multitasking Software-based Measurements Embedded Systems 41 Technical Informatics - Contents Course run in the 1. Semester Number systems in the informatics Digital logic components / Boolean algebra Developing combinatorial logic Practical realization of combinatorial logic Flip-Flops and memories State machines and their development Architecture and components of microcontrollers (µc) Structure of an AVR-based microcontroller system Programming of microcontrollers with assembler Realization of a sample project in software 42 HSHN G. Gruhler (2006) Einfuehrung-miniMEXLE-AVR.ppt 21

Technical Informatics - Tools 43 I thank you very much for your attention 44 HSHN G. Gruhler (2006) Einfuehrung-miniMEXLE-AVR.ppt 22