abstract.txt
来自「C-Code for 8051 timer functions」· 文本 代码 · 共 19 行
TXT
19 行
Timer 2 Example Program
=======================
This example program shows how to configure timer/counter 2 as a
16-bit timer. An interrupt service routine (ISR) is invoked each
time the timer overflows. 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 + -
显示快捷键?