Select Page

PWM TASKS

  1. Write a program to generate programmable pulse-width modulated outputs.
    Use PWM0A/PB6, PLL
  2. Using M1PWM7, write a program to create 1-Khz frequency with 50% duty cycle on PF3 pin (green LED). Use System Clock of 16MHz without division. Set the options of PWMGENB register to set the output when reload and clear the output when PWMCMPA match.
  3. Generate two square waves with 50% duty cycle and 180 degrees out of phase using PWM0/PB6 and PWM1/PB7.