In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Electronegativity wrote: Hi Tracy, I have each of the port b registers hooked up to a diode, and each of the port a registers hooked up to a switch. There are 2 blue diodes on top, 2 red on the right, 2 green on the bottom, and 2 yellow on the left. I plan to have the game produce little light shows to celebrate the players progress every time the length of the memorized sequence increases by 4 colors. Since it is an SX20 there are no more I/O pins available. If I bridge the rb.0 and rb.1 pins then I will not be able to light the 2 blue diodes independently, so the transistor is there to let me open or close the bridge. PJ, I like the idea of running the Psuedo-random generator in the RTCC. If I understand you correctly the output of the generator is input into the RTCC and incremented some number of times before being pulled out to use as a new seed. This seems like it would take care of the problem that a psuedo-random generator always produces the same series of numbers from a given initial value. James, I always assumed that the RTCC starts at zero and increments along with the program counter. Is this wrong? If I ran the following program: RESET Start Start nop nop nop Wouldn't the RTCC hold a value of 3? ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=2&m=90112#m91267 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)