Question: Write a C program for an MCS 8 0 5 1 / 2 microcontroller that will enable External Interrupt 0 , Timer 1 interrupt, and

Write a C program for an MCS 8051/2 microcontroller that will enable External Interrupt 0, Timer 1 interrupt,
and the Serial Communication interrupt. The external interrupt must occur on the falling edge. In the main
program port P1 must display 0XDE if no interrupt occurs. If the digital value on P3_2 changes from high to low
(falling edge) then the interrupt routine (handler) you must do the following: Display 0xEC for as long as the value
on P3_2 is low. While still in the interrupt routine, if the value on P3_2 go high again you must display 0x09 for
2 seconds and then return to the main program. The display should thus again indicate 0xDE. If Timer 1 rolls over, then you must invert the output level of P3.4. If the serial communication interrupts, then: If a value is received, you must load the value into a register called Received.(This is done by Received = SBUF). If a value has been transmitted successfully, then P3.5 must be switched on for 200ms and then switch off again.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!