P89LPC935 ADC/DAC Tutorial

Size: px
Start display at page:

Download "P89LPC935 ADC/DAC Tutorial"

Transcription

1 P89LPC935 ADC/DAC Tutorial The P89LPC935 microcontroller has 2 on-board analog to digital modules Each module contains a 4-channel 8-bit successive approximation ADC 89LPC935 ADC/DAC Tutorial 1

2 ADC Module Features 2 8-bit 4-channel multiplexed input A/D converters Separate result registers for each channel Six operating modes Single or continuous conversion Scan mode 4 conversion start modes Conversion time of 13 ADC clocks (3.9usec for a 3.3MHz clock) May be polled or interrupt driven Each ADC module may be configured in DAC mode to produce a single analog output 89LPC935 ADC/DAC Tutorial 2

3 ADC Input/Output Pins ADC Input Channel Port Pin Result Register DAC Output Channel AD00 P1.7 ADODAT0 AD01 P0.0 ADODAT1 AD02 P2.1 ADODAT2 AD03 P2.0 ADODAT3 DAC0 AD10 P0.1 AD1DAT0 AD11 P0.2 AD1DAT1 AD12 P0.3 AD1DAT2 AD13 P0.4 AD1DAT3 DAC1 89LPC935 ADC/DAC Tutorial 3

4 DAC Operation 2 DACs are available for use on the LPC935 The DAC0 output pin is P2.0 The DAC0 input register is AD0DAT3 Writing to this register will update the DAC analog output The DAC1 output pin is P0.4 The DAC1 input register is AD1DAT3 Writing to this register will update the DAC analog output DAC Channel 0 DAC Channel 1 AD0DAT3 DAC0 P2.0 AD1DAT3 DAC1 P0.4 Write data to register Write data to register 89LPC935 ADC/DAC Tutorial 4

5 Configuring a DAC Ensure that the DAC output is configured as an output Configure for quasi-bidirectional mode Enable the ADC module in the ADCON0 or the ADCCON1 register ENADC0 = 1 in ADCON0 register ENADC1 = 1 in ADCON1 register Enable the DAC in the ADMODB register ENDAC0 = 1 for DAC0 ENDAC1 = 1 for DAC1 Program Example Write a C program to generate a sawtooth waveform using DAC0. 89LPC935 ADC/DAC Tutorial 5

6 Generating a sawtooth wave using DAC1 #include <REG935.H> void main() { unsigned char data x ; //configure Port 2 as quasi-bidirectional P2M1 = 0x00; P2M2 = 0x00; //Configure the DAC ADCON1 = 0x04; ADMODB = 0x08; //AD1 enabled //DAC mode for ADC1 } //Sawtooth wave generation while(1) { for(x=0; x<256; x++) { AD1DAT3 = x; } } //write to conversion register 89LPC935 ADC/DAC Tutorial 6

7 A/D Control Register 89LPC935 ADC/DAC Tutorial 7

8 A/D Mode Register B 89LPC935 ADC/DAC Tutorial 8

9 ADC Operation The 89LPC935 micro ADC operation can be quite complex with 6 conversion modes and 4 trigger modes This tutorial will demonstrate the use of the ADC in it s simplest format Single channel conversion with immediate start Refer to the LPC935 user guide for multi-channel conversions with different trigger modes We will write a program to measure the voltage on ADC1 channel 2 (pin P0.3) and to display the digital value on the LEDs connected to Port 2 3.3V LPC935 P0.3 P2 89LPC935 ADC/DAC Tutorial 9

10 Configuring the ADC Configure the ADINS register to enable the relevant ADC channel For ADC1 channel 2, ADINS = 40H Configure the ADC conversion mode in the ADMODA register SCAN bit = 1 for fixed channel single conversion mode ADMODA = 10H Enable ADC channel 1 ADCON1 = 04H Configure the ADC clock in the ADMODB register Max ADC clock is 3.3MHz The ADCON1 control register is used to start a conversion and contains an end of conversion flag To start a conversion set the ENADC1 bit (bit 0) ADCON1 = 0x01; The ADCI1 bit (bit 3) goes high when a conversion is complete The ADCI1 bit must be cleared by software 89LPC935 ADC/DAC Tutorial 10

11 #include <REG935.H> void main() { //configure Port 2 as quasi-bidirectional P2M1 = 0x00; P2M2 = 0x00; C Program //Configure the ADC ADINS = 0x40; ADMODA = 0x10; ADCON1 = 0x04; ADMODB = 0xE0; //select AD12 as ADC input (pin P0.3) //AD1 in fixed channel single conversion mode //ADC channel 1 enabled //divide by 8 ADC clock } while(1) { ADCON1 = 0x01; while((adcon1 & 0x08) == 0); ADCON1 &= 0xF7; P2 = AD1DAT2; } //start conversion immediately //wait for end of conversion //clear EOC flag //display result on port 2 LEDs 89LPC935 ADC/DAC Tutorial 11

12 ADC Simulation After starting the debugger, select the A/D Converter channel 1 from the Peripherals pull-down menu An analog input voltage may be simulated by changing the AD12 field in the bottom right-hand corner of the peripheral window 89LPC935 ADC/DAC Tutorial 12

13 ADINS Register 89LPC935 ADC/DAC Tutorial 13

14 ADMODA Register 89LPC935 ADC/DAC Tutorial 14

15 ADCON1 Register 89LPC935 ADC/DAC Tutorial 15

16 ADMODB Register 89LPC935 ADC/DAC Tutorial 16

AN10218 Philips LPC900 microcontrollers single cell power supply

AN10218 Philips LPC900 microcontrollers single cell power supply INTEGRATED CIRCUITS ABSTRACT This application note describes the power of a P89LPC900 microcontroller from a single cell for low power applications like hand held devices. AN08 Philips LPC900 microcontrollers

More information

MICROPROCESSORS A (17.383) Fall Lecture Outline

MICROPROCESSORS A (17.383) Fall Lecture Outline MICROPROCESSORS A (17.383) Fall 2010 Lecture Outline Class # 07 October 26, 2010 Dohn Bowden 1 Today s Lecture Syllabus review Microcontroller Hardware and/or Interface Finish Analog to Digital Conversion

More information

ECE2049: Embedded Computing in Engineering Design C Term Spring Lecture #14: Using the ADC12 Analog-to-Digital Converter

ECE2049: Embedded Computing in Engineering Design C Term Spring Lecture #14: Using the ADC12 Analog-to-Digital Converter ECE2049: Embedded Computing in Engineering Design C Term Spring 2018 Lecture #14: Using the ADC12 Analog-to-Digital Converter Reading for Today: Davies 9.2-3, 9.7, MSP430 User's Guide Ch 28 Reading 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

EE445L Fall 2011 Quiz 2A Page 1 of 6

EE445L Fall 2011 Quiz 2A Page 1 of 6 EE445L Fall 2011 Quiz 2A Page 1 of 6 Jonathan W. Valvano First: Last: November 18, 2011, 2:00pm-2:50pm. Open book, open notes, calculator (no laptops, phones, devices with screens larger than a TI-89 calculator,

More information

Iowa State University Electrical and Computer Engineering. E E 452. Electric Machines and Power Electronic Drives

Iowa State University Electrical and Computer Engineering. E E 452. Electric Machines and Power Electronic Drives Electrical and Computer Engineering E E 452. Electric Machines and Power Electronic Drives Laboratory #5 Buck Converter Embedded Code Generation Summary In this lab, you will design the control application

More information

Interfacing to Analog World Sensor Interfacing

Interfacing to Analog World Sensor Interfacing Interfacing to Analog World Sensor Interfacing Introduction to Analog to digital Conversion Why Analog to Digital? Basics of A/D Conversion. A/D converter inside PIC16F887 Related Problems Prepared By-

More information

EIE/AN93017 Using the analog-to-digital converter of the 8XC552 microcontroller

EIE/AN93017 Using the analog-to-digital converter of the 8XC552 microcontroller INTEGRATED CIRCUITS Theo van Daele, Product Concept & Application Laboratory Eindhoven, the Netherlands 1994 Jun 28 Author: Theo van Daele, Product Concept & Application Laboratory Eindhoven, the Netherlands

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

The University of Texas at Arlington Lecture 10 ADC and DAC

The University of Texas at Arlington Lecture 10 ADC and DAC The University of Texas at Arlington Lecture 10 ADC and DAC CSE 3442/5442 Measuring Physical Quantities (Digital) computers use discrete values, and use these to emulate continuous values if needed. In

More information

Small Signal Pulse Detection

Small Signal Pulse Detection EE318 Electronic Design Lab Project Report, EE Dept, IIT Bombay, April 2007 Small Signal Pulse Detection Group No: B07 Rahul S. K. (04007018) Gaurav Sushil (04007015)

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

EE 109 Midterm Review

EE 109 Midterm Review EE 109 Midterm Review 1 2 Number Systems Computer use base 2 (binary) 0 and 1 Humans use base 10 (decimal) 0 to 9 Humans using computers: Base 16 (hexadecimal) 0 to 15 (0 to 9,A,B,C,D,E,F) Base 8 (octal)

More information

Lecture 7: Analog Signals and Conversion

Lecture 7: Analog Signals and Conversion ECE342 Introduction to Embedded Systems Lecture 7: Analog Signals and Conversion Ying Tang Electrical and Computer Engineering Rowan University 1 Analog Signals Everywhere Everything is an analogy in the

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

ADC Parameters. ECE/CS 5780/6780: Embedded System Design. Common Encoding Schemes. Two-Bit Flash ADC. Sixteen-Bit Dual Slope ADC

ADC Parameters. ECE/CS 5780/6780: Embedded System Design. Common Encoding Schemes. Two-Bit Flash ADC. Sixteen-Bit Dual Slope ADC ADC Parameters ECE/CS 5780/6780: Embedded System Design Chris J. Myers Lecture 19: Analog-to-Digital Conversion Precision is number of distinguishable ADC inputs. Range is maximum and minimum ADC inputs.

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

Notes on using the A/D Converter on the. FFMC8L/LC Microcontrollers. Fujitsu Mikroelektronik GmbH Vers. 1.0 by E. Bendels

Notes on using the A/D Converter on the. FFMC8L/LC Microcontrollers. Fujitsu Mikroelektronik GmbH Vers. 1.0 by E. Bendels Application Note Notes on using the A/D Converter on the FFMC8L/LC Microcontrollers Fujitsu Mikroelektronik GmbH Vers. 1.0 by E. Bendels The following Application note is intended to give some hints on

More information

Analog-to-Digital Converter. Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name

Analog-to-Digital Converter. Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name MPSD A/D Lab Exercise Analog-to-Digital Converter Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name Notes: You must work on this assignment with your partner. Hand in a

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

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

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

Analog to Digital Conversion

Analog to Digital Conversion Analog to Digital Conversion The MSP in the name of our microcontroller MSP430G2554 is abbreviation for Mixed Signal Processor. This means that our microcontroller can be used to handle both analog and

More information

I hope you have completed Part 2 of the Experiment and is ready for Part 3.

I hope you have completed Part 2 of the Experiment and is ready for Part 3. I hope you have completed Part 2 of the Experiment and is ready for Part 3. In part 3, you are going to use the FPGA to interface with the external world through a DAC and a ADC on the add-on card. You

More information

MICROPROCESSOR TECHNICS II

MICROPROCESSOR TECHNICS II AGH University of Science and Technology Faculty of Computer Science, Electronics and Telecommunication Department of Electronics MICROPROCESSOR TECHNICS II Tutorial 5 Combining ADC & PWM Mariusz Sokołowski

More information

Module 13: Interfacing ADC. Introduction ADC Programming DAC Programming Sensor Interfacing

Module 13: Interfacing ADC. Introduction ADC Programming DAC Programming Sensor Interfacing Module 13: Interfacing ADC Introduction ADC Programming DAC Programming Sensor Interfacing Introduction ADC Devices o Analog-to-digital converters (ADC) are among the most widely used devices for data

More information

Embedded Test System. Design and Implementation of Digital to Analog Converter. TEAM BIG HERO 3 John Sopczynski Karim Shik-Khahil Yanzhe Zhao

Embedded Test System. Design and Implementation of Digital to Analog Converter. TEAM BIG HERO 3 John Sopczynski Karim Shik-Khahil Yanzhe Zhao Embedded Test System Design and Implementation of Digital to Analog Converter TEAM BIG HERO 3 John Sopczynski Karim Shik-Khahil Yanzhe Zhao EE 300W Section 1 Spring 2015 Big Hero 3 DAC 2 INTRODUCTION (KS)

More information

Lab 10. Speed Control of a D.C. motor

Lab 10. Speed Control of a D.C. motor Lab 10. Speed Control of a D.C. motor Speed Measurement: Tach Amplitude Method References: STM32L100 Data Sheet (pin definitions) STM32L100 Ref. Manual (ADC, GPIO, Clocks) Motor Speed Control Project 1.

More information

Lecture 4: Basic Electronics. Lecture 4 Brief Introduction to Electronics and the Arduino

Lecture 4: Basic Electronics. Lecture 4 Brief Introduction to Electronics and the Arduino Lecture 4: Basic Electronics Lecture 4 Page: 1 Brief Introduction to Electronics and the Arduino colintan@nus.edu.sg Lecture 4: Basic Electronics Page: 2 Objectives of this Lecture By the end of today

More information

ADC Description. ECE/CS 5780/6780: Embedded System Design. External Input Pin Descriptions. ADC Block Diagram

ADC Description. ECE/CS 5780/6780: Embedded System Design. External Input Pin Descriptions. ADC Block Diagram ADC Description ECE/CS 578/678: Embedded System Design Scott. Little Lecture 23: Integrated ADC Configuration 8/-bit resolution. 7 µs, -bit single conversion time. Programmable sample time. External trigger

More information

F²MC-8L/16LX FAMILY MB90340 SPI COMMUNICATION TO EXTERNAL ADC. (for MAX1286) 8/16-BIT MICROCONTROLLER APPLICATION NOTE

F²MC-8L/16LX FAMILY MB90340 SPI COMMUNICATION TO EXTERNAL ADC. (for MAX1286) 8/16-BIT MICROCONTROLLER APPLICATION NOTE Fujitsu Microelectronics Europe Application Note MCU-AN-390105-E-V10 F²MC-8L/16LX FAMILY 8/16-BIT MICROCONTROLLER MB90340 SPI COMMUNICATION TO EXTERNAL ADC (for MAX1286) APPLICATION NOTE Revision History

More information

Capstone Design Course

Capstone Design Course Capstone Design Course Lecture-9: ANALOG-TO-DIGITAL CONVERTER SYSTEM By Syed Masud Mahmud, Ph.D. Copyright 2002 by Syed Masud Mahmud 1 A/D Conversion Theory Here, an example is shown for a 3-bit A/D converter.

More information

EE445L Fall 2012 Final Version B Page 1 of 7

EE445L Fall 2012 Final Version B Page 1 of 7 EE445L Fall 2012 Final Version B Page 1 of 7 Jonathan W. Valvano First: Last: This is the closed book section. You must put your answers in the boxes on this answer page. When you are done, you turn in

More information

Version Futek Instruments, LLC

Version Futek Instruments, LLC FT_ez_DAQ User s Manual Version 2.0.0 Futek Instruments, LLC Table of Contents 1. Introduction... 3 2. System Requirements... 3 3. Software Installation... 4 3.1 Application software and USB driver installation...

More information

dspic Analogue to Digital Converter

dspic Analogue to Digital Converter dspic Analogue to Digital Converter The dspic30f4012 has a 10-bit successive approximation architecture ADC on board and provides maximum sampling rate of 1 Msps. The ADC module has 6 analogue inputs which

More information

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

DNT24MCA DNT24MPA. Low Cost 2.4 GHz FHSS Transceiver Modules with I/O. DNT24MCA/MPA Absolute Maximum Ratings. DNT24MCA/MPA Electrical Characteristics - 2.4 GHz Frequency Hopping Spread Spectrum Transceivers - Direct Peer-to-peer Low Latency Communication - Transmitter RF Power Configurable - 10 or 63 mw - Built-in Chip Antenna - 250 kbps RF Data Rate

More information

Charge Time Measurement Unit (CTMU) and CTMU Operation with Threshold Detect

Charge Time Measurement Unit (CTMU) and CTMU Operation with Threshold Detect Charge Time Measurement Unit (CTMU) and CTMU Operation with Threshold Detect HIGHLIGHTS This section of the manual contains the following major topics: 1.0 Introduction... 2 2.0 Register Maps... 4 3.0

More information

Microprocessors A Lab 4 Fall Analog to Digital Conversion Using the PIC16F684 Microcontroller

Microprocessors A Lab 4 Fall Analog to Digital Conversion Using the PIC16F684 Microcontroller Objectives Materials 17.383 Microprocessors A Analog to Digital Conversion Using the PIC16F684 Microcontroller 1) To use MPLAB IDE software, PICC Compiler, and external hardware to demonstrate the following:

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

Engineer-to-Engineer Note

Engineer-to-Engineer Note Engineer-to-Engineer Note EE-395 Technical notes on using Analog Devices products, processors and development tools Visit our Web resources http://www.analog.com/ee-notes and http://www.analog.com/processors

More information

High Voltage Waveform Sensor

High Voltage Waveform Sensor High Voltage Waveform Sensor Computer Engineering Senior Project Nathan Stump Spring 2013 Statement of Purpose The purpose of this project was to build a system to measure the voltage waveform of a discharging

More information

Using the M16C/62 Analog to Digital Converter in Repeat Sweep Mode 0

Using the M16C/62 Analog to Digital Converter in Repeat Sweep Mode 0 APPLICATION NOTE M16C/62 1.0 Abstract The following article outlines the steps necessary to set up, perform, and read multiple conversions on multiple channels using the onboard analog to digital converter

More information

Lab 7 ADC Apr

Lab 7 ADC Apr Lab 7 ADC Apr. 2016 1 Objective 1. To be familiar with analog to digital converter module in LPC2138. Introduction Analog-to-digital conversion (ADC) is necessary because, while embedded systems deal with

More information

ME 461 Laboratory #3 Analog-to-Digital Conversion

ME 461 Laboratory #3 Analog-to-Digital Conversion ME 461 Laboratory #3 Analog-to-Digital Conversion Goals: 1. Learn how to configure and use the MSP430 s 10-bit SAR ADC. 2. Measure the output voltage of your home-made DAC and compare it to the expected

More information

Using a PIC for Analog to Digital Conversion

Using a PIC for Analog to Digital Conversion Using a PIC for Analog to Digital Conversion Luke LaPointe November 12, 2009 Executive Summary: Analog to Digital Conversion or ADC is mandatory when dealing with analog signals that must be stored and

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

Analog Digital Converter

Analog Digital Converter Analog Digital Converter - Overview Analog Digital Conversion - Operation Modes: Single Mode vs. Scan mode - Registers for Data, Control, Status - Using the ADC in Software - Handling of Interrupts Karl-Ragmar

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

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

DNT90MCA DNT90MPA. Low Cost 900 MHz FHSS Transceiver Modules with I/O - 900 MHz Frequency Hopping Spread Spectrum Transceivers - Direct Peer-to-peer Low Latency Communication - Transmitter Power Configurable to 40 or 158 mw - Built-in 0 dbi Chip Antenna - 100 kbps RF Data

More information

STELLARIS ERRATA. Stellaris LM3S8962 RevA2 Errata

STELLARIS ERRATA. Stellaris LM3S8962 RevA2 Errata STELLARIS ERRATA Stellaris LM3S8962 RevA2 Errata This document contains known errata at the time of publication for the Stellaris LM3S8962 microcontroller. The table below summarizes the errata and lists

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

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

Debouncing Switches. The non-ideal behavior of the contacts that creates multiple electrical transitions for a single user input.

Debouncing Switches. The non-ideal behavior of the contacts that creates multiple electrical transitions for a single user input. Mechanical switches are one of the most common interfaces to a uc. Switch inputs are asynchronous to the uc and are not electrically clean. Asynchronous inputs can be handled with a synchronizer (2 FF

More information

Lecture 5 ECEN 4517/5517

Lecture 5 ECEN 4517/5517 Lecture 5 ECEN 4517/5517 Experiment 3 Buck converter Battery charge controller Peak power tracker 1 Due dates Next week: Exp. 3 part 2 prelab assignment: MPPT algorithm Late assignments will not be accepted.

More information

10-Bit A/D Converter: Example of Settings for Conversion in Single Mode

10-Bit A/D Converter: Example of Settings for Conversion in Single Mode s APPLICATION NOTE Introduction This application note describes an example of settings for A/D conversion on a single channel as an example of application of the 10-bit A/D converter of the SH7263 and

More information

Lesson 3: Arduino. Goals

Lesson 3: Arduino. Goals Introduction: This project introduces you to the wonderful world of Arduino and how to program physical devices. In this lesson you will learn how to write code and make an LED flash. Goals 1 - Get to

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

EE445L Fall 2014 Quiz 2A Page 1 of 5

EE445L Fall 2014 Quiz 2A Page 1 of 5 EE445L Fall 2014 Quiz 2A Page 1 of 5 Jonathan W. Valvano First: Last: November 21, 2014, 10:00-10:50am. Open book, open notes, calculator (no laptops, phones, devices with screens larger than a TI-89 calculator,

More information

Microcontroller Systems. ELET 3232 Topic 21: ADC Basics

Microcontroller Systems. ELET 3232 Topic 21: ADC Basics Microcontroller Systems ELET 3232 Topic 21: ADC Basics Objectives To understand the modes and features of the Analog-to-Digital Converter on the ATmega 128 To understand how to perform an Analog-to-Digital

More information

CSCI1600 Lab 4: Sound

CSCI1600 Lab 4: Sound CSCI1600 Lab 4: Sound November 1, 2017 1 Objectives By the end of this lab, you will: Connect a speaker and play a tone Use the speaker to play a simple melody Materials: We will be providing the parts

More information

AC Induction Motor (ACIM) Control using a Digital Signal Controller (DSC)

AC Induction Motor (ACIM) Control using a Digital Signal Controller (DSC) Research Journal of Applied Sciences, Engineering and Technology 4(19): 3740-3745, 2012 ISSN: 2040-7467 Maxwell Scientific Organization, 2012 Submitted: March 07, 2012 Accepted: March 30, 2012 Published:

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

Chapter 12: Analog-to-Digital Converter. EE383: Introduction to Embedded Systems University of Kentucky. Samir Rawashdeh

Chapter 12: Analog-to-Digital Converter. EE383: Introduction to Embedded Systems University of Kentucky. Samir Rawashdeh Chapter 12: Analog-to-Digital Converter EE383: Introduction to Embedded Systems University of Kentucky Samir Rawashdeh With slides based on material by H. Huang Delmar Cengage Learning Basics of A/D Conversion

More information

Peripheral Link Driver for ADSP In Embedded Control Application

Peripheral Link Driver for ADSP In Embedded Control Application Peripheral Link Driver for ADSP-21992 In Embedded Control Application Hany Ferdinando Jurusan Teknik Elektro Universitas Kristen Petra Siwalankerto 121-131 Surabaya 60236 Phone: +62 31 8494830, fax: +62

More information

XGATE Library: PWM Driver Generating flexible PWM signals on GPIO pins

XGATE Library: PWM Driver Generating flexible PWM signals on GPIO pins Freescale Semiconductor Application Note AN3225 Rev. 0, 2/2006 XGATE Library: PWM Driver Generating flexible PWM signals on GPIO pins by: Armin Winter, Field Applications, Wiesbaden Daniel Malik, MCD Applications,

More information

GigaDevice Semiconductor Inc. GD32F10xxx ARM Cortex -M3 32-bit MCU. Application Note AN003

GigaDevice Semiconductor Inc. GD32F10xxx ARM Cortex -M3 32-bit MCU. Application Note AN003 GigaDevice Semiconductor Inc. GD32F10xxx ARM Cortex -M3 32-bit MCU Application Note AN003 Table of Contents Table of Contents 1 List of Tables. 2 1 Introduction. 3 2 ADC power-on status 3 2.1 ADCON operation

More information

4 x 10 bit Free Run A/D 4 x Hi Comparator 4 x Low Comparator IRQ on Compare MX839. C-BUS Interface & Control Logic

4 x 10 bit Free Run A/D 4 x Hi Comparator 4 x Low Comparator IRQ on Compare MX839. C-BUS Interface & Control Logic DATA BULLETIN MX839 Digitally Controlled Analog I/O Processor PRELIMINARY INFORMATION Features x 4 input intelligent 10 bit A/D monitoring subsystem 4 High and 4 Low Comparators External IRQ Generator

More information

AN3137 Application note

AN3137 Application note Application note Analog-to-digital converter on STM8L and STM8AL devices: description and precision improvement techniques Introduction This application note describes the 12-bit analog-to-digital converter

More information

8-bit Atmel tinyavr Microcontroller with 16K Bytes In-System Programmable Flash. ATtiny1634

8-bit Atmel tinyavr Microcontroller with 16K Bytes In-System Programmable Flash. ATtiny1634 8-bit Atmel tinyavr Microcontroller with 16K Bytes In-System Programmable Flash Features High Performance, Low Power AVR 8-bit Microcontroller Advanced RISC Architecture 125 Powerful Instructions Most

More information

AC : PERSONAL LAB HARDWARE: A SINE WAVE GENERATOR, LOGIC PULSE SIGNAL, AND PROGRAMMABLE SYNCHRONOUS SERIAL INTERFACE FOR ENHANCING EDUCATION

AC : PERSONAL LAB HARDWARE: A SINE WAVE GENERATOR, LOGIC PULSE SIGNAL, AND PROGRAMMABLE SYNCHRONOUS SERIAL INTERFACE FOR ENHANCING EDUCATION AC 2010-1527: PERSONAL LAB HARDWARE: A SINE WAVE GENERATOR, LOGIC PULSE SIGNAL, AND PROGRAMMABLE SYNCHRONOUS SERIAL INTERFACE FOR ENHANCING EDUCATION Jeffrey Richardson, Purdue University James Jacob,

More information

Monitoring of Intravenous Drip Rate

Monitoring of Intravenous Drip Rate Monitoring of Intravenous Drip Rate Vidyadhar V. Kamble, Prem C. Pandey, Chandrashekar P. Gadgil, and Dinesh S. Choudhary Abstract A drip rate meter, for monitoring intravenous infusion, is developed using

More information

NuMicro N76E003 Brushless DC Motor Control User Manual

NuMicro N76E003 Brushless DC Motor Control User Manual NuMicro Brushless DC Motor Control User Manual The information described in this document is the exclusive intellectual property of Nuvoton Technology Corporation and shall not be reproduced without permission

More information

AN3252 Application note

AN3252 Application note Application note Building a wave generator using STM8L-DISCOVERY Application overview This application note provides a short description of how to use the STM8L-DISCOVERY as a basic wave generator for

More information

High Performance, Low Power Atmel AVR 8-bit Microcontroller Advanced RISC Architecture. Non-volatile Program and Data Memories. Peripheral Features

High Performance, Low Power Atmel AVR 8-bit Microcontroller Advanced RISC Architecture. Non-volatile Program and Data Memories. Peripheral Features ATtiny828 8-bit AVR Microcontroller with 8K Bytes In-System Programmable Flash DATASHEET Features High Performance, Low Power Atmel AVR 8-bit Microcontroller Advanced RISC Architecture 123 Powerful Instructions

More information

Image Acquisition Method Based on TMS320DM642

Image Acquisition Method Based on TMS320DM642 Journal of Computer and Communications, 2017, 5, 119-124 http://www.scirp.org/journal/jcc ISSN Online: 2327-5227 ISSN Print: 2327-5219 Image Acquisition Method Based on TMS320DM642 Li Liu, Yining Liu Liaoning

More information

Analog-to-Digital Converter (ADC) And Digital-to-Analog Converter (DAC)

Analog-to-Digital Converter (ADC) And Digital-to-Analog Converter (DAC) 1 Analog-to-Digital Converter (ADC) And Digital-to-Analog Converter (DAC) 2 1. DAC In an electronic circuit, a combination of high voltage (+5V) and low voltage (0V) is usually used to represent a binary

More information

1. R-2R ladder Digital-Analog Converters (DAC). Connect the DAC boards (2 channels) and Nexys 4 board according to Fig. 1.

1. R-2R ladder Digital-Analog Converters (DAC). Connect the DAC boards (2 channels) and Nexys 4 board according to Fig. 1. Analog-Digital and Digital-Analog Converters Digital Electronics Labolatory Ernest Jamro, Maciej Wielgosz, Piotr Rzeszut Dep. of Electronics, AGH-UST, Kraków Poland, 2015-01-10 1. R-2R ladder Digital-Analog

More information

Embedded Systems and Software. Analog to Digital Conversion

Embedded Systems and Software. Analog to Digital Conversion Embedded Systems and Software Analog to Digital Conversion Slide 1 Analog to Digital Conversion Analog or continuous signal Discrete-time or digital signal Other terms ADC, A/D Many different techniques

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

Successive approximation (capacitive coupling amplifier)

Successive approximation (capacitive coupling amplifier) APPLICATION NOTE M16C/26 1.0 Abstract The following document outlines the steps necessary to setup, perform and read a single sweep conversion using the onboard analog to digital converter (ADC) of the

More information

8-bit Microcontroller with 16K Bytes In-System Programmable Flash. ATtiny1634

8-bit Microcontroller with 16K Bytes In-System Programmable Flash. ATtiny1634 Features High Performance, Low Power AVR 8-bit Microcontroller Advanced RISC Architecture 125 Powerful Instructions Most Single Clock Cycle Execution 32 x 8 General Purpose Working Registers Fully Static

More information

Graphical Control Panel User Manual

Graphical Control Panel User Manual Graphical Control Panel User Manual DS-MPE-DAQ0804 PCIe Minicard Data Acquisition Module For Universal Driver Version 7.0.0 and later Revision A.0 March 2015 Revision Date Comment A.0 3/18/2015 Initial

More information

DNT90MC DNT90MP. Low Cost 900 MHz FHSS Transceiver Modules with I/O

DNT90MC DNT90MP. Low Cost 900 MHz FHSS Transceiver Modules with I/O - 900 MHz Frequency Hopping Spread Spectrum Transceivers - Direct Peer-to-peer Low Latency Communication - Transmitter Power Configurable to 40 or 158 mw - 100 kbps RF Data Rate - Serial Port Data Rate

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

USB4. Encoder Data Acquisition USB Device Page 1 of 8. Description. Features

USB4. Encoder Data Acquisition USB Device Page 1 of 8. Description. Features USB4 Page 1 of 8 The USB4 is a data acquisition device designed to record data from 4 incremental encoders, 8 digital inputs and 4 analog input channels. In addition, the USB4 provides 8 digital outputs

More information

ECE2049: Embedded Systems in Engineering Design Lab Exercise #4 C Term 2018

ECE2049: Embedded Systems in Engineering Design Lab Exercise #4 C Term 2018 ECE2049: Embedded Systems in Engineering Design Lab Exercise #4 C Term 2018 Who's Watching the Watchers? Which is better, the SPI Digital-to-Analog Converter or the Built-in Analog-to-Digital Converter

More information

Serial Communication AS5132 Rotary Magnetic Position Sensor

Serial Communication AS5132 Rotary Magnetic Position Sensor Serial Communication AS5132 Rotary Magnetic Position Sensor Stephen Dunn 11/13/2015 The AS5132 is a rotary magnetic position sensor capable of measuring the absolute rotational angle of a magnetic field

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

ESE 350 Microcontroller Laboratory Lab 5: Sensor-Actuator Lab

ESE 350 Microcontroller Laboratory Lab 5: Sensor-Actuator Lab ESE 350 Microcontroller Laboratory Lab 5: Sensor-Actuator Lab The purpose of this lab is to learn about sensors and use the ADC module to digitize the sensor signals. You will use the digitized signals

More information

NJU26206 Application Note

NJU26206 Application Note Hardware Manual New Japan Radio Co., Ltd Version 1.01 CONTENTS 1. General Description...2 2. NJU26206 Block Diagram...2 3. Application Circuit Examples...3 3.1 Application circuit 1 The NJU26206 application

More information

Lab Exercise 6: Digital/Analog conversion

Lab Exercise 6: Digital/Analog conversion Lab Exercise 6: Digital/Analog conversion Introduction In this lab exercise, you will study circuits for analog-to-digital and digital-to-analog conversion Preparation Before arriving at the lab, you should

More information

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

uc Crash Course Whats is covered in this lecture Joshua Childs Joshua Hartman A. A. Arroyo 9/7/10 uc Crash Course Joshua Childs Joshua Hartman A. A. Arroyo Whats is covered in this lecture ESD Choosing A Processor GPIO USARTS o RS232 o SPI Timers o Prescalers o OCR o ICR o PWM ADC Interupts 1 ESD KILLS!

More information

MAXREFDES39#: POWER AMPLIFIER BIASING THROUGH MAX11300 PIXI

MAXREFDES39#: POWER AMPLIFIER BIASING THROUGH MAX11300 PIXI System Board 5896 MAXREFDES39#: POWER AMPLIFIER BIASING THROUGH MAX11300 PIXI OVERVIEW MAXREFDES39# System Board ENLARGE+ Introduction The MAXREFDES39# power amplifier (PA) bias reference design uses the

More information

Using the M16C/62 Analog to Digital Converter in One-Shot Mode

Using the M16C/62 Analog to Digital Converter in One-Shot Mode APPLICATION NOTE M16C/62 1.0 Abstract The following article outlines the steps necessary to set up, perform, and read a single conversion using the onboard analog to digital converter (ADC) of the M16C.

More information

Multi-axis motion control

Multi-axis motion control TriCore AP32148 Application Note V1.1 2012-02 Microcontrollers Edition 2012-02 Published by Infineon Technologies AG 81726 Munich, Germany 2012 Infineon Technologies AG All Rights Reserved. LEGAL DISCLAIMER

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

EITF40 Digital and Analogue Projects - GNSS Tracker 2.4

EITF40 Digital and Analogue Projects - GNSS Tracker 2.4 EITF40 Digital and Analogue Projects - GNSS Tracker 2.4 Magnus Wasting 26 February 2018 Abstract In this report a mobile global navigation satellite system with SMS and alarm functionality is constructed.

More information

UM1763 User manual. Description of STLUX385A examples kit. Introduction. Reference documents

UM1763 User manual. Description of STLUX385A examples kit. Introduction. Reference documents User manual Description of STLUX385A examples kit Introduction This user manual provides complete information for SW developers about a set of guide examples useful to get familiar developing applications

More information

LM4: The timer unit of the MC9S12DP256B/C

LM4: The timer unit of the MC9S12DP256B/C Objectives - To explore the Enhanced Capture Timer unit (ECT) of the MC9S12DP256B/C - To program a real-time clock signal with a fixed period and display it using the onboard LEDs (flashing light) - To

More information

Section bit A/D Converter

Section bit A/D Converter Section. 12-bit A/D Converter HIGHLIGHTS This section of the manual contains the following major topics:.1 Introduction... -2.2 Control Registers... -4.3 A/D Result Buffer... -4.4 A/D Terminology and Conversion

More information