Download presentation
Presentation is loading. Please wait.
Published byRoger Clarke Modified over 9 years ago
1
Graduation project (Hardware Project) Prepared By : Sadiq Al-Haj M.Abu-baker
2
Introduction Video game project It is a game on the TV using microcontroller PIC16F84, we will focus on how to design this project, it’s components, interfacing it with TV, how to generate signals using a simple assembly code, and we will describe briefly how to achieve synchronization between generating these signals and drawing them at the TV screen.
3
Project’s Components -Hardware component -software components Hardware : *components: Microcontroller chip PIC16F84A. Voltage regulator LM7805. Resistors, capacitors, push button..etc. External oscillator 12MHZ. TV connectors DB9.
4
Hardware : *Project’s circuits: -joystick circuit. -Reset circuit. -Voltage regulator circuit. -Video out pins. -Audio Out pins.
5
Software components To illustrate carefully the role of the software in designing this game we will describe each piece of code and it’s work as steps: First step: A table of data to assign it to the speeds of drawing frames and generating sounds on TV.
6
Software components Second step: A table to generate blocks of the game. Third step: A table to generate the scores numbers. Fourth step: Subroutine to make a horizontal synchronization for drawing horizontal lines to tell TV and to keep trace of where you are on the screen and what is the color of each pixel.
7
Software components Fifth step: A subroutine to generate frame synchronization after finishing drawing a frame and to tell TV to draw next frame. Sixth step: Subroutines to generate a random blocks types and to control there movements left right, down, rotate as joystick pressed and to keep trace of which key is pressed we use a flags.
8
Software components Seven step: A table of data stored in data memory to generate sound by shifting each entry of table at port connected to audio pin and this will done at the speed of block movement speed whereas this speed increases as you get a high score or points. Eight step: A subroutines to generates a delays with different lengths.
9
Hardware Project End
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.