What is duty cycle? Duty cycle is defined by the percentage of high voltage duration in a complete digital pulse. If the duty cycle is 50%, then it will remain on for exact half the duration of the ...
First you should select a pin which output you want for the TCPWM. Then under Digital output, choose the option ending in PWM or PWM_n. You may either select 16-bit or 32-bit TCPWM. Then click on the ...
#pragma config PLLDIV = 1 // PLL Prescaler Selection bits (No prescale (4 MHz oscillator input drives PLL directly)) #pragma config CPUDIV = OSC1_PLL2// System Clock Postscaler Selection bits ...