Write a PIC16F877A program that flash ON the 8-LED's connected to port-B by using two switches connected to port-D (Do & D₁) as shown in figure below, according to the following scenarios: (Hint: Use 500ms delay for each case with 4MHz frequency) 1. When Do=1 then B₁,B3,B7 are ON. 2. When Do 0 then Bo,B2, B4, B5, B6 are ON. 3. When D=1 then B4, B5, B6, B7 are ON. 4. When D₁=0 then B0,B1,B2,B3 are ON. U1 OSC1/CLION 33 OSC2/CLKOUT T 34 5 U2 20 10 35 3 18 10 - 30 -ou-un RB2 2 RA1/AN1 PA3/AN3VREF+ RA4/TOCKIC1OUT RACIANO 0RB3PGM 37 33 4 17 5 10 RB4 39 RA2/ANZ/VREF-CVREF RB5 15 39 7 14 RB6PGC 40 13 RB7/PGO RAS/AN4/SS/C2OUT + 15 RCOT1OSOTICK 10 RECANARD RE1/AN/R REZ/ANTICS ✓ MCLR/Vpp/THV RC2/CCP1 RC3/SCK/SCL RCA/SOISDA RC5/S00 RCB/TX/CK 10 RC1/T10SUCCP2 17 LED-BARGRAPH-RED RC7/RX/DT ROOPSPO RD1/PSP1 R02/PSP2 RD3/PSP3 ROUPSP4 RD5PSP5 ROOPSPO RO7/PSP7 PIC16F877A +5V R2 100R R1 100R
Write a PIC16F877A program that flash ON the 8-LED's connected to port-B by using two switches connected to port-D (Do & D₁) as shown in figure below, according to the following scenarios: (Hint: Use 500ms delay for each case with 4MHz frequency) 1. When Do=1 then B₁,B3,B7 are ON. 2. When Do 0 then Bo,B2, B4, B5, B6 are ON. 3. When D=1 then B4, B5, B6, B7 are ON. 4. When D₁=0 then B0,B1,B2,B3 are ON. U1 OSC1/CLION 33 OSC2/CLKOUT T 34 5 U2 20 10 35 3 18 10 - 30 -ou-un RB2 2 RA1/AN1 PA3/AN3VREF+ RA4/TOCKIC1OUT RACIANO 0RB3PGM 37 33 4 17 5 10 RB4 39 RA2/ANZ/VREF-CVREF RB5 15 39 7 14 RB6PGC 40 13 RB7/PGO RAS/AN4/SS/C2OUT + 15 RCOT1OSOTICK 10 RECANARD RE1/AN/R REZ/ANTICS ✓ MCLR/Vpp/THV RC2/CCP1 RC3/SCK/SCL RCA/SOISDA RC5/S00 RCB/TX/CK 10 RC1/T10SUCCP2 17 LED-BARGRAPH-RED RC7/RX/DT ROOPSPO RD1/PSP1 R02/PSP2 RD3/PSP3 ROUPSP4 RD5PSP5 ROOPSPO RO7/PSP7 PIC16F877A +5V R2 100R R1 100R
Introductory Circuit Analysis (13th Edition)
13th Edition
ISBN:9780133923605
Author:Robert L. Boylestad
Publisher:Robert L. Boylestad
Chapter1: Introduction
Section: Chapter Questions
Problem 1P: Visit your local library (at school or home) and describe the extent to which it provides literature...
Related questions
Question
100%
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Recommended textbooks for you
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:
9780133923605
Author:
Robert L. Boylestad
Publisher:
PEARSON
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning
Programmable Logic Controllers
Electrical Engineering
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:
9780133923605
Author:
Robert L. Boylestad
Publisher:
PEARSON
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning
Programmable Logic Controllers
Electrical Engineering
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education
Fundamentals of Electric Circuits
Electrical Engineering
ISBN:
9780078028229
Author:
Charles K Alexander, Matthew Sadiku
Publisher:
McGraw-Hill Education
Electric Circuits. (11th Edition)
Electrical Engineering
ISBN:
9780134746968
Author:
James W. Nilsson, Susan Riedel
Publisher:
PEARSON
Engineering Electromagnetics
Electrical Engineering
ISBN:
9780078028151
Author:
Hayt, William H. (william Hart), Jr, BUCK, John A.
Publisher:
Mcgraw-hill Education,