You need to post the schematic and the code, if you want some real help.

Cheers

Al.