|
|||||||||||
Technical Support Support Resources
Product Information |
8051 Pulse Width Measurement ExampleThis 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...
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.
8051_TIMER0_PULSE.ZIP
(14K)
Tuesday, June 18, 2002 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.