Hi.
Im using EasyHID and a 18f4550 to communicate with VB6.
I use MicroCode Studio Plus and PicBasic 2.46. I download my programs using Microchip USB bootloader. And this works just fine.
Now I want to write a program that counts how long time an input pin is activated. Typical time will be in range form about 1ms - 120ms.
Normaly I would use "Pulsin" but what I understand the USB commands must be polled every 1ms or so. Is there another way to solve it in Basic?
Maybe to use the timers in 4550? If so, how shall that basic code be written?
Im not skilled enough to write the code in asm so it would be great if it is possible to do it in PicBasic.
Thanks in advance.
/Stefan.
Bookmarks