0% found this document useful (0 votes)
11 views1 page

Abstract

This Example Program shows how to configure timer / counter 0 as a 16-bit counter. Each time port 3. Goes low, the 16 bit counter is incremented by 1.

Uploaded by

itbel
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views1 page

Abstract

This Example Program shows how to configure timer / counter 0 as a 16-bit counter. Each time port 3. Goes low, the 16 bit counter is incremented by 1.

Uploaded by

itbel
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Counter 0 Example Program

=========================
This example program shows how to configure timer/counter 0 as a
16-bit counter. Each time port 3.4 goes low, the 16-bit counter
is incremented by 1.
To test this program...
1. Start the debugger.
2. View the Toolbox window.
3. View the Serial window.
4. Run the program.
5. Click the 'Toggle Port 3.4' button in the toolbox.
You will see the value of the counter increase each time you
click on the 'Toggle' button.

You might also like