This simple circuit -which come from EFY magazine- demonstrates the capability of an AT89C2051 microcontroller chip to function as a random number generator based on the flying counter principle. The program in the chip constantly updates the counter variable, which, on being interrupted by an external trigger, latches the counter value and displays a random number through its output ports. This method is similar to the one used in PCs or calculators for generating random numbers at any instance.
TL0 and TH0 act as free-wheeling counters in auto-increment mode and constantly count up from the initial value. When the interrupt occurs, the value from the counter is latched and glowing LEDs indicate the random number generated by the microcontroller chip. Assembly language is used for programming the chip. The Assembly code listing is self-explanatory.
Source Code: electronic dice source code
Guitar Synthesizer Schematic Diagram In this post, we provide a collection of schematic diagrams of…
Handy Talky Schematic Diagram This is an old electronic scheme of the Handy Talky (HT)…
This is an old or "very old" schematic diagram of birdie tone or sound generator.…
Here is the 200W MOSFET amplifier powered based on four piece of IRFP250N, they are…
This is the 300W RMS stereo power amplifier circuit project. This amplifier is based four…
This is an active stereo tone control circuit using very well known op-amp IC of…