I have a 5ms pause before the Main loop, but I think it's irrelevant since the ADCIN gets a value which is immediately different than the set value for DutyVar1 (set to 0 earlier in the code) and hence it goes straight into the IF block.

I'll add a 5ms pause in the IF block, too. And remove the LCD_L1 if it's not needed.

Thanks again, Darrel!