2. Using Bitwise operations on LEDs

Background

Since microcontroller programming relies heavily on register access, let’s use LEDs to present an alternative way of programming via bitwise operations. This page will have no theory, just pure practical.

The connections for each of the 3 programs are LEDs with current-limiting resistors connected to Port B.

Software

The project consists of 3 projects:

  1. Cylon Eyes
  2. 8LFSR
  3. Back and forth

Full source code available at the GitHub repository.

Program 1 – Cylon Eyes
Program 2 – 8LFSR
Program 3 – Back and Forth