Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Design of microcontrollers :::: We want to realize a prototype implementing a program that allows to manipulate the traffic lights ina crossing of two roads.
Design of microcontrollers :::: We want to realize a prototype implementing a program that allows to manipulate the traffic lights ina crossing of two roads. We have three LEDs Red Yellow, Green in each direction A and Bwhich are connected in common cathode. The anode of each LED is connected to a bit of port P asfollows: RA is connected bit YA is connected bit GA is connected bit RB is connected bit YB is connected bit GB is connected bit Give the values to be sent to port P in order to allow the following sequence: GA is ON RA and YA are OFF. RB is ON GB and YB are OFF; YA is ON RA and GA are OFF. RB is ON GB and YB are OFF; RA is ON GA and YA are OFF. GB is ON RB and YB are OFF; RA is ON GA and YA are OFF. YB is ON RB and GB are OFF; Write an assembly program in order to allow the previous sequence.Delay for RedA will be the sum of the Delay for GreenB ms the Delay for YellowB ms Choose an appropriate values to write a Delay routine The delay ms and Delay ms will be programmed using the mode of the timers T andT of the The XTALMHz and the cycle of the timers usDetermine the hexadecimal values to be loaded in the timers Modify the previous program in order to use the timers for the delay purpose The system is modified now by adding segments display DA and DB in each direction.The system will use the display of a number on the segment display. DB will be connectedto port P and DA will be connected to port P Each digit display will be for a period calledDelay The delay will replaced by the display on the segments of : Delay for Green will be display of the values to Delay for Yellow will be display of the values to a Give the sequence of values to be sent to the DA in order to show the values to b Give the sequence of values to be sent to the DB in order to show the values to c Modify the first program in order to handel lights through port P and the delay displayusing DA and DB
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started