SlideShare a Scribd company logo
5
Most read
6
Most read
11
Most read
PIC-18 MICROCONTROLLER
Under the Guidence of Mr. ROHITH.S
PRESENTED BY:-
1. ASHISH RANJAN (9008149020)
What is Microcontroller ?
Microcontroller
8051 PIC ARM
TYPES OF MICROCONTROLLER
Features of PIC-18 Microcontroller
 It is 8-bit Microcontroller.
 It has 16-bit Instruction sets.
 256 byte of EPROM.
 2 KB SRAM.
 32 KB Flash Memory.
 It Operates at 40 MHz Crystal Oscillator.
 It has 10-bit A/D Converter.
 It supports Instruction Pipelining.
 It is implemented with nano watt Technology
(low power consumption ).
PIN DIAGRAM OF PIC-18 MICROCONTROLLER
ARCHITECTURE OF PIC-18 MICROCONTROLLER
PIC-18 ADDRESSING MODES
 Register Direct : Use an 8-bit value to specify a data register.
Ex:- movwf 0x20,A ; the value 0x20 is register direct mode
 Immediate Mode : A value in the instruction to be used as an operand.
Ex:- addlw 0x10 ; add hex value 0x10 to WREG
movlw 0x30 ; load 0x30 into WREG
 Inherent Mode : an implied operand.
Ex:- andlw 0x3C ; the operand WREG is implied
daw ; the operand WREG is implied
 Indirect Mode : A special function register (FSRx) is used as a pointer to
the actual data register.
Ex:- movwf INDFx (where x = 0,1,2,3)
PIC-18 MEMORY ORGANIZATION
Data Memory and Program Memory are separated.
Separation of Data memory and Program memory makes possible the
the simultaneous access of data and instruction.
Data memory are used as general purpose registers or special function
registers.
On-chip Data EPROM are provided in some PIC-18 MCUs
Separation of Data Memory and Program Memory
Program
Memory
Space
PIC-18
CPU
21-bit program
address
16-bit
instruction bus
Data
Memory
Space
12-bit Register
address
8-bit Data Bus
Fig:- The PIC-18 Memory Spaces
PIC-18 DATA MEMORY
 It consist of General purpose register and Special function registers.
Both are referred to as Data Registers.
 PIC-18 has 4KB Data Memory.
 Data Memory is Divided into Banks and each Bank has 256 bytes.
 General purpose registers are used to hold dynamic data.
 Special function register are used to control the Operation of Peripheral functions.
Only on bank is active at any time.
 It implement access bank to reduce problem caused by bank switching.
 Access bank Consists of the lowest 96 bytes and the highest 160 bytes of the data
memory space.
Fig : Data Memory map for PIC-18 Device
PROGRAM MEMORY ORGANIZATION
 The program counter (PC) is 21-bit long, which enables the user program to
access up to 2MB program memory.
 After Power On it starts to execute the instruction from address 0.
 The Location 0x08 is reserved for high-priority interrupt service routine.
 The Location 0x18 is reserved for low-priority interrupt service routine.
 Up to 128 KB of Program Memory is inside the MCU chip.
 Rest Part of the program memory is located outside of the MCU chip.
Fig: Program Memory Organization for PIC-18 Device
PIC-18 PIPELINING
 The PIC18 Divide most of the instruction execution into two
stages: instruction fetch and instruction execution.
 Up to two instructions are overlapped in their execution. One instruction
is inexecution fetch stage while the second instruction is in execution stage.
 Because of pipelining, each instruction appears to take one instruction
cycle to complete.
Fetch 2
Execute 1
Fetch 4
Fetch 3
Fetch 1
Execute 2
Execute 3
Execute sub_1Fetch sub_1
Flush
TCY0 TCY1 TCY2 TCY3 TCY4 TCY5
Fig : An Example of Instruction Pipeline flow
THANK YOU…..

More Related Content

PPTX
Superposition theorem
PPTX
About SOLID STATE TRANSFORMER
PPTX
FOOT STEP POWER GENERATION
PPT
PPTX
Working principle of dc motor
PDF
Introduction to pic microcontroller
PDF
OpenGL Introduction.
PPTX
seminar on footsteps energy generation
Superposition theorem
About SOLID STATE TRANSFORMER
FOOT STEP POWER GENERATION
Working principle of dc motor
Introduction to pic microcontroller
OpenGL Introduction.
seminar on footsteps energy generation

What's hot (20)

PPTX
PIC-18 Microcontroller
DOC
PIC MICROCONTROLLERS -CLASS NOTES
PPTX
PIC Microcontrollers
PPT
Microcontroller-8051.ppt
PPTX
MICROCONTROLLER 8051- Architecture & Pin Configuration
PPTX
Architecture of 16C6X
PPTX
Pic microcontroller architecture
PPTX
ATmega32-AVR microcontrollers-Part I
PDF
8051 Microcontroller I/O ports
PDF
PPTX
register file structure of PIC controller
PPTX
AVR ATmega32
PDF
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)
PPT
ARM Micro-controller
PPT
AVR Fundamentals
PPTX
Interrupts in pic
PPTX
8051 Microcontroller ppt
PPTX
Architecture of 8051
PPTX
Digital signal processor architecture
PPTX
Msp 430 architecture module 1
PIC-18 Microcontroller
PIC MICROCONTROLLERS -CLASS NOTES
PIC Microcontrollers
Microcontroller-8051.ppt
MICROCONTROLLER 8051- Architecture & Pin Configuration
Architecture of 16C6X
Pic microcontroller architecture
ATmega32-AVR microcontrollers-Part I
8051 Microcontroller I/O ports
register file structure of PIC controller
AVR ATmega32
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)
ARM Micro-controller
AVR Fundamentals
Interrupts in pic
8051 Microcontroller ppt
Architecture of 8051
Digital signal processor architecture
Msp 430 architecture module 1
Ad

Viewers also liked (18)

PPT
MPLAB Starter Kit for PIC18F MCUs
PDF
Lecture 1 microcontroller overview
PDF
PPTX
Switches and LEDs interface to the 8051 microcontroller
PPT
Interfacing 8051 with Real World
PPTX
Micro c lab5(stepper-motor)
PPTX
Renesas RX23T Inverter Kit - Deep dive
PPTX
7 segment led interfacing with 8051
PDF
Embedded system (Chapter 2) part A
PPTX
8051 io interface
PDF
Embedded system (Chapter 1)
PPT
Being a business assistant with element14 in krakow
PPT
Chp4 introduction to the pic microcontroller copy
PPT
Interfacing LCD with 8051 Microcontroller
PPTX
Microcontroller 8051 and its interfacing
PPTX
Embedded system (Chapter 5) part 1
PDF
Embedded system (Chapter 3) io_port_programming
PPTX
Interfacing Stepper motor with 8051
MPLAB Starter Kit for PIC18F MCUs
Lecture 1 microcontroller overview
Switches and LEDs interface to the 8051 microcontroller
Interfacing 8051 with Real World
Micro c lab5(stepper-motor)
Renesas RX23T Inverter Kit - Deep dive
7 segment led interfacing with 8051
Embedded system (Chapter 2) part A
8051 io interface
Embedded system (Chapter 1)
Being a business assistant with element14 in krakow
Chp4 introduction to the pic microcontroller copy
Interfacing LCD with 8051 Microcontroller
Microcontroller 8051 and its interfacing
Embedded system (Chapter 5) part 1
Embedded system (Chapter 3) io_port_programming
Interfacing Stepper motor with 8051
Ad

Similar to Pic 18 microcontroller (20)

PPTX
Chapter 1 Introductuon to Microcontrollers_2023.pptx
PPTX
Introduction_PIC18F458_Ritula Thakur.pptx
DOC
Pic microcontrollers
PPTX
Overview of Microcontroller and ATMega32 microcontroller
PDF
8 bit microcontroller
PPT
Microchip's 16-bit and 32-bit PIC MCUs
PDF
Pic microcontroller architecture
PDF
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
PDF
Unit1 5-mpi-lecture-notes
PPTX
LPC2148 stepper motor dc motor control .pptx
PPTX
embedded system and microcontroller
PPTX
435303149-PIC-ppt microcontroller introduct
PPT
8-bit PIC Microcontrollers
PDF
MICROPROCESSORS & MICROCONTROLLERS
PPT
Introduction to-microprocessors
PDF
PIC Microcontrollers: Powering Versatile Embedded Solutions"
PPT
Introduction2_PIC.ppt
PPTX
3.TechieNest microcontrollers
PPTX
PIC 16F877 micro controller by Gaurav raikar
PPT
Introduction to nanoWatt XLP: PIC18F46J50
Chapter 1 Introductuon to Microcontrollers_2023.pptx
Introduction_PIC18F458_Ritula Thakur.pptx
Pic microcontrollers
Overview of Microcontroller and ATMega32 microcontroller
8 bit microcontroller
Microchip's 16-bit and 32-bit PIC MCUs
Pic microcontroller architecture
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
Unit1 5-mpi-lecture-notes
LPC2148 stepper motor dc motor control .pptx
embedded system and microcontroller
435303149-PIC-ppt microcontroller introduct
8-bit PIC Microcontrollers
MICROPROCESSORS & MICROCONTROLLERS
Introduction to-microprocessors
PIC Microcontrollers: Powering Versatile Embedded Solutions"
Introduction2_PIC.ppt
3.TechieNest microcontrollers
PIC 16F877 micro controller by Gaurav raikar
Introduction to nanoWatt XLP: PIC18F46J50

Recently uploaded (20)

PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PPTX
Artificial Intelligence
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
PPT
introduction to datamining and warehousing
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
Categorization of Factors Affecting Classification Algorithms Selection
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PPT
Mechanical Engineering MATERIALS Selection
PDF
III.4.1.2_The_Space_Environment.p pdffdf
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PPT
Total quality management ppt for engineering students
PDF
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
Geodesy 1.pptx...............................................
PPTX
Fundamentals of Mechanical Engineering.pptx
PPTX
UNIT 4 Total Quality Management .pptx
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
Artificial Intelligence
Automation-in-Manufacturing-Chapter-Introduction.pdf
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
introduction to datamining and warehousing
R24 SURVEYING LAB MANUAL for civil enggi
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Categorization of Factors Affecting Classification Algorithms Selection
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
Mechanical Engineering MATERIALS Selection
III.4.1.2_The_Space_Environment.p pdffdf
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
Total quality management ppt for engineering students
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Geodesy 1.pptx...............................................
Fundamentals of Mechanical Engineering.pptx
UNIT 4 Total Quality Management .pptx
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx

Pic 18 microcontroller

  • 1. PIC-18 MICROCONTROLLER Under the Guidence of Mr. ROHITH.S PRESENTED BY:- 1. ASHISH RANJAN (9008149020)
  • 4. Features of PIC-18 Microcontroller  It is 8-bit Microcontroller.  It has 16-bit Instruction sets.  256 byte of EPROM.  2 KB SRAM.  32 KB Flash Memory.  It Operates at 40 MHz Crystal Oscillator.  It has 10-bit A/D Converter.  It supports Instruction Pipelining.  It is implemented with nano watt Technology (low power consumption ).
  • 5. PIN DIAGRAM OF PIC-18 MICROCONTROLLER
  • 6. ARCHITECTURE OF PIC-18 MICROCONTROLLER
  • 7. PIC-18 ADDRESSING MODES  Register Direct : Use an 8-bit value to specify a data register. Ex:- movwf 0x20,A ; the value 0x20 is register direct mode  Immediate Mode : A value in the instruction to be used as an operand. Ex:- addlw 0x10 ; add hex value 0x10 to WREG movlw 0x30 ; load 0x30 into WREG  Inherent Mode : an implied operand. Ex:- andlw 0x3C ; the operand WREG is implied daw ; the operand WREG is implied  Indirect Mode : A special function register (FSRx) is used as a pointer to the actual data register. Ex:- movwf INDFx (where x = 0,1,2,3)
  • 8. PIC-18 MEMORY ORGANIZATION Data Memory and Program Memory are separated. Separation of Data memory and Program memory makes possible the the simultaneous access of data and instruction. Data memory are used as general purpose registers or special function registers. On-chip Data EPROM are provided in some PIC-18 MCUs
  • 9. Separation of Data Memory and Program Memory Program Memory Space PIC-18 CPU 21-bit program address 16-bit instruction bus Data Memory Space 12-bit Register address 8-bit Data Bus Fig:- The PIC-18 Memory Spaces
  • 10. PIC-18 DATA MEMORY  It consist of General purpose register and Special function registers. Both are referred to as Data Registers.  PIC-18 has 4KB Data Memory.  Data Memory is Divided into Banks and each Bank has 256 bytes.  General purpose registers are used to hold dynamic data.  Special function register are used to control the Operation of Peripheral functions. Only on bank is active at any time.  It implement access bank to reduce problem caused by bank switching.  Access bank Consists of the lowest 96 bytes and the highest 160 bytes of the data memory space.
  • 11. Fig : Data Memory map for PIC-18 Device
  • 12. PROGRAM MEMORY ORGANIZATION  The program counter (PC) is 21-bit long, which enables the user program to access up to 2MB program memory.  After Power On it starts to execute the instruction from address 0.  The Location 0x08 is reserved for high-priority interrupt service routine.  The Location 0x18 is reserved for low-priority interrupt service routine.  Up to 128 KB of Program Memory is inside the MCU chip.  Rest Part of the program memory is located outside of the MCU chip.
  • 13. Fig: Program Memory Organization for PIC-18 Device
  • 14. PIC-18 PIPELINING  The PIC18 Divide most of the instruction execution into two stages: instruction fetch and instruction execution.  Up to two instructions are overlapped in their execution. One instruction is inexecution fetch stage while the second instruction is in execution stage.  Because of pipelining, each instruction appears to take one instruction cycle to complete. Fetch 2 Execute 1 Fetch 4 Fetch 3 Fetch 1 Execute 2 Execute 3 Execute sub_1Fetch sub_1 Flush TCY0 TCY1 TCY2 TCY3 TCY4 TCY5 Fig : An Example of Instruction Pipeline flow