Maybe you could post your code and tell us what chip you are using...