DOH...
Should have wrote T1CKI instead of T0CKI... silly mistake... oh well, it's just comments
HAVING THE EDIT BUTTON BACK WOULD BE REALLY NICE, BUT IT STILL SEEMS TO BE A REALLY TOUGH THING TO IMPLEMENT!!!
DOH...
Should have wrote T1CKI instead of T0CKI... silly mistake... oh well, it's just comments
HAVING THE EDIT BUTTON BACK WOULD BE REALLY NICE, BUT IT STILL SEEMS TO BE A REALLY TOUGH THING TO IMPLEMENT!!!
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Returns the same here.the period is 1000msec., or 1 second. When I apply a 66 hz. squarewave to RC5, I the LCD says 66
Yep. Just tested one with with a 66hz signal, and it does indeed return 132.When I change the period to 2000, it says 33. Shouldn't it say 132?
That's what it should return.Also, if I change the period to 500, the LCD says 33.
Are you sure you're not changing anything else when you're testing it with 2000 as the
period?
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