Hi Charles, After a cursory look, the line using the logical AND is jumping out at me as something that looks odd to me: MOVF HV_SetPH && DA_MASK, W ;Changed Is this what you want? Best regards, Ken Pergola -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics