I need a very simple code to solve the question. 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 Bo,B1,B2,B3 are ON. U1 OSC1/CLIGN 5 REOINT OSC2/CLKOUT RB1 35 RB2 RADIANO 107 30 RB3PGM RATANT 37 RB4 38 RAZIANZVREF-CVREF R65 RASAN3VREF+ 39 R56-PGC 40 RA4/TOCK COUT R87/PGO RASIANSS/C2OUT RCDT1050TICK 15 . REGIANSRO RCTICS/CCP2 RETANOVIR RC2/CCP1 LED-BARGRAPH-RED REZANTICS 1 CURVpp/THV RCS/SCHISCL RC4/SOSDA RCS/SDO RCB/TX/CK RC7/RDT ROOPSPO RD1/PSP1 RD2PSF2 21 RO3PSP3 RD4PSP4 RDSPSPS ROOPSP ROTIPSP PIC16F877A HI. R2 R1 100R 100R O
I need a very simple code to solve the question. 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 Bo,B1,B2,B3 are ON. U1 OSC1/CLIGN 5 REOINT OSC2/CLKOUT RB1 35 RB2 RADIANO 107 30 RB3PGM RATANT 37 RB4 38 RAZIANZVREF-CVREF R65 RASAN3VREF+ 39 R56-PGC 40 RA4/TOCK COUT R87/PGO RASIANSS/C2OUT RCDT1050TICK 15 . REGIANSRO RCTICS/CCP2 RETANOVIR RC2/CCP1 LED-BARGRAPH-RED REZANTICS 1 CURVpp/THV RCS/SCHISCL RC4/SOSDA RCS/SDO RCB/TX/CK RC7/RDT ROOPSPO RD1/PSP1 RD2PSF2 21 RO3PSP3 RD4PSP4 RDSPSPS ROOPSP ROTIPSP PIC16F877A HI. R2 R1 100R 100R O
Power System Analysis and Design (MindTap Course List)
6th Edition
ISBN:9781305632134
Author:J. Duncan Glover, Thomas Overbye, Mulukutla S. Sarma
Publisher:J. Duncan Glover, Thomas Overbye, Mulukutla S. Sarma
Chapter3: Power Transformers
Section: Chapter Questions
Problem 3.30P: Reconsider Problem 3.29. If Va,VbandVc are a negative-sequence set, how would the voltage and...
Related questions
Question
I need help

Transcribed Image Text:I need a very simple code to solve the question.
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 Bo,B1,B2,B3 are ON.
U1
OSC1/CLIGN
5
REOINT
OSC2/CLKOUT
RB1
35
RB2
RADIANO 107
30
RB3PGM
RATANT
37
RB4
38
RAZIANZVREF-CVREF
R65
RASAN3VREF+
39
R56-PGC
40
RA4/TOCK COUT
R87/PGO
RASIANSS/C2OUT
RCDT1050TICK
15
.
REGIANSRO RCTICS/CCP2
RETANOVIR
RC2/CCP1
LED-BARGRAPH-RED
REZANTICS
1 CURVpp/THV
RCS/SCHISCL
RC4/SOSDA
RCS/SDO
RCB/TX/CK
RC7/RDT
ROOPSPO
RD1/PSP1
RD2PSF2
21
RO3PSP3
RD4PSP4
RDSPSPS
ROOPSP
ROTIPSP
PIC16F877A
HI.
R2
R1
100R
100R
O
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

Power System Analysis and Design (MindTap Course …
Electrical Engineering
ISBN:
9781305632134
Author:
J. Duncan Glover, Thomas Overbye, Mulukutla S. Sarma
Publisher:
Cengage Learning

Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning

Electricity for Refrigeration, Heating, and Air C…
Mechanical Engineering
ISBN:
9781337399128
Author:
Russell E. Smith
Publisher:
Cengage Learning

Power System Analysis and Design (MindTap Course …
Electrical Engineering
ISBN:
9781305632134
Author:
J. Duncan Glover, Thomas Overbye, Mulukutla S. Sarma
Publisher:
Cengage Learning

Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning

Electricity for Refrigeration, Heating, and Air C…
Mechanical Engineering
ISBN:
9781337399128
Author:
Russell E. Smith
Publisher:
Cengage Learning

EBK ELECTRICAL WIRING RESIDENTIAL
Electrical Engineering
ISBN:
9781337516549
Author:
Simmons
Publisher:
CENGAGE LEARNING - CONSIGNMENT
