The decoder is set for 14 speed steps. IE, the number you have in CV29 is wrong. One of the bits in the speed packet for 14 speed steps ALSO controls the headlights, so when you send 28 speed steps instead, that bit varies on and off as you go through the speed steps. Hence turnign the headlight on and off. You need to either adjust CV29 to allow 28/128 speed steps, or you need to set your DCC system to only send 14 speed steps to that loco address.
--Randy
Modeling the Reading Railroad in the 1950's
Visit my web site at www.readingeastpenn.com for construction updates, DCC Info, and more.