Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/10/05 07:17
Read: times


 
Msg Score: -1
 -1 Gimmee Code
#84624 - Explain Display Routine
Responding to: ???'s previous message
Jan Waclawek said:
While this is a nice-looking sum especially for students (one month salary of a worker here), we have made clues only for a small portion of the work - how to display.
But there is much more work to do. Requires certainly teamwork - and the Rs15k will split among them, at least 4-5 people... Not too much left for us :-)

The work is:
- design, build and debug the HW (basically a '51 with or without memories depending on , and either a dual-DAC, or two single DACs, or a single DAC and a dual S/H, a cheap DAC can be a R-2R ladder (4 bits are enough)(but has to be strongly driven, not from open collectors), with an output buffer with adjustable offset and full-scale amplitude. I would build it on a protoboard, not bothering with a real PCB. Oh yes, and 3 wires (coaxs) to the scope :-). Also some power supply - maybe a battery?
- write/debug the "display routine". As a start, I would try just to change the voltaxes: Xmin,Ymin-Xmax,Ymin-Xmax,Ymax-Xmin,Ymax round and round and try to produce a nice square on the screen. Then proceed to displaying a set of lines, depending on an array of (X,Y) couples in RAM.
- design the "input device" - what about a joystick (switch type, not analog)? = 4 direction switches + one "fire" switch; maybe also a "horizontal line/vertical line" switch; perhaps also a switch for "start game" and/or "give up/restart" as a deluxe version :-)
- write/debug the routine for the "input device" applying debouncing; autorepeat for deluxe
- write the game loop, moving a "cursor" with the joystick and "placing" it when fire is pressed
- design and implement the strategy for the machine
- for deluxe version, display also score for both players, perhaps display hints for decreased point value etc.


Jan Waclawek



PS. While somebody might find this unfair helping students in a competition/with homework, I don't think so. Searching on the net and asking (cleverly) for help (and perhaps be persistent) IS a thing to learn today.




Sir Waclawek,
Firstly,thank you for giving us guidelines.
However,as I am new to 8051(learning for the first time),I would be oblidged to learn more about how to write the display routine.
Please reply as soon as possible.

List of 48 messages in thread
TopicAuthorDate
Interfacing the 8051 with a CRO            01/01/70 00:00      
   Display something on CRO            01/01/70 00:00      
      Display on CRO            01/01/70 00:00      
      More Elaborate!            01/01/70 00:00      
         Re: More Elaborate.            01/01/70 00:00      
            More elaborate            01/01/70 00:00      
         First test            01/01/70 00:00      
         Some sort of DAC is what you need!            01/01/70 00:00      
            Success !!            01/01/70 00:00      
               Picture posting            01/01/70 00:00      
                  Directory is enough            01/01/70 00:00      
   DAC            01/01/70 00:00      
   I to am working on CRO 1.0 for techfest            01/01/70 00:00      
      techfest?            01/01/70 00:00      
         Share the Prize?            01/01/70 00:00      
            Teamwork            01/01/70 00:00      
               ...aND            01/01/70 00:00      
                  Mmmmm TechFest!            01/01/70 00:00      
                     Atari            01/01/70 00:00      
               Re:            01/01/70 00:00      
                  This link has a vector clock display            01/01/70 00:00      
                     Great Enthusiasm            01/01/70 00:00      
                     Vector Clock English version            01/01/70 00:00      
                        German version            01/01/70 00:00      
                           Vektor klock            01/01/70 00:00      
                     'scope clocks, desert style            01/01/70 00:00      
               Explain Display Routine            01/01/70 00:00      
                  Please Explain!            01/01/70 00:00      
                  Display routine is not enough            01/01/70 00:00      
                  Display routine            01/01/70 00:00      
                     Z point            01/01/70 00:00      
                        Z point            01/01/70 00:00      
                        Concretize please            01/01/70 00:00      
                           How to do "Z"            01/01/70 00:00      
                              Integrators            01/01/70 00:00      
                        Small help            01/01/70 00:00      
   Programming Problems!!            01/01/70 00:00      
      nice to hear about you again            01/01/70 00:00      
          help ?            01/01/70 00:00      
            Why worry.            01/01/70 00:00      
            the logic of drawing lines            01/01/70 00:00      
      A slight misunderstanding            01/01/70 00:00      
         Isn't this process hidden for the user?            01/01/70 00:00      
            Re:            01/01/70 00:00      
            Sort of...            01/01/70 00:00      
   Apologies!            01/01/70 00:00      
      Answered in other Thread!            01/01/70 00:00      
      Optimise?            01/01/70 00:00      

Back to Subject List