SlideShare a Scribd company logo
Microchip®®
PIC Microcontrollers
By
Midhu S.V. Unnithan
Embedded Systems
What is Embedded System?
Embedded System is a combination of
software and hardware designed to perform a
specific task.
E.g. Washing Machine
Traffic Signal
Microwave Oven etc…
Application Areas Of Embedded
System
• Electronics Applications and Consumer Devices.
• Industrial Automation and Process Control.
• Access Control Systems.
• Security Systems.
• Robotics.
• Communications Applications.
• Automotive and Avionics Systems.
• Military and Aerospace Applications.
• Bio Medical Applications etc….
Processing Parts Of Embedded
System
1: Microprocessor (μp)
• Microprocessor is the Central Processing Unit.
• Microprocessor is, just simply, the processor .
• To make it to work it will need lots of external parts called
peripherals. I.e. Microprocessor don’t have inbuilt peripherals.
• Micro processor needs many external circuits to make it work. So
Microprocessor based system is called System On Board (SOB )
Processing Parts Of Embedded
System cont…
2: Microcontroller (μc )
• Microcontroller is the processing part in which all the essential
peripherals are integrated in a single chip
• Microcontroller = Microprocessor + Peripherals
• It can process as well as control.
• It includes all the necessary parts in one IC. So microcontroller
based system is called System On Chip (SOC)
Microcontroller Manufactures
Microchip’s PIC
• The name PIC referred to
"Peripheral Interface Controller"
• PIC is a family of Harvard Architecture microcontrollers
made by Microchip Technology.
Microchip Technology is an American manufacturer
of microcontroller, memory and analog semiconductors. The company
was founded in 1987.
For more details log on to www.microchip.com
• PICs are popular with developers and hobbyists alike.
Why PIC
• All the Peripherals are Integrated in a Single Chip
• Wide Range Available
• Cost Effective
• Easily Available
• High Speed
• High Performance RISC CPU
• Instruction Set Simplicity
• Wide Operating Voltage Range: 2.5 – 6 V
• Programmable Code Protection Mode
• Power Saving Sleep Mode
Device Structure - PIC
• Core
The essential part of the system.
• Peripherals
Peripherals are the features that add a differentiation from
microprocessors. This is the interfacing units to external world.
• Special features
Major purpose of special features are
► Decrease system cost.
► Increase system reliability.
► Increase design flexibility.
The PIC Family
• Based on Instruction Word Length PIC can be
classified into three.
Instruction Word Length = OPCODE+OPERAND
• Base Line (12 bit with 33 Instructions)
• Mid Range (14 bit with 35 Instructions)
• High End (16 bit with 58 / 77 Instructions)
Architectures …
1:Von Neumann Architecture
CPUCPU
Program Memory
&
Data Memory
• Used in: 80X86, 8051 etc…
• Only one bus between CPU and memory.
• Data memory and Program memory share the same bus
and the same memory, and so must have the same bit
width.
• Time of execution high.
8
Architectures …
2:Harvard Architecture
PICs use the Harvard Architecture
CPU
12
14
16
Data
Memory 8
Program
Memory
Used mostly in RISC CPUs.
Separate program bus and data bus: can be different widths.
Instructions can execute in a single cycle.
Time of execution is low.
Name the PIC
• Microchips Microcontroller name always Starts with PIC
• Then a Number which denotes the Type/Range of that PIC
• 12 : Base Line (12 bit Instruction Word)
• 16 : Mid Range (14 bit Instruction Word)
• 17/18 : High End (16 bit Instruction Word)
• Next is an Alphabet which denotes How We Can Program the PIC
• CR : PROM (OTP)
• C : PROM / EPROM
• F : FLASH
• Last is another Number varies from PIC to PIC which denotes the
internal memory, pin numbers, peripherals etc …
• 73 : 28 pin IC, 8 bit ADC, 4K PM etc…
• 873 : 28 pin IC, 10 bit ADC, 4K PM etc…
• 877 : 40pin IC, 10 bit ADC , 8K PM etc…
• 877 A : 40pin IC, 10 bit ADC , 8K PM, New Batch IC etc…
Name Yourself …….You can 
• PIC16F73 : 
• PIC16F873A : 
• PIC16F877 : 
• PIC16F877A : 
Instruction Set - PIC
• Only 35 instructions.
• RISC instruction architecture.
• In PIC, Accumulator is named as Working Register (w).
This is the base register of all operations.
• All operations are possible only through ‘w’
• Register to register transfer is not possible.
• The instruction set is highly orthogonal and is grouped
into three basic categories:
• Byte oriented instructions (18 nos).
• Bit oriented instructions (4 nos).
• Literal and control instructions (13 nos).
Instruction Set - PIC
1. Byte oriented instructions: (18 nos)
• CLRW - Clear working register.
• CLRF - Clear file register
• MOVFW - Move the contents of file register to working register.
• MOVWF - Move the contents of working register to file register.
• ADDWF - Add the contents of file register to working register.
• SUBWF - Subtract working register from the file register.
• ANDWF - Bit wise multiplication of working register with the file register.
• IORWF - Bit wise adding of working register with the file register.
• XORWF - Exclusive OR the contents of working register with the file reg:
• RLF - Rotate left with carry.
• RRF - Rotate right with carry.
• DECF - Decrement the file registers contents.
• DECFSZ - Decrement the contents of file register and skip the next
instruction if zero.
• INCF - Increment the file registers contents.
• INCFSZ - Increment the contents of file register and skip the next
instruction if zero.
• COMF - 1’s complement.
• SWAPF - Interchange the nibbles.
• NOP - No operation.
Instruction Set - PIC
2. Bit Oriented instructions: (4 nos)
• BCF - Bit clear flag.
• BSF - Bit set flag.
• BTFSC - Bit test file register and skip if clear.
• BTFSS - Bit test file register and skip if set.
Instruction Set - PIC
3. Literal and control instructions: (13 nos)
• MOVLW - Direct loading of working register.
• ADDLW - Direct adding of working register with a constant value.
• SUBLW - Direct subtraction of working register with a constant value.
• ANDLW - Bit wise multiplication of working register with a constant
value.
• IORLW - Bit wise addition of working register with a constant value.
• XORLW - Exclusive OR of working register with a constant value.
• CALL XX - Call subroutine XX.
• RETURN - Back to main program from the subroutine.
• GOTO XX - Go to xx.
• RETFIE - Return from interrupts.
• RETLW - Return with literal value.
• CLRWDT - Clear watchdog timer.
• SLEEP - Low power consumption mode.
Program Format
LIST P=PIC16F73 ;Listing the microcontroller
#INCLUDE“P16F73.INC” ;INC file
CBLOCK 0X20 ;GPR address starts from 0X20
•
• ;GPR Initialization
•
ENDC
ORG 0 ;Reset Vector
•
•
program
•
•
•
END ;Program End
Our First Program … 
• Add the contents of two registers (R1 & R2) and store the result in
R3
LIST P=PIC16F73
#INCLUDE“P16F73.INC”
CBLOCK 0X20
R1
R2
R3
END C
ORG 0
MOVLW 0X02
MOVWF R1
MOVLW 0X03
MOVWF R2
ADDWF R1,0
MOVWF R3
END
Do it yourself …
• Subtract the contents of M1 from M2 and store
the result in Y1
• Multiply the contents of X1 with X2 and store
the result in X3.
Its time to relax ….. Have a break…

MPLAB IDE …An Introduction
• MPLAB IDE is a software program that runs on a PC, to
develop applications for Microchip microcontrollers. It is
called an Integrated Development Environment, or IDE,
because it provides a single integrated “environment” to
develop code for PIC microcontrollers.
• You can download this software free of cost from
Microchip’s website. (www.microchip.com)
Most Commonly Used SFR s …
• STATUS
• OPTION_REG
• PORTA,B,C…. & TRIS A,B,C…
• ADCON0,ADCON1,ADRES
• TXSTA,RCSTA,TXREG,RCREG,SPBRG
• INTCON etc………..
That’s all with the software….
Lets have some Circuit Thoughts
Pinout Diagram – 28 pin
Pinout Diagram – 40 pin
Basic Circuit Requirements of PIC
1: Power Supply
VDD = 5V
VSS = GND
Basic Circuit Requirements of PIC
2: Connect Oscillator (XTAL 4 or 20 MHz) to CLKI and
CLKO pins
Also connect two 22/33 pf capacitors with the crystal as
shown below for crystal stabilization.
Basic Circuit Requirements of PIC
3: Pull up MCLR pin with a 10k resistance to avoid
master reset.
Here is your PIC basic circuit
SOFTWARE is ready…. 
HARDWARE is ready…. 
Its Time To Know How To Fuse The Program in PIC
Programmers…
• Parallel Programmers
• Serial Programmers
• USB Programmers
How To Program The PIC
Brief Project Lifecycle
• Requirement Study
• Initial Planning
• Prototype development
 May again go to Requirement study
• Final Project Planning
 Deadlines, Team/Recourses, Methods, Budget
• Development
 Hardware and Software
• Testing and Debugging
 May again go to Development
• Documentation
• Project Delivery
Feedbacks and Suggestions
Please…..
We can't solve problems by using the same kind of
thinking we used when we created them. So Think
Different (Albert Einstein)
I wish you all a very successful future….Take care
svmidhu@gmail.com
Microchip's PIC Micro Controller

More Related Content

What's hot

ATmega32-AVR microcontrollers-Part I
ATmega32-AVR microcontrollers-Part IATmega32-AVR microcontrollers-Part I
ATmega32-AVR microcontrollers-Part I
VineethMP2
 
Difference Between Microprocessors and Microcontrollers
Difference Between Microprocessors and MicrocontrollersDifference Between Microprocessors and Microcontrollers
Difference Between Microprocessors and Microcontrollers
elprocus
 
Introduction to Embedded Architecture
Introduction to Embedded Architecture Introduction to Embedded Architecture
Introduction to Embedded Architecture
amrutachintawar239
 
Introduction to Microcontroller
Introduction to MicrocontrollerIntroduction to Microcontroller
Introduction to Microcontroller
Pantech ProLabs India Pvt Ltd
 
microcontroller vs microprocessor
microcontroller vs microprocessormicrocontroller vs microprocessor
microcontroller vs microprocessor
sobhadevi
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
DominicHendry
 
Embedded system.ppt
Embedded system.pptEmbedded system.ppt
Embedded system.ppt
Radhika Puttewar
 
Chapter 1 microprocessor introduction
Chapter 1 microprocessor introductionChapter 1 microprocessor introduction
Chapter 1 microprocessor introduction
Shubham Singh
 
Microprocessor Presentation
Microprocessor PresentationMicroprocessor Presentation
Microprocessor Presentation
alaminmasum1
 
Introduction to AVR Microcontroller
Introduction to AVR Microcontroller Introduction to AVR Microcontroller
Introduction to AVR Microcontroller
Mahmoud Sadat
 
Embedded System Basics
Embedded System BasicsEmbedded System Basics
Embedded System Basics
Dr M Muruganandam Masilamani
 
RISC-V Introduction
RISC-V IntroductionRISC-V Introduction
RISC-V Introduction
Yi-Hsiu Hsu
 
Microprocessor & Micro-controller
Microprocessor & Micro-controllerMicroprocessor & Micro-controller
Microprocessor & Micro-controller
Om Bheda
 
Architecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 MicrocontrollerArchitecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 Microcontroller
Sudhanshu Janwadkar
 
PIC Microcontrollers
PIC MicrocontrollersPIC Microcontrollers
PIC Microcontrollers
Abdullah Saghir Ahmad
 
Microprocessor ppt
Microprocessor pptMicroprocessor ppt
Microprocessor ppt
swaminath kanhere
 
8051 microcontroller and embedded system
8051 microcontroller and embedded system8051 microcontroller and embedded system
8051 microcontroller and embedded systemsb108ec
 
ARM - Advance RISC Machine
ARM - Advance RISC MachineARM - Advance RISC Machine
ARM - Advance RISC Machine
EdutechLearners
 

What's hot (20)

ATmega32-AVR microcontrollers-Part I
ATmega32-AVR microcontrollers-Part IATmega32-AVR microcontrollers-Part I
ATmega32-AVR microcontrollers-Part I
 
Difference Between Microprocessors and Microcontrollers
Difference Between Microprocessors and MicrocontrollersDifference Between Microprocessors and Microcontrollers
Difference Between Microprocessors and Microcontrollers
 
Introduction to Embedded Architecture
Introduction to Embedded Architecture Introduction to Embedded Architecture
Introduction to Embedded Architecture
 
Introduction to Microcontroller
Introduction to MicrocontrollerIntroduction to Microcontroller
Introduction to Microcontroller
 
microcontroller vs microprocessor
microcontroller vs microprocessormicrocontroller vs microprocessor
microcontroller vs microprocessor
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
Embedded system.ppt
Embedded system.pptEmbedded system.ppt
Embedded system.ppt
 
Chapter 1 microprocessor introduction
Chapter 1 microprocessor introductionChapter 1 microprocessor introduction
Chapter 1 microprocessor introduction
 
Microprocessor Presentation
Microprocessor PresentationMicroprocessor Presentation
Microprocessor Presentation
 
Introduction to AVR Microcontroller
Introduction to AVR Microcontroller Introduction to AVR Microcontroller
Introduction to AVR Microcontroller
 
Embedded System Basics
Embedded System BasicsEmbedded System Basics
Embedded System Basics
 
RISC-V Introduction
RISC-V IntroductionRISC-V Introduction
RISC-V Introduction
 
Microprocessor & Micro-controller
Microprocessor & Micro-controllerMicroprocessor & Micro-controller
Microprocessor & Micro-controller
 
Architecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 MicrocontrollerArchitecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 Microcontroller
 
PIC Microcontrollers
PIC MicrocontrollersPIC Microcontrollers
PIC Microcontrollers
 
Introduction in microcontroller
Introduction in microcontrollerIntroduction in microcontroller
Introduction in microcontroller
 
Microprocessor ppt
Microprocessor pptMicroprocessor ppt
Microprocessor ppt
 
8051 microcontroller and embedded system
8051 microcontroller and embedded system8051 microcontroller and embedded system
8051 microcontroller and embedded system
 
ARM - Advance RISC Machine
ARM - Advance RISC MachineARM - Advance RISC Machine
ARM - Advance RISC Machine
 

Viewers also liked

PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSPIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
VISHNU KP
 
Getting started with pic microcontrollers
Getting started with pic microcontrollersGetting started with pic microcontrollers
Getting started with pic microcontrollers
Pantech ProLabs India Pvt Ltd
 
Chp4 introduction to the pic microcontroller copy
Chp4 introduction to the pic microcontroller   copyChp4 introduction to the pic microcontroller   copy
Chp4 introduction to the pic microcontroller copymkazree
 
PIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTESPIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTES
Dr.YNM
 
Programming with PIC microcontroller
Programming with PIC microcontroller Programming with PIC microcontroller
Programming with PIC microcontroller
Raghav Shetty
 
PIC
PICPIC
Micro controller based mppt with pv charger
Micro controller based mppt with pv chargerMicro controller based mppt with pv charger
Micro controller based mppt with pv chargerYmadhu Reddy
 
Tutorial dec0604(print24) Programming a PIC
Tutorial dec0604(print24) Programming a PICTutorial dec0604(print24) Programming a PIC
Tutorial dec0604(print24) Programming a PICMuhammad Khan
 
Bus Interfacing with Intel Microprocessors Based Systems
Bus Interfacing with Intel Microprocessors Based SystemsBus Interfacing with Intel Microprocessors Based Systems
Bus Interfacing with Intel Microprocessors Based Systems
Murtadha Alsabbagh
 
Design of FPGA based 8-bit RISC Controller IP core using VHDL
Design of FPGA based 8-bit RISC Controller IP core using VHDLDesign of FPGA based 8-bit RISC Controller IP core using VHDL
Design of FPGA based 8-bit RISC Controller IP core using VHDL
Aneesh Raveendran
 
PIC introduction + mapping
PIC introduction + mappingPIC introduction + mapping
PIC introduction + mapping
OsaMa Hasan
 
Presentation by Priyanka_Greendroid
Presentation by Priyanka_GreendroidPresentation by Priyanka_Greendroid
Presentation by Priyanka_GreendroidPRIYANKA KATKAR
 
Strategies for Debugging Print CSS
Strategies for Debugging Print CSSStrategies for Debugging Print CSS
Strategies for Debugging Print CSS
MrDys
 
Motorola 68hc11
Motorola 68hc11Motorola 68hc11
Motorola 68hc11
gajani121
 
Voice controlled spy robot for security system
Voice controlled spy robot for security systemVoice controlled spy robot for security system
Voice controlled spy robot for security system
Mayank Prajapati
 
Ppt
PptPpt

Viewers also liked (20)

PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSPIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
 
Getting started with pic microcontrollers
Getting started with pic microcontrollersGetting started with pic microcontrollers
Getting started with pic microcontrollers
 
Chp4 introduction to the pic microcontroller copy
Chp4 introduction to the pic microcontroller   copyChp4 introduction to the pic microcontroller   copy
Chp4 introduction to the pic microcontroller copy
 
PIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTESPIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTES
 
Programming with PIC microcontroller
Programming with PIC microcontroller Programming with PIC microcontroller
Programming with PIC microcontroller
 
PIC
PICPIC
PIC
 
Micro controller based mppt with pv charger
Micro controller based mppt with pv chargerMicro controller based mppt with pv charger
Micro controller based mppt with pv charger
 
Tutorial dec0604(print24) Programming a PIC
Tutorial dec0604(print24) Programming a PICTutorial dec0604(print24) Programming a PIC
Tutorial dec0604(print24) Programming a PIC
 
Bus Interfacing with Intel Microprocessors Based Systems
Bus Interfacing with Intel Microprocessors Based SystemsBus Interfacing with Intel Microprocessors Based Systems
Bus Interfacing with Intel Microprocessors Based Systems
 
Kumpulan 09
Kumpulan 09Kumpulan 09
Kumpulan 09
 
Design of FPGA based 8-bit RISC Controller IP core using VHDL
Design of FPGA based 8-bit RISC Controller IP core using VHDLDesign of FPGA based 8-bit RISC Controller IP core using VHDL
Design of FPGA based 8-bit RISC Controller IP core using VHDL
 
PIC introduction + mapping
PIC introduction + mappingPIC introduction + mapping
PIC introduction + mapping
 
Presentation by Priyanka_Greendroid
Presentation by Priyanka_GreendroidPresentation by Priyanka_Greendroid
Presentation by Priyanka_Greendroid
 
A tmega8 basics
A tmega8 basicsA tmega8 basics
A tmega8 basics
 
Strategies for Debugging Print CSS
Strategies for Debugging Print CSSStrategies for Debugging Print CSS
Strategies for Debugging Print CSS
 
Motorola 68hc11
Motorola 68hc11Motorola 68hc11
Motorola 68hc11
 
Voice controlled spy robot for security system
Voice controlled spy robot for security systemVoice controlled spy robot for security system
Voice controlled spy robot for security system
 
Ppt
PptPpt
Ppt
 
Bab 6 masa
Bab 6 masaBab 6 masa
Bab 6 masa
 
analog communication
analog communicationanalog communication
analog communication
 

Similar to Microchip's PIC Micro Controller

My seminar new 28
My seminar new 28My seminar new 28
My seminar new 28rajeshkvdn
 
Unit I_MT2301.pdf
Unit I_MT2301.pdfUnit I_MT2301.pdf
Unit I_MT2301.pdf
Kannan Kanagaraj
 
Computer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organizationComputer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organization
AmrutaMehata
 
Processors selection
Processors selectionProcessors selection
Processors selection
Pradeep Shankhwar
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
Summary Of Course Projects
Summary Of Course ProjectsSummary Of Course Projects
Summary Of Course Projects
awan2008
 
TMSLF2407 DSP Controller
TMSLF2407 DSP ControllerTMSLF2407 DSP Controller
TMSLF2407 DSP Controller
ANIRUDDHMAINI1
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontroller
Siva Kumar
 
Microprocessor and Microcontroller Based Systems.ppt
Microprocessor and Microcontroller Based Systems.pptMicroprocessor and Microcontroller Based Systems.ppt
Microprocessor and Microcontroller Based Systems.ppt
TALHARIAZ46
 
CMPN301-Pipelining_V2.pptx
CMPN301-Pipelining_V2.pptxCMPN301-Pipelining_V2.pptx
CMPN301-Pipelining_V2.pptx
NadaAAmin
 
conrol_Unit_part_of_computer_architecture.pptx
conrol_Unit_part_of_computer_architecture.pptxconrol_Unit_part_of_computer_architecture.pptx
conrol_Unit_part_of_computer_architecture.pptx
jbri1395
 
MergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptxMergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptx
bhaveshagrawal35
 
isa architecture
isa architectureisa architecture
isa architecture
AJAL A J
 
Microcontroller pic 16f877 architecture and basics
Microcontroller pic 16f877 architecture and basicsMicrocontroller pic 16f877 architecture and basics
Microcontroller pic 16f877 architecture and basics
Nilesh Bhaskarrao Bahadure
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontrollersnehapvs
 
Brain wave controlled robot
Brain wave controlled robotBrain wave controlled robot
Brain wave controlled robot
Rahul Wagh
 
PILOT Session for Embedded Systems
PILOT Session for Embedded Systems PILOT Session for Embedded Systems
PILOT Session for Embedded Systems
Mohamed Al-Emam, PMP®, CAP®
 
Computer Organization: Introduction to Microprocessor and Microcontroller
Computer Organization: Introduction to Microprocessor and MicrocontrollerComputer Organization: Introduction to Microprocessor and Microcontroller
Computer Organization: Introduction to Microprocessor and Microcontroller
AmrutaMehata
 

Similar to Microchip's PIC Micro Controller (20)

My seminar new 28
My seminar new 28My seminar new 28
My seminar new 28
 
Unit I_MT2301.pdf
Unit I_MT2301.pdfUnit I_MT2301.pdf
Unit I_MT2301.pdf
 
Computer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organizationComputer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organization
 
Processors selection
Processors selectionProcessors selection
Processors selection
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Arm processor
Arm processorArm processor
Arm processor
 
Summary Of Course Projects
Summary Of Course ProjectsSummary Of Course Projects
Summary Of Course Projects
 
TMSLF2407 DSP Controller
TMSLF2407 DSP ControllerTMSLF2407 DSP Controller
TMSLF2407 DSP Controller
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontroller
 
Microprocessor and Microcontroller Based Systems.ppt
Microprocessor and Microcontroller Based Systems.pptMicroprocessor and Microcontroller Based Systems.ppt
Microprocessor and Microcontroller Based Systems.ppt
 
CMPN301-Pipelining_V2.pptx
CMPN301-Pipelining_V2.pptxCMPN301-Pipelining_V2.pptx
CMPN301-Pipelining_V2.pptx
 
conrol_Unit_part_of_computer_architecture.pptx
conrol_Unit_part_of_computer_architecture.pptxconrol_Unit_part_of_computer_architecture.pptx
conrol_Unit_part_of_computer_architecture.pptx
 
MergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptxMergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptx
 
isa architecture
isa architectureisa architecture
isa architecture
 
Microcontroller pic 16f877 architecture and basics
Microcontroller pic 16f877 architecture and basicsMicrocontroller pic 16f877 architecture and basics
Microcontroller pic 16f877 architecture and basics
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
 
Brain wave controlled robot
Brain wave controlled robotBrain wave controlled robot
Brain wave controlled robot
 
PILOT Session for Embedded Systems
PILOT Session for Embedded Systems PILOT Session for Embedded Systems
PILOT Session for Embedded Systems
 
Computer Organization: Introduction to Microprocessor and Microcontroller
Computer Organization: Introduction to Microprocessor and MicrocontrollerComputer Organization: Introduction to Microprocessor and Microcontroller
Computer Organization: Introduction to Microprocessor and Microcontroller
 

More from Midhu S V Unnithan

Training
TrainingTraining
Organizational Learning , Performance Management
Organizational Learning ,  Performance ManagementOrganizational Learning ,  Performance Management
Organizational Learning , Performance Management
Midhu S V Unnithan
 
Infosys Case Study, Organizational Structure- Infosys
Infosys Case Study, Organizational Structure- InfosysInfosys Case Study, Organizational Structure- Infosys
Infosys Case Study, Organizational Structure- Infosys
Midhu S V Unnithan
 
Quality Circles,HR, MBA, Organization,
Quality Circles,HR, MBA, Organization, Quality Circles,HR, MBA, Organization,
Quality Circles,HR, MBA, Organization,
Midhu S V Unnithan
 
Shares, MBA
Shares, MBAShares, MBA
Shares, MBA
Midhu S V Unnithan
 

More from Midhu S V Unnithan (6)

Training
TrainingTraining
Training
 
Counselling Interview Methods
Counselling Interview MethodsCounselling Interview Methods
Counselling Interview Methods
 
Organizational Learning , Performance Management
Organizational Learning ,  Performance ManagementOrganizational Learning ,  Performance Management
Organizational Learning , Performance Management
 
Infosys Case Study, Organizational Structure- Infosys
Infosys Case Study, Organizational Structure- InfosysInfosys Case Study, Organizational Structure- Infosys
Infosys Case Study, Organizational Structure- Infosys
 
Quality Circles,HR, MBA, Organization,
Quality Circles,HR, MBA, Organization, Quality Circles,HR, MBA, Organization,
Quality Circles,HR, MBA, Organization,
 
Shares, MBA
Shares, MBAShares, MBA
Shares, MBA
 

Recently uploaded

FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
Alex Pruden
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
ThomasParaiso2
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 

Recently uploaded (20)

FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 

Microchip's PIC Micro Controller

  • 2. Embedded Systems What is Embedded System? Embedded System is a combination of software and hardware designed to perform a specific task. E.g. Washing Machine Traffic Signal Microwave Oven etc…
  • 3. Application Areas Of Embedded System • Electronics Applications and Consumer Devices. • Industrial Automation and Process Control. • Access Control Systems. • Security Systems. • Robotics. • Communications Applications. • Automotive and Avionics Systems. • Military and Aerospace Applications. • Bio Medical Applications etc….
  • 4. Processing Parts Of Embedded System 1: Microprocessor (μp) • Microprocessor is the Central Processing Unit. • Microprocessor is, just simply, the processor . • To make it to work it will need lots of external parts called peripherals. I.e. Microprocessor don’t have inbuilt peripherals. • Micro processor needs many external circuits to make it work. So Microprocessor based system is called System On Board (SOB )
  • 5. Processing Parts Of Embedded System cont… 2: Microcontroller (μc ) • Microcontroller is the processing part in which all the essential peripherals are integrated in a single chip • Microcontroller = Microprocessor + Peripherals • It can process as well as control. • It includes all the necessary parts in one IC. So microcontroller based system is called System On Chip (SOC)
  • 7. Microchip’s PIC • The name PIC referred to "Peripheral Interface Controller" • PIC is a family of Harvard Architecture microcontrollers made by Microchip Technology. Microchip Technology is an American manufacturer of microcontroller, memory and analog semiconductors. The company was founded in 1987. For more details log on to www.microchip.com • PICs are popular with developers and hobbyists alike.
  • 8. Why PIC • All the Peripherals are Integrated in a Single Chip • Wide Range Available • Cost Effective • Easily Available • High Speed • High Performance RISC CPU • Instruction Set Simplicity • Wide Operating Voltage Range: 2.5 – 6 V • Programmable Code Protection Mode • Power Saving Sleep Mode
  • 9. Device Structure - PIC • Core The essential part of the system. • Peripherals Peripherals are the features that add a differentiation from microprocessors. This is the interfacing units to external world. • Special features Major purpose of special features are ► Decrease system cost. ► Increase system reliability. ► Increase design flexibility.
  • 10. The PIC Family • Based on Instruction Word Length PIC can be classified into three. Instruction Word Length = OPCODE+OPERAND • Base Line (12 bit with 33 Instructions) • Mid Range (14 bit with 35 Instructions) • High End (16 bit with 58 / 77 Instructions)
  • 11. Architectures … 1:Von Neumann Architecture CPUCPU Program Memory & Data Memory • Used in: 80X86, 8051 etc… • Only one bus between CPU and memory. • Data memory and Program memory share the same bus and the same memory, and so must have the same bit width. • Time of execution high. 8
  • 12. Architectures … 2:Harvard Architecture PICs use the Harvard Architecture CPU 12 14 16 Data Memory 8 Program Memory Used mostly in RISC CPUs. Separate program bus and data bus: can be different widths. Instructions can execute in a single cycle. Time of execution is low.
  • 13. Name the PIC • Microchips Microcontroller name always Starts with PIC • Then a Number which denotes the Type/Range of that PIC • 12 : Base Line (12 bit Instruction Word) • 16 : Mid Range (14 bit Instruction Word) • 17/18 : High End (16 bit Instruction Word) • Next is an Alphabet which denotes How We Can Program the PIC • CR : PROM (OTP) • C : PROM / EPROM • F : FLASH • Last is another Number varies from PIC to PIC which denotes the internal memory, pin numbers, peripherals etc … • 73 : 28 pin IC, 8 bit ADC, 4K PM etc… • 873 : 28 pin IC, 10 bit ADC, 4K PM etc… • 877 : 40pin IC, 10 bit ADC , 8K PM etc… • 877 A : 40pin IC, 10 bit ADC , 8K PM, New Batch IC etc…
  • 14. Name Yourself …….You can  • PIC16F73 :  • PIC16F873A :  • PIC16F877 :  • PIC16F877A : 
  • 15. Instruction Set - PIC • Only 35 instructions. • RISC instruction architecture. • In PIC, Accumulator is named as Working Register (w). This is the base register of all operations. • All operations are possible only through ‘w’ • Register to register transfer is not possible. • The instruction set is highly orthogonal and is grouped into three basic categories: • Byte oriented instructions (18 nos). • Bit oriented instructions (4 nos). • Literal and control instructions (13 nos).
  • 16. Instruction Set - PIC 1. Byte oriented instructions: (18 nos) • CLRW - Clear working register. • CLRF - Clear file register • MOVFW - Move the contents of file register to working register. • MOVWF - Move the contents of working register to file register. • ADDWF - Add the contents of file register to working register. • SUBWF - Subtract working register from the file register. • ANDWF - Bit wise multiplication of working register with the file register. • IORWF - Bit wise adding of working register with the file register. • XORWF - Exclusive OR the contents of working register with the file reg: • RLF - Rotate left with carry. • RRF - Rotate right with carry. • DECF - Decrement the file registers contents. • DECFSZ - Decrement the contents of file register and skip the next instruction if zero. • INCF - Increment the file registers contents. • INCFSZ - Increment the contents of file register and skip the next instruction if zero. • COMF - 1’s complement. • SWAPF - Interchange the nibbles. • NOP - No operation.
  • 17. Instruction Set - PIC 2. Bit Oriented instructions: (4 nos) • BCF - Bit clear flag. • BSF - Bit set flag. • BTFSC - Bit test file register and skip if clear. • BTFSS - Bit test file register and skip if set.
  • 18. Instruction Set - PIC 3. Literal and control instructions: (13 nos) • MOVLW - Direct loading of working register. • ADDLW - Direct adding of working register with a constant value. • SUBLW - Direct subtraction of working register with a constant value. • ANDLW - Bit wise multiplication of working register with a constant value. • IORLW - Bit wise addition of working register with a constant value. • XORLW - Exclusive OR of working register with a constant value. • CALL XX - Call subroutine XX. • RETURN - Back to main program from the subroutine. • GOTO XX - Go to xx. • RETFIE - Return from interrupts. • RETLW - Return with literal value. • CLRWDT - Clear watchdog timer. • SLEEP - Low power consumption mode.
  • 19. Program Format LIST P=PIC16F73 ;Listing the microcontroller #INCLUDE“P16F73.INC” ;INC file CBLOCK 0X20 ;GPR address starts from 0X20 • • ;GPR Initialization • ENDC ORG 0 ;Reset Vector • • program • • • END ;Program End
  • 20. Our First Program …  • Add the contents of two registers (R1 & R2) and store the result in R3 LIST P=PIC16F73 #INCLUDE“P16F73.INC” CBLOCK 0X20 R1 R2 R3 END C ORG 0 MOVLW 0X02 MOVWF R1 MOVLW 0X03 MOVWF R2 ADDWF R1,0 MOVWF R3 END
  • 21. Do it yourself … • Subtract the contents of M1 from M2 and store the result in Y1 • Multiply the contents of X1 with X2 and store the result in X3.
  • 22. Its time to relax ….. Have a break… 
  • 23. MPLAB IDE …An Introduction • MPLAB IDE is a software program that runs on a PC, to develop applications for Microchip microcontrollers. It is called an Integrated Development Environment, or IDE, because it provides a single integrated “environment” to develop code for PIC microcontrollers. • You can download this software free of cost from Microchip’s website. (www.microchip.com)
  • 24. Most Commonly Used SFR s … • STATUS • OPTION_REG • PORTA,B,C…. & TRIS A,B,C… • ADCON0,ADCON1,ADRES • TXSTA,RCSTA,TXREG,RCREG,SPBRG • INTCON etc………..
  • 25. That’s all with the software…. Lets have some Circuit Thoughts
  • 28. Basic Circuit Requirements of PIC 1: Power Supply VDD = 5V VSS = GND
  • 29. Basic Circuit Requirements of PIC 2: Connect Oscillator (XTAL 4 or 20 MHz) to CLKI and CLKO pins Also connect two 22/33 pf capacitors with the crystal as shown below for crystal stabilization.
  • 30. Basic Circuit Requirements of PIC 3: Pull up MCLR pin with a 10k resistance to avoid master reset.
  • 31. Here is your PIC basic circuit
  • 32. SOFTWARE is ready….  HARDWARE is ready….  Its Time To Know How To Fuse The Program in PIC
  • 33. Programmers… • Parallel Programmers • Serial Programmers • USB Programmers
  • 34. How To Program The PIC
  • 35. Brief Project Lifecycle • Requirement Study • Initial Planning • Prototype development  May again go to Requirement study • Final Project Planning  Deadlines, Team/Recourses, Methods, Budget • Development  Hardware and Software • Testing and Debugging  May again go to Development • Documentation • Project Delivery
  • 36.
  • 38. We can't solve problems by using the same kind of thinking we used when we created them. So Think Different (Albert Einstein) I wish you all a very successful future….Take care svmidhu@gmail.com