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.
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