Category Archives: PIC MCU

PIC Interface – PWM



  • pwm_init()
  • pwm_dutycycle(unsigned int duty)

Example : Generate predefined PWM using four buttons


  • Define Port-B as input and RB0, RB1, RB2 and RB3 used as button input
  • Generate PWM using PWM functions

Note  :  UN-command the line depend on your preferred compiler.


Result :


Next :

previous :


if you have any queries call us +918300026060 or WhatsApp Dismiss


Your Cart

%d bloggers like this: