This repository contains examples of bare metal source code for Timer/Counter Type D (TCD) as described in TB3212 - Getting Started with Timer/Counter Type D (TCD) document from Microchip. The repository contains an Atmel Studio Solution with multiple projects inside:
- Generating complementary driving signals: This use case shows how to configure the TCD to generate two complementary driving signals of 50 kHz frequency with 100 ns dead time (for more details, see Generating complementary driving signals).
- Controlling synchronous signals using input events: This use case shows how to configure the TCD to generate four signals with 10 kHz frequency that can be stopped when a fault signal is detected (for more details, see Controlling synchronous signals using input events).
More details and code examples on the ATTINY817 can be found at the following links:
- TB3212 - Getting Started with Timer/Counter Type D (TCD)
- ATTINY817 Product Page
- ATTINY817 Code Examples on GitHub
- ATTINY817 Project Examples in START
- Microchip Studio 7.0.2542 or newer (https://www.microchip.com/mplab/microchip-studio)
- ATtiny_DFP 1.7.330 or newer Device Pack
- ATTINY817 Xplained Mini (attiny817-xmini)