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

duty cycle generation

sir, i want codes to generate duty cycles which varies from 0 to 100 percent for the 50 kHz switching frequency. and two different pulses are to generate with some delay. eg. The total time is 1 first pulse is for lower mosfet having 0.638 then delay of 0.362 and for second pulse starts with delay of 0.669 and pulse of 0.3 and then delay of 0.031. so please go through it and reply me sir.....

Parents Reply Children
  • The total time is 1 first pulse is for lower mosfet having 0.638 then delay of 0.362 and for second pulse starts with delay of 0.669 and pulse of 0.3 and then delay of 0.031. so please go through it and reply me sir.....
    Post a clear question. Help us understand what the actual issue is that you are facing.
    We dont know circuit & hence what do you mean by lower mosfet ? so be clear and precise.

    Also, pwm generation & related questions are already solved and explained on this forum. hence, search this forum, it is likely that you may get your answer.

  • Lower MOS-FET? He most probably uses a push-pull design, where a lower MOS-FET is connected to ground and an upper MOS-FET is connected to the supply voltage. Maybe a full H-bridge with four transistors.

    Anyway - it's impossible to discuss without knowing what processor. But the traditional way to solve this is to read the datasheets for the processor and come back and ask questions if getting stuck. The timer functionality of a LPC23xx or LPC17xx would handle this trivially - as documented in the processor user manual. Other processors also have decent documentation and application notes helping - as long as a suitable processor was selected in the first place...

    But to expect anyone here to just throw in a turn-key solution is way too optimistic. Especially since college projects are expected to be possible to be solved by the college student. Just that some college students forgets about the "studying" part of being a student.

  • Collage, it doesn't mean what you think it does, just saying look it up in a dictionary before you use it again.. Assuming the OP didn't go to Art School.

    Unfortunately the problem is going to be difficult to give specific advice on since no specific processor has been mentioned (assuming not an Intel 8051, but some other part with peripherals from some place else) nor the clock speed of the device in question.

    Find a manual for your part, review it, and the timer sections. Then look for examples for the processor.

    Provide a circuit diagram, and cite technical documentation for board/chip.

  • Collage, it doesn't mean what you think it does,

    OTOH, it describes spookily well what the OP (and way too many others here) is trying to do. Maybe some of those institutions out there should be named "collages" to properly reflect the attitude they apparently promote in their students.