PWM control

ashish.sharma30

ashish.sharma30

@ashishsharma30-bJCohB Oct 26, 2024
hello!
can anyone please provide me with the PWM control code for 8051 microcontroller.
thanks in advance.

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Harshad Italiya

    Harshad Italiya

    @harshad-ukH5ww Aug 29, 2010

    Are you using Timer to generate the PWM then just reload the different Timer Value and that will give you the PWM waveform.
  • Harshad Italiya

    Harshad Italiya

    @harshad-ukH5ww Aug 29, 2010

    In PWM you have to set the TON and TOFF time period say keep PIN ON for xx second and OFF for yy seconds generate this xx and yy seconds using Delay function or usinf Timer.
    Hop you will get the idea for PWM.