Suppose you have 8 LED's connected to port-B (Bo-B7) of PIC16F877A and one switch connected to port-D (Do) as shown in figure below. Write a program code that performs a nibble (4-bits) toggling: if the switch is released then LED's (Bo to B3) are OFF and LED's (B4 to B7) are ON, while if the switch is pressed then LED's (Bo to B3) are ON and LED's (B4 to B7) are OFF. Use 300ms delay for each case with 4MHz frequency. 13 14 22 NATHON 20 U1 OSC1/CLKIN U2 33 REOINT 20 34 OSC2/CLKOUT 19 RB1 35 3 18 RB2 RADIANO debt0RB3PGM 30 4 17 37 5 10 RA1/AN1 RB4 38 RA2/ANZ/VREF-/CVREF 15 RB5 39097 RA3/AN3VREF RB6/PGC 7 14 40 RA4/TOCK/C1OUT 13 RB7/PGO RAS/ANA/SS/CZOUT 15 RCO/T1OSO/TICKI 10 11 REQIANS/RD 18 RC1/T10S/CCP2 17 10 RE1/AN/WR REZ/ANTICS MCLR/Vpp/THV RC2/CCP1 LED-BARGRAPH-RED RC3/SCK/SCL RC4/SDUSDA RC5/SDO Eng of ROSTX/CX RC7/RX/DT RDO/PSPO RD1/PSP1 RD2PSP2 RO3/PSP3 RD4/PSP4 ROS/PSP5 RD6/PSP6 RD7/PSP7 PIC16F877A +5V R1 100R Can the expert help me solve the question in the picture
Suppose you have 8 LED's connected to port-B (Bo-B7) of PIC16F877A and one switch connected to port-D (Do) as shown in figure below. Write a program code that performs a nibble (4-bits) toggling: if the switch is released then LED's (Bo to B3) are OFF and LED's (B4 to B7) are ON, while if the switch is pressed then LED's (Bo to B3) are ON and LED's (B4 to B7) are OFF. Use 300ms delay for each case with 4MHz frequency. 13 14 22 NATHON 20 U1 OSC1/CLKIN U2 33 REOINT 20 34 OSC2/CLKOUT 19 RB1 35 3 18 RB2 RADIANO debt0RB3PGM 30 4 17 37 5 10 RA1/AN1 RB4 38 RA2/ANZ/VREF-/CVREF 15 RB5 39097 RA3/AN3VREF RB6/PGC 7 14 40 RA4/TOCK/C1OUT 13 RB7/PGO RAS/ANA/SS/CZOUT 15 RCO/T1OSO/TICKI 10 11 REQIANS/RD 18 RC1/T10S/CCP2 17 10 RE1/AN/WR REZ/ANTICS MCLR/Vpp/THV RC2/CCP1 LED-BARGRAPH-RED RC3/SCK/SCL RC4/SDUSDA RC5/SDO Eng of ROSTX/CX RC7/RX/DT RDO/PSPO RD1/PSP1 RD2PSP2 RO3/PSP3 RD4/PSP4 ROS/PSP5 RD6/PSP6 RD7/PSP7 PIC16F877A +5V R1 100R Can the expert help me solve the question in the picture
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

Transcribed Image Text:Suppose you have 8 LED's connected to port-B (Bo-B7) of PIC16F877A and one switch
connected to port-D (Do) as shown in figure below. Write a program code that performs a
nibble (4-bits) toggling: if the switch is released then LED's (Bo to B3) are OFF and LED's
(B4 to B7) are ON, while if the switch is pressed then LED's (Bo to B3) are ON and LED's
(B4 to B7) are OFF. Use 300ms delay for each case with 4MHz frequency.
13
14
22 NATHON 20
U1
OSC1/CLKIN
U2
33
REOINT
20
34
OSC2/CLKOUT
19
RB1
35
3
18
RB2
RADIANO debt0RB3PGM
30
4
17
37
5
10
RA1/AN1
RB4
38
RA2/ANZ/VREF-/CVREF
15
RB5
39097
RA3/AN3VREF RB6/PGC
7
14
40
RA4/TOCK/C1OUT
13
RB7/PGO
RAS/ANA/SS/CZOUT
15
RCO/T1OSO/TICKI
10
11
REQIANS/RD
18
RC1/T10S/CCP2
17
10
RE1/AN/WR
REZ/ANTICS
MCLR/Vpp/THV
RC2/CCP1
LED-BARGRAPH-RED
RC3/SCK/SCL
RC4/SDUSDA
RC5/SDO
Eng of ROSTX/CX
RC7/RX/DT
RDO/PSPO
RD1/PSP1
RD2PSP2
RO3/PSP3
RD4/PSP4
ROS/PSP5
RD6/PSP6
RD7/PSP7
PIC16F877A
+5V
R1
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

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,