1. When the user pressed button, there is no button pause or bounce. Before the user releases button, duty changes thousands of time So give it some delay like 250ms so .
1. For eeprom safety, have a loop scanning through eeprom locations; Everytime write to a different address.
3. For powerloss detection, see the circuit sample.
Note: 12F683 already has onboard PWM. Why use soft pwm?
Bookmarks