It Works! The LEDs Blink!

It Works! The LEDs Blink! – Finally, I’ve got things working. I think I’ve got the basics figured out enough that I can wire up a simple circuit and it just works. Here is my creation:
The rectangle to the right of the LEDs is a push button. Starting the circuit causes the LEDs to increment (in binary) from 0 to 1. Then, it increments each time the button is pressed. Also, it plays a short sound. If the number represented on the LEDs is divisible by 8 it’s a short high sound, divisible by 4 (but not 8) a long low sound, otherwise a middle sound (middle being about 2KHz, I think). I wrote the program in mikroBasic. I’ll try another version in mikroC, and then a final version in assembler, to compare. This is using a 16f84a and a 3.6864MHz crystal.

Leave A Comment