abstract.txt

来自「8051 timer for atmel at89c52 or At89s52」· 文本 代码 · 共 19 行

TXT
19
字号
Timer 1 Example Program
=======================

This example program shows how to configure timer/counter 1 as an
8-bit timer.  An interrupt service routine (ISR) is invoked each
time the timer overflows (goes from 0xFF to 0x00).  Inside the
ISR, a variable called overflow_count is incremented by one.

To test this program...

1. Start the debugger.
2. Set a breakpoint on the 'overflow_count++' line in the ISR.
3. Run the program.

Each time the interrupt routine is invoked, the debugger will stop
running the program.  Position the cursor over 'overflow_count' to
see its current value.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?