Getting Started with ATtiny Configurable Custom Logic (CCL)
1 min read
Summary
Configurable Custom Logic (CCL) can be found in certain Microchip tinyAVR 0-series, 1-series, and 2-series microcontroller chips.
It allows for simple to moderately complex logic, and it does it without the need for support from the processor core, making it a so-called core independent peripheral.
The CCL consists of two Lookup Tables (LUTs), each of which can map any three binary inputs into one binary output, allowing for simple 2-input or 3-input logic such as NOT, AND, OR, XOR, etc.
Each LUT output can optionally be piped through a Filter/Sync function, an Edge Detector, and a Sequencer (always from the lower numbered LUT in the pair).
It is possible to mask-out LUT inputs.
The YouTube channel of Grug Huhler has a video showing how to use the ATtiny CCL peripheral to make your own digital logic in hardware.
A good place to learn about the CCL capabilities in these tinyAVR series is Microchip Technical Brief TB3218: Getting Started with Configurable Custom Logic (CCL).