stu,

could you post your code and schematic?

without it all we can do is guessing.

regatds

Ralph