I see that now.
I have commented out the encoder beeping. Silly me.
The EasyPIC7 requires the PIC to generate the tone. It has a transistor to drive the buzzer. The diagram is a copy of the easy pic buzzer driver.
I do not think PIC is hanging. Just the flash period is prolonging the beep. A long beep is more than the flash period.
But the Mike's method ( I did in #70) does not affect the flash. Power on, flash is there but neat little 2 short beeps.
This thing is way over my head. I am still sitting blank looking at it trying to understand what does what.
I dunno, I am lucky to write this looking at your examples and get it working as you guys are suggesting.
I guess we can figure this out but it is not a main issue.
In order to keep the PWM off at power up what do you suggest ? I guess normal method is out since the IRQ is handling most of the stuff.
Will it do if I disable the Interrupts during OFF times and enable them when I switch it oN. ( OFF, ON is meaning not power down but ON OFF using switch - a 1 sec press )
C:
unsigned char CurrentDuty; // for duty cycle change test (beeps)
The EasyPIC7 requires the PIC to generate the tone. It has a transistor to drive the buzzer. The diagram is a copy of the easy pic buzzer driver.
I do not think PIC is hanging. Just the flash period is prolonging the beep. A long beep is more than the flash period.
But the Mike's method ( I did in #70) does not affect the flash. Power on, flash is there but neat little 2 short beeps.
This thing is way over my head. I am still sitting blank looking at it trying to understand what does what.
I dunno, I am lucky to write this looking at your examples and get it working as you guys are suggesting.
I guess we can figure this out but it is not a main issue.
In order to keep the PWM off at power up what do you suggest ? I guess normal method is out since the IRQ is handling most of the stuff.
Will it do if I disable the Interrupts during OFF times and enable them when I switch it oN. ( OFF, ON is meaning not power down but ON OFF using switch - a 1 sec press )