Microcontrollers, Basics Fundamentals of Designing with Microcontrollers 16 January 2012 Jonathan A. Titus.

Slides:



Advertisements
Similar presentations
EEE226 MICROPROCESSORBY DR. ZAINI ABDUL HALIM School of Electrical & Electronic Engineering USM.
Advertisements

Embedded Computer ( Sisteme incorporate ) MPU vs. CPU / Alternative Texas Instrument, Freescale, ARM RISC and CISC approaches Single Chip Design System.
1-1 Microprocessor Engineering Microprocessor Systems Microcontrollers Infineon 16-bit Processor Family  specifically 167CS microcontroller C Programming.
Railway Foundation Electronic, Electrical and Processor Engineering.
Railway Foundation Electronic, Electrical and Processor Engineering.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
Programming 8-bit PIC Microcontrollers in C Martin Bates Elsevier 2008.
Indian Institute of Technology Hyderabad PC CONTROLLED BOT D. HARISH KUMAR CE12B1005 N. ABHINAND SAI CS12B1027 G.NITiSH EE12B1008.
Fundamental of Microcontrollers
Microcontrollers, Basics Fundamentals of Designing with Microcontrollers 16 January 2012 Jonathan A. Titus.
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,
Arduino Josh Villbrandt February 4, Digital Circuits Analog versus digital – What’s the difference? – How to represent an analog signal in a computer?
Input/Output mechanisms
0 - 1 Digital Signal Controller TMS320F2812 Texas Instruments Incorporated European Customer Training Center University of Applied Sciences Zwickau (FH)
Core of the Embedded System
Typical Microcontroller Purposes
Micro processor and Micro Controllers
Microcontroller Presented by Hasnain Heickal (07), Sabbir Ahmed(08) and Zakia Afroze Abedin(19)
Microcontrollers, Basics How Do I Choose the Right MCU? 17 January 2012 Jonathan A. Titus.
MICROPROCESSOR AND MICRO CONTROLLER
MICROCONTROLLER SYSTEMS Part 1. Figure 1.1Elements of a digital controller CPU Central Processing Unit Input Peripherals Output Peripherals ROM Read Only.
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.
Lecture 7: Overview Microprocessors / microcontrollers.
Chapter Microcontroller
ECET 340 Entire Course (All ilabs and Homework) For more classes visit ECET 340 Week 1 HomeWork 1 ECET 340 Week 1 iLab 1 ECET 340.
ECE 101 Exploring Electrical Engineering Chapter 7 Data Acquisition Herbert G. Mayer, PSU Status 11/30/2015 Derived with permission from PSU Prof. Phillip.
NAM S.B MDLAB. Electronic Engineering, Kangwon National University 1.
Networked Embedded Systems Sachin Katti EE107 Spring 2016 Lecture 3 Microcontrollers.
Networked Embedded Systems Pengyu Zhang EE107 Spring 2016 Lecture 8 Serial Buses.
MICROPROCESSOR INTEL 8086/8088 BY: SERA SYARMILA SAMEON.
CEng3361/18 CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT Spring 2007 Recitation 01.
Case Study #1 Microcontroller System. What is a microcontroller? A microcontroller can be considered a self-contained system with a processor, memory.
USING TV REMOTE AS A CORDLESS MOUSE FOR THE COMPUTER
CORDLESS MOUSE FEATURES BY TV REMOTE USING PIC MICROCONTROLLER
Introduction to Microcontroller Technology
Lizard Labs Peripheral Reflex System
Cypress Roadmap: Platform PSoC®
Popular Microcontrollers and their Selection by Lachit Dutta
Microcontrollers, Basics Tips and Tricks with PIC MCUs
Outline Analog to digital conversion (ADC) of NuMaker TRIO
Microcontrollers, Basics How Do I Choose the Right MCU?
Microcontrollers, Basics Fundamentals of Digital Debugging
Microcontrollers & GPIO
EE 107 Fall 2017 Lecture 5 Serial Buses – UART & SPI
Cypress Roadmap: CapSense® Controllers
UNIT – Microcontroller.
BITS EDU. CAMPUS , VARNAMA
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
Course Overview and The 8051 Architecture
Atmega32 Serial Programming Basics
The Arduino Microcontroller: Atmel AVR Atmega 328
Subject Name: Microcontroller Subject Code: 10ES42
ECET 340 Competitive Success/snaptutorial.com
ECET 340 Education for Service-- snaptutorial.com.
ECET 340 Teaching Effectively-- snaptutorial.com.
Introduction to Microprocessors and Microcontrollers
Lecture 3 - Instruction Set - Al
University of Illinois, at Urbana-Champaign
ECE 354 Computer Systems Lab II
Journey: Introduction to Embedded Systems
PLC’s Are ... Similar to a Microcontroller: Microprocessor Based
CSCI1600: Embedded and Real Time Software
AVR – ATmega103(ATMEL) Architecture & Summary
8051 Micro Controller.
CSCI1600: Embedded and Real Time Software
Manual Robotics ..
EECE.3170 Microprocessor Systems Design I
Wireless Embedded Systems
Course Code 114 Introduction to Computer Science
Presentation transcript:

Microcontrollers, Basics Fundamentals of Designing with Microcontrollers 16 January 2012 Jonathan A. Titus

Differences between Microprocessors and Microcontrollers Microprocessors (μPs) General-purpose compute “engine” External memory and I/O devices Often requires an operating system (OS)

Differences between Microprocessors and Microcontrollers Microcontrollers (MCUs) Usually chosen for a specific purpose Small packages On-chip memory and peripherals Fast “on time,” no BIOS or OS needed

Where Did the MCU Come From? Intel introduced the 8051 MCU in 1980 Small amount of read-only memory (ROM) External memory expansion if needed Four 8-bit I/O ports Not much different from today’s MCUs

8051 Architecture (1980)

Texas Instruments MSP430 MCU

Why Use an MCU? Everything in one small package Mix and match peripherals and I/O types Lots of memory, flash for code, SRAM for data Readily available hardware and software tools Helpful support communities and forums Reference designs Code libraries and examples

What Peripherals Do MCUs Offer? Digital I/O -- On or Off Parallel signals Pulse-width-modulated logic signals Counters and timers Analog I/O -- Voltages Comparators Analog-to-digital converters (ADCs) Digital-to-analog converters (DACs)

What Peripherals Do MCUs Offer? Communication Devices UART or USART SPI I2C I2S CAN USB Ethernet Interrupts

Peripherals Devices in MCUs Parallel I/O Ports Usually 8 or 16 bits for simultaneous control Toggle individual bits Require setup of registers

Parallel I/O-Port Examples

How Do I Set Up I/O Ports?

Pulse-Width Modulator PWM Peripheral Converts a value to a proportional pulse width Operate continuously and independently Motor, LED, servo, and power control

Counters and Timers Operate for a specific period or create a delay Count external events, count up or down Count clock “ticks” between the same or different events Choose from various clock sources

Analog Comparator Compare two voltages and... Cause a bit to change state Generate an interrupt Wake an MCU from a sleep state

Analog-to-Digital Converter Convert a voltage to a digital value; 8, 10, 12 bits... Unipolar, 0 volts to MCU V+ (+3.3 or 5 volts) Might require external signal conditioning

Digital-to-Analog Converter Unipolar output, might require external offset High-impedance output, could require buffering 10- and 12-bit DACs common on MCUs Filter a PWM output to get an analog voltage

UART Communications Universal Asynchronous Receiver-Transmitter (UART) Serial communications Self-timing operations Usually 8-bit transmissions at standard rates Common on most MCUs

UART Communications Timing Communications at 9600 bits/sec

Serial-Communications Reference “Serial Port Complete,” 2nd ed., by Jan Axelson, Lakeview Research, 2007. ISBN: 978-1- 931448-06-2.

Serial Peripheral Interface (SPI) Used for chip-to-chip communications Requires a clock signal to all SPI (“spy”) devices Not a formal standard Operates with ADCs, DACs, real-time clocks

Inter Integrated-Circuit Interface (I2C) Similar to SPI communications, but two wires Multiple masters and slaves Acknowledgements and bus arbitration Philips (NXP) standard (Rev. 3, June 2007)

Controller-Area Network (CAN) 23 Controller-Area Network (CAN) A standard for vehicle equipment Uses an ISO-type “stack” 2-wire differential bus, no common ground needed Uses standardized packets of information

Controller-Area Network (CAN) References ISO Standard 11898-x ($) “Controller Area Network,” by Konrad Etschberger,” IXXAT Automation, 2001. ISB: 978-3-00- 007376-0. “A Comprehensive Guide to Controller Area Network,” by Wilfried Voss, Copper Hill Media, 2008. ISBN: 978-0976511601.

Ethernet and USB Governed by standards Require a software “stack” 25 Ethernet and USB Governed by standards Require a software “stack” Purchase, license, or create one yourself MCU vendors might have stacks Some MCUs include everything except the physical interface (PHY) Can demand considerable memory Start with a development kit or reference design

Interrupts Cause immediate action 26 Interrupts Cause immediate action Internal and external hardware and software sources Two types of action -- one or many vectors Can present debug challenges

An ADC Interrupt

How Do I Get a Quick Start?

How Do I Get Started?

Hed Text Bullets If Needed