28). The diagram below shows the 8 bits of Port B of the 16F877A microcontroller connected to the 8bit D inputs of 4 X 8 bit D Flip Flops. The enable pins of each of these 8 bit Flip Flops is individually controlled by C1, C2, C3 and C4. This allows the programmer to write different 8bit data bytes to each of the 8bit D Flip Flops. which in turn drives each of the 4 X 8bit A/D converters. The A/D converters will produce an output voltage from 0 to 5 Volts which will drive each of the 4 X Voltage Controlled Oscillators (VCOs). The VCOs in turn will drive the transistors which toggle the LEDS and rates prescribed by the input data. The frequency of each VCO is given by the formula (Vin/5)x(20Hz). For a variation on Lab 7, you are required to produce a flowchart that will guide the C program for the event sequence below. You must also write the C program to load the appropriate data to toggle each LED at the required rate for each change of the input voltage: The dynamic range for an analog input to your PIC Microcontroller is declared to be 0V to 5V DC. From OV to 1V DC a Green LED will light and be toggled at a rate less than or equal to 4 Hz. For an input DC voltage greater than 1 V but less than or equal to 2 volts, a Yellow LED will light in addition to the Green LED. The yellow led will be toggled at a rate greater than 4Hz but less than or equal to 8Hz. For an input DC voltage greater than 2 V but less than or equal to 3 V, a Blue LED will light in addition to the Green and Yellow LEDs. The Blue let will be toggled at a rate that is greater than 8Hz but less than or equal to

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...
icon
Related questions
Question
28). The diagram below shows the 8 bits of Port B of the 16F877A microcontroller connected to the 8bit D inputs
of 4 X 8 bit D Flip Flops. The enable pins of each of these 8 bit Flip Flops is individually controlled by C1, C2, C3
and C4. This allows the programmer to write different 8bit data bytes to each of the 8bit D Flip Flops. which in
turn drives each of the 4 X 8bit A/D converters. The A/D converters will produce an output voltage from 0 to 5
Volts which will drive each of the 4 X Voltage Controlled Oscillators (VVCOS). The VCOS in turn will drive the
transistors which toggle the LEDS and rates prescribed by the input data. The frequency of each VCO is given by
the formula (Vin/5)x(20HZ).
.For a variation on Lab 7, you are required to produce a flowchart that will guide the C program for the event
sequence below. You must also write the C program to load the appropriate data to toggle each LED at the
required rate for each change of the input voltage:
The dynamic range for an analog input to your PIC Microcontroller is declared to be OV to 5V DC.
From 0V to 1V DC a Green LED will light and be toggled at a rate less than or equal to 4 Hz.
For an input DC voltage greater than 1 V but less than or equal to 2 volts, a Yellow LED will light in addition to
the Green LED. The yellow led will be toggled at a rate greater than 4Hz but less than or equal to 8Hz.
For an input DC voltage greater than 2 V but less than or equal to 3 V, a Blue LED will light in addition to the
Green and Yellow LEDS. The Blue let will be toggled at a rate that is greater than 8Hz but less than or equal to
12HZ.
For an input DC voltage greater than 3 V a Red LED will light in addition to the others. The Red led will be toggled
at a rate that is greater than 12HZ but less than or equal to 20HZ.
Each LED will be toggled at a rate determined by the input voltage with the upper limit of each range
determining the upper limit of the toggle rate for each LED.
As such, the toggle frequency is determined by the formula (Vin/5V) X 20HZ and the range Max. dictates the
maximum toggle rate of each LED.
Remember, only the LEDS that are legitimately on will be made to toggle at the appropriate rate.
4 X8 bit D Flip Flops
Red LED
4X8 bit A/D Converters
D1
6 Bit
Port B
ww
R5
Q1
330
Vco
R1
C4
1K
X1
Blue LED
HBits of
Port C
D2
Q2
R6
330
16F877A
VCO
R2
1K
X2
Yellow LED
D3
R7
330
Q3
VCO
R3
X3
1K
Green LED
D4
00
Q4
R8
330
VCO
R4
X4
1K
Transcribed Image Text:28). The diagram below shows the 8 bits of Port B of the 16F877A microcontroller connected to the 8bit D inputs of 4 X 8 bit D Flip Flops. The enable pins of each of these 8 bit Flip Flops is individually controlled by C1, C2, C3 and C4. This allows the programmer to write different 8bit data bytes to each of the 8bit D Flip Flops. which in turn drives each of the 4 X 8bit A/D converters. The A/D converters will produce an output voltage from 0 to 5 Volts which will drive each of the 4 X Voltage Controlled Oscillators (VVCOS). The VCOS in turn will drive the transistors which toggle the LEDS and rates prescribed by the input data. The frequency of each VCO is given by the formula (Vin/5)x(20HZ). .For a variation on Lab 7, you are required to produce a flowchart that will guide the C program for the event sequence below. You must also write the C program to load the appropriate data to toggle each LED at the required rate for each change of the input voltage: The dynamic range for an analog input to your PIC Microcontroller is declared to be OV to 5V DC. From 0V to 1V DC a Green LED will light and be toggled at a rate less than or equal to 4 Hz. For an input DC voltage greater than 1 V but less than or equal to 2 volts, a Yellow LED will light in addition to the Green LED. The yellow led will be toggled at a rate greater than 4Hz but less than or equal to 8Hz. For an input DC voltage greater than 2 V but less than or equal to 3 V, a Blue LED will light in addition to the Green and Yellow LEDS. The Blue let will be toggled at a rate that is greater than 8Hz but less than or equal to 12HZ. For an input DC voltage greater than 3 V a Red LED will light in addition to the others. The Red led will be toggled at a rate that is greater than 12HZ but less than or equal to 20HZ. Each LED will be toggled at a rate determined by the input voltage with the upper limit of each range determining the upper limit of the toggle rate for each LED. As such, the toggle frequency is determined by the formula (Vin/5V) X 20HZ and the range Max. dictates the maximum toggle rate of each LED. Remember, only the LEDS that are legitimately on will be made to toggle at the appropriate rate. 4 X8 bit D Flip Flops Red LED 4X8 bit A/D Converters D1 6 Bit Port B ww R5 Q1 330 Vco R1 C4 1K X1 Blue LED HBits of Port C D2 Q2 R6 330 16F877A VCO R2 1K X2 Yellow LED D3 R7 330 Q3 VCO R3 X3 1K Green LED D4 00 Q4 R8 330 VCO R4 X4 1K
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Latches and Flip-Flops
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Introductory Circuit Analysis (13th Edition)
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:
9780133923605
Author:
Robert L. Boylestad
Publisher:
PEARSON
Delmar's Standard Textbook Of Electricity
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Electrical Engineering
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education
Fundamentals of Electric Circuits
Fundamentals of Electric Circuits
Electrical Engineering
ISBN:
9780078028229
Author:
Charles K Alexander, Matthew Sadiku
Publisher:
McGraw-Hill Education
Electric Circuits. (11th Edition)
Electric Circuits. (11th Edition)
Electrical Engineering
ISBN:
9780134746968
Author:
James W. Nilsson, Susan Riedel
Publisher:
PEARSON
Engineering Electromagnetics
Engineering Electromagnetics
Electrical Engineering
ISBN:
9780078028151
Author:
Hayt, William H. (william Hart), Jr, BUCK, John A.
Publisher:
Mcgraw-hill Education,