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

Electric Motor Control
10th Edition
ISBN:9781133702818
Author:Herman
Publisher:Herman
Chapter22: Sequence Control
Section: Chapter Questions
Problem 6SQ: Draw a symbol for a solid-state logic element AND.
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
Electric Motor Control
Electric Motor Control
Electrical Engineering
ISBN:
9781133702818
Author:
Herman
Publisher:
CENGAGE L