EMBEDDED SYSTEMS Unit 3.

Slides:



Advertisements
Similar presentations
ECE/CS-352: Embedded Microcontroller Systems The Silicon Laboratories C8051F020 Enhanced 8051 Part 5 Other Subsystems.
Advertisements

Chung-Ta King National Tsing Hua University
Sistemi Elettronici Programmabili13-1 MULTI OSC + CLOCK FILTER LVD POWER SUPPLY CONTROL 8 BIT CORE ALU PROGRAM MEMORY RAM I2CI2C PORT A SPI PORT B 16-BIT.
Instructor: Dr Aleksandar Milenkovic Lecture Notes
Oscilloscope Watch Teardown. Agenda History and General overview Hardware design: – Block diagram and general overview – Choice of the microcontroller.
EET260: A/D and D/A converters
Chapter 11 Direct Memory Access (DMA)
Infineon Technologies Corp. June 99 1 HOT167-1 Version 2.0 F PWMmax = x 50ns = 78 kHz Pulse Width Modulation Unit (PWM) (20 MHz)  4 independent.
HT46 A/D Type MCU Series Data Memory (Byte) Program Memory HT46R22 (OTP) HT46C22 (Mask) 2Kx Kx16 4Kx HT46R23 (OTP) HT46C23 (Mask) HT46R24.
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
Digital I/O Connecting to the Outside World
BLDC MOTOR SPEED CONTROL USING EMBEDDED PROCESSOR
AVR  Modern RISC architecture: Compact and FAST.  Tuned for high level languages.  Consistent architecture across entire line.  Small AVR are subsets.
T IMERS - 2. O UTPUT U NIT Each capture/compare block contains an output unit. The output unit is used to generate output signals such as PWM signals.
7/23 Timers in Coldfire Processor Computer Science & Engineering Department Arizona State University Tempe, AZ Dr. Yann-Hang Lee (480)
ARM Timers.
System Clocks.
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 8.
MSP430 Mixed Signal Microcontroller – Parte 2 Afonso Ferreira Miguel Source: slau056d – Texas instruments.
AT91 Embedded Peripherals
MCU: Interrupts and Timers Ganesh Pitchiah. What’s an MCU ?
CS4101 嵌入式系統概論 Analog-to-Digital Converter 金仲達教授 國立清華大學資訊工程學系 ( Materials from MSP430 Microcontroller Basics, John H. Davies, Newnes, 2008 )
Analog to Digital conversion. Introduction  The process of converting an analog signal into an equivalent digital signal is known as Analog to Digital.
ECE 447 Fall 2009 Lecture 10: TI MSP430 Timers and Capture Modes.
UBI >> Contents Lecture 10 Digital-to-Analogue Conversion & Direct Memory Access (DMA) MSP430 Teaching Materials Texas Instruments Incorporated University.
Lecture 11: TI MSP430 Timers Compare Modes
NSGF 2000 PICO EVENT TIMER HERSTMONCEUX SLR STATION.
CCP MODULES  The CCP module (Capture/Compare/PWM) is a peripheral which allows the user to time and control different events.  Capture Mode provides.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an overview of the Digital-to-Analog.
PREPARED BY V.SANDHIYA LECT/ ECE UNIT- 3 APPLICATIONS OF OP-AMP 1.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose:  This course provides an overview of the serial communication.
Network and Systems Laboratory nslab.ee.ntu.edu.tw.
#1 of 10 Tutorial Introduction PURPOSE -To explain how to configure and use the Timer Interface Module in common applications OBJECTIVES: -Identify the.
Timer 1 and 2 operation, PWM Principles. Timer 1 Operation.
Closed Loop Temperature Control Circuit with LCD Display Mike Wooldridge ECE 4330 Embedded Systems.
Renesas Electronics Europe GmbH A © 2010 Renesas Electronics Corporation. All rights reserved. RL78 AD converter.
-AT91SAM7X256 – Pulse Width Modulation YoonMo Yeon
USING TV REMOTE AS A CORDLESS MOUSE FOR THE COMPUTER
CORDLESS MOUSE FEATURES BY TV REMOTE USING PIC MICROCONTROLLER
Application Case Study Christmas Lights Controller
Recall the Container Thermometer
Why are Timer Functions Important?
Lecture 10: TI MSP430 Timers and Capture Modes
Timers and Event Counters
ECE 3430 – Intro to Microcomputer Systems
Everybody.
Registers and Counters
PWM and DC Motor Control
CS4101 Introduction to Embedded Systems Lab 6: Low-Power Optimization
Timer and Interrupts.
ECE 353 Introduction to Microprocessor Systems
UNIT – Microcontroller.
Chapter 13 Linear-Digital ICs
AVR Addressing Modes Subject: Microcontoller & Interfacing
MSP432 ARM Timer Programming
Oct 30 Announcements Code Marked and on Blackboard
Pulse Width Modulation (PWM) Motor Feedback - Shaft Encoder
ECE 3430 – Intro to Microcomputer Systems
ECE 3430 – Intro to Microcomputer Systems
I/O PORTS : MSP430x5xx devices have up to 12 digital I/O ports :
Oct 30 Announcements Code Marked and on Blackboard
Programmable Interval timer 8253 / 8254
Digital Control Systems Waseem Gulsher
CPE 323 Introduction to Embedded Computer Systems: DMA Controller
Programmable Interval timer 8253 / 8254
UNIT 19 PWM 로봇 SW 교육원 조용수.
MSP432™ MCUs Training Part 6: Analog Peripherals
8253 – PROGRAMMABLE INTERVAL TIMER (PIT). What is a Timer? Timer is a specialized type of device that is used to measure timing intervals. Timers can.
ECE 3430 – Intro to Microcomputer Systems
Prof. Chung-Ta King Department of Computer Science
Presentation transcript:

EMBEDDED SYSTEMS Unit 3

TIMERS

Basics

Timer_A block diagram

TACTL, Timer_A Control Register

TACCTLx, Timer_A Capture/ Compare Control Register

Output Modes

Output mode Up mode Continuous mode Up/Down mode 1: Set 2: Toggle/Reset 3: Set/Reset 4: Toggle 5: Reset 6: Toggle/Set 7: Reset/Set

Output (mode 0): In which output is controlled directly by the OUT bit in TACCTLn Toggle (mode 4): Provides a simple way of switching a load on and off for equal times (50% duty cycle) Set (mode 1) and Reset (mode 5): Typically used for single changes in the output, usually in the Continuous mode. Reset/Set (mode 7) and Set/Reset (mode 3): Typically used for periodic, edge aligned PWM in Up mode of the counter Toggle/Reset (mode 2) and Toggle/Set (mode 6): Typically used for center-aligned PWM in Up/Down mode

Edge-Aligned PWM

Center-Aligned PWM

MSP430xFxx Operates in 2 modes 32 bit counter Calendar mode The clock needs a 1 Hz input, which it takes from Basic Timer1

RTCCTL RTCYEAR = RTCYEARH:RTCYEARL RTCTIM0 = RTCMIN:RTCSEC. The maximum interval is 2^32 s, which is over 100 years.

Analog Interfacing and data acquisition Comparator: Simple and cheap module that cannot perform a conversion by itself but is usually used with Timer_A to measure the time constant of an external RC circuit. There are two versions, Comparator_A and Comparator_A+. Successive-approximation ADC: The general-purpose type of ADC for many years. It is fast and relatively straightforward to understand. There are two versions, ADC10 and ADC12, which give 10 and 12 bits of output. Sigma–delta ADC: A more complicated ADC that works in a quite different way to give higher resolution (more bits) but at a slower speed. There are two versions, SD16 and SD16_A, both of which give a 16-bit output.

COMPARATOR _A+

CACTL1

CACTL2

CAPD, Comparator_A+, Port Disable Register

ADC

ADC10CTL0

ADC10CTL1

DMA Peripherals use less current than the CPU; The objective of DMA is to move functionality from the CPU to peripherals because: Peripherals use less current than the CPU; Performing operations directly between peripherals allows the CPU to shut down, saving system power; “Intelligent” peripherals are the most capable, providing more opportunity for CPU shutoff; DMA can be enabled for repetitive data handling, increasing the throughput of peripheral modules; Minimal software requirements and CPU cycles.

DMACTL0, DMA Control Register 0 DMAxCTL, DMA Channel x Control Register DMAxSA DMAxSZ DMAxDA DMAIV

CASE STUDY Remote Controller of Air Conditioner Using MSP430

Hardware Structure

Software Structure

Infrared Signal Generation There are several kinds of infrared modulation protocols in the industry Pulse Distance Protocol, Bit Encoding Pulse Distance Protocol, Data Frame Format

Pulse Distance Protocol, TA1 in Envelope Generation

Pulse Distance Protocol, TA0 in Carrier Generation