Homework 6 due Nov 5
Write program for the 8051 that takes 3 rapid measurements with the sonar every time an 'M' is received on the 8051's serial port. Each measurement along with the average should be sent out over the serial port. For every data item sent, an acknowledgement 'A' must be received before the next data item can be sent. If an 'M' is received instead of an expected acknowledgement then the system is reset and new measurements are taken.
when INIT is asserted an audio pulse is emitted. When the echo is received the sonar device asserts ECHO. ECHO is held asserted by the sonar device until the INIT input is cleared.
From specs above , define the following tasks:
qWhat are the hard deadlines in your system? what are the soft deadlines? Are there any schedulability concerns?