Hi Melanie.
Im working with a 18f4550 and using USB to communicate with a Visual basic program.
I need to measure the time an input pin is activated.
Normaly I use Pulsin but the USB commands must be polled every 1ms to keep contact with the computer. So how can I write a code that doesnt "halt" the program during the measuring?
The performance must be the same as Pulsin, 2us reolution at 20Mhz and it would be great if I can measure up to 500ms instead of 130ms like Pulsin.
Thanks in advance.
Stefan.
Bookmarks