The content of this repository has been moved to https://github.com/microchip-pic-avr-examples/atmega4809-getting-started-with-ccl-studio . Additionally, a repository containing MCC generated code examples for AVR128DA48 with the same functionality can be found at https://github.com/microchip-pic-avr-examples/avr128da48-getting-started-with-ccl-mplab-mcc . This repository is obsolete and it will not be maintained.
This repository contains examples of bare metal source code for Configurable Custom Logic (CCL) as described in TB3218 document from Microchip. The repository contains an Atmel Studio Solution with multiple projects inside. Make sure you have the necessary tools:
- ATmega4809 device (recommended is evaluation board ATmega4809 X-plained PRO)
- Atmel Studio
- ATmega4809 Device Packs
The following examples are inside this repository:
- Logic AND Gate: how to use CCL to implement a simple logic AND gate
- State Decoder: how to use CCL combinational logic to detect a specific state of the external signals
- SR Latch: show how to use internal CCL sequential logic to create an SR Latch
- Manchester Encoder: demonstrates how to use CCL in combination with other peripherals to implement a Manchester encoder