Searching \ for '16f873 stepper problems' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page:
Search entire site for: '16f873 stepper problems'.

Truncated match.
PICList Thread
'16f873 stepper problems'
2000\05\25@015048 by RAYMOND WILLCOX

picon face
part 0 214 bytes content-type:application/octet-stream; name="stepr.asm"</x-flowed>
Content-Type: application/octet-stream; name="stepr.asm"
Content-Disposition: attachment; filename="stepr.asm"

Attachment converted: creation:stepr.asm (????/----) (00015AD3)

2000\05\25@020834 by Tony Nixon

picon face
> Hi all
>   I'm trying to vary the speed of a stepper motor with a pot(a2d)
> in a 16f873 circuit. My code 'seems' to work except for the delay part.
>    This code(see attachment) uses the a2d module to write a value to
> register(store)to change the DELAY routine and thus the speed of the steps.
> It seems to work somewhat from H'00' to H'0F'. When the value exceeds H'0F'
> the delay slows down. This looks like something to do with lsb or overflow
> of the CounterX regs. There is also some re-load/goto xxxx delays introduced
> when the program cycles back to 'mnloop'. I don't think this is much of a
> problem though? Any help or better code will be greatly appreciated. Thanks
> in advance, Mark
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at
>   ------------------------------------------------------------------------
>                 Name: stepr.asm
>    stepr.asm    Type: ASM File (application/x-unknown-content-type-asm_auto_file)
>             Encoding: base64

       CBLOCK  0X20

f       EQU     1
w       EQU     0
store   EQU     0X0C
OUTPUT  EQU     06

Put store inside the CBLOCK statement. At the moment you are writing it
ti the PIR1 register

       CBLOCK  0X20

f       EQU     1
w       EQU     0
OUTPUT  EQU     06

Best regards


More... (looser matching)
- Last day of these posts
- In 2000 , 2001 only
- Today
- New search...