Question: Plz solve both parts.Code must be typed below rather then handwritten solution Its 8051 microcontroller programs. Solve it in c or assembly language,i will surely

Plz solve both parts.Code must be typed below rather then handwritten solution
Its 8051 microcontroller programs. Solve it in c or assembly language,i will surely upvote you.
Q 1: Write a C program which sends ultrasonic waves for 1ms through P1.0 and receive its echo through P3.2. Generate an interrupt. Calculate the distance of object. Assume velocity of the wave is 10m/s. Q 2: Consider an encoder attached with a DC motor. The encoder generates 500 pulses for single revolution of the motor. These pulses are feed to microcontroller through INTO pin. It is required to measure the speed of the motor in deg/ sec. (Ctrl)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
