University of Kashan Faculty of Electrical and Computer Engineering Department of Computer Engineering. Lecture note 2

Size: px
Start display at page:

Download "University of Kashan Faculty of Electrical and Computer Engineering Department of Computer Engineering. Lecture note 2"

Transcription

1 University of Kashan Faculty of Electrical and Computer Engineering Department of Computer Engineering Lecture note 2 Memory and IO Interfacing to & An Introduction to AVR Microcontrollers Hossein Sabaghian-Bidgoli hsabaghianb@gmail.com Fall 2014 Outlines Memory Connections (continue) Address Bit Map Memory Map Full and Partial Decoding IO Connections The AVR Microcontrollers: History and Features (Chapter 1) 2 Microprocessors University of Kashan 1

2 Memory and IO Connections How to Connect,, IO and the other peripherals Data BUS General Purpose Micro processor Address BUS Timer Serial COM Port IO Port Control BUS Memory Connection Generally should be connected Data to data Address to address Wr to wr Rd to rd Mreq to cs 4 Microprocessors University of Kashan 2

3 Memory connection (cont.) If only one chip Full size (64 kb capacity) ~A0 ~A0 64 kb Memory connection (cont.) If capacity was 32 kb composed with area is from h to 7FFFh ~A0 ~A0 32 kb 3

4 Memory Connection : : : : : : 4000h ~4FFFh 7 Microprocessors University of Kashan Memory connection (cont.) There is two 32 kb Problem: Bus Conflict. The two memory chips will provide data at the same time when microprocessor performs a memory read. Solution: Use address line as an arbiter. If outputs a logic 1 the upper memory is enabled (and the lower memory is disabled) and vice-versa. 4

5 Memory connection (cont.) There is two 32 kb applied to select one chip Two area is from h to 7FFFh (1) and 8000h to (2) ~A0 ~A kb 2 32 kb ~A0 Memory connection (cont.) 32 kb and 32 kb doesn t have wr signal ~A0 ~A0 32 kb 32 kb ~A0 5

6 Memory connection (cont.) There is 4 memory chip and applied to chip selection En S0 S1 Address Bit Map Selects chip Selects location within chips to A0 (HEX) h 4000h AA AA Memory Chip 7FFFh 8000h BFFFh C000h

7 Memory Map Represents the memory type Address area of each memory chip Empty area En S0 S1 h 4000h 7FFFh 8000h BFFFh C000h 16k 1 16k 2 16k 3 16k Memory Map Empty Area cann t write and read Read op. returns FFh value (usualy) Write op. cann t store any value on it h 4000h Empty En S0 S1 7FFFh 8000h BFFFh C000h 2 3 7

8 Memory Map Empty Area cann t write and read Read op. returns FFh value (usualy) Write op. cann t store any value on it h 4000h Empty En S0 S1 7FFFh 8000h BFFFh C000h Empty Full and Partial Decoding Full (exhaust) Decoding All of the address lines are connected to any memory/device to perform selection Absolute address : any memory location has one address Partial Decoding When some of the address lines are connected the memory/device to perform selection Results into roll-over addresses (fold back or shading). Roll-over address : any memory location has more than one address 8

9 Partial Decoding ~A12 has no connection Then doesn t play any role in addressing What is the Memory and Address Bit map? A11~A0 A11~A0 4 kb ~A12 X Partial Decoding Every memory location has more than one address For example first location has addresses: h 1000h 2000h 3000h Roll-over Address.. F000h h 0FFFh 1000h 1FFFh 2000h 2FFFh 3000h F000h to A0 (HEX) Memory Chip A11~A0 ~A12 X 4 kb A11~A0 X000h XFFFh xxxx xxxx 9

10 Partial Decoding A12 only connected to A13 has no connection What is the memory map? A11~A0 4 kb 8 kb A13 X Z80 Partial Decoding 8 roll-over address for 4 roll-over address for A13 X 4 kb A11~A0 8 kb xxx 0xxx X0x0 X0x Memory Chip 10

11 11 Partial Decoding Memory Chip 0xxx 0xxx 4k X0x0 X0x1 8k h 1FFFh h 0FFFh 1000h 1FFFh 2000h 2000h 2FFFh 3000h 4000h 5FFFh 4000h 4FFFh 5000h 5FFFh 6000h 7FFFh 6000h 6FFFh 7000h 7FFFh 8000h 9FFFh F000h A000h BFFFh C000h DFFFh E000h 4 kb Z80 A11~A0 8 kb X A13 Conflict Partial Decoding Memory Chip 0xxx 0xxx 4k X1x0 X1x1 8k h 1FFFh h 0FFFh 1000h 1FFFh 2000h 2000h 2FFFh 3000h 4000h 5FFFh 4000h 4FFFh 5000h 5FFFh 6000h 7FFFh 6000h 6FFFh 7000h 7FFFh 8000h 9FFFh F000h A000h BFFFh C000h DFFFh E000h 4 kb Z80 A11~A0 8 kb X A13 Conflict

12 12 Full (exhaustive) decoding Y0 Y1 Y2 Y3 Y6 Y4 Y7 Y5 C B A G2A G2B G EP 8k 8 CE 6116 RWM 2k 8 A10~A0 A10~A0 A13 A12 A h-07ffh 0800h-0FFFh 1000h-17FFh 1800h-1FFFh 2000h-27FFh Memory Chip Partial decoding Y0 Y1 Y2 Y3 Y6 Y4 Y7 Y5 C B A G2A G2B G EP 8k 8 CE 6116 RWM 2k 8 A10~A0 A10~A0 A13 h-1fffh 2000h Memory Chip x 001x x000 x111 GND VCC

13 A simple output port : A0 D7 D6 D5 D4 D3 D2 D1 D0 OUT (03), A D0 D1 D2 D3 D4 74LS373 D5 D6 D7 Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7 LE IORQ IO A 7 A 6 A 5 A 4 A 3 A 2 A 1 A 0 A simple input port : A0 D7 D6 D5 D4 D3 D2 D1 D0 IN A, (02) Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7 A0 A1 A2 A3 74LS244 A4 G1 G2 A5 A6 A7 5V IORQ IO A 7 A 6 A 5 A 4 A 3 A 2 A 1 A 0 13

14 Microcontroller Microprocessor = on a single chip. ALU + registers + control + Micro-computer = small computer up + I/O + memory + peripheral + Microcontroller (uc) u-computer on a single chip of silicon 27 Microprocessors University of Kashan Microprocessors vs. Microcontrollers Microprocessors General Purpose Data BUS General Purpose Micro processor Address BUS Timer Serial COM Port IO Port Control BUS Microcontrollers Embedded system Fix amount of on-chip,, I/O Lower cost, power and space Single application One application software is burned into Serial Port Timer I/O 28 Microprocessors University of Kashan 14

15 Most common microcontrollers 8-bit microcontrollers H PIC AVR 32-bit microcontrollers PIC32 ARM Classic AVR Mega Tiny Special Purpose 29 Microprocessors University of Kashan AVR internal architecture 40 PIN DIP PROG Program Bus (XCK/T0) PB0 (T1) PB1 (INT2/AIN0) PB2 (OC0/AIN1) PB3 (SS) PB4 (MOSI) PB5 (MISO) PB6 (SCK) PB7 RESET VCC Bus 10 GND 11 XTAL2 12 XTAL1 13 (RXD) PD0 14 (TXD) PD1 15 (INT0) PD2 16 (INT1) PD3 17 (OC1B) PD4 18 (OC1A) PD5 19 (ICP) PD6 20 OSC MEGA32 Interrupt Unit PA0 (ADC0) PA1 (ADC1) EEP PA2 (ADC2) PA3 (ADC3) PA4 (ADC4) PA5 (ADC5) PA6 (ADC6) PA7 (ADC7) AREF AGND AVCC PC7 (TOSC2) PC6 (TOSC1) PC5 (TDI) PC4 (TDO) PC3 (TMS) PC2 (TCK) PC1 (SDA) Ports PC0 (SCL) PD7 (OC2) Timers Other Peripherals I/O PINS 30 15

16 Classic AVR e.g. AT90S2313, AT90S4433 Mega AVR different groups e.g. ATmega8, ATmega32, ATmega128 Tiny e.g. ATtiny13, ATtiny25 Special Purpose AVR e.g. AT90PWM216,AT90USB The AVR part numbers AT90S4433 ATmega1280 Atmel Classic group Flash =4K Atmel group Flash =128K AT90CAN128 ATtiny44 Atmel Special purpose group Flash =4K Atmel Tiny group Flash =4K 33 16

17 Choosing a Microcontroller Meeting the computing needs of the task efficiently and cost effectively Speed, the amount of and, the number of I/O ports and timers, size, packaging, power consumption Easy to upgrade Cost per unit Availability of software development tools Assemblers, debuggers, C compilers, emulator, simulator, technical support Wide availability and reliable sources for the microcontroller. The End Questions? 35 Microprocessors University of Kashan 17

Programming Microcontroller Assembly and C

Programming Microcontroller Assembly and C Programming Microcontroller Assembly and C Course Number CLO : 2 Week : 5-7 : TTH2D3 CLO#2 Student have the knowledge to create basic programming for microcontroller [C3] Understand how to program in Assembly

More information

Chapter 5. Address. data. Z80 Computer System Design. Simplified Z80 System Architecture. Memory. program. data. Minimum Z80 Computer System

Chapter 5. Address. data. Z80 Computer System Design. Simplified Z80 System Architecture. Memory. program. data. Minimum Z80 Computer System Simplified System Architecture I/O Port Address Addr 00 Addr Chapter Computer System Design FF I/O Port Decoder IORQ data MEMRQ Address Decoder program data FFFF Minimum Computer System Minimum Computer

More information

Arduino Diecimila Pinouts 697B B8D-A50A-61944C26074F

Arduino Diecimila Pinouts 697B B8D-A50A-61944C26074F mightwerk Resources for creators and innovators outs 697B1380-9797-4B8D-A50A-61944C26074F Introduction... 1 4-pin Expansion Header out... 2 6-pin ICSP Header out... 3 Map from to... 4 Map from ATmega328

More information

Lecture 14. Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Lecture 14. Ali Karimpour Associate Professor Ferdowsi University of Mashhad Lecture 14 AUTOMATIC CONTROL SYSTEMS Ali Karimpour Associate Professor Ferdowsi University of Mashhad Lecture 4 The AVR Microcontroller Introduction to AVR CISC (Complex Instruction Set Computer) Put as

More information

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

2011 Pearson Higher Education, Mazidi, Naimi, and Naimi Pearson Higher Education, 2011 Pearson Higher Education, Objectives Students should be able to: The AVR microcontroller and embedded systems using assembly and c Introduction to AVR Chapter 1 Compare and contrast microprocessors and microcontrollers Describe

More information

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

U6DIL. AVR USB Module. Rev. 1.1 Documentation Rev. 18. Reusch Elektronik Reusch Elektronik, Dipl.-Ing. (FH) Rainer Reusch AVR USB Module Documentation Rev. 18 2011, Dipl.-Ing. (FH) Rainer Reusch www.reusch-elektronik.de http://products.reworld.eu/u6dil.htm File: _Manual Created: 2011-02-22 Changed: 2011-03-31 Table of Contents

More information

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

U4DIL. AVR USB Module. Rev. 1.1 Documentation Rev. 19. Reusch Elektronik Reusch Elektronik, Dipl.-Ing. (FH) Rainer Reusch AVR USB Module Documentation Rev. 19 2010, Dipl.-Ing. (FH) Rainer Reusch www.reusch-elektronik.de http://products.reworld.eu/u4dil.htm File: _Manual Created: 2010-02-10 Changed: 2010-09-07 Contents 1.

More information

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

Various power connectors. 3.3V regulator. 64K Flash (Internal) 2K EEPROM (Internal) 4K SRAM (Internal) JA Mem Adr/ Data. Doc: page 1 of 9 Cerebot II Board Reference Manual Revision: September 14, 2007 Note: This document applies to REV B of the board. www.digilentinc.com 215 E Main Suite D Pullman, WA 99163 (509) 334 6306 Voice and Fax Overview

More information

EMB128. ere co., ltd.

EMB128. ere co., ltd. ATMEGA128 Embedded Board Main Features Atmega128 8-bit RISC CPU (AVR family) Serial EEPROM (I2C), 24LC256 Real Time Clock, DS1307 3V lithium battery keeping time and date 2 channels RS485 2 channels RS232

More information

CHW 469 : Embedded Systems

CHW 469 : Embedded Systems CHW 469 : Embedded Systems Instructor: Dr. Ahmed Shalaby http://bu.edu.eg/staff/ahmedshalaby4# I/O Ports in AVR The AVR microcontroller and embedded systems using assembly and c Topics AVR pin out The

More information

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

3.3V regulator. JA H-bridge. Doc: page 1 of 7 Digilent Cerebot Board Reference Manual Revision: 11/17/2005 www.digilentinc.com 215 E Main Suite D Pullman, WA 99163 (509) 334 6306 Voice and Fax Overview The Digilent Cerebot Board is a useful tool for

More information

Microprocessors And Microcontroller

Microprocessors And Microcontroller Microprocessors And Microcontroller Semester : 4 th, 5 th (TL, ES) Course Code : ES256, ES313 By: Dr. Attiya Baqai Assistant Professor, Department of Electronics, MUET. Internal block diagram of CPU Internal

More information

Introduction to Microcontrollers

Introduction to Microcontrollers CSE391: Embedded Systems and Interfacing Introduction to Microcontrollers Nazmus Saquib Lecturer Department of Computer Science and Engineering Bangladesh University of Engineering and Technology April

More information

Topic 11: Interrupts ISMAIL ARIFFIN FKE UTM SKUDAI JOHOR

Topic 11: Interrupts ISMAIL ARIFFIN FKE UTM SKUDAI JOHOR Topic 11: Interrupts ISMAIL ARIFFIN FKE UTM SKUDAI JOHOR Objectives To become familiar with interrupts on the AVR Maskable and non-maskable Initialization Triggers To develop interrupt service routines

More information

ET-BASE AVR (ATmega8535)

ET-BASE AVR (ATmega8535) ET-BASE AVR (ATmega8535) ET-BASE AVR which is AVR Board Microcontroller from ATMEL has MCU No. Atmega8535 40 Pin in circuit. Board ET-BASE AVR uses MCU resources as main and I/O PORT are arranged as PORT

More information

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

Revision: 05/05/ E Main Suite D Pullman, WA (509) Voice and Fax. Various power connectors. 3.3V regulator Digilent Cerebot Plus Board Reference Manual Revision: 05/05/2008 www.digilentinc.com 215 E Main Suite D Pullman, WA 99163 (509) 334 6306 Voice and Fax Overview The Digilent Cerebot Plus Board is a useful

More information

Review on Lecture-1. ICT 6641: Advanced Embedded System. Lecture 2 Branch, Call and Delay Loops, AVR I/O port programming

Review on Lecture-1. ICT 6641: Advanced Embedded System. Lecture 2 Branch, Call and Delay Loops, AVR I/O port programming ICT 6641: Advanced Embedded System Lecture 2 Branch, Call and Delay Loops, AVR I/O port programming Prof. S. M. Lutful Kabir Session: April, 2011 Review on Lecture-1 Three parts of a computer : CPU, Memory

More information

AVRUSBPRG1 USB AVR IN SYSTEM PROGRAMMER

AVRUSBPRG1 USB AVR IN SYSTEM PROGRAMMER AVRUSBPRG1 USB AVR IN SYSTEM PROGRAMMER 2016 Table of Contents 1- Introduction 1.1- AVRUSBPRG1 Features 1.2- Supported Devices 1.3- System Requirement 1.4- Pinout 2- AVRUSBPRG1 Driver Installation 3- Running

More information

AVR 40 Pin Rapid Robot controller board

AVR 40 Pin Rapid Robot controller board AVR 40 Pin Rapid Robot controller board User Manual Robokits India http://www.robokits.org info@robokits.org - 1 - Thank you for purchasing the AVR 40 Pin Rapid Robot controller board. This unit has been

More information

State-of-the Art Evaluation Module for 8, 20 & 40-pin Microcontrollers PRODUCT GUIDE. (Version 2.00)

State-of-the Art Evaluation Module for 8, 20 & 40-pin Microcontrollers PRODUCT GUIDE. (Version 2.00) State-of-the Art Evaluation Module for, 0 & 0-pin Microcontrollers PRODUCT GUIDE (Version.00) Evalur User Manual V.00 Copyright Information Equinox guarantees that its products will be free from defects

More information

AVR Development Tools

AVR Development Tools F ollowing on from the success of the Atmel ATmega0 and ATmega microcontrollers, Atmel have recently introduced four new members to the ATmega AVR FLASH Microcontroller Family: ATmega, ATmega, ATmega &

More information

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

Hardware Manual. Crumb128. Rapid Prototyping Module with the Atmega128 AVR Microcontroller Hardware Manual Crumb128 Rapid Prototyping Module with the Atmega128 AVR Microcontroller Version 1.1 Copyright 2004 Dr. Erik Lins, Development and Distribution of Hardware and Software. All right reserved.

More information

8-bit Microcontroller with 8K Bytes In-System Programmable Flash AT89S52

8-bit Microcontroller with 8K Bytes In-System Programmable Flash AT89S52 Features Compatible with MCS -51 Products 8K Bytes of In-System Programmable (ISP) Flash Memory Endurance: 10,000 Write/Erase Cycles 4.0V to 5.5V Operating Range Fully Static Operation: 0 Hz to 33 MHz

More information

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture Department of Electrical Engineering Lecture 4 The 8051 Architecture 1 In this Lecture Overview General physical & operational features Block diagram Pin assignments Logic symbol Hardware description Pin

More information

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

FIFTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLOGY-MARCH 2014 EMBEDDED SYSTEMS (Common for CT,CM) [Time: 3 hours] (Maximum marks : 100) (Revision-10) FIFTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLOGY-MARCH 2014 EMBEDDED SYSTEMS (Common for CT,CM) [Time: 3 hours] (Maximum marks : 100) PART-A (Maximum marks : 10) I. Answer all

More information

Module 2: Introduction to AVR ATmega 32 Architecture

Module 2: Introduction to AVR ATmega 32 Architecture Module 2: Introduction to AVR ATmega 32 Architecture Definition of computer architecture processor operation CISC vs RISC von Neumann vs Harvard architecture AVR introduction AVR architecture Architecture

More information

PB-MC-AVR28 28 Pin AVR Full Size Development Board

PB-MC-AVR28 28 Pin AVR Full Size Development Board PB-MC-AVR28 28 Pin AVR Full Size Development Board PB-MC-AVR28-UG TABLE OF CONTENTS 1. OVERVIEW... 1 1.1. Introduction... 1 1.2. References... 1 1.2.1. Board Versions... 1 1.2.2. Referenced Documents...

More information

PB-MC-AVR28 28 Pin AVR Full Size Development Board

PB-MC-AVR28 28 Pin AVR Full Size Development Board PB-MC-AVR28 28 Pin AVR Full Size Development Board PB-MC-AVR28-UG TABLE OF CONTENTS 1. OVERVIEW... 1 1.1. Introduction... 1 1.2. References... 1 1.2.1. Referenced Documents... 1 1.2.2. Acronyms and Abbreviations...

More information

Charon 2M. Ethernut embedded ethernet module with 128 kb SRAM. Main Features

Charon 2M. Ethernut embedded ethernet module with 128 kb SRAM. Main Features Charon 2M Ethernut embedded ethernet module with 128 kb SRAM Main Features Full duplex IEEE 802.3 10 Mb/s Ethernet ATmega 128 RISC AVR microcontroller - up to 16 MIPS throughput 128 kbyte In-System Programmable

More information

Figure 1-1 ISPAVRU1 application

Figure 1-1 ISPAVRU1 application ISP AVR Programmer through USB Main Features AVR Studio Interface (AVR Studio 4.12 or later) Supports all AVR Device with ISP interface, refer to AVR Studio Programs both Flash and EEPROM Supports Fuse

More information

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Ali Karimpour Associate Professor Ferdowsi University of Mashhad AUTOMATIC CONTROL SYSTEMS Ali Karimpour Associate Professor Ferdowsi University of Mashhad Main reference: Christopher T. Kilian, (2001), Modern Control Technology: Components and Systems Publisher: Delmar

More information

AVR Microcontroller with Core Independent Peripherals and PicoPower technology

AVR Microcontroller with Core Independent Peripherals and PicoPower technology AVR Microcontroller with Core Independent Peripherals and PicoPower technology Introduction The picopower ATmega324PB is a low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC architecture.

More information

1.6inch SPI Module user manual

1.6inch SPI Module user manual 1.6inch SPI Module user manual www.lcdwiki.com 1 / 10 Rev1.0 Product Description The 1.6 module is tested using the ESP8266MOD D1 Mini development board, Both the test program and the dependent libraries

More information

ATmega324PB Xplained Pro. Preface. AVR 8-bit Microcontrollers USER GUIDE

ATmega324PB Xplained Pro. Preface. AVR 8-bit Microcontrollers USER GUIDE AVR 8-bit Microcontrollers ATmega324PB Xplained Pro USER GUIDE Preface The Atmel ATmega324PB Xplained Pro evaluation kit is a hardware platform to evaluate the ATmega324PB microcontroller. Supported by

More information

AC-PG-USBASP USBASP AVR Programmer

AC-PG-USBASP USBASP AVR Programmer AC-PG-USBASP USBASP AVR Programmer User Guide Download drivers from Jaycar website under the product download section TABLE OF CONTENTS 1. OVERVIEW... 2 1.1. Introduction... 2 1.2. References... 2 1.2.1.

More information

STK User Guide

STK User Guide STK500... User Guide Table of Contents Section 1 Introduction... 1-1 1.1 Starter Kit Features...1-1 1.2 Device Support...1-2 Section 2 Getting Started... 2-1 2.1 Unpacking the System...2-1 2.2 System

More information

ATmega128. Introduction

ATmega128. Introduction ATmega128 Introduction AVR Microcontroller 8-bit microcontroller released in 1997 by Atmel which was founded in 1984. The AVR architecture was conceived by two students (Alf-Egil Bogen, Vergard-Wollen)

More information

Atmel AVR datasheet. Matrix Multimedia Atmel AVR Board EB Contents

Atmel AVR datasheet. Matrix Multimedia Atmel AVR Board EB Contents Atmel AVR datasheet Contents 1. About this document 2. General information 3. Board overview 4. Getting Started 5. Block schematic and description Appendix A. Circuit diagram B. Compatible AVR device C.

More information

8051 Microcontroller

8051 Microcontroller 8051 Microcontroller The 8051, Motorola and PIC families are the 3 leading sellers in the microcontroller market. The 8051 microcontroller was originally developed by Intel in the late 1970 s. Today many

More information

PIC-32MX development board Users Manual

PIC-32MX development board Users Manual PIC-32MX development board Users Manual All boards produced by Olimex are ROHS compliant Rev.A, June 2008 Copyright(c) 2008, OLIMEX Ltd, All rights reserved INTRODUCTION: The NEW PIC-32MX board uses the

More information

8051 MICROCONTROLLERS

8051 MICROCONTROLLERS 8051 MICRO The 8051 and Embedded Systems: Using Assembly and C Mazidi, Mazidi and McKinlay Chung-Ping Young 楊中平 Home Automation, Networking, and Entertainment Lab Dept. of Computer Science and Information

More information

Microprocessors And Microcontrollers (Practical)

Microprocessors And Microcontrollers (Practical) Microprocessors And Microcontrollers (Practical) Semester : 4 th, 5 th (TL, ES) Course Code : ES256, ES313 By: Dr. Attiya Baqai Assistant Professor, Department of Electronics, MUET. 3 Introduction to Programming

More information

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

U2DIL. AVR USB Module. Rev. 1.1 Documentation Rev. 37. Reusch Elektronik Reusch Elektronik, Dipl.-Ing. (FH) Rainer Reusch AVR USB Module Rev. 1.1 Documentation Rev. 37 Reusch Elektronik 2010 Reusch Elektronik, Dipl.-Ing. (FH) Rainer Reusch www.reusch-elektronik.de http://products.reworld.eu/u2dil.htm File: _Manual Created:

More information

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Ali Karimpour Associate Professor Ferdowsi University of Mashhad AUTOMATIC CONTROL SYSTEMS Ali Karimpour Associate Professor Ferdowsi University of Mashhad Main reference: Christopher T. Kilian, (2001), Modern Control Technology: Components and Systems Publisher: Delmar

More information

AVR- M16 development board Users Manual

AVR- M16 development board Users Manual AVR- M16 development board Users Manual All boards produced by Olimex are ROHS compliant Rev. C, January 2005 Copyright(c) 2009, OLIMEX Ltd, All rights reserved Page1 INTRODUCTION AVR-M16 is header board

More information

keyestudio Keyestudio MEGA 2560 R3 Board

keyestudio Keyestudio MEGA 2560 R3 Board Keyestudio MEGA 2560 R3 Board Introduction: Keyestudio Mega 2560 R3 is a microcontroller board based on the ATMEGA2560-16AU, fully compatible with ARDUINO MEGA 2560 REV3. It has 54 digital input/output

More information

HCS12 Microcontroller and Embedded Systems: Using Assembly and C with CodeWarrior 1 st Edition

HCS12 Microcontroller and Embedded Systems: Using Assembly and C with CodeWarrior 1 st Edition Online Instructor s Manual to accompany HCS12 Microcontroller and Embedded Systems: Using Assembly and C with CodeWarrior 1 st Edition Muhammad Ali Mazidi Danny Causey Prentice Hall Boston Columbus Indianapolis

More information

PIC Microcontroller and

PIC Microcontroller and PIC Microcontroller and Embedded d Systems Muhammad Ali Mazidi, Rolin McKinlay and Danny Causey Eng. Husam Alzaq The Islamic Uni. Of Gaza The PIC ucs 1-1 Chapter 1: The PIC Microcontrollers: History and

More information

Distributed Real- Time Control Systems

Distributed Real- Time Control Systems Distributed Real- Time Control Systems Lecture 2 Embedded Systems Basics A. Bernardino, C. Silvestre, IST- ACSDC 1 What are embedded systems? Small computers to efficiently address specific purposes, e.g.

More information

ISPcable II. User s Guaid. Programer for AVR, AT89S and AT90S Atmel microcontrollers with serial interface. REV Beta 1.1. Many ideas one solution

ISPcable II. User s Guaid. Programer for AVR, AT89S and AT90S Atmel microcontrollers with serial interface. REV Beta 1.1. Many ideas one solution ISPcable II REV Beta. Programer for AVR, ATS and AT0S Atmel microcontrollers with serial interface. User s Guaid Evalu ation Board s for, AVR, ST, PIC microcontrollers Sta- rter Kits Embedded Web Serve

More information

Intel 8255 PPI. Presented By: Diwakar Yagyasen Asst. Prof. CSE BBDNITM, Lucknow.

Intel 8255 PPI. Presented By: Diwakar Yagyasen Asst. Prof. CSE BBDNITM, Lucknow. Intel 8255 PPI Presented By: Diwakar Yagyasen Asst. Prof. CSE BBDNITM, Lucknow. 8255 PPI PPI: Programmable Peripheral Interface 2 Intel 8255 PPI PPI Programmable Peripheral Interface It is an I/O port

More information

EMX Module Specifications

EMX Module Specifications EMX is a combination of hardware (ARM Processor, Flash, RAM, Ethernet PHY...etc) on a very small (1.55 x1.8 ) SMT OEM 8-Layer board that hosts Microsoft.NET Micro Framework with various PAL/HAL drivers.

More information

Figure 1. JTAGAVRU1 application The JTAGAVRU1 is supported by AVR Studio. Updated versions of AVR Studio is found on

Figure 1. JTAGAVRU1 application The JTAGAVRU1 is supported by AVR Studio. Updated versions of AVR Studio is found on JTAG AVR Emulator through USB Main Features AVR Studio Compatible Supports AVR Devices with JTAG Interface Emulates Digital and Analog On-Chip Functions Data and Program Memory Breakpoints Supports Assembler

More information

E High Frequency Step Down Converter for Constant Current. Figure 1: Demonstration Board

E High Frequency Step Down Converter for Constant Current. Figure 1: Demonstration Board E. DEMSTRATI BOARD SEP, AN E. High Frequency Step Down Converter for Constant Current Figure : Demonstration Board What you get. Demo board with x step down converter for constant current with E. driving

More information

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

VLSI Design Lab., Konkuk Univ. Yong Beom Cho LSI Design Lab AVR Training Board-I V., Konkuk Univ. Yong Beom Cho ybcho@konkuk.ac.kr What is microcontroller A microcontroller is a small, low-cost computeron-a-chip which usually includes: An 8 or 16 bit microprocessor

More information

Section 1 Introduction

Section 1 Introduction Section 1 Introduction The ATmegaICE is a real time In-Circuit Emulator (ICE) for all ATmega devices. It can be upgraded to support future ATmega parts. It is controlled by AVR Studio, which is a professional

More information

Auxiliary Board MP-Bus HZS 562

Auxiliary Board MP-Bus HZS 562 MP BUS AUXILIARY BOARD HZS 562 Auxiliary Board MP-Bus HZS 562 The MP bus interface electronics connect a CAN bus system with an MP bus system. The electronics are used as an MP bus master to control MP

More information

Interconnects, Memory, GPIO

Interconnects, Memory, GPIO Interconnects, Memory, GPIO Dr. Francesco Conti f.conti@unibo.it Slide contributions adapted from STMicroelectronics and from Dr. Michele Magno, others Processor vs. MCU Pipeline Harvard architecture Separate

More information

STK User Guide

STK User Guide STK500... User Guide Table of Contents Section 1 Introduction... 1-1 1.1 Starter Kit Features...1-1 1.2 Device Support...1-2 Section 2 Getting Started... 2-1 2.1 Unpacking the System...2-1 2.2 System Requirements...2-1

More information

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

AVRminiV3.1 Manual. 1. AVRminiV3.1 Overview. 2. AVRminiV3.1 Features and Specifications Standard Features: 2.2. Optional Features: AVRminiV3. Manual. AVRminiV3. Overview The AVRminiV3. board is a low-cost versatile development board for Atmel AVR processors. The AVRminiV3. supports all AVR processors in 40-pin and 64-pin packages

More information

< W3150A+ / W5100 Application Note for SPI >

< W3150A+ / W5100 Application Note for SPI > < W3150A+ / W5100 Application Note for SPI > Introduction This application note describes how to set up the SPI in W3150A+ or W5100. Both the W3150A+ and W5100 have same architecture. W5100 is operated

More information

WIZTECH AUTOMATION SOLUTIONS (P) LTD., An ISO 9001:2000 and IAO certified company

WIZTECH AUTOMATION SOLUTIONS (P) LTD., An ISO 9001:2000 and IAO certified company WIZTECH AUTOMATION SOLUTIONS (P) LTD., An ISO 9001:2000 and IAO certified company #102, W Block, 2nd and 3rd floor, 2nd Avenue, Anna nagar Roundtana, Chennai-40 E-mail: wiztech4automation@gmail.com web:

More information

ATmega48/88/168 Development Board

ATmega48/88/168 Development Board ATmega// Development Board This is versatile development board for AVR microcontrollers ATmega//. It is good for testing and debugging embedded programs. It has many built-in peripheries connected to microcontroller

More information

ATmega164P/V. Introduction. Feature. 8-bit AVR Microcontrollers DATASHEET SUMMARY

ATmega164P/V. Introduction. Feature. 8-bit AVR Microcontrollers DATASHEET SUMMARY 8-bit AVR Microcontrollers ATmega164P/V DATASHEET SUMMARY Introduction The Atmel picopower ATmega164P is a low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC architecture. By executing

More information

Memory Expansion. Lecture Embedded Systems

Memory Expansion. Lecture Embedded Systems Memory Expansion Lecture 22 22-1 In These Notes... Memory Types Memory Expansion Interfacing Parallel Serial Direct Memory Access controllers 22-2 Memory Characteristics and Issues Volatility - Does it

More information

MOD-IO development board Users Manual

MOD-IO development board Users Manual MOD-IO development board Users Manual All boards produced by Olimex are ROHS compliant Rev. B, September 0 Copyright(c) 0, OLIMEX Ltd, All rights reserved Page INTRODUCTION MOD-IO is a small but powerful

More information

USER GUIDE. Atmel ATMEGA256RFR2 Xplained Pro. Preface

USER GUIDE. Atmel ATMEGA256RFR2 Xplained Pro. Preface USER GUIDE Atmel ATMEGA256RFR2 Xplained Pro Preface The Atmel ATMEGA256RFR2 Xplained Pro evaluation kit is hardware platform to evaluate the ATmega256RFR2 microcontroller. Supported by the Atmel Studio

More information

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

AVR Training Board-I. VLSI Design Lab., Konkuk Univ. LSI Design Lab AVR Training Board-I V., Konkuk Univ. Tae Pyeong Kim What is microcontroller A microcontroller is a small, low-cost computeron-a-chip which usually includes: An 8 or 16 bit microprocessor (CPU). A small

More information

ATmega1284P. Introduction. Feature. 8-bit AVR Microcontrollers DATASHEET COMPLETE

ATmega1284P. Introduction. Feature. 8-bit AVR Microcontrollers DATASHEET COMPLETE 8-bit AVR Microcontrollers ATmega1284P DATASHEET COMPLETE Introduction The Atmel picopower ATmega1284P is a low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC architecture. By executing

More information

ET-BASE AVR ATmega64/128

ET-BASE AVR ATmega64/128 ET-BASE AVR ATmega64/128 ET-BASE AVR ATmega64/128 which is a Board Microcontroller AVR family from ATMEL uses MCU No.ATmega64 and ATmega128 64PIN. Board ET-BASE AVR ATmega64/128 uses MCU s resources on

More information

Lecture-50 Intel 8255A: Programming and Operating Modes

Lecture-50 Intel 8255A: Programming and Operating Modes Lecture-50 Intel 8255A: Programming and Operating Modes Operation Description: There are three basic modes of operation that can be selected by the system software. Mode 0: Basic Input/output Mode 1: Strobes

More information

The Atmel ATmega328P Microcontroller

The Atmel ATmega328P Microcontroller Ming Hsieh Department of Electrical Engineering EE 459Lx - Embedded Systems Design Laboratory 1 Introduction The Atmel ATmega328P Microcontroller by Allan G. Weber This document is a short introduction

More information

ET-AVRProg mini. Technical Specifications of ET-AVRProg mini

ET-AVRProg mini. Technical Specifications of ET-AVRProg mini ET-AVRProg mini ET-AVRProg mini is the board that is designed to download HEX File into AVR Microcontroller of ATMEL through PORT ISP. It is compatible with Program AvrProg, AvrOspll, CodeVision, avrdude

More information

ATmega324P/V. Introduction. Feature. 8-bit AVR Microcontrollers DATASHEET COMPLETE

ATmega324P/V. Introduction. Feature. 8-bit AVR Microcontrollers DATASHEET COMPLETE 8-bit AVR Microcontrollers ATmega324P/V DATASHEET COMPLETE Introduction The Atmel picopower ATmega324P is a low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC architecture. By executing

More information

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

EXL x240 Graphic LCD Smart Module 3,8 SHORT FORM TECHNICAL SPECIFICATIONS.   Via di Corticella, Bologna, Italy 320x240 Graphic LCD Smart Module 3,8 SHORT FORM TECHNICAL SPECIFICATIONS www.exelmicroel.it Via di Corticella, 201 40128 - Bologna, Italy Tel: +39 051 6380211 Fax: +39 051 6380226 exelbo@exelmicroel.it

More information

Chapter 14. Motorola MC68HC11 Family MCU Architecture

Chapter 14. Motorola MC68HC11 Family MCU Architecture Chapter 14 Motorola MC68HC11 Family MCU Architecture Lesson 1 68HC11 MCU Architecture overview 2 Outline CPU Registers, MCU Architecture overview Address and Data Buses Execution Unit- ALU Ports 3 CPU

More information

Zippy AVR Programmer. Zippy Programmer Features. Lomae Pty Ltd PO BOX 1297 Baulkham Hills, NSW,1755 ACN

Zippy AVR Programmer. Zippy Programmer Features. Lomae Pty Ltd PO BOX 1297 Baulkham Hills, NSW,1755 ACN PO BOX 97 ACN 0 80 56 Zippy AVR Programmer Introduction When Atmel released their 8 Bit AVR Microcontroller range, they also released a complete development system that allowed engineers to start developing

More information

Sanguino TSB. Introduction: Features:

Sanguino TSB. Introduction: Features: Sanguino TSB Introduction: Atmega644 is being used as CNC machine driver for a while. In 2012, Kristian Sloth Lauszus from Denmark developed a hardware add-on of Atmega644 for the popular Arduino IDE and

More information

AT89S4D12. 8-Bit Microcontroller with 132K Bytes Flash Data Memory AT89S4D12. Features. Description. Pin Configurations

AT89S4D12. 8-Bit Microcontroller with 132K Bytes Flash Data Memory AT89S4D12. Features. Description. Pin Configurations Features Compatible with MCS-51 Products 128K Bytes of In-System Reprogrammable Flash data memory and 4K Bytes of Downloadable Flash Program Memory Endurance: 1,000 Write/Erase Cycles per Sector Data Retention:

More information

Interface DAC to a PC. Control Word of MC1480 DAC (or DAC 808) 8255 Design Example. Engineering 4862 Microprocessors

Interface DAC to a PC. Control Word of MC1480 DAC (or DAC 808) 8255 Design Example. Engineering 4862 Microprocessors Interface DAC to a PC Engineering 4862 Microprocessors Lecture 22 Cheng Li EN-4012 licheng@engr.mun.ca DAC (Digital-to-Analog Converter) Device used to convert digital pulses to analog signals Two methods

More information

Microcontrollers and Interfacing

Microcontrollers and Interfacing Microcontrollers and Interfacing Week 10 Serial communication with devices: Serial Peripheral Interconnect (SPI) and Inter-Integrated Circuit (I 2 C) protocols College of Information Science and Engineering

More information

AVR Microcontrollers Architecture

AVR Microcontrollers Architecture ก ก There are two fundamental architectures to access memory 1. Von Neumann Architecture 2. Harvard Architecture 2 1 Harvard Architecture The term originated from the Harvard Mark 1 relay-based computer,

More information

STK200 Starter Kit User Guide May 2004

STK200 Starter Kit User Guide May 2004 STK200 Starter Kit User Guide ---------------------------------------------------------------- May 2004 R Table of Contents Section 1 Introduction... 1-1 1.1 Device Support...1-1 Section 2 Getting Started...

More information

WBoard EX. -WIFI Development Platform Based on Arduino

WBoard EX. -WIFI Development Platform Based on Arduino 1 WBoard EX -WIFI Development Platform Based on Arduino Overview WBoard EX is a unique Arduino board with WIFI module, XBee socket, nrf24l01 + module interface, micro SD card interface, electronic brick

More information

Engr. A. N. Aniedu Electronic and Computer Engineering Nnamdi Azikiwe University, Awka

Engr. A. N. Aniedu Electronic and Computer Engineering Nnamdi Azikiwe University, Awka Engr. A. N. Aniedu Electronic and Computer Engineering Nnamdi Azikiwe University, Awka INTRODUCTION Microcontroller vs General Purpose Microprocessor General-purpose microprocessors contains No RAM No

More information

32-bit ARM Cortex -M3 FM3 Microcontroller

32-bit ARM Cortex -M3 FM3 Microcontroller 32-bit ARM Cortex -M3 FM3 Microcontroller The MB9AAA0N Series are highly integrated 32-bit microcontrollers that dedicated for embedded controllers with low-power consumption mode and competitive cost.

More information

ATMega128 Rapid Robot Controller Board [RKI-1148]

ATMega128 Rapid Robot Controller Board [RKI-1148] ATMega128 Rapid Robot Controller Board [RKI-1148] Users Manual Robokits India info@robokits.co.in Robokits World http://www.robokitsworld.com http://www.robokitsworld.com Page 1 Thank you for purchasing

More information

How to Use an Arduino

How to Use an Arduino How to Use an Arduino By Vivian Law Introduction The first microcontroller, TMS-1802-NC, was built in 1971 by Texas Instruments. It owed its existence to the innovation and versatility of silicon and the

More information

AVR-TLCD-128CAN development board Users Manual

AVR-TLCD-128CAN development board Users Manual AVR-TLCD-128CAN development board Users Manual Rev.A, July 2008 Copyright(c) 2008, OLIMEX Ltd, All rights reserved INTRODUCTION: AVR-TLCD-128CAN adds cool LCD and touchscreen interface to your next project.

More information

I/O Design. Input / Output Instructions. Engineering 4862 Microprocessors. Lecture 23. Cheng Li

I/O Design. Input / Output Instructions. Engineering 4862 Microprocessors. Lecture 23. Cheng Li Engineering 4862 Microprocessors Lecture 23 Cheng Li EN-4012 licheng@engr.mun.ca I/O Design When designing an I/O port, ensure that the port is only active when selected by the microprocessor Use latches

More information

Introduction to 8051 microcontrollers

Introduction to 8051 microcontrollers Introduction to 8051 microcontrollers Posted on May 7, 2008, by Ibrahim KAMAL, in Micro-controllers, tagged This tutorial is specially tailored to electronics and robotics hobbyists that have already realized

More information

PIO 8255 (cont..) M Krishna kumar MAM/M3/LU9e/V1/2004 1

PIO 8255 (cont..) M Krishna kumar MAM/M3/LU9e/V1/2004 1 PIO 8255 (cont..) The parallel input-output port chip 8255 is also called as programmable peripheral input-output port. The Intel s 8255 is designed for use with Intel s 8-bit, 16-bit and higher capability

More information

ATMega128_v2 A plug-on processor board.

ATMega128_v2 A plug-on processor board. NIK HEF NATIONAL INSTITUTE FOR NUCLEAR AND HIGH ENERGY PHYSICS ETR 2003-01 january 2003 ET 22920.01.01.v2 Updated: april 2003 ATMega128_v2 A plug-on processor board. A general purpose plug-on board. Most

More information

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

MEXLE. International Educational Platform. International Educational Platform. for Informatics based on Embedded Systems 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

More information

Memory Interfacing & decoding. Intel CPU s

Memory Interfacing & decoding. Intel CPU s Memory Interfacing & decoding in Intel CPU s Outline Address decoding Chip select Memory configurations Minimum Mode - - A19 - A19 - Simplified Drawing of 8088 Minimum Mode MEMORY MEMW When Memory is selected?

More information

Atmel AT32UC3A3256 microcontroller 64MBit SDRAM Analog input (to ADC) Temperature sensor RC filter

Atmel AT32UC3A3256 microcontroller 64MBit SDRAM Analog input (to ADC) Temperature sensor RC filter APPLICATION NOTE Features Atmel AVR32918: UC3-A3 Xplained Hardware User s Guide Atmel AT32UC3A3256 microcontroller 64MBit SDRAM Analog input (to ADC) Temperature sensor RC filter I/O One mechanical button

More information

Hardware Reference. DIL/NetPC DNP/2110 Board Revision 1.0

Hardware Reference. DIL/NetPC DNP/2110 Board Revision 1.0 DIL/NetPC DNP/2110 Board Revision 1.0 Hardware Reference SSV Embedded Systems Heisterbergallee 72 D-30453 Hannover Phone +49-(0)511-40000-0 Fax +49-(0)511-40000-40 E-mail: sales@ist1.de Manual Revision:

More information

ELEG3923 Microprocessor Ch.0 & Ch.1 Introduction to Microcontroller

ELEG3923 Microprocessor Ch.0 & Ch.1 Introduction to Microcontroller Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch. & Ch. Introduction to Microcontroller Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 What is microcontroller? (Ch..) 85 Microcontroller

More information

Three criteria in Choosing a Microcontroller

Three criteria in Choosing a Microcontroller The 8051 Microcontroller architecture Contents: Introduction Block Diagram and Pin Description of the 8051 Registers Some Simple Instructions Structure of Assembly language and Running an 8051 program

More information

EN25S40 4 Megabit 1.8V Serial Flash Memory with 4Kbyte Uniform Sector

EN25S40 4 Megabit 1.8V Serial Flash Memory with 4Kbyte Uniform Sector EN25S40 4 Megabit 1.8V Serial Flash Memory with 4Kbyte Uniform Sector FEATURES Single power supply operation - Full voltage range: 1.65-1.95 volt Serial Interface Architecture - SPI Compatible: Mode 0

More information