English
Language : 

SAM4L Datasheet, PDF (957/1185 Pages) ATMEL Corporation – ATSAM ARM-based Flash MCU
ATSAM4L4/L2
36.6.2
Configuring the Lookup Table
The lookup table in each LUT unit can generate any logic expression OUT as a function of up to
four inputs, IN[3:0]. The truth table for the expression is written to the TRUTH register for the
LUT. Table 36-2 shows the truth table for LUT0. The truth table for LUTn is written to TRUTHn,
and the corresponding input and outputs will be IN[4n] to IN[4n+3] and OUTn.
Table 36-2.
IN[3]
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
Truth Table for the Lookup Table in LUT0
IN[2]
IN[1]
IN[0]
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
OUT[0]
TRUTH0[0]
TRUTH0[1]
TRUTH0[2]
TRUTH0[3]
TRUTH0[4]
TRUTH0[5]
TRUTH0[6]
TRUTH0[7]
TRUTH0[8]
TRUTH0[9]
TRUTH0[10]
TRUTH0[11]
TRUTH0[12]
TRUTH0[13]
TRUTH0[14]
TRUTH0[15]
36.6.3
Output Filter
By default, the output OUTn is a combinatorial function of the inputs IN[4n] to IN[4n+3]. This may
cause some short glitches to occur when the inputs change value.
It is also possible to clock the output through a filter to remove glitches. This requires that the
corresponding generic clock (GCLK) has been enabled before use. The filter can then be
enabled by writing a one to the Filter Enable (FILTEN) bit in CRn. The OUTn output will be
delayed by three to four GCLK cycles when the filter is enabled.
42023C–SAM–02/2013
957