You are on page 1of 10

Vellore Institute of Technology

MICROPROCESSORS AND
MICROCONTROLLERS
Digital Assignment-3

Md Altamas Raza
22BCE2167
Q1. Write an 8051 ALP program to generate a pulse waveform with given duty cycle using timer.

AIM & ALGORITHM:


PROCEDURE:
CODE:

OUTPUT:

RESULT:

Thus, the pulse waveform for 25% duty cycle is generated and monitored.
Q2. Write an 8051 ALP program to generate a pulse waveform with given time-period using timer. T =
xx ms (Reg: 22BCE29xx = 06).

AIM & ALGORITHM:

CALCULATION:
PROCEDURE:
CODE:

OUTPUT:

RESULT:

Thus, the pulse waveform for a wave of time period 6ms has been generated.
Q3. Write an 8051 ALP to get the radius of sphere (8-bit) from port P1. Calculate the volume (V) and
total surface area (A). Send the following messages through UART1. “Volume of the sphere is V” “Total
surface area is A”.

AIM & ALGORITHM:

PROCEDURE:
CODE:
OUTPUT:

RESULT:

Thus, the surface area and volume of the sphere has been calculated and transmitted serially.

You might also like