Git Product home page Git Product logo

assembly-mem_game's Introduction

Memory Game

Written in 8051 Assembly - Implemented on $u$-processor

Contents

General

This project was done during course ELEC 291 at UBC (University of British Columbia) in February 2022. The project is written completely in 8051 Assembly for the AT89LP 40 DIP u-processor.

Features:

  • All project code and functions written in 8051 Assembly
  • Capacitance sensors using 555-timers A-stable oscillators. U-processors detect touch by detecting change in period do to hand capacitance
  • Monotone .WAV files loaded onto RAM, played through the 8051 internal DAC into a onboard LPF and Amp

Project Challenges:

  • Low-level assembly code writing requires great understanding of HW/SW interface. Initializing different internal clock, SPI hardware, DAC, LED screens, and configuring interrupts.
  • Writing a multi-state game in low-level assembly is extremely long and complicated. Debugging tools are non-existent and the process is long

Hardware and Software Diagrams

Game Rules:

  • Press the "game start" button to start the game
  • Listen to the sequence of sounds that come out of the speakers (Cow, Frog, Sheep or DJ-Khaled sounds)
  • Wait for the screen to show the “Start Round” message
  • Press the sensors in the same order as the sounds were played (Cow, Frog, Sheep or DJ-Khaled sensors)
  • If you are successful in replicating the chain: you get to proceed to the next level and another sound is added to the chain.
  • If you are unsuccessful in replicating the chain: it is game over for you.
  • If you pass level 15 - you win the game!
  • You can press the start game

State Diagram

Assembly code Snippets

** All source code in the /source directory

assembly-mem_game's People

Contributors

mauer4 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.