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,B, are ON. 2. When Do 0 then Bo,B2,B4, B5, B6 are ON. 3. When D₁=1 then B4,B,,B6,B7 are ON. 4. When D₁-0 then Bo,B1,B2,B3 are ON. U1 5 33 OSC/CLION OSC2/CLKOUT ROOINT RB1 35 RB2 20 17 RACIANO RESPOM RATANT RAZIANZ/VREF-CVREF RBS RA3/AN3/VREF+ REPOC 39 14 40 RA4/TOCK C1OUT 13 RB7/PGO 12 RASIAN/SCOUT 15 ROOT1050/TICK +5V REGIANERD REVANDVIR REZANTICS RCMT10SUCCP2 17 RC2/CCP1 LED-BARGRAPH-RED RC3SCHISCL 23 --- MCUANTV RC4/SOSDA 24 RCS/SDO RCB/TICK RC7/RXDT 25 ROOPSPO RDMPSP1 RD2PSF2 RO3PSP3 RD4PSP4 RDSPSPS PIC16F877A ROOPSP RO7/PSP7 R2 R1 100R 100R Can the expert help me solve the question in the picture
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,B, are ON. 2. When Do 0 then Bo,B2,B4, B5, B6 are ON. 3. When D₁=1 then B4,B,,B6,B7 are ON. 4. When D₁-0 then Bo,B1,B2,B3 are ON. U1 5 33 OSC/CLION OSC2/CLKOUT ROOINT RB1 35 RB2 20 17 RACIANO RESPOM RATANT RAZIANZ/VREF-CVREF RBS RA3/AN3/VREF+ REPOC 39 14 40 RA4/TOCK C1OUT 13 RB7/PGO 12 RASIAN/SCOUT 15 ROOT1050/TICK +5V REGIANERD REVANDVIR REZANTICS RCMT10SUCCP2 17 RC2/CCP1 LED-BARGRAPH-RED RC3SCHISCL 23 --- MCUANTV RC4/SOSDA 24 RCS/SDO RCB/TICK RC7/RXDT 25 ROOPSPO RDMPSP1 RD2PSF2 RO3PSP3 RD4PSP4 RDSPSPS PIC16F877A ROOPSP RO7/PSP7 R2 R1 100R 100R Can the expert help me solve the question in the picture
Delmar's Standard Textbook Of Electricity
7th Edition
ISBN:9781337900348
Author:Stephen L. Herman
Publisher:Stephen L. Herman
Chapter30: Dc Motors
Section: Chapter Questions
Problem 6RQ: What is CEMF?
Related questions
Question

Transcribed Image Text: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,B, are ON.
2. When Do 0 then Bo,B2,B4, B5, B6 are ON.
3. When D₁=1 then B4,B,,B6,B7 are ON.
4. When D₁-0 then Bo,B1,B2,B3 are ON.
U1
5
33
OSC/CLION
OSC2/CLKOUT
ROOINT
RB1
35
RB2
20
17
RACIANO
RESPOM
RATANT
RAZIANZ/VREF-CVREF
RBS
RA3/AN3/VREF+
REPOC
39
14
40
RA4/TOCK C1OUT
13
RB7/PGO
12
RASIAN/SCOUT
15
ROOT1050/TICK
+5V
REGIANERD
REVANDVIR
REZANTICS
RCMT10SUCCP2
17
RC2/CCP1
LED-BARGRAPH-RED
RC3SCHISCL
23
---
MCUANTV
RC4/SOSDA 24
RCS/SDO
RCB/TICK
RC7/RXDT
25
ROOPSPO
RDMPSP1
RD2PSF2
RO3PSP3
RD4PSP4
RDSPSPS
PIC16F877A
ROOPSP
RO7/PSP7
R2
R1
100R 100R

Transcribed Image Text:Can the expert help me solve the question in the picture
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

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

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

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