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

How to Generating PWM signal using 8051 microntroller

How to generate PWM signal in the 8051 microcontroller using C language
i will be so glad if someone can assist me with simple code.

Thanks in advance

  • ... and the datasheet will tell you how.

    it is more a task to do it with a '51 w/o PCA but with a T2 using CAPCON.
    it is a REAL task to do it with a "true" '51 i.e. one without a P2.

    Erik

  • Erik...Thank you for your help

    just another question if you dont mind.

    i am currently doing a project of how to : Design a programmable switch mode power supply to simulate solar panels. so far i am trying ways to generate PWM controller part. i thought will be better using 8051 microcrontroller.

    what advice would you give choosing either PIC or 8051 microcontroller to do this task of PWM controller.

  • evaluate how much speed and memory you need
    if a lot go for a SILabs chip
    if not a lot go for a NXP9xx
    all have PWM 'engines'

    since this sounds like a one-off why not just use a silabs devboard and attach the power components.

    In my opinion, the PIC has no advantage over the '51 till you get to the big PICs e.g. dspic and at that level I'd choose the ARM instead.

    Erik