Hi... i had met a problem in doing the assembly code for the ultrasonic sensor that can sense the distance and display the result in LCD. I use the proteus to simulate the circuit but the displayed result is not in my expectation. My desired result is the ultrasonic sensor can sense the distance and display the result in cm. So how should i write the assembly code for this? Hope that someone can help me solve this problem. Thank you!
The attachment is assembly code that i write:
My personal experience is that there may be differences in the working of a circuit when it is simulated and when it is physically built and run. Once you are confident about the working of the code, you may try the circuit on a breadboard.
Regards