Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/03/09 13:39
Read: times


 
Msg Score: -1
 -1 Message Not Useful
#168107 - about 3-phase bldc motors
Responding to: ???'s previous message
i m using 89c51 mcu.i m taking reference from the hall sensors .feeding this as a input sequence to p0 port and i m generating total six o/ps three for the switching for high side input mosfets and three for the low side mosfets
and finally the o/ps from the mosfet driver ckt running the motor.if the motor throgh a single steps on that time the hall sensors sequence will get changed that will be sensed by the mcu and that will generate the new six sequences and will run the motor.this steps will continue for three conseq sequences.
in between let me tell u that i have run the program on connected system but the motor is running for only for two complete rotations then after it get stops also after that time the mcu o/p port p1 sequence will stops to change

so if u can tell me what is the problem with the program.
also i m sending u my program for your reference
please refer it and give the resly as soon as possible
org 0
repeat:
mov p0,#0ffh
mov a,p0
cjne a,#05h,next1
mov p1,#11h
acall delay
sjmp repeat
next1:
cjne a,#01h,next2
mov a,#21h
mov p1,a
acall delay
sjmp repeat
next2:
cjne a,#03h,next3
mov p1,#22h
acall delay
sjmp repeat
next3:
cjne a,#02h,next4
mov p1,#0ah
acall delay
sjmp repeat
next4:
cjne a,#06h,next5
mov p1,#0ch
acall delay
sjmp repeat
next5:
cjne a,#04h,repeat
mov p1,#14h
acall delay
sjmp repeat


;---------------delay subroutine


delay:
mov r5,#5
here3:mov r4,#4
here2:mov r3,#8
here1:djnz r3,here1
djnz r4,here2
djnz r5,here3
ret
end
also one thing is there all the six w/f generating are 120 degree apart to each other

List of 7 messages in thread
TopicAuthorDate
how to program BLDC motor using 8052            01/01/70 00:00      
   For what hardware?            01/01/70 00:00      
      asking about steps            01/01/70 00:00      
         about 3-phase bldc motors            01/01/70 00:00      
            what is wrong            01/01/70 00:00      
            How to post legible source code            01/01/70 00:00      
               Why you need to provide comments - for your own sake!            01/01/70 00:00      

Back to Subject List