diff --git a/tgy.asm b/tgy.asm index 3d2ac87..24a7771 100644 --- a/tgy.asm +++ b/tgy.asm @@ -240,6 +240,8 @@ .equ ENOUGH_GOODIES = 12 ; This many start cycles without timeout will transition to running mode .equ ZC_CHECK_FAST = 12 ; Number of ZC check loops under which PWM noise should not matter +.equ ZC_CHECK_MAX = POWER_RANGE / 32 ; Limit ZC checking to about 1/2 PWM interval +.equ ZC_CHECK_MIN = 3 .equ T0CLK = (1<