INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

Size: px
Start display at page:

Download "INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing"

Transcription

1 UNIVERSIDADE TÉCNICA DE LISBOA INSTITUTO SUPERIOR TÉCNICO Departamento de Engenharia Informática Architectures for Embedded Computing MEIC-A, MEIC-T, MERC Lecture Slides Version English Lecture 23 Title: Interface with Peripheral Devices Summary: input/output(memory mapped vs. input/output, pooling, interruptions); (real-time clocks, watchdog timers); control signal generators (Pulse Width Modulators (PWM)); Signal acquisition and conversion (-to-analog Converters (DAC), Analog-to- Converters (ADC), digital input and output). 2010/2011 Nuno.Roma@ist.utl.pt

2 Architectures for Embedded Computing Interface with Peripheral Devices Prof. Nuno Roma ACE 2010/11 - DEI-IST 1 / 54 Previous Class In the previous class... Dedicated architectures: Application Specific Instruction-set Processors (ASIPs) Architectures extensions: Instruction Set Architecture (ISA) extensions Prof. Nuno Roma ACE 2010/11 - DEI-IST 2 / 54

3 Road Map Prof. Nuno Roma ACE 2010/11 - DEI-IST 3 / 54 Summary Today: input/output: Memory mapped / Input & Output Pooling Interruptions : Real-time clocks Watchdog timers control signal generators: Pulse Width Modulators (PWM) Signal acquisition and conversion: -to-analog Converters (DAC) Analog-to- Converters (ADC) input and output Prof. Nuno Roma ACE 2010/11 - DEI-IST 4 / 54

4 Prof. Nuno Roma ACE 2010/11 - DEI-IST 5 / 54 Peripherals Devices Usual CPU interface: Two sets of peripheral registers give support to: Control and interface management; Data exchange between the CPU and the peripheral. Prof. Nuno Roma ACE 2010/11 - DEI-IST 6 / 54

5 Programming Inputs & Outputs (IO) are usually supported by two sets of operations: Memory mapped operations, issued through instructions of type load/store; Operations issued through dedicated IO instructions. Examples: Intel s x86: provides in and out IO dedicated instructions; Atmel s ARM: memory mapped IO. Prof. Nuno Roma ACE 2010/11 - DEI-IST 7 / 54 Example: Atmels ARM Memory mapped IO; The address corresponding to the desired IO device is defined in the program: DEV1 EQU 0x1000 Device read and write operations: LDR r1, #DEV1 ; r1 points to the device LDR r0, [r1] ; reads DEV1 LDR r0, #8 ; r1 holds the value to be written STR r0, [r1] ; writes value to DEV1 Prof. Nuno Roma ACE 2010/11 - DEI-IST 8 / 54

6 Example: Analog Devices SHARC Memory mapped IO; The device is mapped in an address higher than 0x400000; Usage of the DM instruction: IO = 0x400000; MO = 0; R1 = DM(IO,MO); Prof. Nuno Roma ACE 2010/11 - DEI-IST 9 / 54 Dedicated IO instructions Instructions adopted in BASIC programming language: Data read - PEEK: int peek(char *location) { return *location; } Data write - POKE: void poke(char *location, char newval) { (*location) = newval; } Prof. Nuno Roma ACE 2010/11 - DEI-IST 10 / 54

7 IO Control Using Pooling Most simple mechanism to read to or to write from a given device; Uses instructions that test if the device is available; Conducts to very inefficient programs. Write example: Read & Write example: current_char = mystring; while (*current_char!= \0 ) { poke(out_char,*current_char); while (peek(out_status)!= 0); current_char++; } while (TRUE) { /* read */ while (peek(in_status) == 0); achar = (char)peek(in_data); /* write */ poke(out_data,achar); poke(out_status,1); while (peek(out_status)!= 0); } Prof. Nuno Roma ACE 2010/11 - DEI-IST 11 / 54 IO Control Using Interruptions Pooling mechanisms tend to be very inefficient: The CPU cannot do any useful work while it is executing the test cycle; It is difficult to do simultaneous read/write operations. Interrupt based mechanisms allow the interactions with external devices to modify the processor s normal execution flow: Calls to interrupt service routines. Prof. Nuno Roma ACE 2010/11 - DEI-IST 12 / 54

8 IO Control Using Interruptions Interface between the CPU and the external device: The external devices are connected to the bus of the processor; A handshaking protocol is established: The device asserts the interrupt request line; The CPU activates the interrupt acknowledge line as soon as the interruption can be handled. Prof. Nuno Roma ACE 2010/11 - DEI-IST 13 / 54 IO Control Using Interruptions Based on interrupt handling routines; Upon the triggering of the interruption, the next instruction that will be executed will be a call to a specific interrupt handling routine: The returning address and the processor state are saved (e.g.: in stack), in order to allow the recovery of the former processor state. Prof. Nuno Roma ACE 2010/11 - DEI-IST 14 / 54

9 Interrupt Handling Routine Example: Main program: main() { while (TRUE) { if (gotchar) { poke(out_data,newchar); poke(out_status,1); gotchar = FALSE; } } } Interrupt handling routine: void input_handler() { newchar = peek(in_data); gotchar = TRUE; poke(in_status,0); } void output_handler() { } Prof. Nuno Roma ACE 2010/11 - DEI-IST 15 / 54 Control of Reads Using a Characters Queue void input_handler() { char newchar; if (full_buffer()) error = 1; else { newchar = peek(in_data); add_char(achar); } poke(in_status,0); if (nchars > 1){ poke(out_data,remove_char()); poke(out_status,1); } } Prof. Nuno Roma ACE 2010/11 - DEI-IST 16 / 54

10 Storage of Processor Registers Usually, general purpose registers are not automatically saved/restored; What happens if those registers that are modified inside the interrupt service routine are not saved/restored? The main program may present an undesirable behaviour, with a rather unpredictable pattern, which will conduct to a difficult identification of the problem; When programming the interrupt handling routines, it is the programmer responsibility to save the former values of the processor registers; such register values should then be restored, when the handler finishes its operation. Prof. Nuno Roma ACE 2010/11 - DEI-IST 17 / 54 Priority and Vector of Interruptions Two mechanisms are usually applied to define each interruption: The priority determines the interruption processing order; The vector determines which code should be executed for each interruption. Prof. Nuno Roma ACE 2010/11 - DEI-IST 18 / 54

11 Interruptions Priority Maskable interruptions: All lower priority interruptions are not recognized while pending interruptions, with higher priority, haven t still been handled. Non-maskable interruptions: Present the highest priority level; as such, they must be always immediately handled. Example: power loss. Prof. Nuno Roma ACE 2010/11 - DEI-IST 19 / 54 Interrupt Vector Allow that several peripherals may be handled with different code sequences; It is the device (or the interrupt controller) duty to provide the interrupt vector corresponding to the asserted interruption. Prof. Nuno Roma ACE 2010/11 - DEI-IST 20 / 54

12 Interrupt Controller Implements the handshake protocol in lines INT and INTA; Manages the interruptions that were triggered by the several devices: Management and manipulation of the interrupt mask; Priorities resolution; Sends the interrupt vector to the CPU (data bus). Prof. Nuno Roma ACE 2010/11 - DEI-IST 21 / 54 Operations Sequence Required steps, in order to handle a given interruption: 1. CPU acknowledges the request; 2. Device sends the vector; 3. CPU calls the handling routine: (a) Inhibits the handling of other interruptions (DSI); (b) Saves the state register (stack); (c) Saves the PC (stack); (d) INTERRUPT HANDLING; (e) Recovers the PC (stack) (RETI); (f) Recovers the state register (stack); (g) Activates the interruption handling (ENI). 4. CPU recovers the former state of the main program. Prof. Nuno Roma ACE 2010/11 - DEI-IST 22 / 54

13 Congestion Problems Possible congestion sources related with interruption handling: Execution time of the interrupt handling routine; Imposed time overhead, by the handling mechanism; Store and recovery of the registers; Penalties related with the processor s own architecture (e.g.: pipeline); Penalties related with the memory hierarchy architecture (e.g.: caches). Prof. Nuno Roma ACE 2010/11 - DEI-IST 23 / 54 Exceptions and Traps Exceptions: Generated upon an internal processor error; Synchronous; Cannot be predictable; Greater priority than the interruption mechanism; Implemented with they own priority system and based on a vector of exceptions. Traps: Exception that is explicitly triggered by an instruction (INT 15). Prof. Nuno Roma ACE 2010/11 - DEI-IST 24 / 54

14 Prof. Nuno Roma ACE 2010/11 - DEI-IST 25 / 54 : Alarms; Real-time clocks; Watchdog timers. Prof. Nuno Roma ACE 2010/11 - DEI-IST 26 / 54

15 Precise count of time intervals; Counting circuit: Given a signal with frequency f, its period is T = 1/f; If the counter counts up to N, the time interval will be t = T N. 8-bit or 16-bit counters; The clock signal may be either internal or external; A programmable prescaler may also be included; When the counter reaches the end, it activates a flag and may generate an interruption. Prof. Nuno Roma ACE 2010/11 - DEI-IST 27 / 54 Example: Prof. Nuno Roma ACE 2010/11 - DEI-IST 28 / 54

16 Repetitive precise counting of time-intervals: Auto-reload mechanism: The counting value is stored in an auxiliary register; When the counter reaches the end, a pulse is generated and the initial counting value is automatically re-loaded. Much more precise than software solutions: Interruption and interrupt handling routine execute the desired action and reload the counter ( delay...). The delay, although very small, will accumulate along the time... Prof. Nuno Roma ACE 2010/11 - DEI-IST 29 / 54 Example: Down counter; N-1 pulse counter. Prof. Nuno Roma ACE 2010/11 - DEI-IST 30 / 54

17 Repetitive count of the time: Cyclic counter, whose value is compared with a given register content. Operation: The counter is always counting (0, 1,..., FFFE, FFFF, 0, 1,...); Read the counter (e.g.: 1230); To mark 720 time units, the value 1950 is written in R1; Upon the assertion of T1, if more 720 time units are needed to be counted, the value 2670 should be written in R1; Software related delays do not affect the time count (the counter is always counting!!!) The required time interval must be greater than the time that is required to write the new value in the register. Prof. Nuno Roma ACE 2010/11 - DEI-IST 31 / 54 Required precautions that should be taken when reading a 16-bits register in an 8-bits microprocessor: When the counter is read while it is counting, it may be obtained an incorrect value: Read of the higher byte 05; Read of the lower byte 01 (the counter advanced from 05 FF to 06 01) Read value = (Wrong!) Alternative: repeatedly read several times and discard incoherent values; in this example, the value would be obtained upon a new read; The HW solution makes use of two auxiliary registers: Upon the read of the higher byte, the content of the counter is transferred into auxiliary registers; When the lower byte is read, it is provided the value that was stored in the auxiliary register Read value = 05 FF (OK!) By the time the lower byte would be read, the counter value would be 06 01; The difference between these values ( FF=2) corresponds to the time that was required to execute the instructions. Prof. Nuno Roma ACE 2010/11 - DEI-IST 32 / 54

18 Real-Time Clocks Count the real time (our time: seconds, minutes, hours,..., day of the month, year); It is necessary to permanently count the time, even when the system is powered-down: Uses a battery; Must consume very little energy. Usually, a KHz crystal is adopted: By dividing this frequency by an integer power of 2, it is possible to mark 1 second; Since it is a low frequency value, the circuit provides a low-energy consumption. Prof. Nuno Roma ACE 2010/11 - DEI-IST 33 / 54 Real-Time Clocks Many microcontrollers already include an internal Real Time Clock (RTC); Example: DS1307 (Dallas Semiconductor) Counts seconds, minutes, hours, day of the month, month, day of the week and year, with leap year compensation, until 2100; 56 bytes of RAM memory, powered by a battery; 2-wire I2C interface: SDA e SCL; Programmable SQW/OUT output signal: can be used to generate a periodic interruption; Power-loss detection; Consumes less than 500 na (with battery) when the oscillator is operating. Prof. Nuno Roma ACE 2010/11 - DEI-IST 34 / 54

19 Watchdog Timer circuit used to monitor the operation state of a microprocessor; Operation principle: Watchdog counts a given time interval; Before such time interval expires, the CPU should notify that it is operating correctly (by pulsing a pin). If the pin is activated, the watchdog re-starts the time count; If the pin is NOT activated, the watchdog asserts the CPU reset pin. There exist several watchdog circuits that also monitor the power voltage (act whenever the power voltage is outside the allowed range). Prof. Nuno Roma ACE 2010/11 - DEI-IST 35 / 54 Watchdog Many microcontrollers already include an internal watchdog; Example: DS1232 (Dallas Semiconductor) Functions: Microprocessor supervision; Manual reset; Power monitoring. Prof. Nuno Roma ACE 2010/11 - DEI-IST 36 / 54

20 Watchdog External watchdogs: Normally, they are always active; The pulse operation implies two signal transitions (avoids that a fixed value may be regarded as a pulse ). Internal watchdogs: Normally, they are inactive; The activation process is usually simple (write into a register); The deactivation process is complex, in order to avoid unwanted deactivations upon a failure (typically, requires two writes in registers, by a specific order, within a defined time interval); The pulse in the watchdog also requires a specific sequence of operations (to minimize any unwanted activation). Prof. Nuno Roma ACE 2010/11 - DEI-IST 37 / 54 Watchdog Efficiency assurance of the watchdog devices: Objective: Minimize the number of times that the reset code of the watchdog is activated; The code that pulses the watchdog should assure, in the best possible way, that the remaining system software is operating correctly (it should monitor the evolution of the several threads or the execution of the vital system operations); The efficiency of the watchdog directly depends on the intelligence of its activation circuit; a systematic mechanical activation may become useless its existence. Prof. Nuno Roma ACE 2010/11 - DEI-IST 38 / 54

21 Prof. Nuno Roma ACE 2010/11 - DEI-IST 39 / 54 Pulse Width Modulators (PWM) PWM - Pulse Width Modulation Periodic digital signal with a variable relation between the time the signal is active (high) and the time the signal is inactive (low) - duty-cycle. Application examples: Motor speed control; Oven temperature control; LEDs light intensity control; to analog conversion (by using a low-pass filter, it is possible to continuously vary the output voltage). Prof. Nuno Roma ACE 2010/11 - DEI-IST 40 / 54

22 Pulse Width Modulators (PWM) Example of a PWM signal generation: Relevant parameters: The counter is incremented between 0 and a given maximum value; it is reset, afterwards; The counter is compared with the sample value, previously stored in a register; As soon as the counter is greater or equal than the sample value, the output signal is reset to zero. Signal period (depends on the counter frequency); Precision (depends on the number of bits used by the counter / comparison register). Prof. Nuno Roma ACE 2010/11 - DEI-IST 41 / 54 Prof. Nuno Roma ACE 2010/11 - DEI-IST 42 / 54

23 signal conversion: Analog to Converters (ADC); to Analog Converters (DAC); inputs and outputs. Prof. Nuno Roma ACE 2010/11 - DEI-IST 43 / 54 Processing of Analog Signals Processing steps: Signal sampling (Sample & Hold); Analog to Conversion (ADC); signal processing; to Analog Conversion (DAC); Filtering. Prof. Nuno Roma ACE 2010/11 - DEI-IST 44 / 54

24 Analog to Converter (ADC) Converts the signal from the analog to the digital domain. Relevant parameters: Resolution (number of bits: 8, 10, 12); Precision ( 1LSB); Conversion speed (100ksps, 400Ksps, 1Msps,...); Number of channels/inputs (1, 2, 4, 8). Prof. Nuno Roma ACE 2010/11 - DEI-IST 45 / 54 Analog to Converter (ADC) Transfer function: Prof. Nuno Roma ACE 2010/11 - DEI-IST 46 / 54

25 to Analog Converter (DAC) Converts the signal from the digital to the analog domain. Example: R-2R resistive chains: Prof. Nuno Roma ACE 2010/11 - DEI-IST 47 / 54 Inputs and Outputs outputs: Usually, they only allow the connection of very low-power consumption circuits; Solution: insolation and current amplifier circuits, which allow the interaction with the outside world, without a direct electric coupling (insolation of thousands of volts): Magnetic (relays) Optical (opto-couplers) Prof. Nuno Roma ACE 2010/11 - DEI-IST 48 / 54

26 Inputs and Outputs inputs with hysteresis: Schmitt-Trigger circuits; Useful when the input signals voltage presents slow variations in particularly noisy conditions. Prof. Nuno Roma ACE 2010/11 - DEI-IST 49 / 54 Inputs and Outputs Example: Read of a pressure switch/button/key: Problem: Mechanical vibration in the electric contact (bouncing) The vibration time depends on the quality of the switch, and may vary between a few milliseconds and tens of milliseconds. Prof. Nuno Roma ACE 2010/11 - DEI-IST 50 / 54

27 Inputs and Outputs Removal of contact vibration (debouncing) by HW: Using a capacitor and Schmitt-Trigger input: Using a SR latch: Prof. Nuno Roma ACE 2010/11 - DEI-IST 51 / 54 Inputs and Outputs Removal of contact vibration (debouncing) by SW: Counting the reads: The code is periodically executed, at a fast sampling frequency: counter=0; for (i=0;i<maxreads;i++) if(read == HIGH) ++counter; else --counter; if(counter >= 0) key = HIGH; Solution is immune to the noise (spurious and short pulses). Usage of a sampling period greater than the vibration time (thus avoiding multiple reads inside such period of time): Accepts what is read (assume no noise): If the sampling occurs inside the vibration time, it can either read L or H. But the value of the next read will be deterministic. Prof. Nuno Roma ACE 2010/11 - DEI-IST 52 / 54

28 Prof. Nuno Roma ACE 2010/11 - DEI-IST 53 / 54 User interfaces Communication Examples of embedded platforms: Single Board Computers Prof. Nuno Roma ACE 2010/11 - DEI-IST 54 / 54

EIE/ENE 334 Microprocessors

EIE/ENE 334 Microprocessors EIE/ENE 334 Microprocessors Lecture 13: NuMicro NUC140 (cont.) Week #13 : Dejwoot KHAWPARISUTH Adapted from http://webstaff.kmutt.ac.th/~dejwoot.kha/ NuMicro NUC140: Technical Ref. Page 2 Week #13 NuMicro

More information

Designing with STM32F3x

Designing with STM32F3x Designing with STM32F3x Course Description Designing with STM32F3x is a 3 days ST official course. The course provides all necessary theoretical and practical know-how for start developing platforms based

More information

Hello and welcome to this Renesas Interactive Course that provides an overview of the timers found on RL78 MCUs.

Hello and welcome to this Renesas Interactive Course that provides an overview of the timers found on RL78 MCUs. Hello and welcome to this Renesas Interactive Course that provides an overview of the timers found on RL78 MCUs. 1 The purpose of this course is to provide an introduction to the RL78 timer Architecture.

More information

Microcontrollers: Lecture 3 Interrupts, Timers. Michele Magno

Microcontrollers: Lecture 3 Interrupts, Timers. Michele Magno Microcontrollers: Lecture 3 Interrupts, Timers Michele Magno 1 Calendar 07.04.2017: Power consumption; Low power States; Buses, Memory, GPIOs 20.04.2017 Serial Communications 21.04.2017 Programming STM32

More information

ELCT 912: Advanced Embedded Systems

ELCT 912: Advanced Embedded Systems ELCT 912: Advanced Embedded Systems Lecture 5: PIC Peripherals on Chip Dr. Mohamed Abd El Ghany, Department of Electronics and Electrical Engineering The PIC Family: Peripherals Different PICs have different

More information

Microcontroller: Timers, ADC

Microcontroller: Timers, ADC Microcontroller: Timers, ADC Amarjeet Singh February 1, 2013 Logistics Please share the JTAG and USB cables for your assignment Lecture tomorrow by Nipun 2 Revision from last class When servicing an interrupt,

More information

Application Manual. AB-RTCMC kHz-B5ZE-S3 Real Time Clock/Calendar Module with I 2 C Interface

Application Manual. AB-RTCMC kHz-B5ZE-S3 Real Time Clock/Calendar Module with I 2 C Interface Application Manual AB-RTCMC-32.768kHz-B5ZE-S3 Real Time Clock/Calendar Module with I 2 C Interface _ Abracon Corporation (www.abracon.com) Page (1) of (55) CONTENTS 1.0 Overview... 4 2.0 General Description...

More information

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

32-bit ARM Cortex-M0, Cortex-M3 and Cortex-M4F microcontrollers -bit ARM Cortex-, Cortex- and Cortex-MF microcontrollers Energy, gas, water and smart metering Alarm and security systems Health and fitness applications Industrial and home automation Smart accessories

More information

EE 308 Lab Spring 2009

EE 308 Lab Spring 2009 9S12 Subsystems: Pulse Width Modulation, A/D Converter, and Synchronous Serial Interface In this sequence of three labs you will learn to use three of the MC9S12's hardware subsystems. WEEK 1 Pulse Width

More information

Course Introduction. Content 20 pages 3 questions. Learning Time 30 minutes

Course Introduction. Content 20 pages 3 questions. Learning Time 30 minutes Purpose The intent of this course is to provide you with information about the main features of the S08 Timer/PWM (TPM) interface module and how to configure and use it in common applications. Objectives

More information

RV-8564 Application Manual. Application Manual. Real-Time Clock Module with I 2 C-Bus Interface. October /62 Rev. 2.1

RV-8564 Application Manual. Application Manual. Real-Time Clock Module with I 2 C-Bus Interface. October /62 Rev. 2.1 Application Manual Application Manual Real-Time Clock Module with I 2 C-Bus Interface October 2017 1/62 Rev. 2.1 TABLE OF CONTENTS 1. OVERVIEW... 5 1.1. GENERAL DESCRIPTION... 5 1.2. APPLICATIONS... 5

More information

MICROCONTROLLER TUTORIAL II TIMERS

MICROCONTROLLER TUTORIAL II TIMERS MICROCONTROLLER TUTORIAL II TIMERS WHAT IS A TIMER? We use timers every day - the simplest one can be found on your wrist A simple clock will time the seconds, minutes and hours elapsed in a given day

More information

TKT-3500 Microcontroller systems

TKT-3500 Microcontroller systems TKT-3500 Microcontroller systems Lec 4 Timers and other peripherals, pulse-width modulation Ville Kaseva Department of Computer Systems Tampere University of Technology Fall 2010 Sources Original slides

More information

DS1642 Nonvolatile Timekeeping RAM

DS1642 Nonvolatile Timekeeping RAM www.dalsemi.com Nonvolatile Timekeeping RAM FEATURES Integrated NV SRAM, real time clock, crystal, power fail control circuit and lithium energy source Standard JEDEC bytewide 2K x 8 static RAM pinout

More information

Microprocessor & Interfacing Lecture Programmable Interval Timer

Microprocessor & Interfacing Lecture Programmable Interval Timer Microprocessor & Interfacing Lecture 30 8254 Programmable Interval Timer P A R U L B A N S A L A S S T P R O F E S S O R E C S D E P A R T M E N T D R O N A C H A R Y A C O L L E G E O F E N G I N E E

More information

Hardware Platforms and Sensors

Hardware Platforms and Sensors Hardware Platforms and Sensors Tom Spink Including material adapted from Bjoern Franke and Michael O Boyle Hardware Platform A hardware platform describes the physical components that go to make up a particular

More information

In this lecture, we will look at how different electronic modules communicate with each other. We will consider the following topics:

In this lecture, we will look at how different electronic modules communicate with each other. We will consider the following topics: In this lecture, we will look at how different electronic modules communicate with each other. We will consider the following topics: Links between Digital and Analogue Serial vs Parallel links Flow control

More information

LM12L Bit + Sign Data Acquisition System with Self-Calibration

LM12L Bit + Sign Data Acquisition System with Self-Calibration LM12L458 12-Bit + Sign Data Acquisition System with Self-Calibration General Description The LM12L458 is a highly integrated 3.3V Data Acquisition System. It combines a fully-differential self-calibrating

More information

a8259 Features General Description Programmable Interrupt Controller

a8259 Features General Description Programmable Interrupt Controller a8259 Programmable Interrupt Controller July 1997, ver. 1 Data Sheet Features Optimized for FLEX and MAX architectures Offers eight levels of individually maskable interrupts Expandable to 64 interrupts

More information

Standard single-purpose processors: Peripherals

Standard single-purpose processors: Peripherals 3-1 Chapter 3 Standard single-purpose processors: Peripherals 3.1 Introduction A single-purpose processor is a digital system intended to solve a specific computation task. The processor may be a standard

More information

EE 308 Spring S12 SUBSYSTEMS: PULSE WIDTH MODULATION, A/D CONVERTER, AND SYNCHRONOUS SERIAN INTERFACE

EE 308 Spring S12 SUBSYSTEMS: PULSE WIDTH MODULATION, A/D CONVERTER, AND SYNCHRONOUS SERIAN INTERFACE 9S12 SUBSYSTEMS: PULSE WIDTH MODULATION, A/D CONVERTER, AND SYNCHRONOUS SERIAN INTERFACE In this sequence of three labs you will learn to use the 9S12 S hardware sybsystem. WEEK 1 PULSE WIDTH MODULATION

More information

Unit-6 PROGRAMMABLE INTERRUPT CONTROLLERS 8259A-PROGRAMMABLE INTERRUPT CONTROLLER (PIC) INTRODUCTION

Unit-6 PROGRAMMABLE INTERRUPT CONTROLLERS 8259A-PROGRAMMABLE INTERRUPT CONTROLLER (PIC) INTRODUCTION M i c r o p r o c e s s o r s a n d M i c r o c o n t r o l l e r s P a g e 1 PROGRAMMABLE INTERRUPT CONTROLLERS 8259A-PROGRAMMABLE INTERRUPT CONTROLLER (PIC) INTRODUCTION Microcomputer system design requires

More information

Hello, and welcome to this presentation of the STM32G0 digital-to-analog converter. This block is used to convert digital signals to analog voltages

Hello, and welcome to this presentation of the STM32G0 digital-to-analog converter. This block is used to convert digital signals to analog voltages Hello, and welcome to this presentation of the STM32G0 digital-to-analog converter. This block is used to convert digital signals to analog voltages which can interface with the external world. 1 The STM32G0

More information

TMS320F241 DSP Boards for Power-electronics Applications

TMS320F241 DSP Boards for Power-electronics Applications TMS320F241 DSP Boards for Power-electronics Applications Kittiphan Techakittiroj, Narong Aphiratsakun, Wuttikorn Threevithayanon and Soemoe Nyun Faculty of Engineering, Assumption University Bangkok, Thailand

More information

Complete Self-Test. Plug-in Module Self-Test

Complete Self-Test. Plug-in Module Self-Test Power-On Self-Test Each time the instrument is powered on, a small set of self-tests are performed. These tests check that the minimum set of logic and measurement hardware are functioning properly. Any

More information

Microcontrollers and Interfacing

Microcontrollers and Interfacing Microcontrollers and Interfacing Week 07 digital input, debouncing, interrupts and concurrency College of Information Science and Engineering Ritsumeikan University 1 this week digital input push-button

More information

Topics Introduction to Microprocessors

Topics Introduction to Microprocessors Topics 2244 Introduction to Microprocessors Chapter 8253 Programmable Interval Timer/Counter Suree Pumrin,, Ph.D. Interfacing with 886/888 Programming Mode 2244 Introduction to Microprocessors 2 8253/54

More information

Xicor Real Time Clock Family Users Guide. New Devices Integrate Crystal Compensation Circuitry AN of 8.

Xicor Real Time Clock Family Users Guide. New Devices Integrate Crystal Compensation Circuitry AN of 8. Xicor Real Time Clock Family Users Guide New Devices Integrate Crystal Compensation Circuitry 1 of 8 Overall Functionality Xicor Real Time Clock (RTC) products integrate the real time clock function with

More information

DS1307ZN. 64 X 8 Serial Real Time Clock PIN ASSIGNMENT FEATURES

DS1307ZN. 64 X 8 Serial Real Time Clock PIN ASSIGNMENT FEATURES DS1307 64 8 Serial Real Time Clock FEATURES Real time clock counts seconds, minutes, hours, date of the month, month, day of the week, and year with leap year compensation valid up to 2100 56 byte nonvolatile

More information

PCF General description. 2. Features and benefits. 3. Applications. Real-Time Clock (RTC) and calendar

PCF General description. 2. Features and benefits. 3. Applications. Real-Time Clock (RTC) and calendar Rev. 6 17 September 2013 Product data sheet 1. General description The is a CMOS 1 optimized for low power consumption. Data is transferred serially via the I 2 C-bus with a maximum data rate of 1000 kbit/s.

More information

Intelligent and passive RFID tag for Identification and Sensing

Intelligent and passive RFID tag for Identification and Sensing Zürich University Of Applied Sciences Institute of Embedded Systems InES Intelligent and passive RFID tag for Identification and Sensing (Presented at Embedded World, Nürnberg, 3 rd March 2009) Dipl. Ing.

More information

Using the Z8 Encore! XP Timer

Using the Z8 Encore! XP Timer Application Note Using the Z8 Encore! XP Timer AN013104-1207 Abstract Zilog s Z8 Encore! XP microcontroller consists of four 16-bit reloadable timers that can be used for timing, event counting or for

More information

GUJARAT TECHNOLOGICAL UNIVERSITY

GUJARAT TECHNOLOGICAL UNIVERSITY Type of course: Engineering (Elective) GUJARAT TECHNOLOGICAL UNIVERSITY ELECTRICAL ENGINEERING (09) ADVANCE MICROCONTROLLERS SUBJECT CODE: 260909 B.E. 6 th SEMESTER Prerequisite: Analog and Digital Electronics,

More information

1. The decimal number 62 is represented in hexadecimal (base 16) and binary (base 2) respectively as

1. The decimal number 62 is represented in hexadecimal (base 16) and binary (base 2) respectively as BioE 1310 - Review 5 - Digital 1/16/2017 Instructions: On the Answer Sheet, enter your 2-digit ID number (with a leading 0 if needed) in the boxes of the ID section. Fill in the corresponding numbered

More information

UM2068 User manual. Examples kit for STLUX and STNRG digital controllers. Introduction

UM2068 User manual. Examples kit for STLUX and STNRG digital controllers. Introduction User manual Examples kit for STLUX and STNRG digital controllers Introduction This user manual provides complete information for SW developers about a set of guide examples useful to get familiar developing

More information

DS1307/DS X 8 Serial Real Time Clock

DS1307/DS X 8 Serial Real Time Clock DS1307/DS1308 64 X 8 Serial Real Time Clock www.dalsemi.com FEATURES Real time clock counts seconds, minutes, hours, date of the month, month, day of the week, and year with leap year compensation valid

More information

8-bit Microcontroller with 512/1024 Bytes In-System Programmable Flash. ATtiny4/5/9/10

8-bit Microcontroller with 512/1024 Bytes In-System Programmable Flash. ATtiny4/5/9/10 Features High Performance, Low Power AVR 8-Bit Microcontroller Advanced RISC Architecture 54 Powerful Instructions Most Single Clock Cycle Execution 16 x 8 General Purpose Working Registers Fully Static

More information

I2C, 32-Bit Binary Counter Watchdog RTC with Trickle Charger and Reset Input/Output

I2C, 32-Bit Binary Counter Watchdog RTC with Trickle Charger and Reset Input/Output Rev 1; 9/04 I2C, 32-Bit Binary Counter Watchdog RTC with General Description The is a 32-bit binary counter designed to continuously count time in seconds. An additional counter generates a periodic alarm

More information

DS1307ZN. 64 X 8 Serial Real Time Clock

DS1307ZN. 64 X 8 Serial Real Time Clock 64 X 8 Serial Real Time Clock www.dalsemi.com FEATURES Real time clock counts seconds, minutes, hours, date of the month, month, day of the week, and year with leap year compensation valid up to 2100 56

More information

Counter/Timers in the Mega8

Counter/Timers in the Mega8 Counter/Timers in the Mega8 The mega8 incorporates three counter/timer devices. These can: Be used to count the number of events that have occurred (either external or internal) Act as a clock Trigger

More information

Roland Kammerer. 13. October 2010

Roland Kammerer. 13. October 2010 Peripherals Roland Institute of Computer Engineering Vienna University of Technology 13. October 2010 Overview 1. Analog/Digital Converter (ADC) 2. Pulse Width Modulation (PWM) 3. Serial Peripheral Interface

More information

MM58174A Microprocessor-Compatible Real-Time Clock

MM58174A Microprocessor-Compatible Real-Time Clock MM58174A Microprocessor-Compatible Real-Time Clock General Description The MM58174A is a low-threshold metal-gate CMOS circuit that functions as a real-time clock and calendar in bus-oriented microprocessor

More information

Chapter 6 PROGRAMMING THE TIMERS

Chapter 6 PROGRAMMING THE TIMERS Chapter 6 PROGRAMMING THE TIMERS Force Outputs on Outcompare Input Captures Programmabl e Prescaling Prescaling Internal clock inputs Timer-counter Device Free Running Outcompares Lesson 2 Free Running

More information

Very Low Power 8-Bit 32 khz RTC Module with Digital Trimming and High Level Integration

Very Low Power 8-Bit 32 khz RTC Module with Digital Trimming and High Level Integration EM MICROELECTRONIC - MARIN SA EM3022 Very Low Power 8-Bit 32 khz RTC Module with Digital Trimming and High Level Integration Description The V3022 is a low power CMOS real time clock with a built in crystal.

More information

S3C9442/C9444/F9444/C9452/C9454/F9454

S3C9442/C9444/F9444/C9452/C9454/F9454 PRODUCT OVERVIEW 1 PRODUCT OVERVIEW SAM88RCRI PRODUCT FAMILY Samsung's SAM88RCRI family of 8-bit single-chip CMOS microcontrollers offers a fast and efficient CPU, a wide range of integrated peripherals,

More information

RayStar Microelectronics Technology Inc. Ver: 1.4

RayStar Microelectronics Technology Inc. Ver: 1.4 Features Description Product Datasheet Using external 32.768kHz quartz crystal Supports I 2 C-Bus's high speed mode (400 khz) The serial real-time clock is a low-power clock/calendar with a programmable

More information

RB-Dev-03 Devantech CMPS03 Magnetic Compass Module

RB-Dev-03 Devantech CMPS03 Magnetic Compass Module RB-Dev-03 Devantech CMPS03 Magnetic Compass Module This compass module has been specifically designed for use in robots as an aid to navigation. The aim was to produce a unique number to represent the

More information

Imaging serial interface ROM

Imaging serial interface ROM Page 1 of 6 ( 3 of 32 ) United States Patent Application 20070024904 Kind Code A1 Baer; Richard L. ; et al. February 1, 2007 Imaging serial interface ROM Abstract Imaging serial interface ROM (ISIROM).

More information

PCF85063ATL. 1. General description. 2. Features and benefits. 3. Applications. Tiny Real-Time Clock/calendar with alarm function and I 2 C-bus

PCF85063ATL. 1. General description. 2. Features and benefits. 3. Applications. Tiny Real-Time Clock/calendar with alarm function and I 2 C-bus Tiny Real-Time Clock/calendar with alarm function and I 2 C-bus Rev. 2 15 April 2013 Product data sheet 1. General description The is a CMOS 1 Real-Time Clock (RTC) and calendar optimized for low power

More information

QUARTZ-MM PC/104 Counter/Timer & Digital I/O Module

QUARTZ-MM PC/104 Counter/Timer & Digital I/O Module QUARTZ-MM PC/104 Counter/Timer & Digital I/O Module User Manual V1.5 Copyright 2001 Diamond Systems Corporation 8430-D Central Ave. Newark, CA 94560 Tel (510) 456-7800 Fax (510) 45-7878 techinfo@diamondsystems.com

More information

Hello, and welcome to this presentation of the STM32 Digital Filter for Sigma-Delta modulators interface. The features of this interface, which

Hello, and welcome to this presentation of the STM32 Digital Filter for Sigma-Delta modulators interface. The features of this interface, which Hello, and welcome to this presentation of the STM32 Digital Filter for Sigma-Delta modulators interface. The features of this interface, which behaves like ADC with external analog part and configurable

More information

GC221-SO16IP. 8-bit Turbo Microcontroller

GC221-SO16IP. 8-bit Turbo Microcontroller Total Solution of MCU GC221-SO16IP 8-bit Turbo Microcontroller CORERIVER Semiconductor reserves the right to make corrections, modifications, enhancements, improvements, and other changes to its products

More information

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

Hello, and welcome to this presentation of the STM32L4 comparators. It covers the main features of the ultra-lowpower comparators and some Hello, and welcome to this presentation of the STM32L4 comparators. It covers the main features of the ultra-lowpower comparators and some application examples. 1 The two comparators inside STM32 microcontroller

More information

THE PERFORMANCE TEST OF THE AD CONVERTERS EMBEDDED ON SOME MICROCONTROLLERS

THE PERFORMANCE TEST OF THE AD CONVERTERS EMBEDDED ON SOME MICROCONTROLLERS THE PERFORMANCE TEST OF THE AD CONVERTERS EMBEDDED ON SOME MICROCONTROLLERS R. Holcer Department of Electronics and Telecommunications, Technical University of Košice, Park Komenského 13, SK-04120 Košice,

More information

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

CprE 288 Introduction to Embedded Systems (Output Compare and PWM) Instructors: Dr. Phillip Jones CprE 288 Introduction to Embedded Systems (Output Compare and PWM) Instructors: Dr. Phillip Jones 1 Announcements HW8: Due Sunday 10/29 (midnight) Exam 2: In class Thursday 11/9 This object detection lab

More information

Low Power 3D Hall Sensor with I2C Interface and Wake Up Function

Low Power 3D Hall Sensor with I2C Interface and Wake Up Function Low Power 3D Hall Sensor with I2C Interface and Wake Up Function User Manual About this document Scope and purpose This document provides product information and descriptions regarding: I 2 C Registers

More information

PT7C43190 Real-time Clock Module

PT7C43190 Real-time Clock Module PT7C43190 Real-time Clock Module Features Description Low current consumption: 0.3µA typ. (V DD =3.0V, T A = 25 C) Wide operating voltage range: 1.35 to 5.5 V Minimum time keeping operation voltage: 1.25

More information

Fixed-function (FF) implementation for PSoC 3 and PSoC 5 devices

Fixed-function (FF) implementation for PSoC 3 and PSoC 5 devices 2.40 Features 8- or 16-bit resolution Multiple pulse width output modes Configurable trigger Configurable capture Configurable hardware/software enable Configurable dead band Multiple configurable kill

More information

Timing System. Timing & PWM System. Timing System components. Usage of Timing System

Timing System. Timing & PWM System. Timing System components. Usage of Timing System Timing & PWM System Timing System Valvano s chapter 6 TIM Block User Guide, Chapter 15 PWM Block User Guide, Chapter 12 1 2 Timing System components Usage of Timing System 3 Counting mechanisms Input time

More information

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

READ THIS FIRST: *One physical piece of 8.5x11 paper (you may use both sides). Notes must be handwritten. READ THIS FIRST: We recommend first trying this assignment in a single sitting. The midterm exam time period is 80 minutes long. Find a quiet place, grab your cheat sheet* and a pencil, and set a timer.

More information

Improving Loop-Gain Performance In Digital Power Supplies With Latest- Generation DSCs

Improving Loop-Gain Performance In Digital Power Supplies With Latest- Generation DSCs ISSUE: March 2016 Improving Loop-Gain Performance In Digital Power Supplies With Latest- Generation DSCs by Alex Dumais, Microchip Technology, Chandler, Ariz. With the consistent push for higher-performance

More information

ELM409 Versatile Debounce Circuit

ELM409 Versatile Debounce Circuit ersatile Debounce Circuit Description The ELM is digital filter circuit that is used to interface mechanical contacts to electronic circuits. All mechanical contacts, whether from switches, relays, etc.

More information

1X6610 Signal/Power Management IC for Integrated Driver Module

1X6610 Signal/Power Management IC for Integrated Driver Module 1X6610 Signal/Power Management IC for Integrated Driver Module IXAN007501-1215 Introduction This application note describes the IX6610 device, a signal/power management IC creating a link between a microcontroller

More information

PCL-836 Multifunction countertimer and digital I/O add-on card for PC/XT/ AT and compatibles

PCL-836 Multifunction countertimer and digital I/O add-on card for PC/XT/ AT and compatibles PCL-836 Multifunction countertimer and digital I/O add-on card for PC/XT/ AT and compatibles Copyright This documentation is copyrighted 1997 by Advantech Co., Ltd. All rights are reserved. Advantech Co.,

More information

Programming and Interfacing

Programming and Interfacing AtmelAVR Microcontroller Primer: Programming and Interfacing Second Edition f^r**t>*-**n*c contents Preface xv AtmelAVRArchitecture Overview 1 1.1 ATmegal64 Architecture Overview 1 1.1.1 Reduced Instruction

More information

SC16C550B. 1. General description. 2. Features. 5 V, 3.3 V and 2.5 V UART with 16-byte FIFOs

SC16C550B. 1. General description. 2. Features. 5 V, 3.3 V and 2.5 V UART with 16-byte FIFOs Rev. 05 1 October 2008 Product data sheet 1. General description 2. Features The is a Universal Asynchronous Receiver and Transmitter (UART) used for serial data communications. Its principal function

More information

Lab 5: Interrupts, Timing, and Frequency Analysis of PWM Signals

Lab 5: Interrupts, Timing, and Frequency Analysis of PWM Signals Lab 5: Interrupts, Timing, and Frequency Analysis of PWM Signals 1 2 Lab 5: Interrupts and Timing Thus far, we have not worried about time in our real-time code Almost all real-time code involves sampling

More information

Lab 5: Interrupts, Timing, and Frequency Analysis of PWM Signals

Lab 5: Interrupts, Timing, and Frequency Analysis of PWM Signals Lab 5: Interrupts, Timing, and Frequency Analysis of PWM Signals 1 Lab 5: Interrupts and Timing Thus far, we have not worried about time in our real-time code Almost all real-time code involves sampling

More information

OBSOLETE. Bus Compatible Digital PWM Controller, IXDP 610 IXDP 610

OBSOLETE. Bus Compatible Digital PWM Controller, IXDP 610 IXDP 610 Bus Compatible Digital PWM Controller, IXDP 610 Description The IXDP610 Digital Pulse Width Modulator (DPWM) is a programmable CMOS LSI device which accepts digital pulse width data from a microprocessor

More information

EEL 4744C: Microprocessor Applications Lecture 8 Timer Dr. Tao Li

EEL 4744C: Microprocessor Applications Lecture 8 Timer Dr. Tao Li EEL 4744C: Microprocessor Applications Lecture 8 Timer Reading Assignment Software and Hardware Engineering (new version): Chapter 14 SHE (old version): Chapter 10 HC12 Data Sheet: Chapters 12, 13, 11,

More information

Reading Assignment. Timer. Introduction. Timer Overview. Programming HC12 Timer. An Overview of HC12 Timer. EEL 4744C: Microprocessor Applications

Reading Assignment. Timer. Introduction. Timer Overview. Programming HC12 Timer. An Overview of HC12 Timer. EEL 4744C: Microprocessor Applications Reading Assignment EEL 4744C: Microprocessor Applications Lecture 8 Timer Software and Hardware Engineering (new version): Chapter 4 SHE (old version): Chapter 0 HC Data Sheet: Chapters,,, 0 Introduction

More information

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

Lecture #4 Outline. Announcements Project Proposal. AVR Processor Resources October 11, 2002 Stanford University - EE281 Lecture #4 #1 Announcements Project Proposal Lecture #4 Outline AVR Processor Resources A/D Converter (Analog to Digital) Analog Comparator Real-Time clock

More information

Oscillator fail detect - 12-hour Time display 24-hour 2 Time Century bit - Time count chain enable/disable -

Oscillator fail detect - 12-hour Time display 24-hour 2 Time Century bit - Time count chain enable/disable - Features Description Using external 32.768kHz quartz crystal Real-time clock (RTC) counts seconds, minutes hours, date of the month, month, day of the week, and year with leap-year compensation valid up

More information

I2C Demonstration Board I 2 C-bus Protocol

I2C Demonstration Board I 2 C-bus Protocol I2C 2005-1 Demonstration Board I 2 C-bus Protocol Oct, 2006 I 2 C Introduction I ² C-bus = Inter-Integrated Circuit bus Bus developed by Philips in the early 80s Simple bi-directional 2-wire bus: serial

More information

JTAG pins do not have internal pull-ups enabled at power-on reset. JTAG INTEST instruction does not work

JTAG pins do not have internal pull-ups enabled at power-on reset. JTAG INTEST instruction does not work STELLARIS ERRATA Stellaris LM3S2110 RevA2 Errata This document contains known errata at the time of publication for the Stellaris LM3S2110 microcontroller. The table below summarizes the errata and lists

More information

MSP430 Family Mixed-Signal Microcontroller Application Reports

MSP430 Family Mixed-Signal Microcontroller Application Reports MSP430 Family Mixed-Signal Microcontroller Application Reports Author: Lutz Bierl Literature Number: SLAA024 January 2000 Printed on Recycled Paper IMPORTANT NOTICE Texas Instruments and its subsidiaries

More information

V3021 EM MICROELECTRONIC - MARIN SA. Ultra Low Power 1-Bit 32 khz RTC. Description. Features. Applications. Typical Operating Configuration

V3021 EM MICROELECTRONIC - MARIN SA. Ultra Low Power 1-Bit 32 khz RTC. Description. Features. Applications. Typical Operating Configuration EM MICROELECTRONIC - MARIN SA Ultra Low Power 1-Bit 32 khz RTC Description The is a low power CMOS real time clock. Data is transmitted serially as 4 address bits and 8 data bits, over one line of a standard

More information

ZKit-51-RD2, 8051 Development Kit

ZKit-51-RD2, 8051 Development Kit ZKit-51-RD2, 8051 Development Kit User Manual 1.1, June 2011 This work is licensed under the Creative Commons Attribution-Share Alike 2.5 India License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/2.5/in/

More information

Training Schedule. Robotic System Design using Arduino Platform

Training Schedule. Robotic System Design using Arduino Platform Training Schedule Robotic System Design using Arduino Platform Session - 1 Embedded System Design Basics : Scope : To introduce Embedded Systems hardware design fundamentals to students. Processor Selection

More information

AN4507 Application note

AN4507 Application note Application note PWM resolution enhancement through a dithering technique for STM32 advanced-configuration, general-purpose and lite timers Introduction Nowadays power-switching electronics exhibit remarkable

More information

Low Cost P Supervisory Circuits ADM705 ADM708

Low Cost P Supervisory Circuits ADM705 ADM708 a FEATURES Guaranteed Valid with = 1 V 190 A Quiescent Current Precision Supply-Voltage Monitor 4.65 V (ADM707) 4.40 V (/) 200 ms Reset Pulsewidth Debounced TTL/CMOS Manual Reset Input () Independent Watchdog

More information

MSP430 Teaching Materials

MSP430 Teaching Materials MSP430 Teaching Materials Lecture 11 Communications Introduction & USI Module Texas Instruments Incorporated University of Beira Interior (PT) Pedro Dinis Gaspar, António Espírito Santo, Bruno Ribeiro,

More information

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

3.3V regulator. JA H-bridge. Doc: page 1 of 7 Cerebot Reference Manual Revision: February 9, 2009 Note: This document applies to REV B-E of the board. www.digilentinc.com 215 E Main Suite D Pullman, WA 99163 (509) 334 6306 Voice and Fax Overview The

More information

Module 3. Embedded Systems I/O. Version 2 EE IIT, Kharagpur 1

Module 3. Embedded Systems I/O. Version 2 EE IIT, Kharagpur 1 Module 3 Embedded Systems I/O Version 2 EE IIT, Kharagpur 1 esson 19 Analog Interfacing Version 2 EE IIT, Kharagpur 2 Instructional Objectives After going through this lesson the student would be able

More information

8253 functions ( General overview )

8253 functions ( General overview ) What are these? The Intel 8253 and 8254 are Programmable Interval Timers (PITs), which perform timing and counting functions. They are found in all IBM PC compatibles. 82C54 which is a superset of the

More information

Hardware Flags. and the RTI system. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

Hardware Flags. and the RTI system. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff Hardware Flags and the RTI system 1 Need for hardware flag Often a microcontroller needs to test whether some event has occurred, and then take an action For example A sensor outputs a pulse when a model

More information

PCF2129 Integrated RTC/TCXO/Crystal

PCF2129 Integrated RTC/TCXO/Crystal Rev..1 29 August 28 T D Objective data sheet 1. General description 2. Features T A The is a CMOS real time clock and calendar with an integrated temperature compensated crystal oscillator (TCXO) and a

More information

ECE251: Tuesday October 3 0

ECE251: Tuesday October 3 0 ECE251: Tuesday October 3 0 Timer Module Continued Review Pulse Input Characterization Output Pulses Pulse Count Capture Homework #6 due Thursday Lab 7 (Maskable Interrupts/ SysTick Timer) this week. Significant

More information

Design and Implementation of AT Mega 328 microcontroller based firing control for a tri-phase thyristor control rectifier

Design and Implementation of AT Mega 328 microcontroller based firing control for a tri-phase thyristor control rectifier Design and Implementation of AT Mega 328 microcontroller based firing control for a tri-phase thyristor control rectifier 1 Mr. Gangul M.R PG Student WIT, Solapur 2 Mr. G.P Jain Assistant Professor WIT,

More information

Timer A. Last updated 8/7/18

Timer A. Last updated 8/7/18 Last updated 8/7/18 Advanced Timer Functions Output Compare Sets a flag and/or creates an interrupt when the counter value matches a value programmed into a separate register Input Capture Captures the

More information

ELG3331: Digital Tachometer Introduction to Mechatronics by DG Alciatore and M B Histand

ELG3331: Digital Tachometer Introduction to Mechatronics by DG Alciatore and M B Histand ELG333: Digital Tachometer Introduction to Mechatronics by DG Alciatore and M B Histand Our objective is to design a system to measure and the rotational speed of a shaft. A simple method to measure rotational

More information

EE 314 Spring 2003 Microprocessor Systems

EE 314 Spring 2003 Microprocessor Systems EE 314 Spring 2003 Microprocessor Systems Laboratory Project #9 Closed Loop Control Overview and Introduction This project will bring together several pieces of software and draw on knowledge gained in

More information

Fixed-function (FF) implementation for PSoC 3 and PSoC 5LP devices

Fixed-function (FF) implementation for PSoC 3 and PSoC 5LP devices 3.30 Features 8- or 16-bit resolution Multiple pulse width output modes Configurable trigger Configurable capture Configurable hardware/software enable Configurable dead band Multiple configurable kill

More information

International Journal of Advanced Research in Electrical, Electronics and Instrumentation Engineering. (An ISO 3297: 2007 Certified Organization)

International Journal of Advanced Research in Electrical, Electronics and Instrumentation Engineering. (An ISO 3297: 2007 Certified Organization) International Journal of Advanced Research in Electrical, Electronics Device Control Using Intelligent Switch Sreenivas Rao MV *, Basavanna M Associate Professor, Department of Instrumentation Technology,

More information

The Allen-Bradley Servo Interface Module (Cat. No SF1) when used with the Micro Controller (Cat. No UC1) can control single axis

The Allen-Bradley Servo Interface Module (Cat. No SF1) when used with the Micro Controller (Cat. No UC1) can control single axis Table of Contents The Allen-Bradley Servo Interface Module (Cat. No. 1771-SF1) when used with the Micro Controller (Cat. No. 1771-UC1) can control single axis positioning systems such as found in machine

More information

The Need. Reliable, repeatable, stable time base. Memory Access. Interval/Event timers ADC DAC

The Need. Reliable, repeatable, stable time base. Memory Access. Interval/Event timers ADC DAC Timers The Need Reliable, repeatable, stable time base Memory Access /Event timers ADC DAC Time Base: Crystal Oscillator Silicon Dioxide forms a piezoelectric crystal that can deform in eclectic field,

More information

EVDP610 IXDP610 Digital PWM Controller IC Evaluation Board

EVDP610 IXDP610 Digital PWM Controller IC Evaluation Board IXDP610 Digital PWM Controller IC Evaluation Board General Description The IXDP610 Digital Pulse Width Modulator (DPWM) is a programmable CMOS LSI device, which accepts digital pulse width data from a

More information

DS1867 Dual Digital Potentiometer with EEPROM

DS1867 Dual Digital Potentiometer with EEPROM Dual Digital Potentiometer with EEPROM www.dalsemi.com FEATURES Nonvolatile version of the popular DS1267 Low power consumption, quiet, pumpless design Operates from single 5V or ±5V supplies Two digitally

More information

Utilizing the Trigger Routing Unit for System Level Synchronization

Utilizing the Trigger Routing Unit for System Level Synchronization Engineer-to-Engineer Note EE-360 Technical notes on using Analog Devices DSPs, processors and development tools Visit our Web resources http://www.analog.com/ee-notes and http://www.analog.com/processors

More information

νµθωερτψυιοπασδφγηϕκλζξχϖβνµθωερτ ψυιοπασδφγηϕκλζξχϖβνµθωερτψυιοπα σδφγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκ χϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµθ

νµθωερτψυιοπασδφγηϕκλζξχϖβνµθωερτ ψυιοπασδφγηϕκλζξχϖβνµθωερτψυιοπα σδφγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκ χϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµθ θωερτψυιοπασδφγηϕκλζξχϖβνµθωερτψ υιοπασδφγηϕκλζξχϖβνµθωερτψυιοπασδ φγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκλζ ξχϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµ EE 331 Design Project Final Report θωερτψυιοπασδφγηϕκλζξχϖβνµθωερτψ

More information