Haoyi Chen
← All projects

EMBEDDED SOFTWARE

LPC1768 Bare-Metal System: Pac-Man on LandTiger

A Pac-Man game in C on the LPC1768 LandTiger board, built on timer interrupts, the LCD, the speaker and the CAN bus.

Pac-Man on the LandTiger board
Demo of the first stage, without ghosts.

Key contributions

  • Implemented the game on the LPC1768 (Arm Cortex-M3) in Keil µVision, first on the software debug emulator and then on the physical LandTiger board
  • Drew the maze, score, lives and 60-second countdown on the LCD, with most graphical updates running in a 50 ms RIT interrupt
  • Implemented the game rules: joystick movement with wall stops, side teleports, 240 standard pills, 6 power pills at random positions and times, a new life every 1000 points, and INT0 pause
  • Added an AI-controlled ghost with chase and frightened modes that pursues the player, flees after a power pill, and respawns 3 seconds after being eaten
  • Configured the CAN controllers to send remaining time, lives and score in a 32-bit message, and drove the speaker for sound effects and background music