What do you mean by that????
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.
Try placing an LCDOUT just below T1CON.0=0 in your Speed routine to see if it prints
the value in Timer1.
Does it work now?
Bruce,
Sorry to waste your time. My fault on that one. Forgot one resistor. Everything works just fine now. Thank you for the help!!!!!!!
Mike
Bookmarks