31.3.1.7 Sequencer Logic

Each LUT pair can be connected to a sequencer. The sequencer can function as either gated D flip-flop, JK flip-flop, gated D latch, or RS latch. The function is selected by writing the Sequencer Selection (SEQSEL) bit group in the Sequencer Control (CCL.SEQCTRLn) register.

The sequencer receives its input from either the LUT, filter or edge detector, depending on the configuration.

A sequencer is clocked by the same clock as the corresponding even LUT. The clock source is selected by the Clock Source (CLKSRC) bit group in the LUT n Control A (CCL.LUTnCTRLA) register.

The flip-flop output (OUT) is refreshed on the rising edge of the clock. When the even LUT is disabled, the latch is cleared asynchronously. The flip-flop Reset signal (R) is kept enabled for one clock cycle.

Gated D Flip-Flop (GDFF)

The D input is driven by the even LUT output, and the G input is driven by the odd LUT output.

Figure 31-7. Gated D Flip-Flop
Table 31-4. GDFF Characteristics
RGDOUT
1XX0
0111
0100
00XHold state (no change)

JK Flip-Flop (JK)

The J input is driven by the even LUT output, and the K input is driven by the odd LUT output.

Figure 31-8. JK Flip-Flop
Table 31-5. JK Characteristics
RJKOUT
1XX0
000Hold state (no change)
0010
0101
011Toggle

Gated D Latch (DLATCH)

The D input is driven by the even LUT output, and the G input is driven by the odd LUT output.

Figure 31-9. D Latch
Table 31-6. D Latch Characteristics
GDOUT
0XHold state (no change)
100
111

RS Latch (RS)

The S input is driven by the even LUT output, and the R input is driven by the odd LUT output.

Figure 31-10. RS Latch
Table 31-7. RS Latch Characteristics
SROUT
00Hold state (no change)
010
101
11Forbidden state