Hi Anthony,
this is not as difficult as it seems since we have edge driven interrupts on the pins of our Netduinos.
Basically if you have a methods that is called on both the leading (rising edge) and the falling edge of the pin then you can calculate the time between the two. This will give you your pulse width. Since you are not interested in the duty cycle then you won’t be wanting to measure time between leading edges.
I can give you a snippet of code to do this in VB if you want it.
Let me know.
Cheers Pete.
Hi Pete, somehow my reply has got lost, this is take-2!
I've sorted it out, thanks, your idea of measuring half cycles helped alot!
Here's my code,
Kind regards,
Anthony