measure_pulse_width_async
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Sample code to measure the pulse width of a signal asynchronously using interupts and timers.
measure_pulse_width_async
=========================

Sample code to measure the pulse width of a signal asynchronously using interupts and timers.

This code is from another project I worked on (https://github.com/PSU-AVT). It 
is meant for an lpc1343 chip compiled using codered and the microbuilder.eu 
code.

It was originally designed to measure a pulse width from a Maxbotixs MB1040
ultrasonic rangefinder and convert that pulse width into a distance.

If you don't have those don't worry it should be fairly easy to modify to any 
microcontroller. Setting up the timers, the pin configuation for interupt, and 
the name of the interupt will be specific to the micro controller you're using.
The main logic in measure_maxbotix_in and the interupt handler will not change.

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。