SlideShare a Scribd company logo
Interfacing I
Agenda
• ‘PIC16F877A’ Overview
• ‘PIC16F877A’ Pins & Ports
• Minimum Hardware
• Input & Output Devices
• Project 1 “Flasher-1”
• Project 2 “Flasher-2”
• Pull-Up & Pull-Down Resistor
• Project 3 “Button-1”
• Project 4 “High-Volt”
‘PIC16F877A Overview
• Operating Speed : 20 MHz clock input
• 3 Timers ( 1 * 16 bit --- 2 * 8 bit)
• 2 CCP Modules
• 8- channel , 10-Bit Analog to digital Converter (ADC)
• Synchronous Serial Port ( SPI & I2C)
• Universal Synchronous Asynchronous
Receiver/Transmitter (USART)
• 100,000 Erase/Write cycle Enhanced Flash
• 1000,000 Erase/Write cycle EEPROM
• In-Circuit Serial Programmer (ICSP)
‘PIC16F877A’ Pins & Ports
‘PIC16F877A Ports : PORTA
• RA0 , RA1 : Digital I/O , Analog input
• RA2 : Digital I/O , Analog input , ADC Ref- , Comparator Ref
• RA3 : Digital I/O , Analog input , ADC Ref+
• RA4 : Digital I/O , Comparator 1 output
• RA5 : Digital I/O , Analog input , SPI salve select , Comparator 2 output
PORTA : is a 6-Bit Bidirectional port
‘PIC16F877A Ports : PORTB
• RB0 : Digital I/O , External Interrupt
• RB1 : Digital I/O
• RB2 : Digital I/O
• RB3 : Digital I/O , Low voltage ICSP programming enable pin
• RB4 : Digital I/O
• RB5 : Digital I/O
• RB6 : Digital I/O , In circuit Debugger & ICSP Programming Clock
• RB7 : Digital I/O , In circuit Debugger & ICSP Programming Data
PORTB : is an 8-Bit Bidirectional port , with software weak PULL-UP
‘PIC16F877A Ports : PORTC
• RC0 : Digital I/O , TMR1 Oscillator output , TMR1 external clock input
• RC1 : Digital I/O , TMR1 Oscillator input , Capture2 input , compare2 , PWM2
• RC2 : Digital I/O , Capture 1 input , Comparator 1 output , PWM 1 output
• RC3 : Digital I/O , SPI clock , I2C clock
• RC4 : Digital I/O , SPI data in , I2C data I/O
• RC5 : Digital I/O , SPI data out
• RC6 : Digital I/O , UART transmitter , USART clock
• RC7 : Digital I/O , UART receiver , USART Data
PORTC : is an 8-Bit Bidirectional port
‘PIC16F877A Ports : PORTD
• RD0 : Digital I/O , Parallel Slave port bit 0
• RD1 : Digital I/O , Parallel Slave port bit 1
• RD2 : Digital I/O , Parallel Slave port bit 2
• RD3 : Digital I/O , Parallel Slave port bit 3
• RD4 : Digital I/O , Parallel Slave port bit 4
• RD5 : Digital I/O , Parallel Slave port bit 5
• RD6 : Digital I/O , Parallel Slave port bit 6
• RD7 : Digital I/O , Parallel Slave port bit 7
PORTD : is an 8-Bit Bidirectional port
‘PIC16F877A Ports : PORTE
• RE0 : Digital I/O , Analog input , Read control for parallel slave
• RE1 : Digital I/O , Analog input , Write control for parallel slave
• RE2 : Digital I/O , Analog input , chip select control for parallel slave
PORTE : is a 3-Bit Bidirectional port
Minimum Hardware
Input & Output Devices
Output Devices :
- LEDs
- Buzzer
- 7-Segment
- LCDs
Input Devices :
- Buttons & Switches
- Sensors
Project-1 “Flasher-1”
Make project where a LED is connected to RB0 , This LED is on for
half Second and off for another half second .
Project-2 “Flasher-1”
Make project where an 8 LED is connected To PORTB , half LED is on
for 0.5s and the other is off and After 0.5s the LED is complemented
Pull-Up & Pull-Down Resistor
Project-3 “Button-1”
LED is connected to RB0 and button to RD0 When the button is pressed the
LED complement Its Status
Project-4 “High-Volt”
220-Lamp is connected to RB0 and button to RD0 When the button is pressed
the Lamp is on for 1s then off.
Q & A

More Related Content

PDF
Digital i o
PPTX
PIC16F877A interfacing with LCD
PDF
Analog I/O in PIC16F877A
PPTX
PIC introduction + mapping
PPTX
Microcontroller lec 2
PDF
Programming with PIC microcontroller
PPT
8-bit PIC Microcontrollers
PPT
PIC 16F877A by PARTHIBAN. S.
Digital i o
PIC16F877A interfacing with LCD
Analog I/O in PIC16F877A
PIC introduction + mapping
Microcontroller lec 2
Programming with PIC microcontroller
8-bit PIC Microcontrollers
PIC 16F877A by PARTHIBAN. S.

What's hot (20)

PPTX
Pic microcontroller [autosaved] [autosaved]
PDF
174085193 pic-prgm-manual
PPT
Chapter5 dek3133
PPTX
PIC 16F877 micro controller by Gaurav raikar
PPT
PIC Microcontroller
PDF
PIC CONTROLLERS
PDF
Introduction to pic microcontroller
PPTX
Getting started with pic microcontrollers
PPTX
PIC Microcontrollers
TXT
PIC and LCD
PDF
Pic microcontrollers for_beginners
PPT
Microchip's PIC Micro Controller
PDF
Programming pic microcontrollers
PPTX
Pic 18 microcontroller
PPT
PPI-MECHATRONICS
PDF
Introduction to MPLAB IDE
PDF
An introdution to MPLAB
DOCX
Arm7 Interfacing examples
Pic microcontroller [autosaved] [autosaved]
174085193 pic-prgm-manual
Chapter5 dek3133
PIC 16F877 micro controller by Gaurav raikar
PIC Microcontroller
PIC CONTROLLERS
Introduction to pic microcontroller
Getting started with pic microcontrollers
PIC Microcontrollers
PIC and LCD
Pic microcontrollers for_beginners
Microchip's PIC Micro Controller
Programming pic microcontrollers
Pic 18 microcontroller
PPI-MECHATRONICS
Introduction to MPLAB IDE
An introdution to MPLAB
Arm7 Interfacing examples
Ad

Similar to Intrerfacing i (20)

PPT
PIC16F877A C Programming.ppt
PDF
Microcontroladores: Programación con microcontrolador PIC
PPTX
MICROCONTROLLER.pptx
PPT
INTRODUCTION TO PIC MICROCONTROLLERS 16C6X
PPTX
fdgfgsdfhgdfhdhdgjgjfjdfhsdfharyerygardh.pptx
PPTX
Introduction to PIC.pptx
PDF
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
PPT
8255 PPI (programmable Peripheral Interface) mode 0
PPT
Introduction2_PIC.ppt
PPTX
Basics Of Embedded Systems
PPTX
Unit_I.pptx
PDF
Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.pdf- MECHATRONICS-ENGGINERING
PPTX
08 ATmega328P Arduino GPIO input outpt.pptx
PPT
PICPICPICPICPICPICPICPICPICPICPICPIC .ppt
PDF
Embedded system (Chapter 3) io_port_programming
PPT
KTU_8255_Programmable Peripheral Interface
PPT
AVR Fundamentals
PDF
PIC Microcontrollers: Powering Versatile Embedded Solutions"
PPT
20ME702– MECHATRONICS -UNIT-3.ppt
PIC16F877A C Programming.ppt
Microcontroladores: Programación con microcontrolador PIC
MICROCONTROLLER.pptx
INTRODUCTION TO PIC MICROCONTROLLERS 16C6X
fdgfgsdfhgdfhdhdgjgjfjdfhsdfharyerygardh.pptx
Introduction to PIC.pptx
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
8255 PPI (programmable Peripheral Interface) mode 0
Introduction2_PIC.ppt
Basics Of Embedded Systems
Unit_I.pptx
Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.pdf- MECHATRONICS-ENGGINERING
08 ATmega328P Arduino GPIO input outpt.pptx
PICPICPICPICPICPICPICPICPICPICPICPIC .ppt
Embedded system (Chapter 3) io_port_programming
KTU_8255_Programmable Peripheral Interface
AVR Fundamentals
PIC Microcontrollers: Powering Versatile Embedded Solutions"
20ME702– MECHATRONICS -UNIT-3.ppt
Ad

Recently uploaded (20)

PPTX
Sustainable Sites - Green Building Construction
PDF
737-MAX_SRG.pdf student reference guides
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
Current and future trends in Computer Vision.pptx
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
Artificial Intelligence
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
OOP with Java - Java Introduction (Basics)
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
R24 SURVEYING LAB MANUAL for civil enggi
Sustainable Sites - Green Building Construction
737-MAX_SRG.pdf student reference guides
Embodied AI: Ushering in the Next Era of Intelligent Systems
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Current and future trends in Computer Vision.pptx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Artificial Intelligence
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Operating System & Kernel Study Guide-1 - converted.pdf
Internet of Things (IOT) - A guide to understanding
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Foundation to blockchain - A guide to Blockchain Tech
OOP with Java - Java Introduction (Basics)
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
R24 SURVEYING LAB MANUAL for civil enggi

Intrerfacing i

  • 2. Agenda • ‘PIC16F877A’ Overview • ‘PIC16F877A’ Pins & Ports • Minimum Hardware • Input & Output Devices • Project 1 “Flasher-1” • Project 2 “Flasher-2” • Pull-Up & Pull-Down Resistor • Project 3 “Button-1” • Project 4 “High-Volt”
  • 3. ‘PIC16F877A Overview • Operating Speed : 20 MHz clock input • 3 Timers ( 1 * 16 bit --- 2 * 8 bit) • 2 CCP Modules • 8- channel , 10-Bit Analog to digital Converter (ADC) • Synchronous Serial Port ( SPI & I2C) • Universal Synchronous Asynchronous Receiver/Transmitter (USART) • 100,000 Erase/Write cycle Enhanced Flash • 1000,000 Erase/Write cycle EEPROM • In-Circuit Serial Programmer (ICSP)
  • 5. ‘PIC16F877A Ports : PORTA • RA0 , RA1 : Digital I/O , Analog input • RA2 : Digital I/O , Analog input , ADC Ref- , Comparator Ref • RA3 : Digital I/O , Analog input , ADC Ref+ • RA4 : Digital I/O , Comparator 1 output • RA5 : Digital I/O , Analog input , SPI salve select , Comparator 2 output PORTA : is a 6-Bit Bidirectional port
  • 6. ‘PIC16F877A Ports : PORTB • RB0 : Digital I/O , External Interrupt • RB1 : Digital I/O • RB2 : Digital I/O • RB3 : Digital I/O , Low voltage ICSP programming enable pin • RB4 : Digital I/O • RB5 : Digital I/O • RB6 : Digital I/O , In circuit Debugger & ICSP Programming Clock • RB7 : Digital I/O , In circuit Debugger & ICSP Programming Data PORTB : is an 8-Bit Bidirectional port , with software weak PULL-UP
  • 7. ‘PIC16F877A Ports : PORTC • RC0 : Digital I/O , TMR1 Oscillator output , TMR1 external clock input • RC1 : Digital I/O , TMR1 Oscillator input , Capture2 input , compare2 , PWM2 • RC2 : Digital I/O , Capture 1 input , Comparator 1 output , PWM 1 output • RC3 : Digital I/O , SPI clock , I2C clock • RC4 : Digital I/O , SPI data in , I2C data I/O • RC5 : Digital I/O , SPI data out • RC6 : Digital I/O , UART transmitter , USART clock • RC7 : Digital I/O , UART receiver , USART Data PORTC : is an 8-Bit Bidirectional port
  • 8. ‘PIC16F877A Ports : PORTD • RD0 : Digital I/O , Parallel Slave port bit 0 • RD1 : Digital I/O , Parallel Slave port bit 1 • RD2 : Digital I/O , Parallel Slave port bit 2 • RD3 : Digital I/O , Parallel Slave port bit 3 • RD4 : Digital I/O , Parallel Slave port bit 4 • RD5 : Digital I/O , Parallel Slave port bit 5 • RD6 : Digital I/O , Parallel Slave port bit 6 • RD7 : Digital I/O , Parallel Slave port bit 7 PORTD : is an 8-Bit Bidirectional port
  • 9. ‘PIC16F877A Ports : PORTE • RE0 : Digital I/O , Analog input , Read control for parallel slave • RE1 : Digital I/O , Analog input , Write control for parallel slave • RE2 : Digital I/O , Analog input , chip select control for parallel slave PORTE : is a 3-Bit Bidirectional port
  • 11. Input & Output Devices Output Devices : - LEDs - Buzzer - 7-Segment - LCDs Input Devices : - Buttons & Switches - Sensors
  • 12. Project-1 “Flasher-1” Make project where a LED is connected to RB0 , This LED is on for half Second and off for another half second .
  • 13. Project-2 “Flasher-1” Make project where an 8 LED is connected To PORTB , half LED is on for 0.5s and the other is off and After 0.5s the LED is complemented
  • 15. Project-3 “Button-1” LED is connected to RB0 and button to RD0 When the button is pressed the LED complement Its Status
  • 16. Project-4 “High-Volt” 220-Lamp is connected to RB0 and button to RD0 When the button is pressed the Lamp is on for 1s then off.
  • 17. Q & A