readme.txt
来自「这是单片机C51典型应用设计代码」· 文本 代码 · 共 15 行
TXT
15 行
8051 Pulse Width Measurement Example
This example program shows how to compute the width of a pulse using timer0 in mode 1. Port 3.2 is used as an external gate for the timer. An interrupt is used to accumulate timer overflow. The width of each pulse is output to the serial port.
To test this program...
Start the debugger.
View the Serial window.
View the Toolbox.
Run the program.
Click a pulse button to generate a pulse on P3.2.
The width of the pulse generated displays in the serial window each time you repeat this process.
Be sure to check the debug.ini file to see how the debugger buttons are created. A signal function is used to generate pulses.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?