32.6.3 LUT Control n
Note: The LUTCTRL[n] register is
enable-protected when CCL.CTRLA.ENABLE=
1.| Name: | LUTCTRL[n] |
| Offset: | 0x08 + n*0x04 [n=0..3] |
| Reset: | 0x00000000 |
| Property: | Local Write-Protection, Enable-Protected |
| Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
| TRUTH[7:0] | |||||||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
| LUTEO | LUTEI | LUTINV | INSEL2[3:0] | ||||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | ||
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
| INSEL1[3:0] | INSEL0[3:0] | ||||||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| EDGESEL | FILTSEL[1:0] | ||||||||
| Access | R/W | R/W | R/W | ||||||
| Reset | 0 | 0 | 0 | ||||||
Bits 31:24 – TRUTH[7:0] Truth Table
This bit field defines the output value of the truth logic as a function of the inputs IN[2:0].
Bit 22 – LUTEO LUT Event Output Enable
| Value | Description |
|---|---|
| 0 | LUT event output is disabled |
| 1 | LUT event output is enabled |
Bit 21 – LUTEI LUT Event Input Enable
| Value | Description |
|---|---|
| 0 | LUT incoming event is disabled |
| 1 | LUT incoming event is enabled |
Bit 20 – LUTINV LUT Inverted Event Input Enable
| Value | Description |
|---|---|
| 0 | Incoming event is not inverted |
| 1 | Incoming event is inverted |
Bits 8:11, 12:15, 16:19 – INSELn LUT Input n Source Selection
These bit fields select the source for LUT input n. Refer to Input Selection Multiplexer to see the specific input signals that can be connected.
| Value | Name | Description |
|---|---|---|
| 0x0 | MASK | Masked input |
| 0x1 | FEEDBACK | Feedback input source |
| 0x2 | LINK | Linked LUT input source |
| 0x3 | EVENT | Event input source |
| 0x4 | IO | I/O pin input source |
| 0x5 | AC | AC input source |
| 0x6 | TC | TC input source |
| 0x8 | TCC | TCC input source |
| 0x9 | SERCOM | SERCOM input source |
| 0xB | ASYNCEVENT | Asynchronous event input source |
| Other | — | Reserved |
Bit 7 – EDGESEL Edge Selection
| Value | Description |
|---|---|
| 0 | Edge detector is disabled |
| 1 | Edge detector is enabled |
Bits 5:4 – FILTSEL[1:0] Filter Selection
This bit field selects the LUT output filter options:
| Value | Name | Description |
|---|---|---|
| 0x0 | DISABLE | Filter disabled |
| 0x1 | SYNCH | Synchronizer enabled |
| 0x2 | FILTER | Filter enabled |
| 0x3 | — | Reserved |
