The only part that doesn't work is the timer1. I have it displying everything except rpm. Timer1 is not counting. As for the if volt statements, all of those lines didn't copy in. They're all there in my code. It's just the Speed part always read 0.
The only part that doesn't work is the timer1. I have it displying everything except rpm. Timer1 is not counting. As for the if volt statements, all of those lines didn't copy in. They're all there in my code. It's just the Speed part always read 0.
Why ask for help - if you're not going to listen or learn from it?
Did you fix the problem areas I pointed out above?
Can you post your code, that's still not working, showing the fixes?
Can't post code. It shows everything correct on reply screen then I hit preview post and it jumbles Speed into Main routine?? Tried three times and now I see the if volt if volt deal. Thats because of the jumbling it did.WOW!! Speed: should read as post 1 does.
Yes, I did go thru and change what you had said. As for the T1CON I didn't change because that is where the problem is. It just displays 0 all the time??This works on the 16f688 but not the 16f687?? On the datasheet T1CON bit 7 I don't understand?? I can't test anymore tonight had to pick up garage for company tonight, but can still read posts.
Use the code tags when posting code to help keep formatting.
See this page for an example http://www.picbasic.co.uk/forum/misc.php?do=bbcode#code
Just replace value with the code you paste into the text area.
It's still jumbling the main with speed when I hit preview. It all works except the speed routine.
Speed:
wTimer1=0 ' clear Timer1
T1CON.0=1 ' start timer1
pause 1000 ' acquisition time
T1CON.0=0 ' stop timer1
pause 100
return
I call this from a gosub in the main routine. I know it gets here because if I put a number in wtimer1= it will display that number.
Bookmarks