help regarding my project...

Status
Not open for further replies.

giri19

Newbie level 3
Joined
Apr 25, 2013
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,301
hello everyone
i m doing a project on uav(unmanned aerial vehicle) (plane).i m using 8051 to control servos
and 3 phase brush-less dc motor using ESC(speed controller of 20A) using serial communication
through zigbee..
the problem in my code i need to transfer continuously pwm signals for dc motor and whenever i press some key example 'w' the width of pulse is varied and speed of motor increases i have done it and works fine....""if i try to control servo motor at the same time the pulses gets stopped for dc motor..control executes the servo come back again and dc motor signal ""
this is should not happen if i control servo at the same time pulses for dc also should keep on executing ...
please help i have attached code below
 

Attachments

  • code.txt
    23.5 KB · Views: 49

Serial Interrupt has more priority. When there is serial interrupt and also timer0 interrupt, Serial interrupt is given priority. I see that in Serial isr you are disabling interrupts. If you disable interrupts then timer0 will not work. If you want you can make timer0 interrupt high priority and Serial interrupt priority low.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…