26.
CCL – Configurable Custom Logic
26.1
Features
•
Glue logic for general purpose PCB design
•
4 Programmable LookUp Tables (LUTs)
•
Combinatorial Logic Functions: Any logic expression which is a function of up to three inputs.
•
Sequential Logic Functions:
Gated D Flip-Flop, JK Flip-Flop, gated D Latch, RS Latch
•
Flexible LUT Input Selection:
–
I/Os
–
Events
–
Subsequent LUT Output
–
Internal Peripherals such as
•
•
•
•
•
Clocked by system clock or other peripherals
•
Output can be connected to I/O pins or Event System
•
Optional synchronizer, filter, or edge detector available on each LUT output
•
Optional interrupt generation from each LUT output
•
–
Rising edge
–
Falling edge
–
Both edges
26.2
Overview
The Configurable Custom Logic (CCL) is a programmable logic peripheral which can be connected to the
device pins, to events, or to other internal peripherals. The CCL can serve as "glue logic" between the
device peripherals and external devices. The CCL can eliminate the need for external logic components,
and can also help the designer to overcome real-time constraints by combining core independent
peripherals to handle the most time-critical parts of the application independent of the CPU.
The CCL peripheral groups adjacent Lookup Tables (LUTs) into pairs. The LUTs in a pair can be
combined to perform specific operations. Each LUT consists of three inputs, a truth table, and a filter/
edge detector. The inputs can be individually masked.
Each LUT can generate an output as a user programmable logic expression with three inputs. The output
is generated from the inputs using combinatorial logic and can be filtered to remove spikes. The CCL can
be configured to generate an interrupt request on changes in the LUT outputs.
An optional Sequential module can be enabled. The inputs to the Sequential module are individually
controlled by two independent, adjacent LUT outputs, enabling complex waveform generation.
©
2018 Microchip Technology Inc.
Analog Comparator
Timer/Counters
USART
SPI
CCL – Configurable Custom Logic
Datasheet Preliminary
®
megaAVR
0-Series
DS40002015A-page 378
Need help?
Do you have a question about the megaAVR 0 Series and is the answer not in the manual?