The Software_PWM_Generator project is designed to generate PWM signals with varying duty cycles using a software approach on the PIC18F452 microcontroller. The program utilizes Timer0 for precise timing and an external interrupt to cycle through different duty cycles. This is particularly useful for applications where hardware PWM modules are either unavailable or insufficient.
- Generates PWM signals with the following duty cycles: 5%, 25%, 50%, 75%, and 90%.
- Allows dynamic switching between duty cycles using an external button.
- Uses Timer0 for precise control over the PWM signal.
- Employs an external interrupt (INT0) to trigger duty cycle changes.
In order to change the full period you have to :
- Change the value of T0CON register (prescaler configuration).
- Change the macro variable MAX_HIGH_LOW to your value.