Bruce, I just did it again with exactly the same code as posted. The ckecksum is 3174 with 1000, and 3160 with 2000. Could you check your checksums? I'll check the incoming pulses with a scope later tonight, to make sure nothing's changing there.
Bruce, I just did it again with exactly the same code as posted. The ckecksum is 3174 with 1000, and 3160 with 2000. Could you check your checksums? I'll check the incoming pulses with a scope later tonight, to make sure nothing's changing there.
After adding the line to enable T1 within the Main loop, Mr. E's program does want I need. Thank you Mr. E!
Main:
wTimer1=0 ' clear Timer1
T1CON = %00000111
pause 1000 ' acquisition time
T1CON = %00000110
lcdout $fe,1, dec wTimer1
pause 100
goto Main
However, the program that uses COUNT does not work! Maybe it's peculiar to the PIC I'm using? I did notice it has something to do with the watchdog timer, but I'm not going to mess with it further right now.
Thank you everyone for the help.
Great, and it use the internal hardware, use less code space and etc.
Anyways, out of curiosity, which PBP version you're using?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Yes, I think it is a better solution all around! I am using 2.50b, Haven't installed the latest patch yet. Thanks again!
For the record, I tried COUNT with a 16F917, and it worked regardless of the acquisition time. Hard to tell where the issue come from
Oh well, it works... if it's not broken, don't fix it![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks