⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.txt

📁 这是单片机C51典型应用设计代码
💻 TXT
字号:
8051Fx Timer 2 Example Program
This example program shows how to configure timer/counter 2 as a 16-bit timer with auto-reload. The timer is configured to count 1000 clock cycles. An interrupt service routine (ISR) is invoked each time the timer overflows. 

Since Timer 2 is fully simulated by the uVision2 Debugger, you can view the timer configuration dialog as the timer SFRs are set. You can also step into the interrupt service routine and see that it is invoked 1000 times per second.

To test this program...

Start the debugger. 
Set a breakpoint on the overflow_count++ line in the ISR. 
Run the program. 
Each time the interrupt routine is invoked, the debugger stops the program. Position the cursor over the overflow_count variable to view its current value.

⌨️ 快捷键说明

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