System Design
The system includes three main parts; the signal generator, the DE2 board with PCB board, and Oscilloscope. The signal generator is responsible to send pulse signal to the A/D. And the PCB board has A/D and D/A convertor and is connected with DE2 board by GPIO. The D/A is responsible to send the results to the Oscilloscope.
Algorithm Design
The experiment procedure
The input is set to be a serial of pulse signal, with amplitude 1v, frequency 0.8Hz, and pulse width 60ms. Users can use the switches on the right side to change the value of Ta and Td. When users change the value, they have to press the reset button.
The result is shown as below. We can observe that when the input rising edge happens in the watching period, it can trigger the rising edge interrupt. When it is closed to the previous output pulse, it can’t trigger any.
没有评论:
发表评论