Digital-to-Analog Converter

  1. Click View Circuit Diagram to see how the 8051 and DAC are connected in logic diagram and in block diagram.

  2. Click View Assembly Code to analyse the assembly code used for this experiment.

  3. Now according to your analysis write your code in the Assembly Code Editor.

  4. Click Check Code to verify your program against the given code.

    • If correct → a success message will appear and Start Simulation will be enabled.
    • If incorrect → you’ll be asked to review and correct your program.

  5. (Optional) You can directly copy code into editor by clicking on Use Code in View Assembly code popup.

  6. After validation, click Start Simulation to run the simulation.

  7. Observe the Ramp waveform. You can click at any point to view the values.

  8. If you want to save the generated waveform, click Download Graph. It will be stored as dac_ramp_waveform.png.

  9. If you want to save your program, click Download Assembly Code. It will be stored as dac_code.asm.

  10. Click Reset to stop the simulation, clear the editor, and reset everything to default.