5.5.1 Configurable Custom Logic (CCL)

AVR and PIC32CM CCL peripherals act as programmable glue logic within the device. The CCL enables real-time, core-independent logic operations with custom combinatorial and sequential logic functions. Developers can add connections between internal peripherals, device pins, and events, reducing or eliminating the need for external logic components. Table 5-20 shows a comparison of features between AVR and PIC32CM.

Table 5-20. AVR® and PIC32CM CCL Features
FeatureAVR® CCLPIC32CM CCL
Number of Lookup Tables (LUTs)Up to sixUp to four
LUT InputsThree per LUTThree per LUT
Combinatorial Logic

Any logic expression up to three inputs

Truth table

Any logic expression up to three inputs

Truth table

Sequential Logic

Gated D flip-flop

JK flip-flop

D latch

RS latch

Gated D flip-flop

JK flip-flop

D latch

RS latch

Input Sources

I/Os, events

Internal peripherals

Subsequent LUTs

I/Os, events

Internal peripherals

Subsequent LUTs

Output RoutingI/O pins, Event SystemI/O pins, Event System
Other Features

Synchronizer, filter, edge detector

Interrupt on LUT output (rising, falling, both edges)

Synchronizer, filter, edge detector
Interrupt GenerationSupportedSupported