Search found 7 matches

by Frank G.
Mon Apr 10, 2006 5:44 pm
Forum: C and ASM Programming
Topic: Stepper Motor
Replies: 4
Views: 9238

Hi! John and Steve
:lol:

Sorry I am so late responding but I really appreciate your help. I tried it and it works but there is still little bugs that I need to work on to get it to work in single steps. I am working on it.

Thanks,

Frank G.
by Frank G.
Wed Mar 22, 2006 12:51 am
Forum: General Programming
Topic: compiler error (173)
Replies: 1
Views: 5404

compiler error (173)

Hi!

Can someone help me please.

How do I get the error fix?

The code is ready to go, ecept for the error.

Thanks

Frank G. :?:



Warning[224] C:\PROGRA~1\MATRIX~1\ASM4PICS\ASM4PICS\MY_PROG\SMITH_~1\TRFIC_~1.ASM 62 : Use of this instruction is not recommended.

Warning[224] C:\PROGRA~1\MATRIX~1 ...
by Frank G.
Thu Feb 16, 2006 8:05 pm
Forum: General Programming
Topic: SourceBoost Plugins
Replies: 0
Views: 5153

SourceBoost Plugins

Hi!



Has anybody used the SourceBoost Plugins yet?

I'm trying to use them now, so it would check out what code I write.

If I could make them work, I know its going ok to start.


Thanks

Frank G.
by Frank G.
Tue Feb 07, 2006 2:55 am
Forum: C and ASM Programming
Topic: Stepper Motor
Replies: 4
Views: 9238

Hi! John


This what I have.



void main()
{
Setup_Hardware();
PORTB=0;
while(1)
{
/* Check SW_RB0 */
if(input_pin_port_a(0))
{
/* step 1 - 0A */
output_low_port_b(0);
output_high_port_b(1);
delay_ms(100000);

output_low_port_b(2);
output_high_port_b(3);
delay_ms(10000000);

/* step ...
by Frank G.
Sat Feb 04, 2006 9:14 pm
Forum: C and ASM Programming
Topic: Stepper Motor
Replies: 4
Views: 9238

Stepper Motor

Hi! John

My Led outputs are as follows:

Port B
Bits 3 2 1 0
start 0 0 0

1 0
0
1
------------- 1010

1
1
0
0
------------- 0011

1
0
1
0
------------ 0101

0
0
1
1
------------ 1100
by Frank G.
Thu Feb 02, 2006 2:40 am
Forum: C and ASM Programming
Topic: Stepper Motor
Replies: 3
Views: 7959

Hi!John


Thanks for responding.

Yes the code dos mach.

What I have don is to add delay between each step.

/* step-1_0Ah */
output_highPort_b(0);
delay_ms(500);
output_low_port_b(1);
delay_ms(500);

What happens is that I could see the steps going through the complete cycle of code. 0A,03,05 ...
by Frank G.
Sat Jan 28, 2006 12:36 am
Forum: C and ASM Programming
Topic: Stepper Motor
Replies: 3
Views: 7959

Stepper Motor

Hi!

This question pertains to actuator board stepper motor.
Using a switch to go forward and reverse had no problem, controlling speed no problem but unable to single step the 15 degree stepper motor.
Each time I press the botton it will go from 60 degrees to 90 or the full 360. I've tried ...