SlideShare a Scribd company logo
1 of 9
PIC MICROCONTROLLER
ARCHITECTURE
PIC microcontroller architecture
Bock diagram
Advantages
ARCHITECTURE:
 IC Microcontroller architecture is based on Harvard
architecture and supports RISC architecture
(Reduced Instruction Set Computer).
 PIC microcontroller architecture consists of
memory organization (RAM, ROM, STACK), CPU,
timers, counter, ADC, DAC, serial communication,
CCP module and I/O ports.
 PIC microcontroller also supports the protocols like
CAN, SPI, UART for interfacing with other
peripherals.
PIC MICROCONTROLLER ARCHITECTURE
BLOCK DIAGRAM
CPU (Central Processing Unit):
PIC microcontroller’s CPU consists of
1. Arithmetic logic unit (ALU)
2. Memory unit (MU)
3. Control unit (CU)
4. Accumulator
 ALU is used for arithmetic operations and for logical decisions.
 Memory is used for storing the instructions after processing.
 Control unit is used to control the internal and external peripherals
which are connected to the CPU and accumulator is used for storing
the results.
MEMORY ORGANIZATION:
 PIC microcontroller memory module consists of mainly 3 types of
memories:
1. Program memory
2. Data memory
PROGRAM MEMORY:
 It contains the written program after we burned it in
microcontroller.
 Program Counter executes commands stored in the
program memory, one after the other.
 PIC microcontroller can have 8K words x 14 bits of
Flash program memory that can be electrically
erased and reprogrammed.
 Whenever we burn program into the micro, we
erase an old program and write a new one.
DATA MEMORY:
 It is a RAM type which is used to store the data
temporarily in its registers.
 The RAM memory is classified into banks. Each
bank extends up to 7Fh (128 bytes).
 Number of banks may vary depending on the
microcontroller.
 PIC16F84 has only two banks. Banks contain
Special Function Registers (SFR) and General
Purpose Registers (GPR).
 The lower locations of each bank are reserved for
the Special Function Registers and upper locations
are for General Purpose Registers.
General Purpose Registers (GPR):
oThese registers don’t have any special function.
o These are used for general purpose for multiplying, addition or
subtraction and then storing the results in other registers.
o CPU can easily access the data in these registers.
Special Function Registers (SFR):
oThese registers are used for special purposes and they cannot
be used as normal registers.
oTheir function is set at the time of manufacturing.
o They perform the function assigned to them and user cannot
change the function of SFR.
o Three important SFRs for programming are:
1. STATUS register : It changes the bank
2. PORT registers : It assigns logic values 0 or 1 to the ports
3. TRIS registers : It is a data direction register for input and
output
DATA EEPROM:
 This memory allows storing the variables as a result
of burning the written program.
 It is readable and writable during normal operation
(over the full VDD range).
 This memory is not directly mapped in the register
file.
 It is indirectly addressed through the SFRs.
 There are six SFRs which are used to read and
write to this memory (EECON1, EECON2,
EEDATA, EEDATH, EEADR, EEADRH).
ADVANTAGES
 Small instruction set to learn.
 RISC architecture.
 Built-in oscillator with selectable speeds.
 Easy entry level, in-circuit programming plus in-
circuit debugging PIC kit units available for less
than $50.
 Inexpensive microcontrollers.
 Wide range of interfaces including I²C, SPI, USB,
USART, A/D, programmable comparators, PWM,
LIN, CAN, PSP, and Ethernet.
 Availability of processors in DIL package make
them easy to handle for hobby use.

More Related Content

What's hot

Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontrollerSiva Kumar
 
PIC 16F877A by PARTHIBAN. S.
PIC 16F877A   by PARTHIBAN. S.PIC 16F877A   by PARTHIBAN. S.
PIC 16F877A by PARTHIBAN. S.parthi_arjun
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051hello_priti
 
8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil KawareProf. Swapnil V. Kaware
 
Rom (read only memory)
Rom (read only memory)Rom (read only memory)
Rom (read only memory)Hemin Patel
 
PIC 16F877 micro controller by Gaurav raikar
PIC 16F877 micro controller by Gaurav raikarPIC 16F877 micro controller by Gaurav raikar
PIC 16F877 micro controller by Gaurav raikarGauravRaikar3
 
8051,chapter1,architecture and peripherals
8051,chapter1,architecture and peripherals8051,chapter1,architecture and peripherals
8051,chapter1,architecture and peripheralsamrutachintawar239
 
Pic 18 microcontroller
Pic 18 microcontrollerPic 18 microcontroller
Pic 18 microcontrollerAshish Ranjan
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architectureDominicHendry
 
Pic16cxx instruction set
Pic16cxx instruction setPic16cxx instruction set
Pic16cxx instruction setv Kalairajan
 
Arm instruction set
Arm instruction setArm instruction set
Arm instruction setPriyangaKR1
 
I/O port programming in 8051
I/O port programming in 8051I/O port programming in 8051
I/O port programming in 8051ssuser3a47cb
 
8051 Microcontroller Notes
8051 Microcontroller Notes8051 Microcontroller Notes
8051 Microcontroller NotesDr.YNM
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentationredwan1006066
 

What's hot (20)

Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontroller
 
PIC 16F877A by PARTHIBAN. S.
PIC 16F877A   by PARTHIBAN. S.PIC 16F877A   by PARTHIBAN. S.
PIC 16F877A by PARTHIBAN. S.
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051
 
Memory interfacing of microcontroller 8051
Memory interfacing of microcontroller 8051Memory interfacing of microcontroller 8051
Memory interfacing of microcontroller 8051
 
8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware
 
8279 PKDI
8279 PKDI8279 PKDI
8279 PKDI
 
Rom (read only memory)
Rom (read only memory)Rom (read only memory)
Rom (read only memory)
 
Interrupts in pic
Interrupts in picInterrupts in pic
Interrupts in pic
 
PIC 16F877 micro controller by Gaurav raikar
PIC 16F877 micro controller by Gaurav raikarPIC 16F877 micro controller by Gaurav raikar
PIC 16F877 micro controller by Gaurav raikar
 
8051,chapter1,architecture and peripherals
8051,chapter1,architecture and peripherals8051,chapter1,architecture and peripherals
8051,chapter1,architecture and peripherals
 
Pic 18 microcontroller
Pic 18 microcontrollerPic 18 microcontroller
Pic 18 microcontroller
 
microprocessor
 microprocessor microprocessor
microprocessor
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 
ARM Architecture
ARM ArchitectureARM Architecture
ARM Architecture
 
Pic16cxx instruction set
Pic16cxx instruction setPic16cxx instruction set
Pic16cxx instruction set
 
Arm instruction set
Arm instruction setArm instruction set
Arm instruction set
 
PIC Microcontrollers
PIC MicrocontrollersPIC Microcontrollers
PIC Microcontrollers
 
I/O port programming in 8051
I/O port programming in 8051I/O port programming in 8051
I/O port programming in 8051
 
8051 Microcontroller Notes
8051 Microcontroller Notes8051 Microcontroller Notes
8051 Microcontroller Notes
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentation
 

Similar to Pic microcontroller architecture

Overview of microcontroller and microprocessor
Overview of microcontroller and microprocessor Overview of microcontroller and microprocessor
Overview of microcontroller and microprocessor Mrunal Deshkar
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architectureJamia Hamdard
 
20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notesRavali Sunki
 
microprocessor8085 power point presentation
microprocessor8085 power point presentationmicroprocessor8085 power point presentation
microprocessor8085 power point presentationrohitkuarm5667
 
Embedded systems 101 final
Embedded systems 101 finalEmbedded systems 101 final
Embedded systems 101 finalKhalid Elmeadawy
 
PIC Introduction and explained in detailed
PIC Introduction and explained in detailedPIC Introduction and explained in detailed
PIC Introduction and explained in detailedAnkita Tiwari
 
UNIT-V (PIC16F877-Microcontrollers).pdf
UNIT-V (PIC16F877-Microcontrollers).pdfUNIT-V (PIC16F877-Microcontrollers).pdf
UNIT-V (PIC16F877-Microcontrollers).pdfdhiyasrinivasan112
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessorAnuja Gunale
 
Architecture Of TMS320C50 DSP Processor
Architecture Of TMS320C50 DSP ProcessorArchitecture Of TMS320C50 DSP Processor
Architecture Of TMS320C50 DSP ProcessorJanelle Martinez
 
20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notesManikanteswar Madala
 
Download
DownloadDownload
Downloadjaihooo
 
Microcontroller pic 16 f877 registers memory ports
Microcontroller pic 16 f877 registers memory portsMicrocontroller pic 16 f877 registers memory ports
Microcontroller pic 16 f877 registers memory portsNilesh Bhaskarrao Bahadure
 
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONSRamaPrabha24
 

Similar to Pic microcontroller architecture (20)

Overview of microcontroller and microprocessor
Overview of microcontroller and microprocessor Overview of microcontroller and microprocessor
Overview of microcontroller and microprocessor
 
LECT 2.pptx
LECT 2.pptxLECT 2.pptx
LECT 2.pptx
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 
20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes
 
microprocessor8085 power point presentation
microprocessor8085 power point presentationmicroprocessor8085 power point presentation
microprocessor8085 power point presentation
 
Embedded systems 101 final
Embedded systems 101 finalEmbedded systems 101 final
Embedded systems 101 final
 
PIC Introduction and explained in detailed
PIC Introduction and explained in detailedPIC Introduction and explained in detailed
PIC Introduction and explained in detailed
 
Microcontroller
MicrocontrollerMicrocontroller
Microcontroller
 
TMS320C5x
TMS320C5xTMS320C5x
TMS320C5x
 
UNIT-V (PIC16F877-Microcontrollers).pdf
UNIT-V (PIC16F877-Microcontrollers).pdfUNIT-V (PIC16F877-Microcontrollers).pdf
UNIT-V (PIC16F877-Microcontrollers).pdf
 
Microcontroller part 1
Microcontroller part 1Microcontroller part 1
Microcontroller part 1
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
 
Cpu
CpuCpu
Cpu
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
 
Architecture Of TMS320C50 DSP Processor
Architecture Of TMS320C50 DSP ProcessorArchitecture Of TMS320C50 DSP Processor
Architecture Of TMS320C50 DSP Processor
 
20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes
 
Download
DownloadDownload
Download
 
Microcontroller pic 16 f877 registers memory ports
Microcontroller pic 16 f877 registers memory portsMicrocontroller pic 16 f877 registers memory ports
Microcontroller pic 16 f877 registers memory ports
 
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
 
Embeded system
Embeded systemEmbeded system
Embeded system
 

More from DominicHendry (18)

Venturi meter
Venturi meterVenturi meter
Venturi meter
 
Rotameter
RotameterRotameter
Rotameter
 
Rdt
RdtRdt
Rdt
 
Part family
Part familyPart family
Part family
 
Key board interfacing with 8051
Key board interfacing with 8051Key board interfacing with 8051
Key board interfacing with 8051
 
Fms
FmsFms
Fms
 
Coding
CodingCoding
Coding
 
8051 timer and counter 1
8051 timer and counter 18051 timer and counter 1
8051 timer and counter 1
 
8051 block diagram
8051 block diagram8051 block diagram
8051 block diagram
 
Rotameter
RotameterRotameter
Rotameter
 
2 d dimensioning
2 d dimensioning2 d dimensioning
2 d dimensioning
 
Pmmc instruments
Pmmc instrumentsPmmc instruments
Pmmc instruments
 
Optical torsion meter
Optical torsion meterOptical torsion meter
Optical torsion meter
 
op amp
 op amp  op amp
op amp
 
Ic 555 timer as astable
Ic 555 timer as astableIc 555 timer as astable
Ic 555 timer as astable
 
Hydraulics circuits
Hydraulics circuitsHydraulics circuits
Hydraulics circuits
 
Friction
FrictionFriction
Friction
 
Basic principles of pneumatics
Basic principles of pneumaticsBasic principles of pneumatics
Basic principles of pneumatics
 

Recently uploaded

Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 

Pic microcontroller architecture

  • 1. PIC MICROCONTROLLER ARCHITECTURE PIC microcontroller architecture Bock diagram Advantages
  • 2. ARCHITECTURE:  IC Microcontroller architecture is based on Harvard architecture and supports RISC architecture (Reduced Instruction Set Computer).  PIC microcontroller architecture consists of memory organization (RAM, ROM, STACK), CPU, timers, counter, ADC, DAC, serial communication, CCP module and I/O ports.  PIC microcontroller also supports the protocols like CAN, SPI, UART for interfacing with other peripherals.
  • 4. CPU (Central Processing Unit): PIC microcontroller’s CPU consists of 1. Arithmetic logic unit (ALU) 2. Memory unit (MU) 3. Control unit (CU) 4. Accumulator  ALU is used for arithmetic operations and for logical decisions.  Memory is used for storing the instructions after processing.  Control unit is used to control the internal and external peripherals which are connected to the CPU and accumulator is used for storing the results. MEMORY ORGANIZATION:  PIC microcontroller memory module consists of mainly 3 types of memories: 1. Program memory 2. Data memory
  • 5. PROGRAM MEMORY:  It contains the written program after we burned it in microcontroller.  Program Counter executes commands stored in the program memory, one after the other.  PIC microcontroller can have 8K words x 14 bits of Flash program memory that can be electrically erased and reprogrammed.  Whenever we burn program into the micro, we erase an old program and write a new one.
  • 6. DATA MEMORY:  It is a RAM type which is used to store the data temporarily in its registers.  The RAM memory is classified into banks. Each bank extends up to 7Fh (128 bytes).  Number of banks may vary depending on the microcontroller.  PIC16F84 has only two banks. Banks contain Special Function Registers (SFR) and General Purpose Registers (GPR).  The lower locations of each bank are reserved for the Special Function Registers and upper locations are for General Purpose Registers.
  • 7. General Purpose Registers (GPR): oThese registers don’t have any special function. o These are used for general purpose for multiplying, addition or subtraction and then storing the results in other registers. o CPU can easily access the data in these registers. Special Function Registers (SFR): oThese registers are used for special purposes and they cannot be used as normal registers. oTheir function is set at the time of manufacturing. o They perform the function assigned to them and user cannot change the function of SFR. o Three important SFRs for programming are: 1. STATUS register : It changes the bank 2. PORT registers : It assigns logic values 0 or 1 to the ports 3. TRIS registers : It is a data direction register for input and output
  • 8. DATA EEPROM:  This memory allows storing the variables as a result of burning the written program.  It is readable and writable during normal operation (over the full VDD range).  This memory is not directly mapped in the register file.  It is indirectly addressed through the SFRs.  There are six SFRs which are used to read and write to this memory (EECON1, EECON2, EEDATA, EEDATH, EEADR, EEADRH).
  • 9. ADVANTAGES  Small instruction set to learn.  RISC architecture.  Built-in oscillator with selectable speeds.  Easy entry level, in-circuit programming plus in- circuit debugging PIC kit units available for less than $50.  Inexpensive microcontrollers.  Wide range of interfaces including I²C, SPI, USB, USART, A/D, programmable comparators, PWM, LIN, CAN, PSP, and Ethernet.  Availability of processors in DIL package make them easy to handle for hobby use.