Acidtech wrote:
WHat is your exact circuit for the pot producing the voltage? Also what brand of pot. I've got some pots that don't go to ground, which could explain why yours isn't. Not sure why it is getting to 1023 before it should. Can you check the Vdd pin on the module and make sure it is aty 5v and not 4v. If it is at 4v that would explain the early reading.
Thank you for guiding me. I found out the problem with your help.
Actually circuit is generating a square wave of amplitude 0-5v. I have checked out the voltage at vdd pin,it is 3.7v approximately. I have given 5v power supply to the development kit (and to my circuit also as it needs strictly 5v). but dev kit has 7805 regulator included in it which regultes 5v to 3.7v. After increasing power supply to 6v,
BAP is giving the exact reading.