Microprocessor Systems
Microprocessor Systems (E155) · Fall 2024
Seven projects on an iCE40 FPGA and an STM32 microcontroller, from a seven-segment decoder to SPI, interrupts and Wi-Fi, ending in a tilt-controlled sand simulator.

E155 at Harvey Mudd pairs an iCE40 UltraPlus FPGA with an STM32L432KC microcontroller. I wrote SystemVerilog for the FPGA and bare-metal C for the microcontroller, and debugged both with testbenches, an oscilloscope and a logic analyzer. Each lab built on the one before, and the final project put both chips to work together.
Pick a lab below to see the design, testing and results.
Labs

FPGA Bring-up & Seven-Segment Decoder
Assembling and testing the FPGA/MCU board, then a combinational SystemVerilog decoder that drives a seven-segment display from four switches, verified on every input.
Read more
Multiplexed Seven-Segment Display
Two seven-segment digits sharing one set of FPGA pins through time multiplexing, with PNP transistor drivers sized from the iCE40 datasheet.
Read more
Keypad Scanner
FPGA logic that scans a 4×4 matrix keypad, debounces it with a state machine, and shows the last two keys pressed on the multiplexed display from Lab 2.
Read more
Digital Audio Player
Bare-metal STM32 firmware that plays music through a speaker, using two hardware timers for pitch and note length, with frequency error checked across three octaves.
Read more
Motor Speed with Interrupts
Interrupt-driven quadrature decoding on an STM32 that measures motor speed and direction to within 0.05%, compared directly against a polling implementation.
Read more
IoT Temperature Sensor & Web Server
An STM32 reads a DS1722 temperature sensor through a register-level SPI driver I wrote, and serves live readings, adjustable resolution and LED control on a web page through an ESP8266.
Read more
Interactive 2D Physics Engine
A tilt-controlled sand simulator. An FPGA runs the particle physics and drives a 64×64 LED matrix in 12-bit color while an STM32 reads an accelerometer and streams the gravity direction over SPI.
Read more