Introduction to Microcontroller Programming
About PICmicro Chips
Clocking Your PICmicro Devices E-Blocks Flowcode Step By Step
PICmicro Projects
Labs |
Simulation
What happens depends on how quickly you click, and how fast your PC works! We want just the B0 LED to light on the array, to show a total of 1 sheep. The program runs at high speed, however, and so keeps cycling through the 'Input' and 'Calculation' steps. As a result, before you have time to release the push switch, the total has incremented (increased by one) several times - continue to the next page to find out why. |