SlideShare a Scribd company logo
1 of 29
INPUT/OUTPUT INTERFACES
By
D.Darling Jemima.
Introduction
Embedded Systems talk with the outside world
via peripherals, such as:
• Keyboard
• Displays
• Touch screen
• Discrete IO: General Purpose
Input/Output (GPIO)
• Analog to Digital/Digital to Analog Converters
(ADC/DAC)
Automatic Chocolate Vending Machine
(ACVM)
Automatic Chocolate Vending Machine
(ACVM)
Digital Camera
Digital Camera
Keyboard Interface
Interfacing to a keyboard using
keyboard controller
Contd…
• Two signals generated by the keyboard controller are
– KBINT(Keyboard interrupt)
– TxD (Transmit Data)
• KBINT is the interrupt from the keyboard controller.
• TxRDY is the transmit buffer ready interrupt that has
been sent from controller to the process.
• RxRDY sends the acknowledgement of the interrupt.
Debouncer
• Bounces create on pressing─ Each bounce creates
a false pulse.
• Keyboard controller has hardware debouncer to
the care of bouncing of a key.
Scan Clock
• Keyboard controller has counter driven by a scan
clock, which continuously increments at certain
rate and scans each key whether that is in
pressed or released state.
keyboard
Encoder
• To encode the keyboard output for a ROM.
• ROM generates the ASCII code output for the
pressed key.
• The code accounts the multiple keys
simultaneously pressed.
• Example, Shift key is also pressed then
generate the code for upper case character.
LCD Display
Interfacing to a LCD display controller
LCD controller ─ A processing element
(single purpose processor)
• 3 bits for E, RS and R/W
• 8 output data.
• One 8-bit port is used for output data for
display.
• Another port is used for 3 bits.
Contd…
• Processing element generates all required signals
for LCD matrix displays (multi-lane).
• Interfaces Eight-bit parallel output port B pins
PB0-PB7, which sends commands for
programming the controller and send data for
display.
• Three control signals IO PC0-PC2 as inputs to LCD
controller.
• PB0 to PB7 8 input/output bits for parallel set of
8 IO bits for commands and data
Control bits
• LCD controller is sent control words and data
words for initialization and programming by
setting the PB0-PB7, PC0 and PC1 outputs for
each word to LCD controller.
Register Select Control bit
• One bit PC0 at an output port for RS(register
select).
• When RS is reset as 0, the PB0-PB7
communicates a control word to control
register of the LCD controller.
• When RS is set as 1, the PB0-PB7
communicates data to LCD controller
R/W (read/write) Control bit
• One bit PC1 at an output port
• Set to 1 when status register of LCD controller
is read using PB0-PB7.
• PC1 is reset to 0 when write into LCD
controller using PB0-PB7 bits.
Enable Control bit
• After setting R/W, RS and data-bits the LCD
controller enables
• Enables by setting 1 at E pin.
• LCD controller connects to one bit PC2 at an
output port for E (enable). There is an interval
depending on the LCD controller, the controller is
disabled. This is because during this interval, the
LCD controller cannot accept instructions or data
through output of other port pins.
CGRAM
• M displayed character ROM addresses.
• M = 128 for 128 ASCII codes.
• For Each distinct ASCII character, there is 64-
bit graphic.
• LCD controller has internal CGRAM (Character
graphic RAM).
• For each ASCII character, 8 bytes are sent from
the ROM to the CGRAM.
Digital Analog Converter
DAC Using a DAC external chip
DAC
• DAC─ PWM(Pulse width modulator) circuit
and an integrator.
• PWM─ internal device in a microcontroller
• A pulse width register (PWR) is programmed
according to a required analog output.
PWM functioning
• A counter/timer device, which generates two
internal- interrupts one on timer overflow and
another after an interval proportional to equal
to PWR.
• On first interrupt, the output becomes 1 and
on second interrupt it becomes 0.
Integrator
• Generates the analog output as per the period
of output = 1 (period between first and
interrupts) compared to total period of output
pulses (period between successive first
interrupts).
Analog Digital Converter
ADC
• Start of conversion pulse generator circuit,
• A sample hold amplifier circuit to hold the
signal constant for the conversion period and
signal conditioner
• Voltage references + and − for providing the
reference for conversion of analog input
ADC Using ADC external chip
Thank you

More Related Content

What's hot

Serial Io
Serial IoSerial Io
Serial Io
Aisu
 
Atlas Trigger Distributor PCB
Atlas Trigger Distributor PCBAtlas Trigger Distributor PCB
Atlas Trigger Distributor PCB
Matthew Bledsoe
 
Atmel microcontrollers-a tmega328-p_datasheet
Atmel microcontrollers-a tmega328-p_datasheetAtmel microcontrollers-a tmega328-p_datasheet
Atmel microcontrollers-a tmega328-p_datasheet
AlexTronciu
 
8279 in microprocessor
8279 in microprocessor8279 in microprocessor
8279 in microprocessor
Aisu
 

What's hot (20)

Microcontroller lec 2
Microcontroller  lec 2Microcontroller  lec 2
Microcontroller lec 2
 
Analog To Digital Conversion (ADC) Programming in LPC2148
Analog To Digital Conversion (ADC) Programming in LPC2148Analog To Digital Conversion (ADC) Programming in LPC2148
Analog To Digital Conversion (ADC) Programming in LPC2148
 
Avr microcontroller
Avr microcontrollerAvr microcontroller
Avr microcontroller
 
Intrerfacing i
Intrerfacing iIntrerfacing i
Intrerfacing i
 
Embedded Systems using Microwave oven
Embedded Systems using  Microwave ovenEmbedded Systems using  Microwave oven
Embedded Systems using Microwave oven
 
Chapter5 dek3133
Chapter5 dek3133Chapter5 dek3133
Chapter5 dek3133
 
Ec8791 lpc2148 timer unit
Ec8791 lpc2148 timer unitEc8791 lpc2148 timer unit
Ec8791 lpc2148 timer unit
 
Uart 16550
Uart 16550Uart 16550
Uart 16550
 
AVR_Course_Day6 external hardware interrupts and analogue to digital converter
AVR_Course_Day6 external hardware  interrupts and analogue to digital converterAVR_Course_Day6 external hardware  interrupts and analogue to digital converter
AVR_Course_Day6 external hardware interrupts and analogue to digital converter
 
FPGA IMPLIMENTATION OF UART CONTTROLLER
FPGA IMPLIMENTATION OF UART CONTTROLLERFPGA IMPLIMENTATION OF UART CONTTROLLER
FPGA IMPLIMENTATION OF UART CONTTROLLER
 
Serial Io
Serial IoSerial Io
Serial Io
 
Atlas Trigger Distributor PCB
Atlas Trigger Distributor PCBAtlas Trigger Distributor PCB
Atlas Trigger Distributor PCB
 
Timer counter in arm7(lpc2148)
Timer counter in arm7(lpc2148)Timer counter in arm7(lpc2148)
Timer counter in arm7(lpc2148)
 
Gesmod
GesmodGesmod
Gesmod
 
Atmel microcontrollers-a tmega328-p_datasheet
Atmel microcontrollers-a tmega328-p_datasheetAtmel microcontrollers-a tmega328-p_datasheet
Atmel microcontrollers-a tmega328-p_datasheet
 
8155 GPPI
8155 GPPI8155 GPPI
8155 GPPI
 
Next gen smodi ms
Next gen smodi msNext gen smodi ms
Next gen smodi ms
 
Analog to Digital converter in ARM
Analog to Digital converter in ARMAnalog to Digital converter in ARM
Analog to Digital converter in ARM
 
8279 in microprocessor
8279 in microprocessor8279 in microprocessor
8279 in microprocessor
 
8253
82538253
8253
 

Viewers also liked

Input And Output Devices
Input And Output DevicesInput And Output Devices
Input And Output Devices
mrbennett2009
 
Computer Systems
Computer SystemsComputer Systems
Computer Systems
corb201
 
13. Computer Systems Input And Output Architecture
13. Computer Systems   Input And  Output Architecture13. Computer Systems   Input And  Output Architecture
13. Computer Systems Input And Output Architecture
New Era University
 
Overview of computer system
Overview of computer systemOverview of computer system
Overview of computer system
rozanadiana
 
Input, Output and Storage Devices
Input, Output and Storage DevicesInput, Output and Storage Devices
Input, Output and Storage Devices
guest30320a
 
Computer Systems - Input, Process, Output
Computer Systems - Input, Process, OutputComputer Systems - Input, Process, Output
Computer Systems - Input, Process, Output
corb201
 
Computer hardware component. ppt
Computer hardware component. pptComputer hardware component. ppt
Computer hardware component. ppt
Naveen Sihag
 
Waves (Notes 1) - CP Physics
Waves (Notes 1) - CP PhysicsWaves (Notes 1) - CP Physics
Waves (Notes 1) - CP Physics
kharrison11
 
Hunt capítulo 1_(introdução)
Hunt capítulo 1_(introdução)Hunt capítulo 1_(introdução)
Hunt capítulo 1_(introdução)
Felipe Hiago
 

Viewers also liked (20)

computer system
computer system computer system
computer system
 
P.jeet ppt
P.jeet pptP.jeet ppt
P.jeet ppt
 
Input And Output Devices
Input And Output DevicesInput And Output Devices
Input And Output Devices
 
Interface
InterfaceInterface
Interface
 
Computer Systems
Computer SystemsComputer Systems
Computer Systems
 
Input output interface
Input output interfaceInput output interface
Input output interface
 
13. Computer Systems Input And Output Architecture
13. Computer Systems   Input And  Output Architecture13. Computer Systems   Input And  Output Architecture
13. Computer Systems Input And Output Architecture
 
Overview of computer system
Overview of computer systemOverview of computer system
Overview of computer system
 
Input, Output and Storage Devices
Input, Output and Storage DevicesInput, Output and Storage Devices
Input, Output and Storage Devices
 
Computer Systems - Input, Process, Output
Computer Systems - Input, Process, OutputComputer Systems - Input, Process, Output
Computer Systems - Input, Process, Output
 
Types and components of computer system
Types and components of computer systemTypes and components of computer system
Types and components of computer system
 
Computer hardware component. ppt
Computer hardware component. pptComputer hardware component. ppt
Computer hardware component. ppt
 
Introduction to Basic Computer Concepts Presentation
Introduction to Basic Computer Concepts PresentationIntroduction to Basic Computer Concepts Presentation
Introduction to Basic Computer Concepts Presentation
 
Computer Basics 101 Slide Show Presentation
Computer Basics 101 Slide Show PresentationComputer Basics 101 Slide Show Presentation
Computer Basics 101 Slide Show Presentation
 
Waves (Notes 1) - CP Physics
Waves (Notes 1) - CP PhysicsWaves (Notes 1) - CP Physics
Waves (Notes 1) - CP Physics
 
Make Wise Real Estate Choices with a Trusted Company
Make Wise Real Estate Choices with a Trusted CompanyMake Wise Real Estate Choices with a Trusted Company
Make Wise Real Estate Choices with a Trusted Company
 
10 tips to write engaging facebook posts
10 tips to write engaging facebook posts10 tips to write engaging facebook posts
10 tips to write engaging facebook posts
 
Hunt capítulo 1_(introdução)
Hunt capítulo 1_(introdução)Hunt capítulo 1_(introdução)
Hunt capítulo 1_(introdução)
 
Connecting the dots - SALTISE 2015
Connecting the dots   - SALTISE 2015Connecting the dots   - SALTISE 2015
Connecting the dots - SALTISE 2015
 
Inscription v. Description
Inscription v. DescriptionInscription v. Description
Inscription v. Description
 

Similar to Input Output Interfaces

microcontroller board ppt
microcontroller board pptmicrocontroller board ppt
microcontroller board ppt
shashank tiwari
 
1 PageAlarm Clock Design Using PIC18F45E.docx
1  PageAlarm Clock Design Using PIC18F45E.docx1  PageAlarm Clock Design Using PIC18F45E.docx
1 PageAlarm Clock Design Using PIC18F45E.docx
mercysuttle
 
39245203 intro-es-iv
39245203 intro-es-iv39245203 intro-es-iv
39245203 intro-es-iv
Embeddedbvp
 

Similar to Input Output Interfaces (20)

ES UNIT3.pptx
ES UNIT3.pptxES UNIT3.pptx
ES UNIT3.pptx
 
Embedded systems and robotics by scmandota
Embedded systems and robotics by scmandotaEmbedded systems and robotics by scmandota
Embedded systems and robotics by scmandota
 
tCh12.ppt
tCh12.ppttCh12.ppt
tCh12.ppt
 
Peripherals and interfacing
Peripherals  and interfacingPeripherals  and interfacing
Peripherals and interfacing
 
digital clock atmega16
digital clock atmega16digital clock atmega16
digital clock atmega16
 
The presentation is about USART and serial communication
The presentation is about USART and serial communicationThe presentation is about USART and serial communication
The presentation is about USART and serial communication
 
Assembler4
Assembler4Assembler4
Assembler4
 
Atmega16
Atmega16Atmega16
Atmega16
 
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSPIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
 
TMPA910CRAXBG 32-Bit Display MCU
TMPA910CRAXBG 32-Bit Display MCUTMPA910CRAXBG 32-Bit Display MCU
TMPA910CRAXBG 32-Bit Display MCU
 
microcontroller board ppt
microcontroller board pptmicrocontroller board ppt
microcontroller board ppt
 
Class 4 I/O Ports
Class 4 I/O PortsClass 4 I/O Ports
Class 4 I/O Ports
 
1 PageAlarm Clock Design Using PIC18F45E.docx
1  PageAlarm Clock Design Using PIC18F45E.docx1  PageAlarm Clock Design Using PIC18F45E.docx
1 PageAlarm Clock Design Using PIC18F45E.docx
 
Pentium processor
Pentium processorPentium processor
Pentium processor
 
MICROCONTROLLER.pptx
MICROCONTROLLER.pptxMICROCONTROLLER.pptx
MICROCONTROLLER.pptx
 
Training Report on embedded Systems and Robotics
Training Report on embedded  Systems and RoboticsTraining Report on embedded  Systems and Robotics
Training Report on embedded Systems and Robotics
 
Overview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerOverview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontroller
 
Microcontroller from basic_to_advanced
Microcontroller from basic_to_advancedMicrocontroller from basic_to_advanced
Microcontroller from basic_to_advanced
 
39245203 intro-es-iv
39245203 intro-es-iv39245203 intro-es-iv
39245203 intro-es-iv
 
Lab3
Lab3Lab3
Lab3
 

More from Darling Jemima (6)

Introduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM ProcessorIntroduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM Processor
 
Never GIve up
Never GIve upNever GIve up
Never GIve up
 
Secure group key management based on hyper-sphere
Secure group key management based on hyper-sphereSecure group key management based on hyper-sphere
Secure group key management based on hyper-sphere
 
Rope
RopeRope
Rope
 
Application of Dijkstra Algorithm in Robot path planning
Application of Dijkstra Algorithm in Robot path planningApplication of Dijkstra Algorithm in Robot path planning
Application of Dijkstra Algorithm in Robot path planning
 
Golden bells
Golden bellsGolden bells
Golden bells
 

Recently uploaded

Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 

Recently uploaded (20)

Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 

Input Output Interfaces

  • 2. Introduction Embedded Systems talk with the outside world via peripherals, such as: • Keyboard • Displays • Touch screen • Discrete IO: General Purpose Input/Output (GPIO) • Analog to Digital/Digital to Analog Converters (ADC/DAC)
  • 8. Interfacing to a keyboard using keyboard controller
  • 9. Contd… • Two signals generated by the keyboard controller are – KBINT(Keyboard interrupt) – TxD (Transmit Data) • KBINT is the interrupt from the keyboard controller. • TxRDY is the transmit buffer ready interrupt that has been sent from controller to the process. • RxRDY sends the acknowledgement of the interrupt.
  • 10. Debouncer • Bounces create on pressing─ Each bounce creates a false pulse. • Keyboard controller has hardware debouncer to the care of bouncing of a key. Scan Clock • Keyboard controller has counter driven by a scan clock, which continuously increments at certain rate and scans each key whether that is in pressed or released state. keyboard
  • 11. Encoder • To encode the keyboard output for a ROM. • ROM generates the ASCII code output for the pressed key. • The code accounts the multiple keys simultaneously pressed. • Example, Shift key is also pressed then generate the code for upper case character.
  • 13. Interfacing to a LCD display controller
  • 14. LCD controller ─ A processing element (single purpose processor) • 3 bits for E, RS and R/W • 8 output data. • One 8-bit port is used for output data for display. • Another port is used for 3 bits.
  • 15. Contd… • Processing element generates all required signals for LCD matrix displays (multi-lane). • Interfaces Eight-bit parallel output port B pins PB0-PB7, which sends commands for programming the controller and send data for display. • Three control signals IO PC0-PC2 as inputs to LCD controller. • PB0 to PB7 8 input/output bits for parallel set of 8 IO bits for commands and data
  • 16. Control bits • LCD controller is sent control words and data words for initialization and programming by setting the PB0-PB7, PC0 and PC1 outputs for each word to LCD controller.
  • 17. Register Select Control bit • One bit PC0 at an output port for RS(register select). • When RS is reset as 0, the PB0-PB7 communicates a control word to control register of the LCD controller. • When RS is set as 1, the PB0-PB7 communicates data to LCD controller
  • 18. R/W (read/write) Control bit • One bit PC1 at an output port • Set to 1 when status register of LCD controller is read using PB0-PB7. • PC1 is reset to 0 when write into LCD controller using PB0-PB7 bits.
  • 19. Enable Control bit • After setting R/W, RS and data-bits the LCD controller enables • Enables by setting 1 at E pin. • LCD controller connects to one bit PC2 at an output port for E (enable). There is an interval depending on the LCD controller, the controller is disabled. This is because during this interval, the LCD controller cannot accept instructions or data through output of other port pins.
  • 20. CGRAM • M displayed character ROM addresses. • M = 128 for 128 ASCII codes. • For Each distinct ASCII character, there is 64- bit graphic. • LCD controller has internal CGRAM (Character graphic RAM). • For each ASCII character, 8 bytes are sent from the ROM to the CGRAM.
  • 22. DAC Using a DAC external chip
  • 23. DAC • DAC─ PWM(Pulse width modulator) circuit and an integrator. • PWM─ internal device in a microcontroller • A pulse width register (PWR) is programmed according to a required analog output.
  • 24. PWM functioning • A counter/timer device, which generates two internal- interrupts one on timer overflow and another after an interval proportional to equal to PWR. • On first interrupt, the output becomes 1 and on second interrupt it becomes 0.
  • 25. Integrator • Generates the analog output as per the period of output = 1 (period between first and interrupts) compared to total period of output pulses (period between successive first interrupts).
  • 27. ADC • Start of conversion pulse generator circuit, • A sample hold amplifier circuit to hold the signal constant for the conversion period and signal conditioner • Voltage references + and − for providing the reference for conversion of analog input
  • 28. ADC Using ADC external chip