Quote Originally Posted by mackrackit View Post
Try changing pos to a WORD size var and see if that helps
Thanks! it worked on the 16F84A chip.

I'm still having difficulty with the 12F683 though. The pulsout doesn't seem to work. I wonder if the chip supports that command?

I've also tried running the servo by setting the pin high and low timing the high between 1 to 2 ms and the low to 20ms. It works, but it won't accept a decimal number.

at 4 mHz, I need to pause for between .5ms and 2.5ms but it only accepts 1 and 2 !!!

suggestions??

John.

p.s., here's the code:



posit var word

cont var word
cont2 var word
Q var word


let posit = 3/2

Let Q = 25

start:

for cont = 1 to 50
high 0
pause posit
low 0
pause 20
next cont



goto start