Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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
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
Capture.JPG
 

Attachments

  • code.txt
    23.5 KB · Views: 32

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top