pwm generator with variable duty cycle pic 16f877

wewe

wewe

@wewe-IoBydf Oct 20, 2024
hello , can u give me the source code for a pwm generator with a variable duty cycle
the duty cycle should be change with a potentiometer at the input (analog to digital converter)
the frequency of the pwm is 10KHz
please i need the source code in assembly language

Replies

Welcome, guest

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

CrazyEngineers powered by Jatra Community Platform

  • shahrul

    shahrul

    @shahrul-Ex12xz Apr 22, 2010

    I have done that code in C. I use 2 potentiometer. One to vary frequency and one to vary duty cycle. If you want fixed frequency, just fixed that value. I don't know why you request for assembly language, but I suggest you to use C language. See this video #-Link-Snipped-#.