Thread: GeneratePWMS
View Single Post
  #7   Spotlight this post!  
Unread 23-02-2004, 23:26
Neal Turett Neal Turett is offline
Registered User
#0201
 
Join Date: Nov 2002
Location: Rochester Hills
Posts: 34
Neal Turett is on a distinguished road
Re: GeneratePWMS

Thanks guys. I found a way to do it. Took some experimenting, but here it is:

Run the sensor output into digital inputs 2 and 3. Have interupt on 2 for the rising edge and one for the falling edge. The first starts the timer, the second reads it out and scales it.

I haven't actually tried this - I'll probably fool with it post-build season, but I was just thinking ahead since my team doesn't let me touch the bot. Something about building it....

Last edited by Neal Turett : 23-02-2004 at 23:28. Reason: lots of typos