老外要求不能使用已有定时器,用当按钮按下计时运行3.5s,其间灯泡是亮的。以下是原文,求思路!
Please also write another program for a timer that has a “done” pulse when it times out and a running output while the timer is running. You cannot use any exiting timers, you have to make your own timer. Your timer should start with a pulse from a pushbutton and run for 3.5 seconds. While the timer is counting a lamp should be illuminated with an output at Q0.0