Specifications
Event Multitasking - 5
Line 10 configures counter 5 to read bit 1 of address 0 as an input. When the count reaches 2000,
the counter will automatically reset.
Line 20 directs CAMBASIC to branch to a subroutine when the preset count is reached.
Line 30 starts counter operation. These three lines do not need to be adjacent in the program.
However, they must be executed in this order.
Line 200 increments variable A. Thus, the value of A is the number of times the counter has counted
to 2000.
Line 210 returns program execution to the place that it was interrupted.
It is imperative that the counter numbers in CONFIG COUNT and START count match. Otherwise, operation will be
unpredictable.