Author |
Message |
Topic: Step Counting using pwm. |
bruno.gf
Replies: 18
Views: 31390
|
Forum: General CCS C Discussion Posted: Thu Jan 28, 2010 8:15 am Subject: Step Counting using pwm. |
Hi John P.
But if this device is to drive a stepper motor, is there a need to slow down at the end of a move? That makes things more complicated.
Is the opposite, I don't want it to slow down.
... |
Topic: Step Counting using pwm. |
bruno.gf
Replies: 18
Views: 31390
|
Forum: General CCS C Discussion Posted: Thu Jan 28, 2010 4:44 am Subject: Step Counting using pwm. |
Thank you John P. thats a good idea, i'll think(and study) more about it.
And PCM Programmer, setting the postscaler to 1 is what i need, since i want to count every pulse, right??
If i set it to ... |
Topic: Step Counting using pwm. |
bruno.gf
Replies: 18
Views: 31390
|
Forum: General CCS C Discussion Posted: Wed Jan 27, 2010 3:48 pm Subject: Step Counting using pwm. |
Ok i'll send it to PIC, make the tests and post here the results.
Thanks for your help!!
Best Wishes |
Topic: Step Counting using pwm. |
bruno.gf
Replies: 18
Views: 31390
|
Forum: General CCS C Discussion Posted: Wed Jan 27, 2010 3:27 pm Subject: Step Counting using pwm. |
I'm trying to count the steps, whitout stopping my motor. I just took of the part where you did "duty cycle = 0".
I have a question: Is there any possibility the function "printf&q ... |
Topic: Step Counting using pwm. |
bruno.gf
Replies: 18
Views: 31390
|
Forum: General CCS C Discussion Posted: Wed Jan 27, 2010 2:20 pm Subject: Step Counting using pwm. |
Ok PCM Programmer, so based on what you said, I made my program, do you see anything that can probably goes wrong??
#include <16F628A.H>
#fuses XT, NOWDT, BROWNOUT, PUT, NOLVP
#use delay ... |
Topic: Step Counting using pwm. |
bruno.gf
Replies: 18
Views: 31390
|
Forum: General CCS C Discussion Posted: Wed Jan 27, 2010 8:33 am Subject: Step Counting using pwm. |
The post above was mine, i forgot to login
Sorry. |
Topic: Step Counting using pwm. |
bruno.gf
Replies: 18
Views: 31390
|
Forum: General CCS C Discussion Posted: Tue Jan 26, 2010 6:29 pm Subject: Step Counting using pwm. |
ok, i'll wait !!
thank you very much !!
Best Wishes |
Topic: Step Counting using pwm. |
bruno.gf
Replies: 18
Views: 31390
|
Forum: General CCS C Discussion Posted: Tue Jan 26, 2010 6:14 pm Subject: Step Counting using pwm. |
Thank you for the reply PCM Programmer,
I've just read the ccs manual and the functions that you said,
So let me see if i understood,
i should put the "i++" between "interrupt_ ... |
Topic: Step Counting using pwm. |
bruno.gf
Replies: 18
Views: 31390
|
Forum: General CCS C Discussion Posted: Tue Jan 26, 2010 5:35 pm Subject: Step Counting using pwm. |
Hello everyone,
I used the search tool and didn't find anything about this.
I'm not from America so, sorry for my bad english.
When I don't use PWM to activate my stepper motor, I can easily ... |
|