Here is a new version of the code. In addition to some re-organization of the ISR code, it has modest support for zero-crossing SSRs added to the PWM version (regular and DC versions should behave the same as they do now). The change in behavior affects only the PWM code with a brightness level of 255 - the new version will drive the SSR continuously, even through the zero-crossing time, so that zero-crossing SSRs can be turned on. In all other cases the PIC outputs are turned off around the zero-crossing, to prevent some twinkling that xmus noticed under light loads.
--
Phil


Reply With Quote

Bookmarks