Academic Program

Timer2 - Setup

Timer2 - Setup

Step 4 - Timer2 needs to be set up. Click on Timer2 under Project Resources to make the Timer2 setup appear.

timer2.png

 

Timer2 will be driven by the instruction clock, which will be set up in a future step. These selections need to be made for the TMR2 operation.

  1. Check the Enable Timer box.
  2. Set the Prescaler box to '1:1'.
  3. Set the Postscaler box to '1:16'.
  4. Set the Timer Period to '16.384 ms'.

After set up, the window will appear as below:

timer2setup2.png