1 of 22

ECE 118 PROJECT

D.E.K

Prepared By: Bordin Vang, Uriel Lopez

2 of 22

TABLE OF CONTENTS

Introduction to The Project

Design

Implementation and Demonstration

Conclusion

References

04

05

01

02

03

Explained what we learned and answering questions.

Works referenced for our project.

We will explain what the project is, give background information, and briefly explain how the work was divided.

We will be explaining our design and giving insights of how it came about.

Here we will show a quick video, demonstrating how our project works, and explain the major sections of our code.

Bordin V.

3 of 22

Introduction

D.E.K

  • What is D.E.K?
  • Bordin:
    • Speaker
  • Uriel:
    • Flashing LEDs
  • Together:
    • Random Number Generator
    • Hex Display
    • Fighting System

Bordin V.

4 of 22

Introduction

  • Key Components:
    • Push-Buttons
    • LEDs
    • HEX displays
    • Speaker
    • JP2 GPIO

Background

Uriel L.

5 of 22

Design (Timeline)

Final Design

Start

Idea of Fighting

Game

Random Number

Generator

Implement Health and DMG

Start/End Game Messages

LEDs Displaying DMG Dealt

Flashing LEDs During Standby Phase

Implement Speaker

Presentation Slides

Bordin V.

6 of 22

Designs

(Flowchart)

Bordin V.

7 of 22

Designs (IOs Diagram)

Uriel L.

8 of 22

Implementation and Demonstration (Demonstration Video)

Uriel L.

9 of 22

Implementation and Demonstration

(Key Components)

StandBy

Compare Push-Buttons

Delay

LEDs (Attack/Flashing )

Speaker

Hex Display

  • Waiting for Push Buttons
  • Game Over check
  • Begin Random Number Generator

  • Checking if Buttons are pressed

  • Loops
  • Branches
  • Constant arcade flash
  • Indicates damage
  • Beeps at beginning
  • Heavy attacks louder sound
  • Light attacks lower sound
  • Beeps during Game Over

  • Tens
  • Ones
  • Game Over
  • Game On

Bordin V.

10 of 22

Delay

  • Special Number
  • Timer in action

Bordin V.

11 of 22

Implementation and Demonstration

(Key Components)

StandBy

Compare Push-Buttons

Delay

LEDs (Attack/Flashing )

Speaker

Hex Display

  • Waiting for Push Buttons
  • Game Over check
  • Begin Random Number Generator

  • Checking if Buttons are pressed

  • Loops
  • Branches
  • Constant arcade flash
  • Indicates damage
  • Beeps at beginning
  • Heavy attacks louder sound
  • Light attacks lower sound
  • Beeps during Game Over

  • Tens
  • Ones
  • Game Over
  • Game On

Uriel L.

12 of 22

StandBy

  • For LEDs
  • Check for 0 Health
  • Random Number Generator

Uriel L.

13 of 22

Implementation and Demonstration

(Key Components)

StandBy

Compare Push-Buttons

Delay

LEDs (Attack/Flashing )

Speaker

Hex Display

  • Waiting for Push Buttons
  • Game Over check
  • Begin Random Number Generator

  • Checking if Buttons are pressed

  • Loops
  • Branches
  • Constant arcade flash
  • Indicates damage
  • Beeps at beginning
  • Heavy attacks louder sound
  • Light attacks lower sound
  • Beeps during Game Over

  • Tens
  • Ones
  • Game Over
  • Game On

Bordin V.

14 of 22

Compare Push-Buttons

  • Light and heavy attacks
  • Resetting game

Bordin V.

15 of 22

Implementation and Demonstration

(Key Components)

StandBy

Compare Push-Buttons

Delay

LEDs (Attack/Flashing )

Speaker

Hex Display

  • Waiting for Push Buttons
  • Game Over check
  • Begin Random Number Generator

  • Checking if Buttons are pressed

  • Loops
  • Branches
  • Constant arcade flash
  • Indicates damage
  • Beeps at beginning
  • Heavy attacks louder sound
  • Light attacks lower sound
  • Beeps during Game Over

  • Tens
  • Ones
  • Game Over
  • Game On

Uriel L.

16 of 22

Hex Display

  • Displaying tenths place
  • Displaying Ones place

Uriel L.

17 of 22

Implementation and Demonstration

(Key Components)

StandBy

Compare Push-Buttons

Delay

LEDs (Attack/Flashing )

Speaker

Hex Display

  • Waiting for Push Buttons
  • Game Over check
  • Begin Random Number Generator

  • Checking if Buttons are pressed

  • Loops
  • Branches
  • Constant arcade flash
  • Indicates damage
  • Beeps at beginning
  • Heavy attacks louder sound
  • Light attacks lower sound
  • Beeps during Game Over

  • Tens
  • Ones
  • Game Over
  • Game On

Uriel L.

18 of 22

LEDs

  • Arcade Flash
  • Hub for light/heavy
  • Displaying Light or Heavy

Uriel L.

19 of 22

Implementation and Demonstration

(Key Components)

StandBy

Compare Push-Buttons

Delay

LEDs (Attack/Flashing )

Speaker

Hex Display

  • Waiting for Push Buttons
  • Game Over check
  • Begin Random Number Generator

  • Checking if Buttons are pressed

  • Loops
  • Branches
  • Constant arcade flash
  • Indicates damage
  • Beeps at beginning
  • Heavy attacks louder sound
  • Light attacks lower sound
  • Beeps during Game Over

  • Tens
  • Ones
  • Game Over
  • Game On

Bordin V.

20 of 22

Speaker

  • Call address
  • Check for buttons
  • Activate Pin D1
  • Output
  • Activate Pin D2
  • Output

Bordin V.

21 of 22

Conclusion (Interesting aspects)

  • GPIOS with speaker
  • Push and Pop
  • Debugger
  • Random Number Generator in assembly
  • 7 Segment Hex displays

22 of 22

References

[1] Y. Zhu, Embedded systems with ARM Cortex-M microcontrollers in assembly language and C. United States of America: E-Man Press LLC, 2018.

[2] Aaron Stillmaker, ECE 118 (class lecture, ECE 118, Fresno State, Fresno, May 5, 2021).