Author |
Message |
Topic: Problem with step |
cuopbienquin
Replies: 0
Views: 2673
|
Forum: General CCS C Discussion Posted: Thu Oct 11, 2007 7:46 am Subject: Problem with step |
I have a problem with control step.Requirement of programing is followed:
1. When press button_direction , directional of rotation of motor is to will change
2.When press button_star/stop, motor ... |
Topic: A problem with interrupt _external |
cuopbienquin
Replies: 6
Views: 7679
|
Forum: General CCS C Discussion Posted: Thu Sep 20, 2007 9:49 pm Subject: A problem with interrupt _external |
@Ttlemah.Okay I see what you expalin in ur code.Genarally, I tend to expand urs to switch program using Timer2_interrupt. For example:
button 1: portb=0b0001111;
delay 50 ms
... |
Topic: A problem with interrupt _external |
cuopbienquin
Replies: 6
Views: 7679
|
Forum: General CCS C Discussion Posted: Thu Sep 20, 2007 5:39 am Subject: A problem with interrupt _external |
Thank for comment.And I use ur codes to simulink stpeper motor circuit by Proteuss and it oprerate as I desire.But actually, I cant understand fully this code (sorry u ) .I wish u can find the err ... |
Topic: A problem with interrupt _external |
cuopbienquin
Replies: 6
Views: 7679
|
Forum: General CCS C Discussion Posted: Wed Sep 19, 2007 7:08 am Subject: A problem with interrupt _external |
Hi everyone.These followed codes are control stepper motor program.
include
#fuses NOWDT,PUT,XT,NOPROTECT
#use delay(clock=4000000)
#use fast_io(b)
#byte portb=0x06
#byte intcon=0x000B
#bit RB ... |
|