In article <01BC3E08.F3687160@dup4-wvb.iafrica.com.na>, Alastair writes >Hi All >It looks as if the list is always divided into three types of users: those who >do know, those who don't and those who don't care! >Anyway as one who doesn't know I'd like any help you've got to give, please. >I need to measure the width of a pulse which occurs at about 30Hz with a >16c(f)84, the pulse width is variable between 1ms and 2ms and I need as high a >resolution as possible(about 7bit should do) on the 1ms difference between the >two extremes. >As usual the routine needs to use as little as possible processor time. >Any code will be most helpful. > Be careful, the standard is always stated as 1 - 2mS but most RC transmitters actually generate a pulse covering about 0.875 to 2.35mS so make sure your code can handle this range or you will get all sorts of unexpected problems. Ken. +-----------------------------+--------------------------------------------+ | Ken Hewitt G8PWC | Email ken@welwyn.demon.co.uk | | /\/\/\/\/\/\/\/\/ | Homepage http://www.welwyn.demon.co.uk | +-----------------------------+--------------------------------------------+