Write an Assembly language program that will produce a PWM signal with a desired average voltage.
The user selects the desired average voltage by pressing keys 1 - 4.
If the user presses 1, the average output should be 1 volt
If the user presses 2 the average output should be 2 volts
If the user presses 3 the average output should be 3 volts
If the user presses 4 the average output should be 4 volts
(Hint: use two tables of constants, one for on times and one for off times. Verify what duty cycle corresponds to every average voltage.)