SlideShare a Scribd company logo
1 of 15
Download to read offline
Lecture 3 :
Digital I/O & Small Project
Agenda
• Why PIC ??? & Why PIC16F877A
• PIC16F877A ports and Pins
• Project 1 “Flasher-1”
• Project 2 “Flasher-2”
• Pull-up & Pull-down Resistors
• Project 3 “Button-1”
• Project 4 “Button-2”
Why PIC ? & Why PIC16F877A
Why PIC ???
• PIC is a well-known Microcontroller from a big company ‘Microchip’
• Microchip produce big number of controllers with different features
• There is a lot of online tutorials on PIC family
Why PIC16F877A ??
• Big memory size
• Wide range of Peripheral
PIC16F877A Ports : PORTA
PORTA : is a 6-Bit Bidirectional port
PORTA Pins
• 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
PIC16F877A Ports : PORTB
PORTB : is an 8-Bit Bidirectional port , with software weak PULL-UP
PORTB Pins
• 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
Note :- RB4 : RB7 have interrupt on-change feature , and only pins configure as
input can cause interrupt to occar.
PIC16F877A Ports : PORTC
PORTC : is an 8-Bit Bidirectional port
PORTC Pins
• 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
PIC16F877A Ports : PORTD
PORTD : is an 8-Bit Bidirectional port
PORTD Pins
• 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
PIC16F877A Ports : PORTE
PORTE : is a 3-Bit Bidirectional port
PORTE Pins
• 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
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-2”
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 Resistors
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 “Button-2”
8 LEDs connected to PORTB and two Switches connected to RA0
and RA1. When Switch1 is pressed the LEDs shift
Right and if Switch2 is pressed the LEDs shift Left
Q & A
For more information
AZEX Team :
FB Page : https://www.facebook.com/AlAZharEXhibition
Mohamed Ali Bedair:
FB URL : https://www.facebook.com/MoahmedAliBedair
Mail : M.Bedair@Azhar.Edu.Eg

More Related Content

What's hot

Pic microcontrollers for_beginners
Pic microcontrollers for_beginnersPic microcontrollers for_beginners
Pic microcontrollers for_beginners
Praveen Chary
 

What's hot (20)

Chapter5 dek3133
Chapter5 dek3133Chapter5 dek3133
Chapter5 dek3133
 
174085193 pic-prgm-manual
174085193 pic-prgm-manual174085193 pic-prgm-manual
174085193 pic-prgm-manual
 
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
 
Getting started with pic microcontrollers
Getting started with pic microcontrollersGetting started with pic microcontrollers
Getting started with pic microcontrollers
 
PIC Microcontroller
PIC MicrocontrollerPIC Microcontroller
PIC Microcontroller
 
PIC 16F877A by PARTHIBAN. S.
PIC 16F877A   by PARTHIBAN. S.PIC 16F877A   by PARTHIBAN. S.
PIC 16F877A by PARTHIBAN. S.
 
DAC and sensor interfacing with PIC
DAC and sensor interfacing with PICDAC and sensor interfacing with PIC
DAC and sensor interfacing with PIC
 
PIC Microcontrollers
PIC MicrocontrollersPIC Microcontrollers
PIC Microcontrollers
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontroller
 
PIC CONTROLLERS
PIC CONTROLLERSPIC CONTROLLERS
PIC CONTROLLERS
 
Pic microcontrollers for_beginners
Pic microcontrollers for_beginnersPic microcontrollers for_beginners
Pic microcontrollers for_beginners
 
MICROPROCESSORS AND MICROCONTROLLERS
MICROPROCESSORS AND MICROCONTROLLERSMICROPROCESSORS AND MICROCONTROLLERS
MICROPROCESSORS AND MICROCONTROLLERS
 
PIC and LCD
PIC and LCDPIC and LCD
PIC and LCD
 
Interfacing ics for microprocessor
Interfacing ics for microprocessorInterfacing ics for microprocessor
Interfacing ics for microprocessor
 
Pic 18 microcontroller
Pic 18 microcontrollerPic 18 microcontroller
Pic 18 microcontroller
 
Programming pic microcontrollers
Programming pic microcontrollersProgramming pic microcontrollers
Programming pic microcontrollers
 
Microchip's PIC Micro Controller
Microchip's PIC Micro ControllerMicrochip's PIC Micro Controller
Microchip's PIC Micro Controller
 
Introduction to MPLAB IDE
Introduction to MPLAB IDEIntroduction to MPLAB IDE
Introduction to MPLAB IDE
 
Lec12
Lec12Lec12
Lec12
 
Presentation
PresentationPresentation
Presentation
 

Viewers also liked (12)

Chapter3.1 3-mikroprocessor
Chapter3.1 3-mikroprocessorChapter3.1 3-mikroprocessor
Chapter3.1 3-mikroprocessor
 
AIT-Tumakuru
AIT-TumakuruAIT-Tumakuru
AIT-Tumakuru
 
EMBEDDED SYSTEMS 5
EMBEDDED SYSTEMS 5EMBEDDED SYSTEMS 5
EMBEDDED SYSTEMS 5
 
Instruction Set 8085
Instruction Set 8085Instruction Set 8085
Instruction Set 8085
 
Instruction set 8085
Instruction set 8085Instruction set 8085
Instruction set 8085
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
 
I o ports.ppt
I o ports.pptI o ports.ppt
I o ports.ppt
 
Instruction set of 8085
Instruction set  of 8085Instruction set  of 8085
Instruction set of 8085
 
1327 Addressing Modes Of 8086
1327 Addressing Modes Of 80861327 Addressing Modes Of 8086
1327 Addressing Modes Of 8086
 
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSPIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
 
Embedded system (Chapter 3) io_port_programming
Embedded system (Chapter 3) io_port_programmingEmbedded system (Chapter 3) io_port_programming
Embedded system (Chapter 3) io_port_programming
 
Assembly Language Programming Of 8085
Assembly Language Programming Of 8085Assembly Language Programming Of 8085
Assembly Language Programming Of 8085
 

Similar to Digital i o

Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Mohanumar S
 
I2C And SPI Part-23
I2C And  SPI Part-23I2C And  SPI Part-23
I2C And SPI Part-23
Techvilla
 
digitalvoltmeterusing805112b2-170214173216 (1).pdf
digitalvoltmeterusing805112b2-170214173216 (1).pdfdigitalvoltmeterusing805112b2-170214173216 (1).pdf
digitalvoltmeterusing805112b2-170214173216 (1).pdf
satyamsinha37
 

Similar to Digital i o (20)

IoT Physical Devices and End Points.pdf
IoT Physical Devices and End Points.pdfIoT Physical Devices and End Points.pdf
IoT Physical Devices and End Points.pdf
 
02 Raspberry Pi GPIO Interface on Node-RED (Some correction)
02 Raspberry Pi GPIO Interface on Node-RED (Some correction)02 Raspberry Pi GPIO Interface on Node-RED (Some correction)
02 Raspberry Pi GPIO Interface on Node-RED (Some correction)
 
PPI-MECHATRONICS
PPI-MECHATRONICSPPI-MECHATRONICS
PPI-MECHATRONICS
 
PROGRAMMABLE PERIPHERAL INTERFCAE.ppt
PROGRAMMABLE PERIPHERAL INTERFCAE.pptPROGRAMMABLE PERIPHERAL INTERFCAE.ppt
PROGRAMMABLE PERIPHERAL INTERFCAE.ppt
 
20ME702– MECHATRONICS -UNIT-3.ppt
20ME702– MECHATRONICS -UNIT-3.ppt20ME702– MECHATRONICS -UNIT-3.ppt
20ME702– MECHATRONICS -UNIT-3.ppt
 
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
 
Introduction to PIC.pptx
Introduction to PIC.pptxIntroduction to PIC.pptx
Introduction to PIC.pptx
 
MECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.ppt
MECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.pptMECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.ppt
MECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.ppt
 
I2C And SPI Part-23
I2C And  SPI Part-23I2C And  SPI Part-23
I2C And SPI Part-23
 
Basics Of Embedded Systems
Basics Of Embedded SystemsBasics Of Embedded Systems
Basics Of Embedded Systems
 
Galil rio catalog
Galil rio catalogGalil rio catalog
Galil rio catalog
 
PIC18F458_Ritula Thakur.pptx.pdf
PIC18F458_Ritula Thakur.pptx.pdfPIC18F458_Ritula Thakur.pptx.pdf
PIC18F458_Ritula Thakur.pptx.pdf
 
Embedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerEmbedded systems, 8051 microcontroller
Embedded systems, 8051 microcontroller
 
DIGITAL VOLTMETER USING 8051 MICROCONTROLLER
DIGITAL VOLTMETER USING 8051 MICROCONTROLLERDIGITAL VOLTMETER USING 8051 MICROCONTROLLER
DIGITAL VOLTMETER USING 8051 MICROCONTROLLER
 
digitalvoltmeterusing805112b2-170214173216 (1).pdf
digitalvoltmeterusing805112b2-170214173216 (1).pdfdigitalvoltmeterusing805112b2-170214173216 (1).pdf
digitalvoltmeterusing805112b2-170214173216 (1).pdf
 
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
 
89 v51rd2bn
89 v51rd2bn89 v51rd2bn
89 v51rd2bn
 
Java Webinar #9: “Raspberry Pi Platform for Java Programmers”
Java Webinar #9: “Raspberry Pi Platform for Java Programmers”Java Webinar #9: “Raspberry Pi Platform for Java Programmers”
Java Webinar #9: “Raspberry Pi Platform for Java Programmers”
 
Introduction2_PIC.ppt
Introduction2_PIC.pptIntroduction2_PIC.ppt
Introduction2_PIC.ppt
 
8051 microcontroller introduction
8051 microcontroller introduction8051 microcontroller introduction
8051 microcontroller introduction
 

Recently uploaded

Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 

Digital i o

  • 1. Lecture 3 : Digital I/O & Small Project
  • 2. Agenda • Why PIC ??? & Why PIC16F877A • PIC16F877A ports and Pins • Project 1 “Flasher-1” • Project 2 “Flasher-2” • Pull-up & Pull-down Resistors • Project 3 “Button-1” • Project 4 “Button-2”
  • 3. Why PIC ? & Why PIC16F877A Why PIC ??? • PIC is a well-known Microcontroller from a big company ‘Microchip’ • Microchip produce big number of controllers with different features • There is a lot of online tutorials on PIC family Why PIC16F877A ?? • Big memory size • Wide range of Peripheral
  • 4. PIC16F877A Ports : PORTA PORTA : is a 6-Bit Bidirectional port PORTA Pins • 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
  • 5. PIC16F877A Ports : PORTB PORTB : is an 8-Bit Bidirectional port , with software weak PULL-UP PORTB Pins • 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 Note :- RB4 : RB7 have interrupt on-change feature , and only pins configure as input can cause interrupt to occar.
  • 6. PIC16F877A Ports : PORTC PORTC : is an 8-Bit Bidirectional port PORTC Pins • 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
  • 7. PIC16F877A Ports : PORTD PORTD : is an 8-Bit Bidirectional port PORTD Pins • 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
  • 8. PIC16F877A Ports : PORTE PORTE : is a 3-Bit Bidirectional port PORTE Pins • 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
  • 9. 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
  • 10. Project 2 “ Flasher-2” 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
  • 11. Pull-up & Pull-down Resistors
  • 12. Project 3 “Button-1” LED is connected to RB0 and button to RD0 When the button is pressed the LED complement Its Status
  • 13. Project 4 “Button-2” 8 LEDs connected to PORTB and two Switches connected to RA0 and RA1. When Switch1 is pressed the LEDs shift Right and if Switch2 is pressed the LEDs shift Left
  • 14. Q & A
  • 15. For more information AZEX Team : FB Page : https://www.facebook.com/AlAZharEXhibition Mohamed Ali Bedair: FB URL : https://www.facebook.com/MoahmedAliBedair Mail : M.Bedair@Azhar.Edu.Eg