Good idea, I will try that.So, simulate some numbers. Plug in fake values into your registers (turn off the timers so they don't count up themselves), and see what the VB program displays.
How can I do that? I thought that's what CCP1IF does. Just triggering if ccp pin rising or falling. Right?Also, make sure you're not trying to start counting in the middle of a pulse or something when the USB service RETURNs, wait for a solid high or low, then start counting.
Also another question; Is it best to turn On and Off the timer for each cycle or should it be On all the time and just reset the timer registers?




Bookmarks