Introduction

Manchester coding is a coding technique widely used in digital telecommunication. It is a line coding in which the encoding of each data bit is either low then high, or high then low, of equal time. The encoded signal, therefore, is self-clocking, which means that the clock signal can be recovered from the encoded data.

This application note describes an approach to set up the Microchip ATtiny817 tinyAVR® 8-bit microcontroller to execute Manchester encoding with USART and Configurable Custom Logic (CCL) hardware modules.

Figure 1. Connection Diagram of Encoder

Another method of Manchester encoding is using Timer and GPIO modules. The Timer affords the time base of Manchester clock and the GPIO pin is used to generate Manchester code. In comparison, this application takes advantage of hardware resource USART and CCL, which reduce the CPU load remarkably.