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 (TCD.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 works 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 vaild 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.