When focusing on programs functionalities, it is important to soon initialize the rc car accumulator (DIG1 or units, or DIG2 tens or hundreds and dig4 dig3 or thousands) and put in under all port B lines with this getting no display is illuminated. Then the program is in an infinite loop which checks if there is activity on the input lines (pins 2 and 3) and displays the current contents of the bill (by a call to the subroutine display). If you notice no activity in any of the two input lines only cycle is responsible for making the displays look rc car batteries. A low pulse on pin 3 to a high on pin 2 will cause the program to jump to subroutine "Increase" which increases the battery in one unit (and the carry handle if necessary). This routine also derives the program to another sub-routine which is responsible for carrying out anti bounce that has been set. In case of a rebound anti idle return to the only thing to do is be expected to stay at pin 2 low logic state and pin 3 high. While waiting for this to happen to the routine is called to display the digits continue to show the current status of the count. But this would call them off. Meanwhile, in case of being configured for an anti rebound time the system will first determine the charging time at 25 W initially and adding more value to the state of the pins 17 and 18. The remaining number is the number of times to run the display sub-routine before returning to the main program. But the return occurs unconditionally, without checking what state are the lines so that if a continuous push down the account will be increased again. Anti rebound configurable Through the switch labeled AR can be selected from an anti rebound time (this means that between pulse and press the microcontrollers wait for a predefined time) an anti bounce a return to resting the trigger line (when it occurs return to its resting state of the button or input). The case of anti bounce time is usually the most used when a counter is triggered by a button because it has undesirable mechanical chimes. The delay time can be set using switches J1 and J2 which in combination allow up to four different times. Meanwhile, the anti bounce back to rest of the line of fire is most appropriate when it is connected to rc car IR barriers in industrial lines, mechanical or cam sensors (several examples).
Related Articles -
rc, car,
|