-----Original Message----- From: Dwayne Reid To: PICLIST@MITVMA.MIT.EDU Date: Tuesday, November 09, 1999 11:11 AM Subject: Re: 0-100 duty cycle at 15 Hz to a 0-5v analog >>Thanks Dwayne for your version of pulse measurement routine. >>The code is so spaghetti like, and I really enjoyed digesting it :-)) Took >>some time!! >> >>Regards, >>Nikolai > > >No problem! It IS spaghetti-like, but it lets a 4 MHz 12c508 measure pulses >with 3 uS resolution. As I mentioned earlier, Scott Dattlo and Reggie >Bergin get most of the credit for it. > >dwayne > I think this is a very good routine too. Though it has some dead time and can skip small pulses greater then 3 uS. This is because there is some time between detection of low pulse end and starting to poll for high pulse end :) > >Dwayne Reid >Trinity Electronics Systems Ltd Edmonton, AB, CANADA >(780) 489-3199 voice (780) 487-6397 fax > >Celebrating 15 years of Engineering Innovation (1984 - 1999) > >* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * >Do NOT send unsolicited commercial email to this email address. >My posting messages to Usenet neither grants consent to receive >unsolicited commercial email nor is intended to solicit commercial >email. > > _ Nikolai Golovchenko, Electrical Engineering Student National Mining University of Ukraine www.nmuu.dp.ua Dnepropetrovsk, Ukraine E-mail: golovchenko@mail.ru