The zip file for PIC24F contains 4 examples: 2 about PWM in left-aligned mode and 2 about PWM in center-aligned-mode. One example generates a 50% fixed-duty cycle PWM at 20KHz, the other example uses a potentiometer/trimmer on an analog input for duty cycle adjusting.
The zip file for PIC32MX contains 1 example since the OC module of PIC32mx is only capable to generate PWM in left-aligned mode. The example generates a 50% fixed-duty cycle PWM at 20KHz.
Nessun commento:
Posta un commento