Skip to content

Digital Electronics and Logic

Digital Electronics and Logic hero image

This course shows you what happens inside the microcontroller when your code runs. You will build real circuits on a breadboard, watch logic signals with LEDs, and connect every concept back to the embedded programming you will do in other courses. Whether you are about to start your first embedded course or you have already written firmware and want to understand the hardware beneath it, this is your reference. #DigitalElectronics #LogicDesign #EmbeddedFoundations

This Is Not a Prerequisite

Jump straight into embedded programming

You do not need to complete this course before starting any of our embedded programming courses. Every embedded course (ATmega328P, STM32, ESP32, RPi Pico, RTOS) is designed to be self-contained. This course exists as helpful background that will make everything else easier to understand and as a reference you can come back to when you want deeper insight into what your code is doing at the hardware level.

What You Will Learn

Binary and Number Systems

How computers represent numbers. Binary, hexadecimal, BCD, and two’s complement signed integers. Read register values in hex and understand what each bit controls.

Logic Gates and Boolean Algebra

AND, OR, NOT, NAND, NOR, XOR. Truth tables, De Morgan’s theorems, and simplification. See how bitwise C operators map directly to physical gates.

Combinational and Sequential Circuits

Multiplexers, decoders, adders, flip-flops, shift registers, and counters. These are the building blocks of every peripheral inside your MCU.

Memory, Buses, ADC/DAC, and MCU Architecture

How SRAM, Flash, and EEPROM store data. How SPI, I2C, and UART work at the wire level. How ADCs convert analog voltages to digital values. How the CPU fetches and executes your instructions.

Lessons

Lesson 1: Binary, Hex, and Number Systems

Binary, Hex, and Number Systems. Count in binary and hexadecimal, convert between bases, understand BCD and two’s complement. Learn to read MCU register values in hex and know what each bit means. Practical: Convert register values, decode GPIO configuration bits.

Lesson 2: Logic Gates and Boolean Algebra

Logic Gates and Boolean Algebra. Build AND, OR, NOT, NAND, NOR, XOR circuits with 74HC series ICs. Verify truth tables with LEDs. Apply De Morgan’s theorems and simplify Boolean expressions. Practical: Wire logic gates on a breadboard, verify outputs with LEDs.

Lesson 3: Combinational Logic Circuits

Combinational Logic: Multiplexers, Decoders, Adders. Build multiplexers, decoders, encoders, and adders from gates. Understand how these circuits form the foundation of address decoding and arithmetic in a CPU. Practical: Build a 4-to-1 mux and a 2-bit adder on a breadboard.

Lesson 4: Flip-Flops, Latches, and Registers

Flip-Flops, Latches, and Registers. Move from combinational to sequential logic. SR latches, D flip-flops, JK flip-flops, shift registers, and parallel load registers. Drive 8 LEDs from 3 MCU pins using a 74HC595. Practical: Build a shift register LED driver with the 74HC595.

Lesson 5: Counters, Timers, and Frequency Dividers

Counters, Timers, and Frequency Dividers. Build ripple and synchronous counters, up/down counters, and frequency dividers. See how the timer/counter peripherals inside your MCU work at the gate level. Practical: Build a 4-bit binary counter with LEDs, divide a clock signal.

Lesson 6: Memory: SRAM, Flash, EEPROM

Memory: SRAM, Flash, EEPROM. Understand how SRAM cells store bits, how Flash uses floating gates, and how EEPROM provides byte-level erase. Explore address buses, data buses, and memory maps. Practical: Read an MCU memory map and locate peripheral registers.

Lesson 7: Bus Architecture and Communication Interfaces

Bus Architecture and Communication Interfaces. See SPI, I2C, and UART at the signal level. Understand clock polarity, data framing, acknowledge bits, and baud rates. Parallel vs serial bus tradeoffs. Practical: Trace SPI/I2C/UART signals with a logic analyzer or oscilloscope.

Lesson 8: ADC and DAC Fundamentals

ADC and DAC Fundamentals. Learn successive approximation ADC, resolution, quantization error, and the Nyquist sampling theorem. Explore R-2R ladder DACs and PWM as a pseudo-DAC. Practical: Calculate ADC resolution and quantization error for real sensors.

Lesson 9: Introduction to Microcontroller Architecture

Introduction to Microcontroller Architecture. Von Neumann vs Harvard, the ALU, registers, stack, program counter, and interrupt vector table. Trace what happens when you write int x = 5; down to the assembly level. Practical: Map C code to assembly instructions, locate GPIO registers in memory.

Parts Kit

All the components you need for hands-on exercises across the course:

PartQuantityFirst UsedApproximate Cost
Breadboard (full-size or half-size)1Lesson 22-3 USD
Jumper wire kit1 setLesson 22-3 USD
74HC00 (quad NAND)1Lesson 20.50 USD
74HC04 (hex inverter / NOT)1Lesson 20.50 USD
74HC08 (quad AND)1Lesson 20.50 USD
74HC32 (quad OR)1Lesson 20.50 USD
74HC86 (quad XOR)1Lesson 30.50 USD
74HC595 (8-bit shift register)2Lesson 41 USD
74HC164 (8-bit shift register, serial-in parallel-out)1Lesson 40.50 USD
74HC393 (dual 4-bit binary counter)1Lesson 50.50 USD
LEDs (red or green, 5mm)10Lesson 20.50 USD
Resistors (220 ohm for LEDs)10Lesson 20.25 USD
Resistors (10K ohm for pull-ups/pull-downs)10Lesson 20.25 USD
Push buttons (tactile, through-hole)4Lesson 20.50 USD
DIP switches (4-position or 8-position)1Lesson 30.50 USD
5V power supply (USB breakout or bench supply)1Lesson 21-2 USD

Total estimated cost: 10 to 20 USD depending on supplier and shipping.

Where This Connects

Every lesson in this course maps directly to concepts you will encounter in embedded programming:

Digital Electronics ConceptWhere You Will See It
Binary and hex notationEvery register configuration in every MCU
Logic gates and bitwise opsGPIO pin masking, flag checking, peripheral configuration
Multiplexers and decodersAddress decoding, peripheral selection on buses
Flip-flops and shift registersSPI communication, LED drivers, display interfaces
Counters and timersTimer/counter peripherals (PWM, input capture, output compare)
Memory types and organizationFlash programming, SRAM variables, EEPROM storage
SPI, I2C, UART at wire levelEvery communication peripheral in your MCU
ADC and DACSensor reading, analog output, signal processing
CPU architectureUnderstanding compiler output, debugging, optimization

Embedded Programming: ATmega328P

Start here for your first embedded programming course. 8-bit AVR, direct register access, and foundational projects.

Embedded Programming: STM32

Continue here for 32-bit ARM Cortex-M programming with HAL and register-level access.

© 2021-2026 SiliconWit®. All rights reserved.