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

Size: px
Start display at page:

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

Transcription

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

2 What is the time?

3 What is the time?

4 Definition Analog: can take any value Digital: takes a set of fixed values Examples of analog things : temperature velocity distance etc Examples of digital things : light: ON, OFF number of heartbeats in a minute number of students in lecture

5 Example: Analog Signal Voltage Time

6 Example: Digital Signal Grade Distribution [ ] 3 [ ) 5 [ ) 7 Grade Range [ ) [ ) [ 8-10 ) [ 6-8 ) [ 4-6 ) [ 2-4 ) 0 [ 0-2 ) Number of students

7 Advantages What are the advantages of digital systems? What are the advantages of analog systems?

8 Problem Almost all real life signals are analog How to deal with them using digital systems? 1) convert analog signal to digital signal 2) process converted signal using a digital processor (CPU, microcontroller, ) 3) convert signal back to analog

9 ADC Analog Input ADC Digital Output in binary

10 Analog to digital converter ADC: a device that takes an analog value and converts it to a digital value Analog input: A value within a predetermined range (Vmin to Vmax) Digital output: a number between 0 and Nmax Nmax is determined by the number of digital output pins of the converter: ex: an 8 bit converter has an output range: min: b' ' 0 max: b' ' 255 what is the range if the converter has 10 bits?

11 ADC input/output Vmax Nmax Vmin Analog Input Digital Output

12 ADC operation the analog input is converted to a number this means that a range of analog input is converted to the same digital output Definitions: Vmin, Vmax: range of possible analog input Nmax: maximum digital outuput Step size = (Vmax Vmin)/Nmax

13 ADC operation How to calculate the output given a certain input Vin? output = (Vin Vmin) / step size note: the result should be rounded up or down Ex: Assume that Vmin = 0V, Vmax = 3 V and we have an 8 bit ADC what is the step size? what is the digital output if the input is 0 V, 3 V, 1.5V, 2.3 V, 1.2V? what is the input if the digital output is b' ', b' '?

14 Solution Ex: Assume that Vmin = 0V, Vmax = 3 V and we have an 8 bit ADC what is the step size? step size = ( 3 0 ) / 255 = V

15 Solution Ex: Assume that Vmin = 0V, Vmax = 3 V and we have an 8 bit ADC what is the digital output if the input is 0 V, 3 V, 1.5V? Vin = 0 Out = ( 0-0) / = 0 Out = b' ' Vin = 3 V Out = (3-0) / = 255 Out = b' ' Vin = 1.5 V Out = (1.5-0) / = Out = 127 or 128 = b' ' or b' '

16 Solution Ex: Assume that Vmin = 0V, Vmax = 3 V and we have an 8 bit ADC what is the digital output if the input is 2.3 V, 1.2V? Vin = 2.3 Out = ( 2.3-0) / = Out = 195 or 196 = b' ' or b' ' Vin = 1.2 V Out = (1.2-0) / = 102 Out = b' '

17 Solution Ex: Assume that Vmin = 0V, Vmax = 3 V and we have an 8 bit ADC what is the input if the digital output is b' '? Out = (Vin Vmin) / step size Vin = Out * step size + Vmin Out = b' ' = 109 Vin = 109 * = V The input is a range input range: < Vin < (if the ADC rounds down) or < Vin < (if the ADC rounds up)

18 Solution Ex: Assume that Vmin = 0V, Vmax = 3 V and we have an 8 bit ADC what is the input if the digital output is b' '? Out = b' ' = 202 Vin = 202 * = V The input is a range input range: < Vin < (if the ADC rounds down) < Vin < (if the ADC rounds up)

19 Practical considerations An ADC takes some time to convert an input value Usually the converter has clock signal input (ADC_CLK) Each bit takes one pulse to convert So, the conversion time is approximately ADC_CLK period times number of bits The analog input should not change during this time

20 Practical considerations during the conversion, the analog input should be held constant... why? A special circuit is used to hold the analog value Sample and hold circuit:

21 Practical considerations So, to perform a conversion, you need to 1) start conversion 2) hold the analog value 3) wait until conversion is finished this time depends on the number of bits 4) proccess the result of conversion

22 PIC internal ADC Some PICs have an internal ADC module PIC16F877A has a 10 bit converter It has an 8 channel ADC: you can convert up to 8 analog signals the channels are multiplexed to a single ADC you can select the channel in the program only one conversion is possible at a given time

23

24 ADC module Pins that can be used as Analog inpupts: AN <0:7> To use the pin as analog input, you have to select the pin as an input through the TRIS register Registers to control ADC: ADCON0 (in bank 0) ADCON1 (in bank 1) Registers that hold the result: ADRESH: Most significant (in bank 0) ADRESL: Least significant (in bank 1)

25 ADC module ADCON0: ADON: turn the ADC on 0 : ADC module is shut off and consumes no power 1 : ADC module is operating

26 ADC module ADCON0: GO/DONE : 1 conversion is in progress, setting this to 1 will start the conversion process 0 conversion is not in progress, bit is automatically cleared when conversion in finished

27 ADC module ADCON0: CHS<2:0>: select ADC channel 000 Channel 0 (AN0) 001 Channel 1 (AN1) 010 Channel 2 (AN2) 011 Channel 3 (AN3) 100 Channel 4 (AN4) 101 Channel 5 (AN5) 110 Channel 6 (AN6) 111 Channel 7 (AN7)

28 ADC module ADCON0: ADCS0, ADCS1: ADC clock select 00 F_OSC / 2 01 F_OSC / 4 10 F_OSC / 8 11 Internal ADC module RC oscillator

29 ADC module ADCON1: ADFM: result format, 0 : left justified (ADRESH<7:0> with ADRESL<7:6> ) 1: right justified (ADRESH<1:0> with ADRESL<7:0> ) PCFG3-PCFG0: ADC configuration bits

30

31 ADC module Steps to use ADC module in the PIC 16F877A: Configure ADC configure pins, Vref, Analog pins (ADCON1) select channel (ADCON0) select ADC clock (ADCON0) turn ADC on (ADCON0) Wait for the ADC to acquire the analog value (Sample time) Start conversion (set GO/DONE bit ADCON0) Wait until conversion is finished ( wait until GO/Done is 0 ) Read result ( ADRESH:ADRESL )

32 ADC application Assume you have an analog input between -2V and 2 V, we need to convert this analog input and display the equivalent digital value on the output pins Questions: Which channel is suitable Which ports are used (inputs/outputs) How to connect the circuit

33 ADC application Assume you have an analog input between -2V and 2 V, we need to convert this analog input and display the equivalent digital value on the output pins Which channel is suitable? we need Vref- =-2V, and Vref+ = 2V and we need a single channel, from the table PCFG<3:0> could be one of the following: 1000, 1011, 1100, 1101, 1111 Assume we want to use ADC channel 4 PCFG<3:0> = 1100, CHS<2:0> = 100

34 ADC application Assume you have an analog input between -2V and 2 V, we need to convert this analog input and display the equivalent digital value on the output pins Which ports are used (inputs/outputs) input: AN4 (RA5), so we need to set TRISA<5> to 1 RA2, RA3 inputs for Vref- and Vref+ outputs: 10 bits we can use PORTB with two bits from PORTC

35 ADC application Assume you have an analog input between -2V and 2 V, we need to convert this analog input and display the equivalent digital value on the output pins How to connect the circuit PORTA<5> connected to the analog input PORTC<1:0> and PORTB<7:0> outputs connected to LEDS Vmin connected to AN2 Vmax connected to AN3

36 ADC application Circuit diagram:

37 ADC application ADCON0 setup ADON = 1 GO/DONE = 0 CHS<2:0> = channel ADCS<1:0> = 00 => ADCON0 = B' '

38 ADC application ADCON1 setup ADFM = right justified = 1 PCFG<3:0> = 1100 => ADCON1 = B' '

39 ADC application Program: initialize ports: RA5, RA2, RA3 inputs PORTB output, RC1, RC0 output initialize ADC (ADCON0 and ADCON1) Loop delay for sampling time Start conversion (ADCON0.GO_DONE = 1) Wait until end of conversion ( while ADCON0.GO_DONE not 0 ) display result on LEDS ADRESL PORTB ADRESH PORTC

40 ADC application - Program Initialize ports TRISA = 0xFF; TRISB = 0; TRISC = 0; Initialize ADC ADCON0 = 0b ; ADCON1 = 0b ;

41 ADC application - Program Start Conversion ADCON0.GO_DONE = 1; Wait until end of conversion while(adcon0.go_done!= 0) ; Display the conversion result PORTB = ADRESL; PORTC = ADRESH;

42 ADC application Complete program void main() { TRISA = 0xFF; TRISB = 0; TRISC = 0; ADCON1 = 0b ; ADCON0 = 0b ; while (1) { Delay_ms(10); // delay for acquisition time ADCON0.GO_DONE = 1; // start conversion while(adcon0.go_done!= 0) ; // wait till conversion is done PORTB = ADRESL; // put result on output ports PORTC = ADRESH; Delay_ms(10); // delay for next conversion } }

43 ADC application Extra :) Complete program in assembly: #include "p16f877a.inc" C1 equ 0x20 C2 equ 0x21 ORG GOTO 0x00 start ORG 0x04 start BSF STATUS, RP0 MOVLW 0xFF MOVWF TRISA CLRF TRISB CLRF TRISC MOVLW B' ' MOVWF ADCON1 BCF STATUS, RP0 MOVLW B' ' MOVWF ADCON0 loop CALL delay BSF ADCON0, GO_DONE wait BTFSC ADCON0, GO_DONE GOTO wait BSF STATUS, RP0 MOVF ADRESL, 0 BCF STATUS, RP0 MOVWF PORTB MOVF ADRESH, 0 MOVWF PORTC CALL GOTO delay loop delay ; delay subroutine RETURN END

44 ADC application 2 Assume that you want to measure the value of a resistor ( 0-15K W ) and you want to display the value of the resistor on an LCD (like a digital multimeter) Questions: how many inputs / Outputs are needed? Which PIC is suitable? How to connect the pins of the PIC?

45 ADC application Use the ADC module of the PIC16F877 to measure a resistor value ( between 0-15K) and display result on an LCD Questions: How many pins are required? 1 analog input 6 for LCD How to connect the pins? AN0 : analog input PORTC to LCD

46 ADC application The resistance to be measured is connected to form a voltage divider with a resistor Review voltage divider: V X =( R X R+R X ) V DD

47 Voltage divider Assume that VDD = 5 V, R = 5 K What is Vx if RX = 3 K? What is Vx if RX = 10 K? What is the minimum, maximum value of Vx?

48 Voltage divider Write a formula to calculate Rx given a value of Vx : V X =( R X R+R X ) V DD V X (R+R X )=R X V DD V X R+V X R X =R X V DD V X R=R X V DD V X R X V X R=R X (V DD V X ) R X = V X R V DD V X

49 ADC application How to calculate the value of R Inside PIC we have a number N that reflects the voltage Vx N is between 0 and 1023 Vx is between 0 and 5V N = V X 0 step size = V X = 5 N 1023 V X = 1023V X 5

50 ADC application: Circuit digram

51 ADC application ADCON0 setup: channel 0 CHS<2:0> = 000 ADON = 1 GO_DONE = 0 ADCS<1:0> = 10 => ADCON0 = B' ' = 0x81 ADCON1 setup: ADFM = 1 (right justified) PCFG<3:0> = 1110 (AN0 analog, Vmin=0, Vmax = 5V) => ADCON1 = B' ' = 0x8E

52 ADC application - Program void main() { int N; float Vx, Rx; char s[20]; TRISA = 0x01; // configure ADC ADCON1 = 0x8E; ADCON0 = 0x81; TRISC = 0; Lcd_Init(&PORTC); Lcd_Cmd(LCD_CLEAR); Lcd_Cmd(LCD_CURSOR_OFF); Lcd_Out(1,1,"R = "); while ( 1 ) { Delay_ms(1); ADCON0.GO_DONE = 1; // start // wait till end of conversion while( ADCON0.GO_DONE == 1); N = ADRESH; N = N << 8; // shift left 8 bits N = N + ADRESL; // calculate value of resistor Vx = 5.0 * N / ; Rx = ( 5.0*Vx ) / (5.0 Vx); // display value on LCD FloatToStr(Rx, s); Lcd_Out(1,5,s); Lcd_Out_Cp(" K"); } Delay_ms(100); }

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

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

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

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

Binary Outputs: LEDs

Binary Outputs: LEDs Diode Theory Binary Outputs: LEDs A diode allows current to flow in only one direction. A diode consists of a semiconductor pn junction: In Silicon, the number of free electrons is a constant: np n i 2

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

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

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

Triple Stage Incubator

Triple Stage Incubator Triple Stage Incubator Author: OVERVIEW Brian Iehl Hoffman Estates IL brian@dls.net This project is a triple stage incubator. Three separate incubators are simultaneously controlled by one microcontroller.

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

GCE A level 1145/01 ELECTRONICS ET5

GCE A level 1145/01 ELECTRONICS ET5 Surname Centre Number Candidate Number Other Names 2 GCE A level 1145/01 ELECTRONICS ET5 S16-1145-01 A.M. FRIDAY, 17 June 2016 1 hour 30 minutes For s use ADDITIONAL MATERIALS In addition to this examination

More information

Section 22. Basic 8-bit A/D Converter

Section 22. Basic 8-bit A/D Converter M Section 22. A/D Converter HIGHLIGHTS This section of the manual contains the following major topics: 22.1 Introduction...22-2 22.2 Control Registers...22-3 22.3 A/D Acquisition Requirements...22-6 22.4

More information

Microcontroller Based Inductance Capacitance Meter

Microcontroller Based Inductance Capacitance Meter Microcontroller Based Inductance Capacitance Meter MUDIT AGARWAL This is the Inductance / Capacitance Meters circuit. One can easily build this LC Meter measure inductances starting from mh to 00mH, µh

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

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

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

Embedded Systems. Oscillator and I/O Hardware. Eng. Anis Nazer First Semester

Embedded Systems. Oscillator and I/O Hardware. Eng. Anis Nazer First Semester Embedded Systems Oscillator and I/O Hardware Eng. Anis Nazer First Semester 2016-2017 Oscillator configurations Three possible configurations for Oscillator (a) using a crystal oscillator (b) using an

More information

EASTERN MEDITERRANEAN UNIVERSITY FACULTY OF ENGINEERING Electrical and Electronics Engineering Department

EASTERN MEDITERRANEAN UNIVERSITY FACULTY OF ENGINEERING Electrical and Electronics Engineering Department EASTERN MEDITERRANEAN UNIVERSITY FACULTY OF ENGINEERING Electrical and Electronics Engineering Department Fall 2003-2004 EEE 420 Project Report Ahmet Cem VARDAR 004245 Project Title: Heart Rate Monitor

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

;;;;;;; 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

Pulse Width Modulation

Pulse Width Modulation ECEn 621" Computer Arithmetic" Project Notes Week 1 Pulse Width Modulation 1 Pulse Width Modulation A method of regulating the amount of voltage delivered to a load. The average value of the voltage fed

More information

Moving Message Dot Matrix Display

Moving Message Dot Matrix Display Moving Message Display N. SHARMA EM TESTED EM TESTED E M TESTED MUDIT AGARWAL Moving Displays are perfect for all sort of business establishments like Airports, Clinics, Hospitals, Hotels, Restaurants,

More information

IST TSic Temperature Sensor IC Application Notes ZACwire Digital Output

IST TSic Temperature Sensor IC Application Notes ZACwire Digital Output IST TSic Temperature Sensor IC ZACwire Digital Output CONTENTS 1 TSIC TM ZACWIRE TM COMMUNICATION PROTOCOL...2 1.1 TEMPERATURE TRANSMISSION PACKET FROM A TSIC TM...2 1.2 BIT ENCODING...3 1.3 HOW TO READ

More information

A NEW DECISION ALGORITHM FOR AUDIO VOTING SYSTEM

A NEW DECISION ALGORITHM FOR AUDIO VOTING SYSTEM IAENG International Journal of Computer Science, 32:4, IJCS_32_4_3 A NEW DECISION ALGORITHM FOR AUDIO VOTING SYSTEM M. Carbajo, M.D. R-Moreno, A. Moreno and J. de Pedro Departamento de Automática. Universidad

More information

Sensor Interface Using PIC12CXXX as a Sensor Interface for Metal Detection

Sensor Interface Using PIC12CXXX as a Sensor Interface for Metal Detection Using PIC12CXXX as a Sensor Interface for Metal Detection Author: Vladimir Velchev AVEX - Vladimir Velchev Sofia, Bulgaria email:avex@iname.com APPLICATION OPERATION PIC12CXXX microcontroller can be used

More information

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

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

EEE3410 Microcontroller Applications Department of Electrical Engineering. Lecture 10. Analogue Interfacing. Vocational Training Council, Hong Kong.

EEE3410 Microcontroller Applications Department of Electrical Engineering. Lecture 10. Analogue Interfacing. Vocational Training Council, Hong Kong. Department of Electrical Engineering Lecture 10 Analogue Interfacing 1 In this Lecture. Interface 8051 with the following Input/Output Devices Transducer/Sensors Analogue-to-Digital Conversion (ADC) Digital-to-Analogue

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

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

The use of PIC Microcontrollers for Fault Classification of a Series Compensated Transmission Line

The use of PIC Microcontrollers for Fault Classification of a Series Compensated Transmission Line International Journal of Computer Systems (ISSN: 2394-1065), Volume 02 Issue 12, December, 2015 Available at http://www.ijcsonline.com/ The use of PIC Microcontrollers for Fault Classification of a Series

More information

Development of a Matlab-Based Graphical User Interface Environment for PIC Microcontroller Projects

Development of a Matlab-Based Graphical User Interface Environment for PIC Microcontroller Projects Session 2220 Development of a Matlab-Based Graphical User Interface Environment for PIC Microcontroller Projects Sang-Hoon Lee, Yan-Fang Li, and Vikram Kapila Department of Mechanical, Aerospace, and Manufacturing

More information

2015 Technological Studies. Advanced Higher. Finalised Marking Instructions

2015 Technological Studies. Advanced Higher. Finalised Marking Instructions 05 Technological Studies Advanced Higher Finalised Marking Instructions Scottish Qualifications Authority 05 The information in this publication may be reproduced to support SQA qualifications only on

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

Department of Mechanical and Industrial Engineering MECH 471 MICROCONTROLLERS FOR MECHATRONICS. Laboratory Specialist

Department of Mechanical and Industrial Engineering MECH 471 MICROCONTROLLERS FOR MECHATRONICS. Laboratory Specialist Department of Mechanical and Industrial Engineering MECH 471 laboratory manual 2011 MICROCONTROLLERS FOR MECHATRONICS Belal M. Ibrahim Laboratory Specialist General Safety Rules Electric and electronic

More information

Microcomputers. Digital Signal Processing

Microcomputers. Digital Signal Processing Microcomputers Analog-to-Digital and Digital-to-Analog Conversion Lecture 7-1 Digital Signal Processing Analog-to-Digital Converter (ADC) converts an input analog value to an output digital representation.

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

EXPERIMENT 6: Advanced I/O Programming

EXPERIMENT 6: Advanced I/O Programming EXPERIMENT 6: Advanced I/O Programming Objectives: To familiarize students with DC Motor control and Stepper Motor Interfacing. To utilize MikroC and MPLAB for Input Output Interfacing and motor control.

More information

Follow this and additional works at: Part of the Engineering Commons

Follow this and additional works at:   Part of the Engineering Commons Trinity University Digital Commons @ Trinity Mechatronics Final Projects Engineering Science Department 5-2018 Pyramid of Disco Daniel Henkes Trinity University, dhenkes@trinity.edu Molly McCullough Trinity

More information

Discrete Logic Replacement Garage Door Indicator

Discrete Logic Replacement Garage Door Indicator Garage Door Indicator Author: Brian Iehl Hoffman Estates, Illinois email: brian@dls.net / 4 MHz = 0.1 ma. The estimated battery life is then: 2550 ma Hr / 0.1 ma = 25500 hours. This is almost 3 years!

More information

Microchip mtouch Solution Microchip Technology Incorporated. All Rights Reserved. Insert Class Code Here

Microchip mtouch Solution Microchip Technology Incorporated. All Rights Reserved. Insert Class Code Here Microchip mtouch Solution Slide 1 Goal! Understanding advantage of Capacitive Sensor and applications Microchip mtouch Solution A principal of Capacitive Sensor CSM(Cap sensing Module) of PIC16F72x CVD(Cap

More information

Microcontroller Based Wind Direction Measurement System

Microcontroller Based Wind Direction Measurement System National University of Science and Technolgy NuSpace Institutional Repository Applied Physics http://ir.nust.ac.zw Applied Physics Publications 2016 Microcontroller Based Wind Direction Measurement System

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

TECHNICAL NOTE. A COMPACT ALGORITHM USING THE ADXL202 DUTY CYCLE OUTPUT by Harvey Weinberg

TECHNICAL NOTE. A COMPACT ALGORITHM USING THE ADXL202 DUTY CYCLE OUTPUT by Harvey Weinberg TECHNICAL NOTE ONE TECHNOLOGY WAYP.O. BOX 9106NORWOOD, MASSACHUSETTS 02062-9106781/329-4700 A COMPACT ALGORITHM USING THE ADXL202 DUTY CYCLE OUTPUT by Harvey Weinberg Introduction There are many applications

More information

PIC16F Pin, 8-Bit CMOS FLASH Microcontroller. Devices Included in this Data Sheet: Pin Diagram. Microcontroller Core Features:

PIC16F Pin, 8-Bit CMOS FLASH Microcontroller. Devices Included in this Data Sheet: Pin Diagram. Microcontroller Core Features: 28-Pin, 8-Bit CMOS FLASH Microcontroller Devices Included in this Data Sheet: PIC16F872 Microcontroller Core Features: High-performance RISC CPU Only 35 single word instructions to learn All single cycle

More information

AppKit: Using the LTC bit Analog-to-Digital Converter

AppKit: Using the LTC bit Analog-to-Digital Converter AppKit: Using the LTC1298 12-bit Analog-to-Digital Converter This AppKit shows how to use the Linear Technology LTC 1298 12-bit ADC chip with PIC microcontrollers and the Parallax BASIC Stamp single-board

More information

Mechatronics Project Kit - Getting Started Manual

Mechatronics Project Kit - Getting Started Manual Mechatronics Project Kit - Getting Started Manual 40-100-1 Mechatronics Project Kit Getting Started Manual 40-100-1 Feedback Feedback Instruments Ltd, Park Road, Crowborough, E. Sussex, TN6 2QR, UK. Telephone:

More information

Application Note Temperature Sensor IC

Application Note Temperature Sensor IC Content 1. TSic 206/203/201/306/316/303/301 3 2. TSic 506F/503F/516/501F 4 3. TSic 716 5 4. TSic Accuracy Overview 1) 5 5. ZACwire TM Digital Output 6 6. Die and Package Specifications 11 7. TSic Block

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

Laboratory 11. Pulse-Width-Modulation Motor Speed Control with a PIC

Laboratory 11. Pulse-Width-Modulation Motor Speed Control with a PIC Laboratory 11 Pulse-Width-Modulation Motor Speed Control with a PIC Required Components: 1 PIC16F88 18P-DIP microcontroller 3 0.1 F capacitors 1 12-button numeric keypad 1 NO pushbutton switch 1 Radio

More information

PIC MicroController Training

PIC MicroController Training PIC MicroController Training Conduct by : Bill Sim simhkeng@yahoo.com 1 Practical Microchip PIC16F877A Development using MikroC ( Software/Hardware) Conduct by : Bill Sim simhkeng@yahoo.com Date : 28 Aug

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

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

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

PIC16C5X. EPROM/ROM-Based 8-Bit CMOS Microcontroller Series. Peripheral Features: Devices Included in this Data Sheet: CMOS Technology:

PIC16C5X. EPROM/ROM-Based 8-Bit CMOS Microcontroller Series. Peripheral Features: Devices Included in this Data Sheet: CMOS Technology: EPROM/ROM-Based 8-Bit CMOS Microcontroller Series Devices Included in this Data Sheet: PIC16C54 PIC16CR54 PIC16C55 PIC16C56 PIC16CR56 PIC16C57 PIC16CR57 PIC16C58 PIC16CR58 Note: 16C5X refers to all revisions

More information

P89LPC935 ADC/DAC Tutorial

P89LPC935 ADC/DAC Tutorial 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 ADC Module

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

AN654. PWM, a Software Solution for the PIC16CXXX METHODS INTRODUCTION

AN654. PWM, a Software Solution for the PIC16CXXX METHODS INTRODUCTION PWM, a Software Solution for the PIC16CXXX Author: Ole Röpcke Consultant, Europe INTRODUCTION The low cost, high performance features of a PIC16CXXX microcontroller make it a suitable device for automatic

More information

A Comparison of 8-Bit Microcontrollers. COP800 Byte/Words Cycles X SWAP OR A,[B] MC68HC05 LDA ROLA ROLA ROLA ROLA ADD STA 1 1 REGLO REGLO

A Comparison of 8-Bit Microcontrollers. COP800 Byte/Words Cycles X SWAP OR A,[B] MC68HC05 LDA ROLA ROLA ROLA ROLA ADD STA 1 1 REGLO REGLO A Comparison of 8-Bit Microcontrollers AN50 Author: INTRODUCTION Mark Palmer Microchip Technology Inc. The PIC6C5X/XX microcontrollers from Microchip Technology Inc., provide significant execution speed

More information

Guitar Hero Game Controller

Guitar Hero Game Controller Project #13 Department of Electrical and Computer Engineering EEL 4914C Senior Design Summer 2007 Final report Guitar Hero Game Controller Submitted by: Carlo Pascoe & Michael Yip Table of Contents Project

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

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

Final Project Report E3390 Electronic Circuits Design Lab. RFID Access Control System. Jeffrey Mok Joseph Kim

Final Project Report E3390 Electronic Circuits Design Lab. RFID Access Control System. Jeffrey Mok Joseph Kim Final Project Report E3390 Electronic Circuits Design Lab RFID Access Control System Jeffrey Mok Joseph Kim Submitted in partial fulfillment of the requirements for the Bachelor of Science Degree May 11,

More information

FACT002. Mastering the PIC16C7X A/D Converter BASICS. General. Step by Step. Specifications

FACT002. Mastering the PIC16C7X A/D Converter BASICS. General. Step by Step. Specifications M FACT002 Mastering the PIC16C7X A/D Converter Author: The Analog-to-Digital converter (A/D) is the primary tool that allows analog signals to be quantized into the world of digital electronics. Once the

More information

MICROBOARD ADVANCED MANUAL

MICROBOARD ADVANCED MANUAL MICROBOARD ADVANCED MANUAL Revised and edited by David Zeibin, Summer 2001 Based on documents by Ben Bathgate, Mike Cumming, Patrick Pilarski, and Paul Bartosek Special thanks to Dr Chris Backhouse HOW

More information

PIC16C925/ /68-Pin CMOS Microcontrollers with LCD Driver. High Performance RISC CPU: Analog Features: Special Microcontroller Features:

PIC16C925/ /68-Pin CMOS Microcontrollers with LCD Driver. High Performance RISC CPU: Analog Features: Special Microcontroller Features: 64/68-Pin CMOS Microcontrollers with LCD Driver High Performance RISC CPU: Only 35 single word instructions to learn All single cycle instructions except for program branches which are two-cycle Operating

More information

Distributed by: www.jameco.com 1-800-831-4242 The content and copyrights of the attached material are the property of its owner. M PIC16C5X EPROM/ROM-Based 8-Bit CMOS Microcontroller Series Devices Included

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

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

FACT003. Care and Feeding of the PIC16C74 and Its Peripherals. A/D Converter Mysteries. Assumptions

FACT003. Care and Feeding of the PIC16C74 and Its Peripherals. A/D Converter Mysteries. Assumptions M FACT003 Care and Feeding of the PIC16C74 and Its Peripherals Author: The PIC16C74 is one of the latest mid-range microcontrollers from Microchip Technology Inc. In this article we will be addressing

More information

Sound-Seeking Robot. Abstract. An E155 Design Project at Harvey Mudd College (Claremont, California) December 15, 2003 Alex Utter Chris Wottawa

Sound-Seeking Robot. Abstract. An E155 Design Project at Harvey Mudd College (Claremont, California) December 15, 2003 Alex Utter Chris Wottawa Sound-Seeking Robot An E155 Design Project at Harvey Mudd College (Claremont, California) December 15, 2003 Alex Utter Chris Wottawa Abstract A sound-seeking-robot was designed to navigate towards a specific

More information

A Ballistic Chronograph

A Ballistic Chronograph A Ballistic Chronograph Brandon Atkinson Steven Turner May 4, 2001 University of Maine ECE 403 Final Report Abstract The goal of the Ballistic Chronograph project was to create a device having the ability

More information

Experimental Processus for Acquisition Automatic Features of I-V Properties and Temperature of the Solar Panel by Changing the Operating Point

Experimental Processus for Acquisition Automatic Features of I-V Properties and Temperature of the Solar Panel by Changing the Operating Point Circuits and Systems, 2016, 7, 3984-4000 http://www.scirp.org/journal/cs ISSN Online: 2153-1293 ISSN Print: 2153-1285 Experimental Processus for Acquisition Automatic Features of I-V Properties and Temperature

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

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

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

PICmicro MCU APPLICATION DESIGN AND HARDWARE INTERFACING

PICmicro MCU APPLICATION DESIGN AND HARDWARE INTERFACING 6 PICmicro MCU APPLICATION DESIGN AND HARDWARE INTERFACING CONTENTS AT A GLANCE Estimating Application Power Requirements Reset Interfacing to External Devices DIGITAL LOGIC DIFFERENT LOGIC LEVELS WITH

More information

Stepper Motors & Look Up Table

Stepper Motors & Look Up Table tepper Motors & Look Up Table Unipolar (5 lead) stepper motor from www.mpj.com. stepper motor is a digital motor with two phases and 4, 5, or 6 leads. These leads connect to two sets of electromagets.

More information

Brief Manual of HERA Application Board. with MiDAS Family. V2.0 March 2006

Brief Manual of HERA Application Board. with MiDAS Family. V2.0 March 2006 MiDAS HERA Family BM-HERA-V2. Brief Manual of HERA Application Board with MiDAS Family V2. March 26 CORERIVER Semiconductor reserves the right to make corrections, modifications, enhancements, improvements,

More information

Embedded Systems and Software

Embedded Systems and Software Embedded Systems and Software Notes on Lab 2 Embedded Systems in Vehicles Lecture 2-4, Slide 1 Lab 02 In this lab students implement an interval timer using a pushbutton switch, ATtiny45, an LED driver,

More information

FINAL DESIGN REPORT. Dodge This! DODGERS: Cristobal Rivero Derek Fairbanks 4/21/2009

FINAL DESIGN REPORT. Dodge This! DODGERS: Cristobal Rivero Derek Fairbanks 4/21/2009 FINAL DESIGN REPORT Dodge This! DODGERS: Cristobal Rivero Derek Fairbanks 4/21/2009 Abstract: Our project is to develop an automatic dodge ball game. It consists of an infrared video camera, computer,

More information

GCE A LEVEL. WJEC Eduqas GCE A LEVEL in ELECTRONICS ACCREDITED BY OFQUAL DESIGNATED BY QUALIFICATIONS WALES SAMPLE ASSESSMENT MATERIALS

GCE A LEVEL. WJEC Eduqas GCE A LEVEL in ELECTRONICS ACCREDITED BY OFQUAL DESIGNATED BY QUALIFICATIONS WALES SAMPLE ASSESSMENT MATERIALS GCE A LEVEL WJEC Eduqas GCE A LEVEL in ELECTRONICS ACCREDITED BY OFQUAL DESIGNATED BY QUALIFICATIONS WALES SAMPLE ASSESSMENT MATERIALS Teaching from 207 For award from 209 A LEVEL ELECTRONICS Sample Assessment

More information

MicroToys Guide: Motors A. Danowitz, A. Adibi December A rotary shaft encoder is an electromechanical device that can be used to

MicroToys Guide: Motors A. Danowitz, A. Adibi December A rotary shaft encoder is an electromechanical device that can be used to Introduction A rotary shaft encoder is an electromechanical device that can be used to determine angular position of a shaft. Encoders have numerous applications, since angular position can be used to

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

PIC16F72 Data Sheet. 28-Pin, 8-Bit CMOS FLASH Microcontoller with A/D Converter Microchip Technology Inc. DS39597C

PIC16F72 Data Sheet. 28-Pin, 8-Bit CMOS FLASH Microcontoller with A/D Converter Microchip Technology Inc. DS39597C Data Sheet 28-Pin, 8-Bit CMOS FLASH Microcontoller with A/D Converter 2007 Microchip Technology Inc. DS39597C Note the following details of the code protection feature on Microchip devices: Microchip products

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

RFID ACCESS CONTROL. SRðAN LALE FACULTY OF ELECTRICAL ENGINEERING EASTERN SARAJEVO

RFID ACCESS CONTROL. SRðAN LALE FACULTY OF ELECTRICAL ENGINEERING EASTERN SARAJEVO RFID ACCESS CONTROL SRðAN LALE FACULTY OF ELECTRICAL ENGINEERING EASTERN SARAJEVO 1 INTRODUCTION RFID (RADIO - FREQUENCY IDENTIFICATION) systems use RF signals for identification of people, animals and

More information

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

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

More information

PIC16F716 Data Sheet. 8-bit Flash-based Microcontroller with A/D Converter and Enhanced Capture/Compare/PWM

PIC16F716 Data Sheet. 8-bit Flash-based Microcontroller with A/D Converter and Enhanced Capture/Compare/PWM Data Sheet 8-bit Flash-based Microcontroller with A/D Converter and Enhanced Capture/Compare/PWM 2003 Microchip Technology Inc. Preliminary DS41206A Note the following details of the code protection feature

More information

PIC16F716 Data Sheet. 8-bit Flash-based Microcontroller with A/D Converter and Enhanced Capture/Compare/PWM

PIC16F716 Data Sheet. 8-bit Flash-based Microcontroller with A/D Converter and Enhanced Capture/Compare/PWM Data Sheet 8-bit Flash-based Microcontroller with A/D Converter and Enhanced Capture/Compare/PWM 2003 Microchip Technology Inc. Preliminary DS41206A Note the following details of the code protection feature

More information

Temperature controlling system using embedded equipment

Temperature controlling system using embedded equipment IOP Conference Series: Materials Science and Engineering PAPER OPEN ACCESS Temperature controlling system using embedded equipment To cite this article: R Rob et al 2017 IOP Conf. Ser.: Mater. Sci. Eng.

More information

AN528. Implementing Wake-Up on Key Stroke. Implementing Wake-Up on Key Stroke INTRODUCTION IMPLEMENTATION FIGURE 1 - TWO KEY INTERFACE TO PIC16C5X

AN528. Implementing Wake-Up on Key Stroke. Implementing Wake-Up on Key Stroke INTRODUCTION IMPLEMENTATION FIGURE 1 - TWO KEY INTERFACE TO PIC16C5X AN58 INTRODUCTION In certain applications, the PIC16CXX is exercised only when a key is pressed, eg. remote keyless entry. In such applications, the battery life can be extended by putting the PIC16CXX

More information

AN594. Using the CCP Modules. Using the CCP Modules CCP OPERATION. PWM Mode PWM MODE BLOCK DIAGRAM TABLE 1: CCP MODE - TIMER RESOURCE

AN594. Using the CCP Modules. Using the CCP Modules CCP OPERATION. PWM Mode PWM MODE BLOCK DIAGRAM TABLE 1: CCP MODE - TIMER RESOURCE Using the CCP Modules AN594 This application note discusses the operation of a Capture Compare and PWM (CCP) module, and the interaction of multiple CCP modules with the timer resources. The Capture Compare

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

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

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

The Basics Digital Input

The Basics Digital Input C H A P T E R 4 The Basics Digital Input After Chapter 3 s examination of the output mode, we ll now turn to PIC pins used as digital input devices. Many PICs include analog-to-digital converters and we

More information

Follow this and additional works at: Part of the Engineering Commons

Follow this and additional works at:  Part of the Engineering Commons Trinity University Digital Commons @ Trinity Mechatronics Final Projects Engineering Science Department 5-2016 Heart Beat Monitor Ivan Mireles Trinity University, imireles@trinity.edu Sneha Pottian Trinity

More information

Microprocessor-compatible 8-Bit ADC. Memory FEATURES: Logic Diagram DESCRIPTION:

Microprocessor-compatible 8-Bit ADC. Memory FEATURES: Logic Diagram DESCRIPTION: 7820 Microprocessor-compatible 8-Bit ADC FEATURES: 1.36 µs Conversion Time Built-in-Track-and-Hold Function Single +5 Volt Supply No External Clock Required Tri-State Output Buffered Total Ionization Dose:

More information