04/14/2023 1
Basaveshwar Engineering College (Autonomous), Bagalkot.Department of Instrumentation Technology
“PIC Microcontroller”
Seminar Guide : Prof. Santosh B. K.Presented by: Sagar S. Sarvade
USN: 2BA09IT015 Roll: 12
04/14/2023 2
Content
• What is microcontroller?• PIC microcontrollers• Features of PIC16F84• Architecture of PIC16F84
1. CPU2. status register3. memory
• INTCON register• Instruction set• Advantages & limitations
04/14/2023 3
What is a microcontroller?
• It is a computer on a single chip.
• A single chip contain processor, RAM & ROM memory, clock, & I/O control unit.
• It is also called as “system on chip”.
• Microcontrollers are designed for embedded applications.
04/14/2023 4
PIC Microcontrollers
• Peripheral Interface Controller(PIC) is a family of microcontrollers by Microchip Technology.
• Harvard architecture.• 3 types:
a. 12-bit instruction word MCUb. 14-bit instruction word MCUc. 16-bit instruction word MCU
04/14/2023 5
Features of PIC16F84:
• 14-bit instruction word• 18 pin device• 13 I/O pins• 68 bytes of RAM• 1k word of program
ROM• 64 bytes of EEPROM• One 8-bit timer• One watchdog timer
04/14/2023 6
Architecture of PIC16F84
04/14/2023 7
CPU:
• It has instruction decoder, ALU, control unit.• It has only one accumulator, called as working
register.• Supports RISC architecture.• Has 35 simple instructions.• Execution time is very less.(approx. 0.2µs)
04/14/2023 8
Status register:
• RPO: register bank select• TO: watchdog timer time-out bit• PD: power down bit• z: zero bit• DC: digital carry bit• C: carry bit
04/14/2023 9
Memory:
Program memory:• 13-bit program counter• 8 stack level of 13-bit• Reset vector &
peripheral interrupt vector.
• Only 1k memory is implemented.
• Remaining is left unimplemented
04/14/2023 10
Data memory:
• 2 register banks• Bank is selected by bit-5
of status register.• 68 bytes for general
purpose
04/14/2023 11
INTCON register:
• GIE: global interrupt enable• EEIE: EE write complete interrupt• TOIE: TMRO timer overflow interrupt• INTE: INT external interrupt• RBIE: RB port change interrupt• TOIF: TMRO overflow flag• INTF: external interrupt flag• RBIF: RB port change interrupt flag
04/14/2023 12
Instruction set:
• Only 35 instructions.• 3 types of instructions:
1. Byte-orientedEx: a) addwf f,d, b)andwf f,d. etc..
2. Bit-orientedEx: a)bcf f, b, b)bsf f, b. etc..
3. Literal & control operationsEx: a)addlw k, b)andlw k etc..
04/14/2023 13
Advantages:
• Easy to learn• Fast execution due
to RISC architecture.• Inexpensive• Wide range of
interfaces including USB, USART.
Limitations:
• Only one working register.
• Register bank switching required to access entire RAM.
04/14/2023 14
Conclusion:
• Thus PIC microcontrollers are easier to program for interfacing, & has Fast response.
• PIC microcontrollers can be used for industrial purpose.
• small and inexpensive PIC microcontrollers can be used for hobby and educational purpose.
04/14/2023 15
References:
• PIC microcontrollers by Elsevier, edition 2008• The Quintessential PIC Microcontroller by Sid
Katzen• www.microchip.com• www.slideshare.com
04/14/2023 16
Thank you….
04/14/2023 17
Any queries???
Top Related