Please post your code in code tags, and a schematic of your entire circuit, including "unrelated" parts.