Need help programming a PIC16F86A

Thread Starter

bZeiler

Joined Mar 26, 2010
2
Hey guys.

I am doing my exam project in electronics (chosen the subject "Entertainment") and my idea is to make the following game:

2 players sit infront of each other. Infront of them are also 3 7-segment displays and 3 corresponding buttons (button 1 for display 1 and so on).

You press the MCLR (Reset) button to start the game which makes the PIC select a random port (RB1-RB3) to emit 5V on turning on either the first, second or third 7-segment display. The players then have to press the corresponding button. The one who presses the button last loses. You also lose if you press the wrong button.

I have been searching the internet for pseudo-random-number-generators (PRNG's) in assembly but I have'nt found anything that I as much as remotely understood.

Any help here? On the entire subject or just on PRNG.. Any help appreciated.

- bZeiler
 
Last edited:
Top