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.
| Feature | AVR® CCL | PIC32CM CCL |
|---|---|---|
| Number of Lookup Tables (LUTs) | Up to six | Up to four |
| LUT Inputs | Three per LUT | Three 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 Routing | I/O pins, Event System | I/O pins, Event System |
| Other Features |
Synchronizer, filter, edge detector Interrupt on LUT output (rising, falling, both edges) | Synchronizer, filter, edge detector |
| Interrupt Generation | Supported | Supported |
