English
Language : 

ATXMEGA16E5_14 Datasheet, PDF (48/147 Pages) ATMEL Corporation – 8/16-bit Atmel AVR XMEGA Microcontrollers
26. XCL – XMEGA Custom Logic Module
26.1
Features
z Two independent 8-bit timer/counter with:
z Period and compare channel for each timer/counter
z Input Capture for each timer
z Serial peripheral data length control for each timer
z Timeout support for each timer
z Timer underflow interrupt/event
z Compare match or input capture interrupt/event for each timer
z One 16-bit timer/counter by cascading two 8-bit timer/counters with:
z Period and compare channel
z Input capture
z Timeout support
z Timer underflow interrupt/event
z Compare match or input capture interrupt/event
z Programmable lookup table supporting multiple configurations:
z Two 2-input units
z One 3-input unit
z RS configuration
z Duplicate input with selectable delay on one input or output
z Connection to external I/O pins, event system or one selectable USART
z Combinatorial Logic Functions using programmable truth table:
z AND, NAND, OR, NOR, XOR, XNOR, NOT, MUX
z Sequential Logic Functions:
z D-Flip-Flop, D Latch, RS Latch
z Input sources:
z From external pins or the event system
z One input source includes selectable delay or synchronizing option
z Can be shared with selectable USART pin locations
z Outputs:
z Available on external pins or event system
z Includes selectable delay or synchronizing option
z Can override selectable USART pin locations
z Operates in active mode and all sleep modes
26.2
Overview
The XMEGA Custom Logic module (XCL) consists of two sub-units, each including 8-bit timer/counter with flexible
settings, peripheral counter working with one software selectable USART module, delay elements, glue logic with
programmable truth table and a global logic interconnect array.
The timer/counter configuration allows for two 8-bits timer/counters. Each timer/counter supports normal, compare and
input capture operation, with common flexible clock selections and event channels for each timer. By cascading the two
8-bit timer/counters, the XCL can be used as a 16-bit timer/counter.
The peripheral counter (PEC) configuration, the XCL is connected to one software selectable USART. This USART
controls the counter operation, and the PEC can optionally control the data length within the USART frame.
The glue logic configuration, the XCL implements two programmable lookup tables (LUTs). Each defines the truth table
corresponding to the logical condition between two inputs. Any combinatorial function logic is possible. The LUT inputs
can be connected to I/O pins or event system channels. If the LUT is connected to the USART0 pin locations, the data
XMEGA E5 [DATASHEET] 48
Atmel-8153I–AVR-ATxmega8E5-ATxmega16E5-ATxmega32E5_Datasheet–08/2014