Version 1.0, August 31, 2001, Copyright, Hugh Jack 1993-2001

22.2.3 Timers

 

· We use timers to do some or all of,

  1. - Delay turning on
  2. - Delay turning off
  3. - Accumulate time passed

 

 

 

 

 

 

· When using timers (especially retentive) we must reset values when done. The (RES) instruction does this.

 

· The timers also have timer timing bits that indicate when the accumulator value is changing.

 

· Consider the example below, Write out the values for the accumulator, enable, timer timing and the done bits.

 

 

· Repeat the last example for the timer below.

 

 

 

· Consider the example of the SLC timers given below,

 

 

 

· As an example,

 

 

· When more than one event should happen in a sequence, timers can be cascaded. This means that the end of the first timer starts the next.

 

· As an example,