SlideShare a Scribd company logo
PIC microcontroller
ARAFAT,MD YASIN 12-22600-3
Muneem, Muhtasim Aziz 12-22751-3
Mazumder Shovon Kumar 12-22755-3
Hasan, Md. Akik Ibn 12-22470-3
Rahman, Md. Azazur 12-22816-3
Supervised by: RETHWAN FAIZ
An Introduction to PIC Microcontrollers
- The name PIC was originally an acronym for "Programmable
Intelligent Computer".
- A PIC microcontroller is a processor with built in memory and
RAM and you can use it to control your projects.
- What this really means for you is that you have a very powerful
device that has many useful built in modules e.g.
* EEPROM.
* Timers.
* Analogue comparators.
* UART.
Introduction (cont.)
 low cost ,wide availability with high clock speed
 availability of low cost or free development tools
 Only 37 instructions to remember
 serial programming and re-programming with flash
memory capability
 Its code is extremely efficient, allowing the PIC to run
with typically less program memory than its larger
competitors
 PIC is very small and easy to implement for non-complex
problems and usually accompanies to the
microprocessors as an interface
Why PIC is popular?
Microchip PIC 16F84 Microcontroller
Below is a diagram showing the pin-outs of the PIC 16F84. We will go
through each pin, explaining what each is used for.
Microchip PIC 16F84 Microcontroller
RA0 To RA4
RA is a bidirectional port. That is, it can be
configured as an input or an output. The number
following RA is the bit number (0 to 4). So, we
have one 5-bit directional port where each bit can
be configured as Input or Output.
RB0 To RB7
RB is a second bidirectional port. It behaves in
exactly the same way as RA, except there are 8 -
bits involved.
Microchip PIC 16F84 Microcontroller
VSS And VDD
These are the power supply pins. VDD is the
positive supply, and VSS is the negative supply,
or 0V. The maximum supply voltage that you can
use is 6V, and the minimum is 2V.
OSC1/CLK IN And OSC2/CLKOUT
These pins is where we connect an external
clock, so that the microcontroller has some kind
of timing.
Microchip PIC 16F84 Microcontroller
MCLR
This pin is used to erase the memory locations
inside the PIC (i.e. when we want to re-program
it. In normal use it is connected to the positive
supply rail.
T0CK1
This is another clock input, which operates an
internal timer. It operates in isolation to the main
clock.
Microchip PIC 16F84 Microcontroller
Below is a diagram showing the pin-outs of the PIC 16F84. We will go
through each pin, explaining what each is used for.
PORT A
PORT B
The Registers
A register is a place inside the PIC that can be written to, read from
or both.
you will notice is that it is split into two - Bank 0 and Bank
1. Bank 1 is used to control the actual operation of the PIC, for
example to tell the PIC which bits of Port A are input and which
are output. Bank 0 is used to manipulate the data.
An example is as follows: Let us say we want to make one bit on
Port A high. First we need to go to Bank 1 to set the particular bit,
or pin, on Port A as an output. We then come back to Bank 0 and
send a logic 1 (bit 1) to that pin.
The Registers
The most common registers in Bank 1 we are going to use are
STATUS, TRISA and TRISB. The first allows us to come back to Bank
0, TRISA allows us to select which pins on Port A are output and
which are input, TRISB allows us to select which pins on Port B are
output and which are input. The SELECT register in Bank 0 allows us
to switch to Bank 1.
STATUS
To change from Bank 0 to Bank 1 we tell the STAUS register. We do
this by setting bit 5 of the STATUS register to 1. To switch back to
Bank 0, we set bit 5 of the STATUS register to 0. The STATUS
register is located at address 03h.
PIC Peripherals
The PIC microcontroller has many built
in peripherals and this can make using them
quite daunting at first which is why I have made
this introductory page with a summary of each
major peripheral block.
PIC Peripherals
Flash memory
This is the program storage area and gives you the most important
benefit for using a PIC microcontroller - You program the device
many times.
PIC microcontroller RAM
The PIC microcontroller RAM size is also important as it stores all
your variables and intermediate data.
Note: You can usually alter the program to use less RAM by
choosing the right variable sizes or changing how your program
works
For example don't use floating point alter it to use a different
variable type e.g. you can use long integers with fixed point
operation to avoid floating point.
PIC Peripherals
PIC microcontroller EEROM
Electrically Erasable ROM is used to store data that must be saved
between power up and power down.
This area is readable and writable and has a much longer life than
the main program store i.e. it has been designed for more
frequent use.
PIC Peripherals
I/O Ports
Input / Output ports let you communicate with the outside world so
you can control leds, LCDs or just about anything with the right
interface. You can also set them as inputs to gather information.
Pin direction
Most PIC microcontroller pins can be set as an input or and output
and this can be done on the fly e.g. for a dallas 1 wire system a pin
can be written to generate data and read at a later stage. The TRIS
register controls the I/O direction and setting a bit in this register
to zero sets the pin as output while setting it as one sets the pin
as input.
EXAMPLE
16F84A
RB0
RB1
RA0
sbit pir at RA0_bit;
sbit led at RB0_bit;
sbit buzzer at RB1_bit;
void main() {
TRISA = 0b00000001;
TRISB = 0b00000000;
while(1){
if (pir=1){
led=1;
buzzer=1;
}
else{
led=0;
buzzer=0;
}
}
}
Define Components name
if-else Statement
Loop
I/O Declaration
THANK YOU
ALL

More Related Content

What's hot

PIC Microcontrollers
PIC MicrocontrollersPIC Microcontrollers
PIC Microcontrollers
Abdullah Saghir Ahmad
 
PIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTESPIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTES
Dr.YNM
 
PIC 16F877A by PARTHIBAN. S.
PIC 16F877A   by PARTHIBAN. S.PIC 16F877A   by PARTHIBAN. S.
PIC 16F877A by PARTHIBAN. S.
parthi_arjun
 
Pic16cxx instruction set
Pic16cxx instruction setPic16cxx instruction set
Pic16cxx instruction set
v Kalairajan
 
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 microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
Jamia Hamdard
 
Architecture of 16C6X
Architecture of 16C6XArchitecture of 16C6X
Architecture of 16C6X
v Kalairajan
 
Pic full note
Pic full notePic full note
Programming pic microcontrollers
Programming pic microcontrollersProgramming pic microcontrollers
Programming pic microcontrollers
MAIYO JOSPHAT
 
Microcontroller lec 2
Microcontroller  lec 2Microcontroller  lec 2
Microcontroller lec 2
Ibrahim Reda
 
PIC-18 Microcontroller
PIC-18 MicrocontrollerPIC-18 Microcontroller
PIC-18 MicrocontrollerASHISH RANJAN
 
8-bit PIC Microcontrollers
8-bit PIC Microcontrollers8-bit PIC Microcontrollers
8-bit PIC Microcontrollers
Premier Farnell
 
PIC CONTROLLERS
PIC CONTROLLERSPIC CONTROLLERS
PIC CONTROLLERS
Tanmay Bakshi
 
EE6008 MCBSD - Introduction to PIC Micro controller
EE6008 MCBSD - Introduction to PIC Micro controller EE6008 MCBSD - Introduction to PIC Micro controller
EE6008 MCBSD - Introduction to PIC Micro controller
pavihari
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
DominicHendry
 
174085193 pic-prgm-manual
174085193 pic-prgm-manual174085193 pic-prgm-manual
174085193 pic-prgm-manual
Arun Shan
 
Pic16f84
Pic16f84Pic16f84
Pic 18 microcontroller
Pic 18 microcontrollerPic 18 microcontroller
Pic 18 microcontroller
Ashish Ranjan
 
PIC Introduction and explained in detailed
PIC Introduction and explained in detailedPIC Introduction and explained in detailed
PIC Introduction and explained in detailed
Ankita Tiwari
 

What's hot (19)

PIC Microcontrollers
PIC MicrocontrollersPIC Microcontrollers
PIC Microcontrollers
 
PIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTESPIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTES
 
PIC 16F877A by PARTHIBAN. S.
PIC 16F877A   by PARTHIBAN. S.PIC 16F877A   by PARTHIBAN. S.
PIC 16F877A by PARTHIBAN. S.
 
Pic16cxx instruction set
Pic16cxx instruction setPic16cxx instruction set
Pic16cxx instruction set
 
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 microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 
Architecture of 16C6X
Architecture of 16C6XArchitecture of 16C6X
Architecture of 16C6X
 
Pic full note
Pic full notePic full note
Pic full note
 
Programming pic microcontrollers
Programming pic microcontrollersProgramming pic microcontrollers
Programming pic microcontrollers
 
Microcontroller lec 2
Microcontroller  lec 2Microcontroller  lec 2
Microcontroller lec 2
 
PIC-18 Microcontroller
PIC-18 MicrocontrollerPIC-18 Microcontroller
PIC-18 Microcontroller
 
8-bit PIC Microcontrollers
8-bit PIC Microcontrollers8-bit PIC Microcontrollers
8-bit PIC Microcontrollers
 
PIC CONTROLLERS
PIC CONTROLLERSPIC CONTROLLERS
PIC CONTROLLERS
 
EE6008 MCBSD - Introduction to PIC Micro controller
EE6008 MCBSD - Introduction to PIC Micro controller EE6008 MCBSD - Introduction to PIC Micro controller
EE6008 MCBSD - Introduction to PIC Micro controller
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 
174085193 pic-prgm-manual
174085193 pic-prgm-manual174085193 pic-prgm-manual
174085193 pic-prgm-manual
 
Pic16f84
Pic16f84Pic16f84
Pic16f84
 
Pic 18 microcontroller
Pic 18 microcontrollerPic 18 microcontroller
Pic 18 microcontroller
 
PIC Introduction and explained in detailed
PIC Introduction and explained in detailedPIC Introduction and explained in detailed
PIC Introduction and explained in detailed
 

Viewers also liked

Microcontroleur Pic16 F84
Microcontroleur Pic16 F84Microcontroleur Pic16 F84
Microcontroleur Pic16 F84guest1e7b02
 
Microcontroleurs
MicrocontroleursMicrocontroleurs
Microcontroleurs
omar bllaouhamou
 
Microcontrôleur PIC Microchip part1/2
Microcontrôleur PIC Microchip part1/2Microcontrôleur PIC Microchip part1/2
Microcontrôleur PIC Microchip part1/2
Mohammed Lamghari
 
seminar on PIC1684
seminar on PIC1684seminar on PIC1684
seminar on PIC1684
Sagar Sarvade
 
Micocontroleur16 fxxx (1)
Micocontroleur16 fxxx (1)Micocontroleur16 fxxx (1)
Micocontroleur16 fxxx (1)
Karim Touati
 
Programmation des pic_en_c_part1
Programmation des pic_en_c_part1Programmation des pic_en_c_part1
Programmation des pic_en_c_part1oussamada
 
Pic 16f877 ..
Pic 16f877 ..Pic 16f877 ..
Pic 16f877 ..
sunprass
 
7 grafcet avec saut d'étape perceuse
7  grafcet avec saut d'étape perceuse7  grafcet avec saut d'étape perceuse
7 grafcet avec saut d'étape perceuse
omar bllaouhamou
 
9 grafcet à séquences simultanées 1 et 2
9  grafcet à séquences simultanées 1 et 29  grafcet à séquences simultanées 1 et 2
9 grafcet à séquences simultanées 1 et 2
omar bllaouhamou
 
About Corelynx
About Corelynx About Corelynx
About Corelynx
Corelynx Inc
 
Telemarkreiser 151112
Telemarkreiser 151112Telemarkreiser 151112
Telemarkreiser 151112visittelemark
 
brief presentation
brief presentationbrief presentation
brief presentationLiyi Liang
 
Discovering Scrum in Lisbon, Portugal
Discovering Scrum in Lisbon, PortugalDiscovering Scrum in Lisbon, Portugal
Discovering Scrum in Lisbon, Portugal
Peter Stevens
 
Assignment objective presentation
Assignment objective presentationAssignment objective presentation
Assignment objective presentation
declester10
 
Ncet telemarkreiser årsmøte230413
Ncet telemarkreiser årsmøte230413Ncet telemarkreiser årsmøte230413
Ncet telemarkreiser årsmøte230413visittelemark
 
What if Scrum had no Rules?
What if Scrum had no Rules?What if Scrum had no Rules?
What if Scrum had no Rules?
Peter Stevens
 
Передовая утилизация
Передовая утилизацияПередовая утилизация
Передовая утилизацияРуслан Che
 

Viewers also liked (20)

Microcontroleur Pic16 F84
Microcontroleur Pic16 F84Microcontroleur Pic16 F84
Microcontroleur Pic16 F84
 
Microcontroleurs
MicrocontroleursMicrocontroleurs
Microcontroleurs
 
Cours pics16 f877
Cours pics16 f877Cours pics16 f877
Cours pics16 f877
 
Microcontrôleur PIC Microchip part1/2
Microcontrôleur PIC Microchip part1/2Microcontrôleur PIC Microchip part1/2
Microcontrôleur PIC Microchip part1/2
 
seminar on PIC1684
seminar on PIC1684seminar on PIC1684
seminar on PIC1684
 
Micocontroleur16 fxxx (1)
Micocontroleur16 fxxx (1)Micocontroleur16 fxxx (1)
Micocontroleur16 fxxx (1)
 
Programmation des pic_en_c_part1
Programmation des pic_en_c_part1Programmation des pic_en_c_part1
Programmation des pic_en_c_part1
 
Pic 16f877 ..
Pic 16f877 ..Pic 16f877 ..
Pic 16f877 ..
 
7 grafcet avec saut d'étape perceuse
7  grafcet avec saut d'étape perceuse7  grafcet avec saut d'étape perceuse
7 grafcet avec saut d'étape perceuse
 
9 grafcet à séquences simultanées 1 et 2
9  grafcet à séquences simultanées 1 et 29  grafcet à séquences simultanées 1 et 2
9 grafcet à séquences simultanées 1 et 2
 
About Corelynx
About Corelynx About Corelynx
About Corelynx
 
Telemarkreiser 151112
Telemarkreiser 151112Telemarkreiser 151112
Telemarkreiser 151112
 
brief presentation
brief presentationbrief presentation
brief presentation
 
Media presentation
Media presentationMedia presentation
Media presentation
 
Discovering Scrum in Lisbon, Portugal
Discovering Scrum in Lisbon, PortugalDiscovering Scrum in Lisbon, Portugal
Discovering Scrum in Lisbon, Portugal
 
Assignment objective presentation
Assignment objective presentationAssignment objective presentation
Assignment objective presentation
 
Ncet telemarkreiser årsmøte230413
Ncet telemarkreiser årsmøte230413Ncet telemarkreiser årsmøte230413
Ncet telemarkreiser årsmøte230413
 
What if Scrum had no Rules?
What if Scrum had no Rules?What if Scrum had no Rules?
What if Scrum had no Rules?
 
Передовая утилизация
Передовая утилизацияПередовая утилизация
Передовая утилизация
 
Media PKn
Media PKnMedia PKn
Media PKn
 

Similar to Presentation

AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080Vivek Venugopal
 
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxINDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
MeghdeepSingh
 
Introduction to PIC.pptx
Introduction to PIC.pptxIntroduction to PIC.pptx
Introduction to PIC.pptx
Anbuselvi Mathivanan
 
Microcontroller
MicrocontrollerMicrocontroller
MicrocontrollerSpitiq
 
EMBEDDED SYSTEMS AND IOT lab manual for enginnering students
EMBEDDED SYSTEMS AND IOT lab manual for enginnering studentsEMBEDDED SYSTEMS AND IOT lab manual for enginnering students
EMBEDDED SYSTEMS AND IOT lab manual for enginnering students
eceprinter6
 
MICROPROCESSOR_Notes.pptx
MICROPROCESSOR_Notes.pptxMICROPROCESSOR_Notes.pptx
MICROPROCESSOR_Notes.pptx
Workingad
 
embedded system and microcontroller
 embedded system and microcontroller embedded system and microcontroller
embedded system and microcontroller
SHILPA Sillobhargav
 
Overview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerOverview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontroller
Rup Chowdhury
 
Micro Controller 8051 of Speedo Meter using KEIL Code
Micro Controller 8051 of Speedo Meter using KEIL CodeMicro Controller 8051 of Speedo Meter using KEIL Code
Micro Controller 8051 of Speedo Meter using KEIL CodeSunil Kumar R
 
8051 Presentation
8051 Presentation8051 Presentation
8051 Presentation
Sayan Chakraborty
 
unit-2.pptx
unit-2.pptxunit-2.pptx
unit-2.pptx
KanchanThory
 
My seminar new 28
My seminar new 28My seminar new 28
My seminar new 28rajeshkvdn
 
Ppt embedded
Ppt embeddedPpt embedded
Ppt embedded
karan bansal
 
Lecture 5-Embedde.pdf
Lecture 5-Embedde.pdfLecture 5-Embedde.pdf
Lecture 5-Embedde.pdf
BlackHunter13
 
Ee6008 mcbsd notes
Ee6008 mcbsd notesEe6008 mcbsd notes
Ee6008 mcbsd notes
vlkumashankardeekshi th
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III  The 8051 MicrocontrollersSYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III  The 8051 Microcontrollers
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
Arti Parab Academics
 
EE6008 MBSD
EE6008  MBSDEE6008  MBSD
EE6008 MBSD
rmkceteee
 
Msp 430 architecture module 1
Msp 430 architecture module 1Msp 430 architecture module 1
Msp 430 architecture module 1
SARALA T
 

Similar to Presentation (20)

AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
 
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxINDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
 
Introduction to PIC.pptx
Introduction to PIC.pptxIntroduction to PIC.pptx
Introduction to PIC.pptx
 
Microcontroller
MicrocontrollerMicrocontroller
Microcontroller
 
EMBEDDED SYSTEMS AND IOT lab manual for enginnering students
EMBEDDED SYSTEMS AND IOT lab manual for enginnering studentsEMBEDDED SYSTEMS AND IOT lab manual for enginnering students
EMBEDDED SYSTEMS AND IOT lab manual for enginnering students
 
MICROPROCESSOR_Notes.pptx
MICROPROCESSOR_Notes.pptxMICROPROCESSOR_Notes.pptx
MICROPROCESSOR_Notes.pptx
 
embedded system and microcontroller
 embedded system and microcontroller embedded system and microcontroller
embedded system and microcontroller
 
89s52 2
89s52 289s52 2
89s52 2
 
Overview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerOverview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontroller
 
Micro Controller 8051 of Speedo Meter using KEIL Code
Micro Controller 8051 of Speedo Meter using KEIL CodeMicro Controller 8051 of Speedo Meter using KEIL Code
Micro Controller 8051 of Speedo Meter using KEIL Code
 
8051 Presentation
8051 Presentation8051 Presentation
8051 Presentation
 
unit-2.pptx
unit-2.pptxunit-2.pptx
unit-2.pptx
 
My seminar new 28
My seminar new 28My seminar new 28
My seminar new 28
 
Ppt embedded
Ppt embeddedPpt embedded
Ppt embedded
 
Lecture 5-Embedde.pdf
Lecture 5-Embedde.pdfLecture 5-Embedde.pdf
Lecture 5-Embedde.pdf
 
Ee6008 mcbsd notes
Ee6008 mcbsd notesEe6008 mcbsd notes
Ee6008 mcbsd notes
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III  The 8051 MicrocontrollersSYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III  The 8051 Microcontrollers
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
 
EE6008 MBSD
EE6008  MBSDEE6008  MBSD
EE6008 MBSD
 
Msp 430 architecture module 1
Msp 430 architecture module 1Msp 430 architecture module 1
Msp 430 architecture module 1
 
Magnetic door lock
Magnetic door lockMagnetic door lock
Magnetic door lock
 

Recently uploaded

一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABSDESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
itech2017
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
Kamal Acharya
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
ChristineTorrepenida1
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Soumen Santra
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
anoopmanoharan2
 
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERSCW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
veerababupersonal22
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
heavyhaig
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 

Recently uploaded (20)

一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABSDESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
 
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERSCW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 

Presentation

  • 1. PIC microcontroller ARAFAT,MD YASIN 12-22600-3 Muneem, Muhtasim Aziz 12-22751-3 Mazumder Shovon Kumar 12-22755-3 Hasan, Md. Akik Ibn 12-22470-3 Rahman, Md. Azazur 12-22816-3 Supervised by: RETHWAN FAIZ
  • 2. An Introduction to PIC Microcontrollers - The name PIC was originally an acronym for "Programmable Intelligent Computer". - A PIC microcontroller is a processor with built in memory and RAM and you can use it to control your projects. - What this really means for you is that you have a very powerful device that has many useful built in modules e.g. * EEPROM. * Timers. * Analogue comparators. * UART.
  • 3. Introduction (cont.)  low cost ,wide availability with high clock speed  availability of low cost or free development tools  Only 37 instructions to remember  serial programming and re-programming with flash memory capability  Its code is extremely efficient, allowing the PIC to run with typically less program memory than its larger competitors  PIC is very small and easy to implement for non-complex problems and usually accompanies to the microprocessors as an interface Why PIC is popular?
  • 4. Microchip PIC 16F84 Microcontroller Below is a diagram showing the pin-outs of the PIC 16F84. We will go through each pin, explaining what each is used for.
  • 5. Microchip PIC 16F84 Microcontroller RA0 To RA4 RA is a bidirectional port. That is, it can be configured as an input or an output. The number following RA is the bit number (0 to 4). So, we have one 5-bit directional port where each bit can be configured as Input or Output. RB0 To RB7 RB is a second bidirectional port. It behaves in exactly the same way as RA, except there are 8 - bits involved.
  • 6. Microchip PIC 16F84 Microcontroller VSS And VDD These are the power supply pins. VDD is the positive supply, and VSS is the negative supply, or 0V. The maximum supply voltage that you can use is 6V, and the minimum is 2V. OSC1/CLK IN And OSC2/CLKOUT These pins is where we connect an external clock, so that the microcontroller has some kind of timing.
  • 7. Microchip PIC 16F84 Microcontroller MCLR This pin is used to erase the memory locations inside the PIC (i.e. when we want to re-program it. In normal use it is connected to the positive supply rail. T0CK1 This is another clock input, which operates an internal timer. It operates in isolation to the main clock.
  • 8. Microchip PIC 16F84 Microcontroller Below is a diagram showing the pin-outs of the PIC 16F84. We will go through each pin, explaining what each is used for. PORT A PORT B
  • 9. The Registers A register is a place inside the PIC that can be written to, read from or both. you will notice is that it is split into two - Bank 0 and Bank 1. Bank 1 is used to control the actual operation of the PIC, for example to tell the PIC which bits of Port A are input and which are output. Bank 0 is used to manipulate the data. An example is as follows: Let us say we want to make one bit on Port A high. First we need to go to Bank 1 to set the particular bit, or pin, on Port A as an output. We then come back to Bank 0 and send a logic 1 (bit 1) to that pin.
  • 10. The Registers The most common registers in Bank 1 we are going to use are STATUS, TRISA and TRISB. The first allows us to come back to Bank 0, TRISA allows us to select which pins on Port A are output and which are input, TRISB allows us to select which pins on Port B are output and which are input. The SELECT register in Bank 0 allows us to switch to Bank 1. STATUS To change from Bank 0 to Bank 1 we tell the STAUS register. We do this by setting bit 5 of the STATUS register to 1. To switch back to Bank 0, we set bit 5 of the STATUS register to 0. The STATUS register is located at address 03h.
  • 11. PIC Peripherals The PIC microcontroller has many built in peripherals and this can make using them quite daunting at first which is why I have made this introductory page with a summary of each major peripheral block.
  • 12. PIC Peripherals Flash memory This is the program storage area and gives you the most important benefit for using a PIC microcontroller - You program the device many times. PIC microcontroller RAM The PIC microcontroller RAM size is also important as it stores all your variables and intermediate data. Note: You can usually alter the program to use less RAM by choosing the right variable sizes or changing how your program works For example don't use floating point alter it to use a different variable type e.g. you can use long integers with fixed point operation to avoid floating point.
  • 13. PIC Peripherals PIC microcontroller EEROM Electrically Erasable ROM is used to store data that must be saved between power up and power down. This area is readable and writable and has a much longer life than the main program store i.e. it has been designed for more frequent use.
  • 14. PIC Peripherals I/O Ports Input / Output ports let you communicate with the outside world so you can control leds, LCDs or just about anything with the right interface. You can also set them as inputs to gather information. Pin direction Most PIC microcontroller pins can be set as an input or and output and this can be done on the fly e.g. for a dallas 1 wire system a pin can be written to generate data and read at a later stage. The TRIS register controls the I/O direction and setting a bit in this register to zero sets the pin as output while setting it as one sets the pin as input.
  • 16. sbit pir at RA0_bit; sbit led at RB0_bit; sbit buzzer at RB1_bit; void main() { TRISA = 0b00000001; TRISB = 0b00000000; while(1){ if (pir=1){ led=1; buzzer=1; } else{ led=0; buzzer=0; } } } Define Components name if-else Statement Loop I/O Declaration