22.3.2.4.4 Input Modes

The user can select between 10 input modes. The selection is done by writing the Input Mode bit field (INPUTMODE) in the Input Control x register (TCDn.INPUTCTRLx).

Table 22-4.  Input Mode Description
INPUTMODE Description
0x0 Input has no action
0x1 Stop output, jump to opposite compare cycle and wait
0x2 Stop output, execute opposite compare cycle and wait
0x3 Stop output, execute opposite compare cycle while fault active
0x4 Stop all outputs, maintain frequency
0x5 Stop all outputs, execute dead time while fault active
0x6 Stop all outputs, jump to next compare cycle and wait
0x7 Stop all outputs, wait for software action
0x8 Stop output on edge, jump to next compare cycle
0x9 Stop output on edge, maintain frequency
0xA Stop output at level, maintain frequency
other Reserved

Not all input modes work in all Waveform Generation modes. Below is a table that shows what Waveform Generation modes the different input modes are valid in.

Table 22-5. Ramp Mode the Different Input Modes are Valid In
INPUTMODE One Ramp Mode Two Ramp Mode Four Ramp Mode Dual Slope Mode
0x1 Valid Valid Valid Do not use
0x2 Do not use Valid Valid Do not use
0x3 Do not use Valid Valid Do not use
0x4 Valid Valid Valid Valid
0x5 Do not use Valid Valid Do not use
0x6 Do not use Valid Valid Do not use
0x7 Valid Valid Valid Valid
0x8 Valid Valid Valid Do not use
0x9 Valid Valid Valid Do not use
0xA Valid Valid Valid Do not use

In the following sections the different Input modes are presented in detail.