|
The output A2.7 should be controlled by a square wave signal with Ton = 0.5s and Toff = 1.5s. The solution presented here is different from that suggested in the previous
example but produces the same trace. Here we have used a single self-starting
timer that the first group of statements program with the same time as the
period of the required signal (2 sec.). This means that the time that elapses
varies between 200 and 0 hundredths of a second. Between the values of 20 and
50, the output A2.7 should set itself to low state, while for values below 50 it
should be assume its high state.
More examples: |