# Edge Triggered One Shot Mode

The Edge Triggered One Shot modes start the timer on an edge from the external signal input, after the ON bit is set, and clear the ON bit when the timer matches the TxPR period value. The following edges will start the timer:

• Rising edge (MODE = ‘b01001)
• Falling edge (MODE = ‘b01010)
• Rising or Falling edge (MODE = ‘b01011)

If the timer is halted by clearing the ON bit, then another TMRx_ers edge is required after the ON bit is set to resume counting. Figure 1 illustrates operation in the rising edge One Shot mode.

When Edge Triggered One Shot mode is used in conjunction with the CCP, then the edge-trigger will activate the PWM drive and the PWM drive will deactivate when the timer matches the CCPRx pulse-width value and stay deactivated when the timer halts at the TxPR period count match.

Figure 1. Edge Triggered One Shot Mode Timing Diagram (MODE = ‘b01001)