2012年11月29日星期四

The Mini Project



  We have completed all the 6 experiments in 3810, and now we are focusing on the final project.It is called the mini project since all we have done will present just on the PCB board.Now let me introduce the idea of our project.
    Have you ever played the Race Game before. The racer drives his car and run as far as he can. He will meet many obstacles on the road.If he doesn't touch this obstacles he will continue to get more points.But if he touch the obstacles, game over.What we want to do this time is using a keypad and a LCD and the chips to design a single race game.
  I believe everyone has played the game above. Yeah, it is called the Russian Blocks.I think the rule of this game can be just stated as a single sentence:
  Who can not let the block touch the top of the screen for a longer time, who will get more marks.
  We don't do the Russian Blocks this time, so why I'm talking about the Russian Blocks? What I want to tell you is that we want to use this blocks to form a car.
  How to make this become true? We need the Graphic LCD and the assembly language.

The Graphic LCD 128*64

   Maybe you are wandered how we can form a car buy using these blocks.How can let the blocks formed as what we want. The answer is, using the Assembly Language to program the code.

The Control Instruction Of Graphic LCD

  For example, if you want to show a letter "S" on the LCD, you should use the assembly language put the command into the chip, and you should always provide the position of each blocks.Each column has 8 blocks, which is the length of a byte. Each bit can be set "1" or "0" to represent its light on or off.The lowest block stands for the MSB. For example, we can use a series of bytes to represent 'S'.That is :
00100110b = 26h
01001001b = 49h
01001001b = 49h
01001001b = 49h
00110010b = 32h  
00000000b = 00h     (from left to right and dismiss the first two columns)
  We want to design the initial starting interface on LCD.So we use the software to draw these black blocks.The software is Graphic Gales.If we want to design our car it is very helpful to use these.And if we print it out, it will help us to do the programming.
Use the Graphic Gales to design the logo



The Assembly language


Then we put the code into the compiler,we can see the logo we designed on the LCD.
WATCH OUT BIRDS!!


  What we have uploaded is just the result we have done. We need to continue our procedure.So good luck to us, and I will share the fun this game gives us on the blog!!

 

没有评论:

发表评论