SlideShare a Scribd company logo
More about PIC
Timer 0
• The PIC 18 has two to five timers (depends on family)
• They can be used as
• Timer  to generate time delay
• Counters  count event happening outside the
microcontroller.
Timer 0
Timer 0
Timer 0
Timer 0
Timer 0
Timer 0
Timer 0
Timer 1
Timer 1
Timer 1
Timer 0 and 1 in C
Timer 0 and 1 in C
Timer 0 and 1 in C
Interrupt Programming
• Interrupt
• The program associated with interrupt is called the interrupt service routine
(ISR) or interrupt handler.
• Polling
• The microcontroller continuously monitors the status of a given device.
• Round-robin fashion (no priorities).
Interrupt service routine
• Upon activation of an interrupt,
Interrupt vector table (PIC18)
Simplified view of interrupts
INTCON (interrupt control) register
Summary

More Related Content

PDF
Lecture 06 pic programming in c
PDF
Lecture 05 pic io port programming
PDF
Lecture 1 - Introduction to embedded system and Robotics
PDF
Lecture 03 basics of pic
PPTX
Pic 18 microcontroller
PDF
Lecture 04 branch call and time delay
PPT
Microchip's PIC Micro Controller
PDF
Introduction to pic microcontroller
Lecture 06 pic programming in c
Lecture 05 pic io port programming
Lecture 1 - Introduction to embedded system and Robotics
Lecture 03 basics of pic
Pic 18 microcontroller
Lecture 04 branch call and time delay
Microchip's PIC Micro Controller
Introduction to pic microcontroller

What's hot (20)

PDF
Programming with PIC microcontroller
PPTX
PIC-18 Microcontroller
PDF
Introduction to pic microcontroller
PPTX
Micro operation control of processor
PDF
PIC microcontroller review
PPTX
ARM stacks, subroutines, Cortex M3, LPC 214X
PPTX
PIC introduction + mapping
PPT
set de instrucciones primera parte de atmel
PPTX
RTL-Design for beginners
PPT
pic architecture
PPT
MPLAB Starter Kit for PIC18F MCUs
PDF
EE6008 MCBSD - Introduction to PIC Micro controller
PPT
Unit 1
PPTX
Pic microcontroller [autosaved] [autosaved]
PDF
Lect2 organization 2
PPTX
Pic microcontroller architecture
PPTX
PIC Microcontrollers
PPT
.........
Programming with PIC microcontroller
PIC-18 Microcontroller
Introduction to pic microcontroller
Micro operation control of processor
PIC microcontroller review
ARM stacks, subroutines, Cortex M3, LPC 214X
PIC introduction + mapping
set de instrucciones primera parte de atmel
RTL-Design for beginners
pic architecture
MPLAB Starter Kit for PIC18F MCUs
EE6008 MCBSD - Introduction to PIC Micro controller
Unit 1
Pic microcontroller [autosaved] [autosaved]
Lect2 organization 2
Pic microcontroller architecture
PIC Microcontrollers
.........
Ad

More from Vajira Thambawita (20)

PDF
Lecture 4 principles of parallel algorithm design updated
PDF
Lecture 3 parallel programming platforms
PDF
Lecture 2 more about parallel computing
PDF
Lecture 1 introduction to parallel and distributed computing
PDF
Lecture 12 localization and navigation
PDF
Lecture 11 neural network principles
PDF
Lecture 10 mobile robot design
PDF
Lecture 09 control
PDF
Lecture 08 robots and controllers
PDF
Lecture 02 mechatronics systems
PDF
Lec 09 - Registers and Counters
PDF
Lec 08 - DESIGN PROCEDURE
PDF
Lec 07 - ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITS
PDF
Lec 06 - Synchronous Sequential Logic
PDF
Lec 05 - Combinational Logic
PDF
Lec 04 - Gate-level Minimization
PDF
Lec 03 - Combinational Logic Design
PDF
Lec 02 - Basic Knowledge
PDF
Lec 01 - Microcomputer Architecture and Logic Design
PDF
Lecture 10 swarm intelligence
Lecture 4 principles of parallel algorithm design updated
Lecture 3 parallel programming platforms
Lecture 2 more about parallel computing
Lecture 1 introduction to parallel and distributed computing
Lecture 12 localization and navigation
Lecture 11 neural network principles
Lecture 10 mobile robot design
Lecture 09 control
Lecture 08 robots and controllers
Lecture 02 mechatronics systems
Lec 09 - Registers and Counters
Lec 08 - DESIGN PROCEDURE
Lec 07 - ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITS
Lec 06 - Synchronous Sequential Logic
Lec 05 - Combinational Logic
Lec 04 - Gate-level Minimization
Lec 03 - Combinational Logic Design
Lec 02 - Basic Knowledge
Lec 01 - Microcomputer Architecture and Logic Design
Lecture 10 swarm intelligence
Ad

Recently uploaded (20)

PDF
Insiders guide to clinical Medicine.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Cell Structure & Organelles in detailed.
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PPTX
Cell Types and Its function , kingdom of life
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Institutional Correction lecture only . . .
PPTX
master seminar digital applications in india
PDF
Complications of Minimal Access Surgery at WLH
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Insiders guide to clinical Medicine.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
102 student loan defaulters named and shamed – Is someone you know on the list?
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Pharma ospi slides which help in ospi learning
Cell Structure & Organelles in detailed.
Microbial diseases, their pathogenesis and prophylaxis
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Anesthesia in Laparoscopic Surgery in India
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
Cell Types and Its function , kingdom of life
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Institutional Correction lecture only . . .
master seminar digital applications in india
Complications of Minimal Access Surgery at WLH
O7-L3 Supply Chain Operations - ICLT Program
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx

Lecture 07 more about pic