Microcontroller Applications - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

Microcontroller Applications

Description:

ELEC 330 Digital Systems Engineering Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning Embedded System Typical analog/digital system Transducer ... – PowerPoint PPT presentation

Number of Views:2469
Avg rating:3.0/5.0
Slides: 13
Provided by: RonH163
Category:

less

Transcript and Presenter's Notes

Title: Microcontroller Applications


1
Microcontroller Applications
  • ELEC 330
  • Digital Systems Engineering
  • Dr. Ron Hayne
  • Images Courtesy of Ramesh Gaonkar and Delmar
    Learning

2
Embedded System
  • Typical analog/digital system
  • Transducer
  • Converts non-electrical signals into electrical
    signals
  • A/D converter
  • Converts analog signals into digital signals
  • Digital processor
  • Processes digital data
  • D/A converter
  • Converts digital signals into equivalent analog
    signals
  • Transducer
  • Converts electrical signals into non-electrical
    signals

3
PIC18 A/D Converter
4
Pulse Width Modulation
  • Duty Cycle
  • Percentage ratio of on time of a pulse to its
    period
  • Changing of the duty cycle is defined as PWM
  • CCP pin is set as an output
  • Count for period and duty cycle loaded into CCP
    registers
  • Varying the duty cycle generates PWM
  • PWM for DC Motor Control
  • Varies average DC voltage
  • Controls DC motor speed

5
PWM Mode
  • CCP module with Timer2
  • Output a pulse wave form for a given
    frequency/duty cycle
  • Duty cycle
  • CCPR1L register
  • Period
  • PR2 register
  • When TMR2 is equal to PR2
  • TMR2 is cleared
  • Pin RC2/CCP1 of PORTC is set high
  • PWM duty-cycle byte loaded into CCPR1

6
MPLAB X IDE
  • Compile/Assemble Source Files
  • Linker Script for specific Microcontroller
  • Test Programs
  • Simulator
  • In Circuit Debugger
  • PICKit 3
  • Program Microcontroller
  • PICKit 3

7
PICKit 3
8
PIC18 Explorer Demo Board
9
PIC18F8722
10
2WD Robot Chassis
11
Dual H-Bridge Motor Driver
12
Microcontroller Applications
  • Analog to Digital Conversion
  • Interface Analog Sensors (Transducers)
  • Pulse Width Modulation
  • DC Motor Control
  • MPLAB X IDE
  • Programming and Debugging
  • PIC18 Explorer Demo Board
  • PIC18F8722 with lots of I/O
  • Robot Chassis
  • H-Bridge Motor Driver
Write a Comment
User Comments (0)
About PowerShow.com