This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

PWM assembly code for generation of 5 PWM signals in 8051 mc

I am doing a project in 8051 mc in which I have to generate atleast 5 PWM signals with varying period and duration. Is it possible? What is the logic to be used. Is anyone having the assembly code in 8051 or in C language for this? If so please send it to me at epey2p158@nitc.ac.in
thanks in advance.

Parents
  • same programs may be possible to do in a lot of manner. What Mr.Graham told is correct, but I haven't got an exact idea about how to do it espicially since I don't have much experience in this field. So I wanted more information. Also, I have to see any other methods are possible.

    Also, it is my right to put it in some other discussion forum. From that question itself, you can see that I have modified the problem based on the reply I got from this discussion forum. Newer and detailed ideas can get only by discussion. Ofcourse, I am not at your level in this field. If you don't want to help me, leave it. But, please avoid comments like this.

Reply
  • same programs may be possible to do in a lot of manner. What Mr.Graham told is correct, but I haven't got an exact idea about how to do it espicially since I don't have much experience in this field. So I wanted more information. Also, I have to see any other methods are possible.

    Also, it is my right to put it in some other discussion forum. From that question itself, you can see that I have modified the problem based on the reply I got from this discussion forum. Newer and detailed ideas can get only by discussion. Ofcourse, I am not at your level in this field. If you don't want to help me, leave it. But, please avoid comments like this.

Children
  • ONCE MORE

    1) Throw your uC out and get one with a PCA.
    2) Look at the PCA cookbook
    3) smile and be happy.

    Erik

  • "I haven't got an exact idea about how to do it espicially since I don't have much experience in this field."

    So why didn't you just raise the specific questions you had?
    What you did just looks rude - it looks like you didn't get the answer you wanted, so you just hopped off somewhere else to try again for an answer to your liking.

    "So I wanted more information."

    So why didn't you ask for it, instead of just repeating the question with no acknowledgement of the help you've already received?!

    "I have to see any other methods are possible."

    So why do you keep dismissing the PCA option out of hand?

    "it is my right..."
    Ditto!
    But if you want people to be well-disposed towards helping you, it pays to be polite, acknowledge what you've received - at no cost, I might add - and show that you are prepared to put some effort into working towards the solution!

  • I am very happy that many people spent lot of time for me and given lot of valuable advices for me. Since, I am a bigginer in the microcontroller programming, I had little difficulty in exactly understanding all the ideas conveyed. Hope all of you will cope with me.
    Thanks and regards,
    Boby