Pulse Width Modulation

Size: px
Start display at page:

Download "Pulse Width Modulation"

Transcription

1 ECEn 621" Computer Arithmetic" Project Notes Week 1 Pulse Width Modulation 1

2 Pulse Width Modulation A method of regulating the amount of voltage delivered to a load. The average value of the voltage fed to the load is controlled by switching between a low and high voltage at a high switching frequency f sw. The duty cycle D is the ratio of 'on' time to the switching period T = 1/f sw. Average value = kd. T ON D = T ON / T T Pulse Width Modulation 2

3 1 Zero Centered PW Modulation PWM Average Value f (t) = y max for y min for 3

4 Frequency Power Spectrum signal (low freq) f s (high freq) Filtering to Get the Output 4

5 Some Applications of PWM Modulate, transmit and/or store analog signals like audio/voice telecommunications and music. The output power and/or voltage of switching power supplies can be controlled digitally. The torque and speed of a DC motor can be controlled by altering the voltage or the duty cycle of the PWM. PWM is widely used in dimmer circuits that could control a variety of lamps including LEDs. H-Bridge Circuit that enables a voltage to be applied across a load in either direction. Used to implement an Inverter circuit that converts DC to AC. 5

6 Operational States of Inverter ON OFF ON PWM OFF ON OFF OFF OFF High side transisters switch at low-frequency. Low side transistors switch at high-frequency Change Direction OFF - + ON PWM OFF - + ON ON OFF OFF OFF Free-wheeling Diodes PIC Microprocessor Control Pic18 8-Bit microcontroller with multiply instruction and 2 built-in PWM controllers. 6

7 Basic PIC PWM Mode CCP2 PR2 CCPR2 TMR = Timer Register PR = Period Register CCPR = Comparator Period Register If (TMR2==PR2) { TMR2 = 0 ;` CCP2 = 1 ; CCPR2H = CCPR2L; } If (TMR2==CCPR2) { CCP2 = 0 ; } Enhanced PIC PWM Mode 7

8 Task: PWM Control for Sinudoid Tasks Control PWM to output a sinusoid for voltage inversion Period Input period input n = number of PWM periods in one quarter of a sinusoid period. Each PWM period advances the angle of the sinusoid by Challenges No sine or cosine functions to call No division instructions, only multiplication Frequency is variable, so a table approach won t work Control summation error. Those little summation errors can add up fast. Recurrence for Sine and Cosine This has to be precomputed given input n. 8

9 Controlling Summation Error In each iteration of the sine/cosine recursion, a new summation error is accumulated. If not controlled, these errors build up and can corrupt the significant part of the result. To sum k items, log2(k) extra guard bits have to be computed in addition to the bits required for accuracy. But if k is not bounded... neither are the number of guard bits. After n iterations of the sine/cosine iteration, the angle is at a multiple of 90, and sine and cosine are whole numbers 0, 1, or -1. A simple round will clear any accumulated error. Computing sin( ) and cos( ) Taylor Series Polynomial 9

10 Taylor Series Approximations Accuracy of Taylor Approximations n Sine Sine Sine 1 Term 2 Term 3 Term in number of bits n Cosine Cosine Cosine 1 Term 2 Term 3 Term

11 Division For Taylor series computation, division by constants can be done by precomputing the reciprocols of the constants and multiplying. To compute Δ, an actual division has to be computed. But the PIC microcontroller doesn t have a divide instruction... Project #2 PWM on a PIC 11

12 H-Bridge Chip H-Bridge Chip 12

13 PIC Controlling the H-Bridge 24V + Sine Wave For the positive part of the sine wave, Pin 22 = FIN = PWM Pin 21 = RIN = L For the positive part of the sine wave, Pin 22 = FIN = L Pin 21 = RIN = PWM PIC18F24J11 To H-Bridge Other Pins: MCLR Reset OSC1,OSC2 Crystal Oscillator SCL1, SDA1 I 2 C Port RX1, TX1 Serial Port PGD, PGC In-Circuit Programming 13

14 Clocks 12 MHz 48 MHz Basic PIC PWM Mode CCPR1L CCP2CON<5:4> CCP2 CCPR1H R overrides S PR2 TMR2 R Q S CCP1 pin CCPR2H PR2 TMR = Timer Register PR = Period Register CCPR = Capture/Comparator Period Register (Duty Cycle Register) If (TMR2==PR2+1) { TMR2 = 0 ;` CCP1 = 1 ; CCPR1H = CCPR1L; <Trigger Interrupt> } else TMR2 = TMR2 + 1; If (TMR2==CCPR1H) { CCP1 = 0 ; } 14

15 PWM Registers Setup Continued 1/3 Set the PR2 register = the value of a comparison register to which the timer will be compared, in this case we set it to 254 which means the timer will count from 0 to 254. If the PWM duty cycle (CCPR1) is 255 the timer will never reach that value and the PWM output will stay permanently high - just as we need for full power. If the PWM duty cycle (CCPR1) is zero, the comparator will equal that value as it starts, so the PWM output will remain permanently low - again, just as we need for zero power. This means the sine computation must peak at ±0.FFC instead of 1. 15

16 Setup Continued 2/3 T2CON sets the carrier frequency of the PWM derived from the 48 MHz system clock divided by 4. The prescaler divides the frequency before the timer and the postscaler afterwards. For this example we set the prescaler to divide by 1, this gives us a timer frequency of 12 MHz. The timer counts 0 to 254 (PR2). The PWM frequency is thus 12 MHz / 255 = 47 KHz. To get higher frequency, you must reduce PR2 and trade-off precision in duty cycle. Set the CCP1CON register to operate as PWM, CCP1 can operate in various modes, so we need to specifically set it as PWM. T2CON Bit Descriptions 16

17 CCP1CON Bit Descriptions Setup continued 3/3 Set the PWM output low, so it is off when it starts up. Start the PWM system by turning TMR2 on. Once this line executes the PWM operates independent;y of the rest of the code. Unless we alter the register settings, the PWM will continue to operate independently. 17

18 Initialise: BANKSEL ADCON1 ;turn off A2D MOVLW 0x06 MOVWF ADCON1 BANKSEL PORTA BANKSEL TRISC MOVLW 0 ;set PORTC as all outputs MOVWF TRISC BANKSEL PORTC MOVF CCP1CON,W ;set CCP1 as PWM ANDLW 0xF0 IORLW 0x0C MOVWF CCP1CON MOVLW 0xFE BANKSEL PR2 MOVWF PR2 BANKSEL TMR2 CLRF T2CON ;set highest PWM value ;over this is permanently on PWM Code CLRF CCPR1L ;set PWM to zero BSF T2CON, TMR2ON ;and start the timer running /* C CODE */ // Set CCP1 pin as PWM CCP1CON = (CCP1CON & 0xF0) 0x0C; // Set PWM period to 254 PR2 = 254; // Set prescaler and post scaler to 1 T2CON = 0; // Set postscaler to 1 T2CON = ( T2CON & 0x07 ) 0x00; // set PWM duty cycle to zero CCPR1L = 0; // start timer T2CON = T2CON (1 << TMR2ON); Set Polarity Setup for positive half cycle Set pin 21 (RIN) low Program PIC to route PWM to pin 22 (FIN) Setup for negative half cycle Set pin 22 (FIN) low Program PIC to route PWM to pin 21 (RIN) 18

19 Setting the Duty Cycle CCPR1L may be loaded with the duty-cycle for the next cycle anytime during the PWM period. When the TMR2 counter is reset to 0, CCPR1H will be loaded from CCPR1L and the duty cycle will be changes for that period. (CCPR1H is read-only) At the end of the PWM period, an interrupt will be generated which starts the next duty-cycle computation. The resulting duty-cycle is loaded into CCPR1L. PIC18 Arithmetic The PIC18 is an 8-bit Microcontroller extended with an 8 x 8-bit multiply instruction. To control error, more bits may need to be computed. Higher bit-width arithmetic (such as 16-bit, 24- bit, or 32-bit arithmetic) can still be done by combining 8-bit operations together. Trick is to do computations in the least time possible. If you can t do it fast enough, it is time to move up to a PIC24 (a 16-bit that processor that costs more). 19

20 PIC18 Arithmetic Unit PIC Add 20

21 PIC Multibyte Add PIC Subtract 21

22 Negate PIC Multiply 22

23 PIC Multibyte Multiply [0x10] WREG [0x11] * WREG PRODH, PRODL PRODH [0x21] PRODL [0x20] 16 x 16 = 32 from four 8 x 8 = 16 23

24 PIC Multibyte Multiply How to Divide without Division N D = N d 1 D d 1 = N d 1 d 2 D d 1 d 2 = = Q 1 2 D : k =1 D k = D k 1 ( 2 D k 1 ) : k "1/x" "2-x" N : k =1 N k = N k 1 ( 2 D k 1 ) : k 2 D k 1 N k Q = N D D must first be normalized to between 0.5 and 1. Use this method to compute π 2N. 24

25 Diagramming out Division N = Π/2 = x. xxxx xxxx xxxx xxxx (fixed point) D = n = xxxx xxxx. (integer, max 255) Normalize D by shifting MS-1 to MSB D norm = 0. 1xxx xxxx * 2 e Remember e. Iteration (1) (0)x. xxxx xxxx xxxx xxxx D =(0)x. xxxx xxxx xxxx xxxx d x. xxxx xxxx xxxx xxxx (N or D) * x. xxxx xxxx xxxx xxxx d =0x. xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx = x. xxxx xxxx xxxx xxxx (Round -> new N or D) Final N = x.xxxx xxxx xxxx xxxx * 2 e = 0.000x xxxx xxxx xxxx (shift right e and Round) sin( Δθ ) r = sin( Δθ ) ± 1 2 ulp Error Analysis cos( Δθ ) r = cos( Δθ ) ± 1 2 ulp sin( θ 1 ) r = sin( 0) cos( Δθ ) ± 1 2 ulp cos( θ 1 ) r = cos 0 sin θ 2 ( ) cos( Δθ ) ± 1 2 ulp ( ) r = sin( θ 1 ) ± 1 2 ulp cos θ 2 = sin θ 2 + cos 0 sin 0 cos Δθ ( ) ± 1 2 ulp + cos θ 1 ( ) sin( Δθ ) ± 1 2 ulp ( ) sin( Δθ ) ± 1 2 ulp ( ) ± 1 2 ulp ( ) ± ( cos( θ 1 ) + sin( θ 1 ) + cos( Δθ ) + sin( Δθ )) 1 2 ulp ( ) r = cos( θ 1 ) ± 1 2 ulp = cos θ 2 cos Δθ ( ) ± 1 2 ulp sin θ 1 ( ) ± 1 2 ulp ( ) ± ( cos( θ 1 ) + sin( θ 1 ) + cos( Δθ ) + sin( Δθ )) 1 2 ulp = sin θ 1 = cos θ 1 sin Δθ ( ) ± 1 2 ulp = sin θ 2 sin Δθ ( ) ± 1 2 ulp = cos θ ulp 1 2 ( ) ± 1 2 ulp ( ) ± sin( θ 1 ) + cos( θ 1 ) ( ) ± 1 2 ulp e ulp 1 2 ( ) ± sin( θ 1 ) + cos( θ 1 ) e 2 25

26 1 ( ) r = sin( θ k 1 ) ± e k 1 sin θ k cos θ k = sin θ k = sin θ k Error Analysis 2 ulp cos Δθ ( ) ± 1 2 ulp + cos θ k 1 1 ( ) ± e k 1 ( ) 1 2 ulp ( ) + e k 1 ( sin( Δθ ) + cos( Δθ )) +sin( θ k 1 ) + cos( θ k 1 ) 1 2 ulp ulp cos( Δθ ) ± 1 2 ulp sin θ k 1 ( ) + e k 1 +sin( θ k 1 ) + cos( θ k 1 ) 1 ( ) r = cos( θ k 1 ) ± e k 1 = cos θ k = cos θ k 1 ( ) ± e k 1 ( ) 1 2 ulp ( ) + e k 1 ( sin( Δθ ) + cos( Δθ )) +sin( θ k 1 ) + cos( θ k 1 ) 1 2 ulp 1 2 ( ) + e k 1 +sin( θ k 1 ) + cos( θ k 1 ) 2 ulp sin Δθ 2 ulp sin Δθ ( ) ± 1 2 ulp ( ) ± 1 2 ulp Error Analysis n = 20 delta theta = theta sine cosine sin+cos ek

27 Fixed-Point Arithmetic sin(δθ) = 0.xxxx xxxx xxxx xxxx cos(δθ) = 0.xxxx xxxx xxxx xxxx sin(θ k ) = s.xxx xxxx xxxx xxxx cos(θ k ) = s.xxx xxxx xxxx xxxx sin(θ k ) = s.xxx xxxx xxxx xxxx Absolute Value + Round 10-bit Duty Cycle Project #2 Rewrite your program for project #1 Only use integer arithmetic (char, int, unsigned) Integer logical ops, addition, subtraction and multiplication Compute division using iterative approximation Use fixed-point interpretations of your numbers Control error as best as possible using guard bits resetting summation error after n steps Write C-code that could be compiled for a PIC microprocessor. Measure actual error by comparing results to project #1 27

MicroToys Guide: Motors N. Pinckney April 2005

MicroToys Guide: Motors N. Pinckney April 2005 Introduction Three types of motors are applicable to small projects: DC brushed motors, stepper motors, and servo motors. DC brushed motors simply rotate in a direction dependent on the flow of current.

More information

Hi Hsiao-Lung Chan Dept Electrical Engineering Chang Gung University, Taiwan

Hi Hsiao-Lung Chan Dept Electrical Engineering Chang Gung University, Taiwan Timers and CCP Modules Hi Hsiao-Lung Chan Dept Electrical Engineering Chang Gung University, Taiwan chanhl@mail.cgu.edu.twcgu PIC18 Timers Timer2, Timer4 8-bit timers use instruction cycle clock as the

More information

Introduction to Using the PIC16F877 Justin Rice IMDL Spring 2002

Introduction to Using the PIC16F877 Justin Rice IMDL Spring 2002 Introduction to Using the PIC16F877 Justin Rice IMDL Spring 2002 Basic Specs: - 30 pins capable of digital I/O - 8 that can be analog inputs - 2 capable of PWM - 8K of nonvolatile FLASH memory - 386 bytes

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

PIC Analog Voltage to PWM Duty Cycle

PIC Analog Voltage to PWM Duty Cycle Name Lab Section PIC Analog Voltage to PWM Duty Cycle Lab 5 Introduction: In this lab you will convert an analog voltage into a pulse width modulation (PWM) duty cycle. The source of the analog voltage

More information

Physics 335 Lab 7 - Microcontroller PWM Waveform Generation

Physics 335 Lab 7 - Microcontroller PWM Waveform Generation Physics 335 Lab 7 - Microcontroller PWM Waveform Generation In the previous lab you learned how to setup the PWM module and create a pulse-width modulated digital signal with a specific period and duty

More information

PIC ADC to PWM and Mosfet Low-Side Driver

PIC ADC to PWM and Mosfet Low-Side Driver Name Lab Section PIC ADC to PWM and Mosfet Low-Side Driver Lab 6 Introduction: In this lab you will convert an analog voltage into a pulse width modulation (PWM) duty cycle. The source of the analog voltage

More information

Designing with a Microcontroller (v6)

Designing with a Microcontroller (v6) Designing with a Microcontroller (v6) Safety: In this lab, voltages are less than 15 volts and this is not normally dangerous to humans. However, you should assemble or modify a circuit when power is disconnected

More information

Controlling DC Brush Motor using MD10B or MD30B. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

Controlling DC Brush Motor using MD10B or MD30B. Version 1.2. Aug Cytron Technologies Sdn. Bhd. PR10 Controlling DC Brush Motor using MD10B or MD30B Version 1.2 Aug 2008 Cytron Technologies Sdn. Bhd. Information contained in this publication regarding device applications and the like is intended

More information

Lesson 19 In-Circuit Programming

Lesson 19 In-Circuit Programming Elmer 160 Lesson 19 Overview Lesson 19 Introduction When the designer makes a new circuit, there is often some time spent in developing the software for that circuit. Removing the PIC from the circuit

More information

Building an Analog Communications System

Building an Analog Communications System Building an Analog Communications System Communicate between two PICs with analog signals. Analog signals have continous range. Analog signals must be discretized. Digital signal converted to analog Digital

More information

ME 333 Assignment 7 and 8 PI Control of LED/Phototransistor Pair. Overview

ME 333 Assignment 7 and 8 PI Control of LED/Phototransistor Pair. Overview ME 333 Assignment 7 and 8 PI Control of LED/Phototransistor Pair Overview For this assignment, you will be controlling the light emitted from and received by an LED/phototransistor pair. There are many

More information

Embedded Systems. Interfacing PIC with external devices Analog to digital Converter. Eng. Anis Nazer Second Semester

Embedded Systems. Interfacing PIC with external devices Analog to digital Converter. Eng. Anis Nazer Second Semester Embedded Systems Interfacing PIC with external devices Analog to digital Converter Eng. Anis Nazer Second Semester 2016-2017 What is the time? What is the time? Definition Analog: can take any value Digital:

More information

PIC Functionality. General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232

PIC Functionality. General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232 PIC Functionality General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232 General I/O Logic Output light LEDs Trigger solenoids Transfer data Logic Input Monitor

More information

DESIGNING A POSITION REGULATOR FOR AN ACTUATOR POWERED BY A CONTINUOUS CURRENT MOTOR USING THE PIC16F73 MICROCONTROLLER

DESIGNING A POSITION REGULATOR FOR AN ACTUATOR POWERED BY A CONTINUOUS CURRENT MOTOR USING THE PIC16F73 MICROCONTROLLER U.P.B. Sci. Bull., Series C, Vol. 80, Iss. 2, 2018 ISSN 2286-3540 DESIGNING A POSITION REGULATOR FOR AN ACTUATOR POWERED BY A CONTINUOUS CURRENT MOTOR USING THE PIC16F73 MICROCONTROLLER Monica-Anca CHITA

More information

Part (A) Using the Potentiometer and the ADC* Part (B) LEDs and Stepper Motors with Interrupts* Part (D) Breadboard PIC Running a Stepper Motor

Part (A) Using the Potentiometer and the ADC* Part (B) LEDs and Stepper Motors with Interrupts* Part (D) Breadboard PIC Running a Stepper Motor Name Name (Most parts are team so maintain only 1 sheet per team) ME430 Mechatronic Systems: Lab 5: ADC, Interrupts, Steppers, and Servos The lab team has demonstrated the following tasks: Part (A) Using

More information

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

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

More information

Laboratory: Introduction to Mechatronics. Lab 5. DC Motor Speed Control Using PWM

Laboratory: Introduction to Mechatronics. Lab 5. DC Motor Speed Control Using PWM Laboratory: Introduction to Mechatronics Instructor TA: Edgar Martinez Soberanes (eem370@mail.usask.ca) 2017-03-15 Lab 5. DC Motor Speed Control Using PWM Lab Sessions Lab 1. Introduction to the equipment

More information

Solar Mailbox project. Pictures of the Solar Mailbox

Solar Mailbox project. Pictures of the Solar Mailbox Solar Mailbox project The purpose of this project is to develop a self sufficient Mailbox (real one) that will be powered only by the sun and that will display the number of the house, but only in accordance

More information

Three-Stage Coil Gun

Three-Stage Coil Gun Three-Stage Coil Gun Final Project Report December 8, 2006 E155 Dan Pivonka and Michael Pugh Abstract: A coil gun is an electronic gun that fires a projectile by means of the magnetic field generated when

More information

Design of Low Cost Embedded Power Plant Relay Testing Unit

Design of Low Cost Embedded Power Plant Relay Testing Unit Design of Low Cost Embedded Power Plant Relay Testing Unit S.Uthayashanger, S.Sivasatheeshan, P.R Talbad uthayashanger@yahoo.com Supervised by: Dr. Thrishantha Nanayakkara thrish@elect.mrt.ac.lk Department

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

Laboratory Exercise 1 Microcontroller Board with Driver Board

Laboratory Exercise 1 Microcontroller Board with Driver Board Laboratory Exercise 1 Microcontroller Board with Driver Board The purpose of this lab exercises is to demonstrate how the Microcontroller Board can be used to control motors connected to the Driver Board

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

IE1206 Embedded Electronics

IE1206 Embedded Electronics IE1206 Embedded Electronics Le1 Le3 Le4 Le2 Ex1 Ex2 PIC-block Documentation, Seriecom Pulse sensors I, U, R, P, serial and parallel KC1 LAB1 Pulse sensors, Menu program Start of programing task Kirchhoffs

More information

;;;;;;; Variables ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; cblock Bank0RAM ;Temporary storage for STATUS during interrupts

;;;;;;; Variables ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; cblock Bank0RAM ;Temporary storage for STATUS during interrupts TotPrgm2 Senior Design Program for Total Project (LED and Motor Control) Hayden Callender list P=PIC16F877, F=INHX8M, C=160, N=77, ST=OFF, MM=OFF, R=DEC, X=OFF #include P16F877.inc config(_cp_off & _PWRTE_ON

More information

Final Project Report E3390 Electronic Circuits Design Lab. The Seeing Natcar

Final Project Report E3390 Electronic Circuits Design Lab. The Seeing Natcar Final Project Report E3390 Electronic Circuits Design Lab The Seeing Natcar Peter Fredrickson Federico Garcia Antonio Gellineau Steven Mon Submitted in partial fulfillment of the requirements for the Bachelor

More information

Q.P. Code : [ TURN OVER]

Q.P. Code : [ TURN OVER] Q.P. Code : 587801 8ADF85B2CAF8DDC703193679392A86308ADF85B2CAF8DDC703193679392A86308ADF85B2CAF8DDC703193679392A86308ADF85B2CAF8DDC703193679392A86308ADF85B2CAF8DDC70 6308ADF85B2CAF8DDC703193679392A86308ADF85B2CAF8DDC703193679392A86308ADF85B2CAF8DDC703193679392A86308ADF85B2CAF8DDC703193679392A86308ADF85B2CAF8DDC703

More information

Grundlagen Microcontroller Counter/Timer. Günther Gridling Bettina Weiss

Grundlagen Microcontroller Counter/Timer. Günther Gridling Bettina Weiss Grundlagen Microcontroller Counter/Timer Günther Gridling Bettina Weiss 1 Counter/Timer Lecture Overview Counter Timer Prescaler Input Capture Output Compare PWM 2 important feature of microcontroller

More information

AP XC866. Optimized Space Vector Modulation and Over-modulation with the XC866. Microcontrollers. Application Note, V 2.0, Sept.

AP XC866. Optimized Space Vector Modulation and Over-modulation with the XC866. Microcontrollers. Application Note, V 2.0, Sept. Application Note, V 2.0, Sept. 2005 AP0803620 XC866 Optimized Space Vector Modulation and Over-modulation with the XC866 Microcontrollers Never stop thinking. XC866 Revision History: 2005-09 V 2.0 Previous

More information

PROCESS. Object. Block diagram of our design. DISPLAY THE DISTANCE (7 segment display) PIC 16F873

PROCESS. Object. Block diagram of our design. DISPLAY THE DISTANCE (7 segment display) PIC 16F873 PROCESS ENERGIZE THE CIRCUIT PIC 16F873 DISPLAY THE DISTANCE (7 segment display) SIGNAL CONDITIONING AMPLIFYING SIGNAL (x1000) (40 db LM 741) + (20 db LM741) TRANSMITTING SIGNAL (murata MA40S T) ENVELOPE

More information

Simple Bridge Stand Alone H-Bridge Data Sheet Revision 1 August 2005

Simple Bridge Stand Alone H-Bridge Data Sheet Revision 1 August 2005 Simple Bridge Stand Alone H-Bridge Revision August 00 SOLUTIONS CUBED, LLC East First Street Chico, CA 99 phone: 0.9.0 fax: 0.9. www.solutions-cubed.com Copyright 00, LLC Simple Bridge Page Table of Contents.0

More information

Design of Joint Controller Circuit for PA10 Robot Arm

Design of Joint Controller Circuit for PA10 Robot Arm Design of Joint Controller Circuit for PA10 Robot Arm Sereiratha Phal and Manop Wongsaisuwan Department of Electrical Engineering, Faculty of Engineering, Chulalongkorn University, Bangkok, 10330, Thailand.

More information

' The PicBasic Pro Compiler Manual is on line at: '

' The PicBasic Pro Compiler Manual is on line at: ' ---------------Title-------------- File...4331_encoder4.pbp Started...1/10/10 Microcontroller Used: Microchip Technology 18F4331 Available at: http://www.microchipdirect.com/productdetails.aspx?category=pic18f4331

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

Real-time Math Function of DL850 ScopeCorder

Real-time Math Function of DL850 ScopeCorder Real-time Math Function of DL850 ScopeCorder Etsurou Nakayama *1 Chiaki Yamamoto *1 In recent years, energy-saving instruments including inverters have been actively developed. Researchers in R&D sections

More information

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

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

More information

Timer A (0 and 1) and PWM EE3376

Timer A (0 and 1) and PWM EE3376 Timer A (0 and 1) and PWM EE3376 General Peripheral Programming Model l l l l Each peripheral has a range of addresses in the memory map peripheral has base address (i.e. 0x00A0) each register used in

More information

FM Tuner Controller for Portable and Car Radios

FM Tuner Controller for Portable and Car Radios WIRELESS AND REMOTE CONTROLLED PERSONAL APPLIANCE FM Tuner Controller for Portable and Car Radios Author: T. K. Mani Model Engineering College Cochin, India email: ihrdmec@md2.vsnl.net.in APPLICATION OPERATION

More information

A RECTANGULAR UNIPOLAR PULSE WIDTH MEASUREMENT BY MEANS OF PIC18F2550 MCU. Konstantin Metodiev

A RECTANGULAR UNIPOLAR PULSE WIDTH MEASUREMENT BY MEANS OF PIC18F2550 MCU. Konstantin Metodiev Bulgarian Academy of Sciences. Space Research and Technology Institute. Aerospace Research in Bulgaria. 28, 2016, Sofia A RECTANGULAR UNIPOLAR PULSE WIDTH MEASUREMENT BY MEANS OF PIC18F2550 MCU Konstantin

More information

GCE A level 1145/01 ELECTRONICS ET5. P.M. THURSDAY, 31 May hours. Centre Number. Candidate Number. Surname. Other Names

GCE A level 1145/01 ELECTRONICS ET5. P.M. THURSDAY, 31 May hours. Centre Number. Candidate Number. Surname. Other Names Surname Other Names Centre Number 0 Candidate Number GCE A level 1145/01 ELECTRONICS ET5 P.M. THURSDAY, 31 May 2012 1 1 2 hours For s use Question Maximum Mark Mark Awarded 1. 6 2. 9 3. 8 4. 6 1145 010001

More information

Micro Controller Based Ac Power Controller

Micro Controller Based Ac Power Controller Wireless Sensor Network, 9, 2, 61-121 doi:1.4236/wsn.9.112 Published Online July 9 (http://www.scirp.org/journal/wsn/). Micro Controller Based Ac Power Controller S. A. HARI PRASAD 1, B. S. KARIYAPPA 1,

More information

354 Facta Universitatis ser.: Elec. and Energ. vol. 13, No.3, December 2000 in the audio frequency band. There are many reasons for moving towards a c

354 Facta Universitatis ser.: Elec. and Energ. vol. 13, No.3, December 2000 in the audio frequency band. There are many reasons for moving towards a c FACTA UNIVERSITATIS (NI» S) Series: Electronics and Energetics vol. 13, No. 3, December 2000, 353-364 GENERATING DRIVING SIGNALS FOR THREE PHASES INVERTER BY DIGITAL TIMING FUNCTIONS Miroslav Lazić, Miodrag

More information

Arduino Microcontroller Processing for Everyone!: Third Edition / Steven F. Barrett

Arduino Microcontroller Processing for Everyone!: Third Edition / Steven F. Barrett Arduino Microcontroller Processing for Everyone!: Third Edition / Steven F. Barrett Anatomy of a Program Programs written for a microcontroller have a fairly repeatable format. Slight variations exist

More information

INF8574 GENERAL DESCRIPTION

INF8574 GENERAL DESCRIPTION GENERAL DESCRIPTION The INF8574 is a silicon CMOS circuit. It provides general purpose remote I/O expansion for most microcontroller families via the two-line bidirectional bus (I 2 C). The device consists

More information

POWER GENERATION USING PIEZOELECTRIC SYSTEM FOR STREET LIGHT SYSTEM

POWER GENERATION USING PIEZOELECTRIC SYSTEM FOR STREET LIGHT SYSTEM POWER GENERATION USING PIEZOELECTRIC SYSTEM FOR STREET LIGHT SYSTEM 1 NISHCHITHA H V PRASAD, 2 ABHAY A DESHPANDE, 3 S PRADEEPA, 4 SIVA SUBBARAOPATTANGE 1,2 R V C E Bangalore, 3 B M S C E Bangalore, 4 N

More information

IMPLEMENTATION OF QALU BASED SPWM CONTROLLER THROUGH FPGA. This Chapter presents an implementation of area efficient SPWM

IMPLEMENTATION OF QALU BASED SPWM CONTROLLER THROUGH FPGA. This Chapter presents an implementation of area efficient SPWM 3 Chapter 3 IMPLEMENTATION OF QALU BASED SPWM CONTROLLER THROUGH FPGA 3.1. Introduction This Chapter presents an implementation of area efficient SPWM control through single FPGA using Q-Format. The SPWM

More information

Generating DTMF Tones Using Z8 Encore! MCU

Generating DTMF Tones Using Z8 Encore! MCU Application Note Generating DTMF Tones Using Z8 Encore! MCU AN024802-0608 Abstract This Application Note describes how Zilog s Z8 Encore! MCU is used as a Dual-Tone Multi- (DTMF) signal encoder to generate

More information

PIC PWM. Robert Ralston KJ6HFR September 2013

PIC PWM. Robert Ralston KJ6HFR September 2013 PIC PWM Robert Ralston KJ6HFR September 2013 These notes demonstrate generating PWM on the HamStack platform using the PIC 18F4620 and the PIC 18F46K22. Most demonstrations can use the DEV-1 HamStack Development

More information

Exercise 5: PWM and Control Theory

Exercise 5: PWM and Control Theory Exercise 5: PWM and Control Theory Overview In the previous sessions, we have seen how to use the input capture functionality of a microcontroller to capture external events. This functionality can also

More information

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

Serial communication inverter. Lab bench scenario. Inverter Board, A/D, D/A, PWM, Filters, Encoders. Inverter board. and Dimmer introduction Inverter Board, A/D, D/A, PWM, Filters, Encoders and Dimmer introduction 20181004 Gunnar Lindstedt Serial communication inverter Lund University, Sweden Lab bench scenario Inverter board PC 9pole Dsub

More information

AN ADVANCED THREE PHASE VSI WITH CONDUCTION MODE USING PIC16F72

AN ADVANCED THREE PHASE VSI WITH CONDUCTION MODE USING PIC16F72 AN ADVANCED THREE PHASE VSI WITH 150 0 CONDUCTION MODE USING PIC16F72 Mr. Divyeshkumar G. Mangroliya 1*, Mr. Vinod J. Rupapara 2, Mr. Rakeshkumar P. Akabari 3#, Mr. Nirav M. Vaghela 4 1 Assi. Professor

More information

EXAMINATION PAPER EMBEDDED SYSTEMS 6EJ005 UNIVERSITY OF DERBY. School of Computing and Technology DATE: SUMMER 2003 TIME ALLOWED: 2 HOURS

EXAMINATION PAPER EMBEDDED SYSTEMS 6EJ005 UNIVERSITY OF DERBY. School of Computing and Technology DATE: SUMMER 2003 TIME ALLOWED: 2 HOURS BSc/BSc (HONS) MUSIC TECHNOLOGY AND AUDIO SYSTEM DESIGN BSc/BSc (HONS) LIVE PERFORMANCE TECHNOLOGY BSc/BSc (HONS) ELECTRICAL AND ELECTRONIC ENGINEERING DATE: SUMMER 2003 TIME ALLOWED: 2 HOURS Instructions

More information

CMOS Serial Digital Pulse Width Modulator INPUT CLK MODULATOR LOGIC PWM 8 STAGE RIPPLE COUNTER RESET LOAD FREQUENCY DATA REGISTER

CMOS Serial Digital Pulse Width Modulator INPUT CLK MODULATOR LOGIC PWM 8 STAGE RIPPLE COUNTER RESET LOAD FREQUENCY DATA REGISTER css Custom Silicon Solutions, Inc. S68HC68W1 May 2003 CMOS Serial Digital Pulse Width Modulator Features Direct Replacement for Intersil CDP68HC68W1 Pinout PDIP / SOIC (Note #1) TOP VIEW Programmable Frequency

More information

CHAPTER 3 PIC Microcontroller CCP and ECCP Tips n Tricks

CHAPTER 3 PIC Microcontroller CCP and ECCP Tips n Tricks CHAPTER 3 PIC Microcontroller CCP and ECCP Tips n Tricks Table Of Contents CAPTURE TIPS N TRICKS TIP #1 Measuring the Period of a Square Wave... 3-3 TIP #2 Measuring the Period of a Square Wave with Averaging...

More information

CHAPTER 7 MAXIMUM POWER POINT TRACKING USING HILL CLIMBING ALGORITHM

CHAPTER 7 MAXIMUM POWER POINT TRACKING USING HILL CLIMBING ALGORITHM 100 CHAPTER 7 MAXIMUM POWER POINT TRACKING USING HILL CLIMBING ALGORITHM 7.1 INTRODUCTION An efficient Photovoltaic system is implemented in any place with minimum modifications. The PV energy conversion

More information

DS1075. EconOscillator/Divider PRELIMINARY FEATURES PIN ASSIGNMENT FREQUENCY OPTIONS

DS1075. EconOscillator/Divider PRELIMINARY FEATURES PIN ASSIGNMENT FREQUENCY OPTIONS PRELIMINARY EconOscillator/Divider FEATURES Dual Fixed frequency outputs (200 KHz 100 MHz) User programmable on chip dividers (from 1 513) User programmable on chip prescaler (1, 2, 4) No external components

More information

Generating MSK144 directly for Beacons and Test Sources.

Generating MSK144 directly for Beacons and Test Sources. Generating MSK144 directly for Beacons and Test Sources. Overview Andy Talbot G4JNT December 2016 MSK144 is a high speed data mode introduced into WSJT-X to replace FSK441 for meteor scatter (MS) and other

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

DASL 120 Introduction to Microcontrollers

DASL 120 Introduction to Microcontrollers DASL 120 Introduction to Microcontrollers Lecture 2 Introduction to 8-bit Microcontrollers Introduction to 8-bit Microcontrollers Introduction to 8-bit Microcontrollers Introduction to Atmel Atmega328

More information

Review for Final Exam

Review for Final Exam Review for Final Exam Numbers Decimal to Hex (signed and unsigned) Hex to Decimal (signed and unsigned) Binary to Hex Hex to Binary Addition and subtraction of fixed-length hex numbers Overflow, Carry,

More information

B.E. SEMESTER III (ELECTRICAL) SUBJECT CODE: X30902 Subject Name: Analog & Digital Electronics

B.E. SEMESTER III (ELECTRICAL) SUBJECT CODE: X30902 Subject Name: Analog & Digital Electronics B.E. SEMESTER III (ELECTRICAL) SUBJECT CODE: X30902 Subject Name: Analog & Digital Electronics Sr. No. Date TITLE To From Marks Sign 1 To verify the application of op-amp as an Inverting Amplifier 2 To

More information

Development of a Low Cost MPPT Circuit for Solar Panel

Development of a Low Cost MPPT Circuit for Solar Panel Development of a Low Cost MPPT Circuit for Solar Panel AN INTERNSHIP REPORT SUBMITTED TO THE DEPARTMENT OF MATHEMATICS AND NATURAL SCIENCES, BRAC UNIVERSITY IN PARTIAL FULFILMENT OF THE REQUIREMENTS FOR

More information

PROJECT 005: POWER QUALITY MONITORING UNIT

PROJECT 005: POWER QUALITY MONITORING UNIT UNIVERSITY OF NAIROBI DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING PROJECT 005: POWER QUALITY MONITORING UNIT AUTHOR: NJOGU SWALEH KAMUTHIERE REG NO: F17/21669/2007 SUPERVISOR: PROF. ELIJAH MWANGI

More information

Costas Loop. Modules: Sequence Generator, Digital Utilities, VCO, Quadrature Utilities (2), Phase Shifter, Tuneable LPF (2), Multiplier

Costas Loop. Modules: Sequence Generator, Digital Utilities, VCO, Quadrature Utilities (2), Phase Shifter, Tuneable LPF (2), Multiplier Costas Loop Modules: Sequence Generator, Digital Utilities, VCO, Quadrature Utilities (2), Phase Shifter, Tuneable LPF (2), Multiplier 0 Pre-Laboratory Reading Phase-shift keying that employs two discrete

More information

Motor Control using NXP s LPC2900

Motor Control using NXP s LPC2900 Motor Control using NXP s LPC2900 Agenda LPC2900 Overview and Development tools Control of BLDC Motors using the LPC2900 CPU Load of BLDCM and PMSM Enhancing performance LPC2900 Demo BLDC motor 2 LPC2900

More information

DS1065 EconOscillator/Divider

DS1065 EconOscillator/Divider wwwdalsemicom FEATURES 30 khz to 100 MHz output frequencies User-programmable on-chip dividers (from 1-513) User-programmable on-chip prescaler (1, 2, 4) No external components 05% initial tolerance 3%

More information

ADS9850 Signal Generator Module

ADS9850 Signal Generator Module 1. Introduction ADS9850 Signal Generator Module This module described here is based on ADS9850, a CMOS, 125MHz, and Complete DDS Synthesizer. The AD9850 is a highly integrated device that uses advanced

More information

DS1073 3V EconOscillator/Divider

DS1073 3V EconOscillator/Divider 3V EconOscillator/Divider wwwmaxim-iccom FEATURES Dual fixed-frequency outputs (30kHz to 100MHz) User-programmable on-chip dividers (from 1 to 513) User-programmable on-chip prescaler (1, 2, 4) No external

More information

Oct 30 Announcements. Bonus marked will be posted today Will provide 270 style feedback on multiple-choice questions. [3.E]-1

Oct 30 Announcements. Bonus marked will be posted today Will provide 270 style feedback on multiple-choice questions. [3.E]-1 Oct 30 Announcements Code Marked and on Blackboard This week: Mon 2:30 to 3:00pm, Tues 2:30 to 3:30 and W-F 1:30 to 3:00pm opportunity to talk about code: earn 2 extra points on the coding part Bonus marked

More information

AN840. PIC16F7X/PIC16C7X Peripherals Configuration and Integration INTRODUCTION A/D MODULE CONVERSION BLOCK DIAGRAM

AN840. PIC16F7X/PIC16C7X Peripherals Configuration and Integration INTRODUCTION A/D MODULE CONVERSION BLOCK DIAGRAM PIC16F7X/PIC16C7X Peripherals Configuration and Integration Authors: INTRODUCTION In choosing the appropriate microcontroller for a specific application, it is necessary to select one which includes all

More information

EE 308 Apr. 24, 2002 Review for Final Exam

EE 308 Apr. 24, 2002 Review for Final Exam Review for Final Exam Numbers Decimal to Hex (signed and unsigned) Hex to Decimal (signed and unsigned) Binary to Hex Hex to Binary Addition and subtraction of fixed-length hex numbers Overflow, Carry,

More information

Implementation of Multiquadrant D.C. Drive Using Microcontroller

Implementation of Multiquadrant D.C. Drive Using Microcontroller Implementation of Multiquadrant D.C. Drive Using Microcontroller Author Seema Telang M.Tech. (IV Sem.) Department of Electrical Engineering Shri Ramdeobaba College of Engineering and Management Abstract

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

Review for Final Exam

Review for Final Exam Review for Final Exam Numbers Decimal to Hex (signed and unsigned) Hex to Decimal (signed and unsigned) Binary to Hex Hex to Binary Addition and subtraction of fixed-length hex numbers Overflow, Carry,

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

3 Design Lab III: An Electronic Governor for Electric Motor Speed Control

3 Design Lab III: An Electronic Governor for Electric Motor Speed Control 3 Design Lab III: An Electronic Governor for Electric Motor Speed Control (Denard Lynch, September 2008, revised Sept. 2009) 3.1 Safety Advisory: The activity prescribed in this laboratory will be conducted

More information

Experiment#6: Speaker Control

Experiment#6: Speaker Control Experiment#6: Speaker Control I. Objectives 1. Describe the operation of the driving circuit for SP1 speaker. II. Circuit Description The circuit of speaker and driver is shown in figure# 1 below. The

More information

Pulse-Width-Modulation Motor Speed Control with a PIC (modified from lab text by Alciatore)

Pulse-Width-Modulation Motor Speed Control with a PIC (modified from lab text by Alciatore) Laboratory 14 Pulse-Width-Modulation Motor Speed Control with a PIC (modified from lab text by Alciatore) Required Components: 1x PIC 16F88 18P-DIP microcontroller 3x 0.1 F capacitors 1x 12-button numeric

More information

GCE A level 1145/01 ELECTRONICS ET5

GCE A level 1145/01 ELECTRONICS ET5 Surname Other Names Centre Number 2 Candidate Number GCE A level 1145/01 ELECTRONICS ET5 A.M. WEDNESDAY, 12 June 2013 1½ hours ADDITIONAL MATERIALS In addition to this examination paper, you will need

More information

PICmicro CCP and ECCP Tips n Tricks

PICmicro CCP and ECCP Tips n Tricks PICmicro CCP and ECCP Tips n Tricks M Table of Contents Tips n Tricks Tips 'n Tricks Introduction... 1 Capture Tips n Tricks TIP #1: Measuring the Period of a Square Wave...5 TIP #2: Measuring the Period

More information

Final Report EEL5666 4/23/02 Justin Rice

Final Report EEL5666 4/23/02 Justin Rice Final Report EEL5666 4/23/02 Justin Rice Table of Contents Abstract 3 Executive Summary 4 Introduction 5 Integrated System 6 Mobile Platform 7 Actuation 8 Sensors 9 Behaviors 14 Experimental Layout and

More information

AVR PWM 11 Aug In the table below you have symbols used in the text. The meaning of symbols is the same in the entire guide.

AVR PWM 11 Aug In the table below you have symbols used in the text. The meaning of symbols is the same in the entire guide. Aquaticus PWM guide AVR PWM 11 Aug 29 Introduction This guide describes principles of PWM for Atmel AVR micro controllers. It is not complete documentation for PWM nor AVR timers but tries to lighten some

More information

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

Activity 4: Due before the lab during the week of Feb Today's Plan Announcements: Lecture Test 2 programming in C Activity 4 Serial interfaces Analog output Driving external loads Motors: dc motors, stepper motors, servos Lecture Test Activity 4: Due before

More information

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

Section 3. Reset HIGHLIGHTS. Reset. This section of the manual contains the following major topics:

Section 3. Reset HIGHLIGHTS. Reset. This section of the manual contains the following major topics: Section 3. HIGHLIGHTS This section of the manual contains the following major topics: 3.1 Introduction... 3-2 3.2 s and Delay Timers... 3-4 3.3 Registers and Status Bit Values... 3-14 3.4 Design Tips...

More information

The rangefinder can be configured using an I2C machine interface. Settings control the

The rangefinder can be configured using an I2C machine interface. Settings control the Detailed Register Definitions The rangefinder can be configured using an I2C machine interface. Settings control the acquisition and processing of ranging data. The I2C interface supports a transfer rate

More information

Using the HCS08 TPM Module In Motor Control Applications

Using the HCS08 TPM Module In Motor Control Applications Pavel Grasblum Using the HCS08 TPM Module In Motor Control Applications Designers can choose from a wide range of microcontrollers to provide digital control for variable speed drives. Microcontrollers

More information

CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER

CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER 65 CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER 4.1 INTRODUCTION Many control strategies are available for the control of IMs. The Direct Torque Control (DTC) is one of the most

More information

DS1075 EconOscillator/Divider

DS1075 EconOscillator/Divider EconOscillator/Divider www.dalsemi.com FEATURES Dual Fixed frequency outputs (30 KHz - 100 MHz) User-programmable on-chip dividers (from 1-513) User-programmable on-chip prescaler (1, 2, 4) No external

More information

CMOS Serial Digital Pulse Width Modulator INPUT CLK MODULATOR LOGIC PWM 8 STAGE RIPPLE COUNTER RESET LOAD FREQUENCY DATA REGISTER

CMOS Serial Digital Pulse Width Modulator INPUT CLK MODULATOR LOGIC PWM 8 STAGE RIPPLE COUNTER RESET LOAD FREQUENCY DATA REGISTER css Custom Silicon Solutions, Inc. S68HC68W1 April 2003 CMOS Serial Digital Pulse Width Modulator Features Direct Replacement for Intersil CDP68HC68W1 Pinout (PDIP) TOP VIEW Programmable Frequency and

More information

Moving Forward Efficiently HEV/EV Traction Motor Lab

Moving Forward Efficiently HEV/EV Traction Motor Lab Moving Forward Efficiently HEV/EV Traction Motor Lab A traction motor is an electric motor providing the primary rotational torque of a machine, usually for conversion into linear motion (traction). Renesas

More information

Section 1. Fundamentals of DDS Technology

Section 1. Fundamentals of DDS Technology Section 1. Fundamentals of DDS Technology Overview Direct digital synthesis (DDS) is a technique for using digital data processing blocks as a means to generate a frequency- and phase-tunable output signal

More information

Pololu TReX Jr Firmware Version 1.2: Configuration Parameter Documentation

Pololu TReX Jr Firmware Version 1.2: Configuration Parameter Documentation Pololu TReX Jr Firmware Version 1.2: Configuration Parameter Documentation Quick Parameter List: 0x00: Device Number 0x01: Required Channels 0x02: Ignored Channels 0x03: Reversed Channels 0x04: Parabolic

More information

2. Circuit diagram The overall functional diagram is:

2. Circuit diagram The overall functional diagram is: An LC meter in C By Juan H la Grange, ZS6SZ 1. Introduction This article and project is based on Digital LC Meter Version 2 by Phil Rice VK3BHR [https://sites.google.com/site/vk3bhr/home/index2-html] and

More information

Residual Phase Noise Measurement Extracts DUT Noise from External Noise Sources By David Brandon and John Cavey

Residual Phase Noise Measurement Extracts DUT Noise from External Noise Sources By David Brandon and John Cavey Residual Phase Noise easurement xtracts DUT Noise from xternal Noise Sources By David Brandon [david.brandon@analog.com and John Cavey [john.cavey@analog.com Residual phase noise measurement cancels the

More information

Real time digital audio processing with Arduino

Real time digital audio processing with Arduino Real time digital audio processing with Arduino André J. Bianchi ajb@ime.usp.br Marcelo Queiroz mqz@ime.usp.br Departament of Computer Science Institute of Mathematics and Statistics University of São

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

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

4/30/2012. General Class Element 3 Course Presentation. Practical Circuits. Practical Circuits. Subelement G7. 2 Exam Questions, 2 Groups

4/30/2012. General Class Element 3 Course Presentation. Practical Circuits. Practical Circuits. Subelement G7. 2 Exam Questions, 2 Groups General Class Element 3 Course Presentation ti ELEMENT 3 SUB ELEMENTS General Licensing Class Subelement G7 2 Exam Questions, 2 Groups G1 Commission s Rules G2 Operating Procedures G3 Radio Wave Propagation

More information