Instructor: Dr. Phillip Jones

Similar documents
CprE 288 Introduction to Embedded Systems (Analog-to-Digital Converter)

CprE 288 Introduction to Embedded Systems (Output Compare and PWM) Instructors: Dr. Phillip Jones

Digital Design Laboratory Lecture 7. A/D and D/A

DASL 120 Introduction to Microcontrollers

Analog to Digital Conversion

Embedded Robotics. Software Development & Education Center

Unit D. Serial Interfaces. Serial vs. Parallel. Serial Interfaces. Serial Communications

uc Crash Course Whats is covered in this lecture Joshua Childs Joshua Hartman A. A. Arroyo 9/7/10

READ THIS FIRST: *One physical piece of 8.5x11 paper (you may use both sides). Notes must be handwritten.

Standard single-purpose processors: Peripherals

Programming and Interfacing

Select the single most appropriate response for each question.

Hello, and welcome to this presentation of the STM32L4 comparators. It covers the main features of the ultra-lowpower comparators and some

Activity 4: Due before the lab during the week of Feb

Mechatronics Laboratory Assignment 3 Introduction to I/O with the F28335 Motor Control Processor

DATA CONVERSION AND LAB (17.368) Fall Class # 07. October 16, 2008

Real Time Embedded Systems. Lecture 1 January 17, 2012

ELCT 912: Advanced Embedded Systems

EE251: Tuesday October 10

Hello, and welcome to this presentation of the STM32 Infrared Timer. Features of this interface allowing the generation of various IR remote control

MICROPROCESSORS A (17.383) Fall Lecture Outline

Data Conversion and Lab (17.368) Fall Lecture Outline

Designing with STM32F3x

Wide Range Voltage to Frequency Converter using PSoC3 Microcontroller

Lab 2.2 Custom slave programmable interface

Training Schedule. Robotic System Design using Arduino Platform

ATmega 16. Dariusz Chaberski

802.11g Wireless Sensor Network Modules

Exercise 3: Sound volume robot

DNT2400. Low Cost 2.4 GHz FHSS Transceiver Module with I/O

Serial Input/Output. Lecturer: Sri Parameswaran Notes by: Annie Guo

EE 314 Spring 2003 Microprocessor Systems

THE PERFORMANCE TEST OF THE AD CONVERTERS EMBEDDED ON SOME MICROCONTROLLERS

Roland Kammerer. 13. October 2010

32-bit ARM Cortex-M0, Cortex-M3 and Cortex-M4F microcontrollers

Pololu TReX Jr Firmware Version 1.2: Configuration Parameter Documentation

Brian Hanna Meteor IP 2007 Microcontroller

EECE494: Computer Bus and SoC Interfacing. Serial Communication: RS-232. Dr. Charles Kim Electrical and Computer Engineering Howard University

CR 33 SENSOR NETWORK INTEGRATION OF GPS

Digital-to-Analog Converter. Lab 3 Final Report

DNT24MCA DNT24MPA. Low Cost 2.4 GHz FHSS Transceiver Modules with I/O. DNT24MCA/MPA Absolute Maximum Ratings. DNT24MCA/MPA Electrical Characteristics

Hashemite University Faculty of Engineering Mechatronics Engineering Department. Microprocessors and Microcontrollers Laboratory

DNT900. Low Cost 900 MHz FHSS Transceiver Module with I/O

MY-ZB010C UART to ZigBee Module

EE 308 Lab Spring 2009

Characteristic Sym Notes Minimum Typical Maximum Units Operating Frequency Range MHz. RF Chip Rate 11 Mcps RF Data Rates 1, 2, 5.

Review for Final Exam

Serial communication inverter. Lab bench scenario. Inverter Board, A/D, D/A, PWM, Filters, Encoders. Inverter board. and Dimmer introduction

Low Power with Long Range RF Module DATASHEET Description

ARDUINO / GENUINO. start as professional. short course in a book. faculty of engineering technology

ECE251 Intro to Microprocessors Final Exam July 6 th, 2017

Lab 7 Remotely Operated Vehicle v2.0

Lesson UART. Clock Systems and Timing UART (Universal Asynchronous Receiver-Transmitter) Queues Lab Assignment: UART

Human-Robot Interaction Class Koosy Human-Robot Interaction Class

SNIOT702 Specification. Version number:v 1.0.1

EE 308: Microcontrollers

a6850 Features General Description Asynchronous Communications Interface Adapter

DISCONTINUED. Modulation Type Number of RF Channels 15

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

Ocean Controls KT-5221 Modbus IO Module

Page 1. Midterm #2. OpAmp Review. Inverting & Non-inverting Circuits CS/ECE 6780/5780. Al Davis. Almost ubiquitous analog circuit element since ~1968

BSc (Hons) Computer Science with Network Security, BEng (Hons) Electronic Engineering. Cohorts: BCNS/17A/FT & BEE/16B/FT

Carbon Dioxide (Tiny CO2) Gas Sensor. Rev TG400 User Manual

EE445L Fall 2014 Quiz 2A Page 1 of 5

Microcontroller: Timers, ADC

Project Final Report: Directional Remote Control

Electrical Engineering 40 Introduction to Microelectronic Circuits

Preface. Texas Instruments Robotics System Learning Kit The Maze Edition

Project Name Here CSEE 4840 Project Design Document. Thomas Chau Ben Sack Peter Tsonev

Total Hours Registration through Website or for further details please visit (Refer Upcoming Events Section)

Design and FPGA Implementation of a High Speed UART. Sonali Dhage, Manali Patil,Navnath Temgire,Pushkar Vaity, Sangeeta Parshionikar

PULSE CODE MODULATION (PCM)

Lecture #4 Outline. Announcements Project Proposal. AVR Processor Resources

APPLICATION BULLETIN. SERIAL BACKGROUNDER (Serial 101) AB23-1. ICS ICS ELECTRONICS division of Systems West Inc. INTRODUCTION CHAPTER 2 - DATA FORMAT

MSP430 Family Mixed-Signal Microcontroller Application Reports

Lab 1.2 Joystick Interface

ME 4447 / ME 6405 MICROPROCESSOR CONTROL OF MANUFACTURING SYSTEMS / INTRODUCTION TO MECHATRONICS

DNT90MCA DNT90MPA. Low Cost 900 MHz FHSS Transceiver Modules with I/O

ECE251 Intro to Microprocessors Final Exam July 6 th, 2017

ME 461 Laboratory #5 Characterization and Control of PMDC Motors

Welcome to EGN-1935: Electrical & Computer Engineering (Ad)Ventures

EE445L Spring 2018 Final EID: Page 1 of 7

General Purpose Controller Software for Controls Lab

I 2 C RedBot & DC Motor Servo Motor Control

Systems & Devices Part 1

VC7300-Series Product Brief

Serial Communication AS5132 Rotary Magnetic Position Sensor

Lab Exercise 6: Digital/Analog conversion

Homework 9: Software Design Considerations

Computerized Data Acquisition Systems. Chapter 4

A Beginners Guide to AVR

Lab 13: Microcontrollers II

EE251: Thursday October 25

Mapping Peripheral Capabilities When Migrating From 8-bit to 16-bit PIC MCUs

Figure 1: One Possible Advanced Control System

PROPOSED SCHEME OF COURSE WORK

ME 461 Laboratory #3 Analog-to-Digital Conversion

Characteristic Sym Notes Minimum Typical Maximum Units Operating Frequency Range MHz Operating Frequency Tolerance khz

GE423 Laboratory Assignment 6 Robot Sensors and Wall-Following

Advanced Laser Control System V2.1 Beta

Transcription:

CprE 288 Introduction to Embedded Systems Exam 2 Review Instructor: Dr. Phillip Jones http://class.ece.iastate.edu/cpre288 1

Announcements http://class.ece.iastate.edu/cpre288 2

EXAM http://class.ece.iastate.edu/cpre288 3

Announcements Exam 2: Thursday 11/9, in class Open textbook/datasheet, 1 page of paper notes, and calculator allowed 75 minutes Electronic textbook/datasheet is fine. But nothing else on your electronic device can be used or you will receive an F for CPRE 288 http://class.ece.iastate.edu/cpre288 4

Exam Topics Programming TMC4123 I/O modules and functions USART ADC Input capture (Timer/Counter) Output compare (Timer/Counter) Generating waves (PWM mode, Periodic Mode) General Timer Modes GPIO Configuration On each subject, be familiar with Application background, working principles, and related concepts Programming interface Writing C functions for common purposes Typical application scenarios http://class.ece.iastate.edu/cpre288 5

Exam Questions Some common question styles Short questions Conceptual Analysis Calculation Programming: for a given application Initialize an I/O module Access I/O data Interrupt programming And others http://class.ece.iastate.edu/cpre288 6

Exam Questions: Data Sheet, Read it & ask questions Flavors of some potential Exam 2 questions Program configuration registers to meet given requirements UART, ADC, Input Capture, Output Compare, Timers, Interrupts There is a section for each device mentioned above in the data sheet Based on a given configuration, answer questions about how a program will behave E.g. How long will something take to occur? E.g. How many times a second will something occur? Explain why a given configuration is incorrect for implementing a specified behavior Assuming a given configuration, write a short program to implement a specific behavior ADC calculation problems http://class.ece.iastate.edu/cpre288 7

Exam Preparation How to prepare Review Labs Review the lecture slides Read datasheet when needed Review/redo homework Proficiency and efficiency are importance Ask questions Emails http://class.ece.iastate.edu/cpre288 8

USART http://class.ece.iastate.edu/cpre288 9

USART: Serial Communication USART = Universal Synchronous & Asynchronous Serial Receiver & Transmitter We only studied the Asynchronous part (UART) Serial communication: Data is transmitted bit by bit at the physical layer of network Can transmit over long link distances Uses start and stop to sandwich data bits parity bit can be used for error detection http://class.ece.iastate.edu/cpre288 10

Baud Rate and Frame Format Important concepts Baud rate: Number of symbols transmitted per second from the transmitter to the receiver It s also the rate of symbol changes to the transmission media Frame format: The format of a single data packet USART transmits one data packet per request One data packet contains a single data character, plus start bit, stop bit(s), and optional parity bit http://class.ece.iastate.edu/cpre288 11

Frame Format Start bit: logic low, 1 bit Data bits: 5, 6, 7, 8, or 9 bits Parity bit: Optional 1 bit, Odd, Even or none Stop bit: logic high, 1 bit or 2 bits Both sides of communication should use the same frame format and baud rate 12

ADC http://class.ece.iastate.edu/cpre288 13

Sensor and ADC Sensor output A/D input A/D Digital output Temperature Sensor _max = 200 C Sensor Input (T) Temperature vs. Voltage (Sensor Specification) A/D_Vmax=3.3V A/D: Analog Input vs. Digital Output (M = 2 n -1 steps (or bins):dmax =Vmax ) A/D Input (V) T_min = 0 C Sensor_Vmin = 0 Vmax = 3.3V Analog Sensor Output (V) A/D_Vmin = 0 V 10-bit D = 0 Dmax = Digital Output (D) 1023 14

Sensor and ADC 100 C Sensor output 1.65V A/D input A/D Digital = 515 output Temperature Sensor _max = 200 C Sensor Input (T) Temperature vs. Voltage (Sensor Specification) Slope = Sensitive 60.61 C/V A/D_Vmax=3.3V A/D: Analog Input vs. Digital Output (M = 2 n -1 steps (or bins):dmax =Vmax ) A/D Input (V) Slope = Resolution.0032 V/bit T_min = 0 C Sensor_Vmin = 0 Vmax = 3.3V Analog Sensor Output (V) A/D_Vmin = 0 V 10-bit D = 0 Dmax = Digital Output (D) 1023 15

analog input (V) analog output (V) Sampling and Conversion Mapping between Analog and Digital V max = 7.5V 1111 7.0V 1110 6.5V 1101 6.0V 1100 5.5V 1011 5.0V 1010 4.5V 1001 4.0V 1000 3.5V 0111 3.0V 0110 2.5V 0101 2.0V 0100 1.5V 0011 1.0V 0010 0.5V 0001 0V 0000 proportionality Vmax=7.5V 4 3 2 1 t1 t2 t3 t4 0100 0111 0110 0101 Digital output Digital sampling of an analog signal analog to digital time 4 3 2 1 t1 t2 t3 t4 time 0100 1000 0110 0101 Digital input Digital generation of an analog signal digital to analog Embedded Systems Design: A Unified Hardware/Software Introduction, (c) 2000 Vahid/Givargis 2.0V Vmin=0V D=0 (0000) 4-bit Digital Output (D) Dmax=15 (1111) 16

Formula for Conversion Assume linear sensor, ADC is always linear Sensor converts analog signal to electrical signal (voltage) ADC converts an electrical signal (voltage) to a digital number http://class.ece.iastate.edu/cpre288 17

Constructing the ADC (Successive Approximation) It s built upon a DAC Vmax=16V Vmin=0V Comparator Let M = 2 n DAC Guess = 9V Analog Input a=9.5v =< 1 (Yes) n=4 State machine Timing control SAR 1 0 0 1 SAR BUF 1001 Digital output SAR: Successive approximation register Step Range Mid (digital) Mid (voltage) Is a >= Guess (voltage)? 0 0bxxxx 0b1000 8 Volts Yes 1 0b1xxx 0b1100 12 Volts No 2 0b10xx 0b1010 10 Volts No 3 0b100x 0b1001 9 Volts Yes 4 0b1001 http://class.ece.iastate.edu/cpre288 18

INPUT CAPTURE AND OUTPUT COMPARE http://class.ece.iastate.edu/cpre288 19

Input Capture and Output Compare Input capture and output compare work with digital waveforms IC: Recognize waveforms by capturing the time of events OC: Generate waveforms by setting the time of events TMC4123 has several Timer modes http://class.ece.iastate.edu/cpre288 20