Datasheet

Table Of Contents
Figure 41-5. Linked LUT Input Selection
CTRL
(ENABLE)
LUT0 SEQ 0
LUT1
CTRL
(ENABLE)
LUT2 SEQ 1
LUT3
CTRL
(ENABLE)
LUT(2n – 2) SEQ n
LUT(2n-1)
Internal Events Inputs Selection (EVENT)
Asynchronous events from the Event System can be used as input selection, as shown in the below
image. For each LUT, one event input line is available and can be selected on each LUT input. Before
enabling the event selection by writing LUTCTRLx.INSELy=EVENT, the Event System must be
configured first.
By default CCL includes an edge detector. When the event is received, an internal strobe is generated
when a rising edge is detected. The pulse duration is one GCLK_CCL clock cycle. The following steps
ensure proper operation:
1. Enable the GCLK_CCL clock.
2. Configure the Event System to route the event asynchronously.
3. Select the event input type (LUTCTRLx.INSEL).
4. If a strobe must be generated on the event input falling edge, write a '1' to the Inverted Event Input
Enable bit in LUT Control register (LUTCTRLx.INVEI) .
5. Enable the event input by writing the Event Input Enable bit in LUT Control register
(LUTCTRLx.LUTEI) to '1'.
SAM D5x/E5x Family Data Sheet
CCL – Configurable Custom Logic
© 2019 Microchip Technology Inc.
Datasheet
DS60001507E-page 1399