CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 22 matches
CCS Forum Index
Author Message
  Topic: pwm using timer
zeyad

Replies: 0
Views: 4221

PostForum: General CCS C Discussion   Posted: Fri Mar 27, 2015 1:33 am   Subject: pwm using timer
how to generate pwm using timer in pic 18f4550?
thanks
  Topic: stepper motor for loop
zeyad

Replies: 19
Views: 28678

PostForum: General CCS C Discussion   Posted: Thu Mar 05, 2015 3:58 am   Subject: Re: reply
You are still ignoring lots of things you have been told. I'll put some comments in part of your code, _read them_:

{
int j;
int i=0;

for(i=0;i<(rev*360/1.8);i++){ ...
  Topic: stepper motor for loop
zeyad

Replies: 19
Views: 28678

PostForum: General CCS C Discussion   Posted: Wed Mar 04, 2015 10:57 pm   Subject: reply
You are still ignoring lots of things you have been told. I'll put some comments in part of your code, _read them_:

{
int j;
int i=0;

for(i=0;i<(rev*360/1.8);i++){ ...
  Topic: stepper motor for loop
zeyad

Replies: 19
Views: 28678

PostForum: General CCS C Discussion   Posted: Wed Mar 04, 2015 10:38 pm   Subject: reply
You're still making it difficult to help. So I'll use another tack.

Try this code and tell us what happens as you change the value for "t".#include <18F6723.h>
#fuses HS,NOLVP,N ...
  Topic: stepper motor for loop
zeyad

Replies: 19
Views: 28678

PostForum: General CCS C Discussion   Posted: Wed Mar 04, 2015 10:27 pm   Subject: reply
You're still making it difficult to help. So I'll use another tack.

Try this code and tell us what happens as you change the value for "t".#include <18F6723.h>
#fuses HS,NOLVP,N ...
  Topic: stepper motor for loop
zeyad

Replies: 19
Views: 28678

PostForum: General CCS C Discussion   Posted: Wed Mar 04, 2015 4:26 am   Subject: now see please
this...
int16 table


#include <18f6723.h>
#fuses HS,NOLVP,NOWDT,NOPROTECT
#use delay(clock=20M)

//int16 table[4]={3,6,12,9};
int8 ax[4]={9 ...
  Topic: stepper motor for loop
zeyad

Replies: 19
Views: 28678

PostForum: General CCS C Discussion   Posted: Wed Mar 04, 2015 4:25 am   Subject: now see please
Your code is neither complete nor compilable.

You do not have a main().
Follow the instructions/advice given in previous threads.
Read the forum guidelines.

Mike

#include <18f6723.h> ...
  Topic: stepper motor for loop
zeyad

Replies: 19
Views: 28678

PostForum: General CCS C Discussion   Posted: Wed Mar 04, 2015 4:12 am   Subject: Re: Stepper speed ramp up and down
I use bipolar stepper motors and save a lot of headaches by using driver boards such as you can get from Sparkfun and Pololu. These usually accept three inputs such as Enable, Step and Direction. A ty ...
  Topic: stepper motor for loop
zeyad

Replies: 19
Views: 28678

PostForum: General CCS C Discussion   Posted: Tue Mar 03, 2015 5:33 am   Subject: still didn't work
ckielstra told you not to use 'short' in this post:
http://www.ccsinfo.com/forum/viewtopic.php?t=53579&start=4

But you are still doing it here:

void s1(unsigned short rev)
{
int16 j; ...
  Topic: stepper motor for loop
zeyad

Replies: 19
Views: 28678

PostForum: General CCS C Discussion   Posted: Tue Mar 03, 2015 5:25 am   Subject: thnx
ckielstra told you not to use 'short' in this post:
http://www.ccsinfo.com/forum/viewtopic.php?t=53579&start=4

But you are still doing it here:

void s1(unsigned short rev)
{
int16 j; ...
  Topic: stepper motor for loop
zeyad

Replies: 19
Views: 28678

PostForum: General CCS C Discussion   Posted: Mon Mar 02, 2015 9:52 pm   Subject: stepper motor for loop
#include <18f6723.h>
#fuses HS,NOLVP,NOWDT,NOPROTECT
#use delay(clock=20M)

//int16 table[4]={3,6,12,9};
int8 ax[4]={9,12,6,3};

void s1& ...
  Topic: for loop
zeyad

Replies: 9
Views: 15056

PostForum: General CCS C Discussion   Posted: Mon Mar 02, 2015 9:48 pm   Subject: stepper motor
stepping motor drive ?
3,6,12,9 for ever......
rotates 2 bits
ad nauesum


Jay

yes
  Topic: for loop
zeyad

Replies: 9
Views: 15056

PostForum: General CCS C Discussion   Posted: Mon Mar 02, 2015 9:44 pm   Subject: thank you pcm programmer. it works
You need to put your PortB values in an array. Then use a for loop to
read the values from the array. Similar to the code shown in the
first example here:
http://stackoverflow.com/questions/13466 ...
  Topic: for loop
zeyad

Replies: 9
Views: 15056

PostForum: General CCS C Discussion   Posted: Fri Feb 27, 2015 3:45 am   Subject: for loop
Please mods ban this numpty

english please
  Topic: for loop
zeyad

Replies: 9
Views: 15056

PostForum: General CCS C Discussion   Posted: Fri Feb 27, 2015 2:20 am   Subject: for loop
how to merge these lines into a for loop???

void s1( )
{
output_b(3);
delay_ms(50);
output_b(6);
delay_ms(50);
output_b(12);
delay_ms( ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group