I m making a battery voltage sensor using DSpic ..I m a bit stuck at this p= oint .my input voltage from tha battery is function of duty ie if my batter= y voltage is 5v then I have to update tha dutycycle. And increment tha vol= tage by 0.5 v. I m using a n type power mosfet as a switch (buck converter)= switching freq of 1k ... I need to write a control loop. Help please ..jus= t give me some hints to write tha control loop... lambs become Lions -----Original Message----- From: "Bob Blick" Sender: piclist-bounces@mit.edu Date: Sun, 04 Sep 2011 10:52:13=20 To: Microcontroller discussion list - Public. Reply-To: "Microcontroller discussion list - Public." Subject: Re: [PIC] Analog input default settings. On Sun, 04 Sep 2011 13:40 +0200, "Jan-Erik Soderholm" wrote: > And besides, this is a complete non-issue of course. >=20 > What did you thought the grey box labeled "Note:" on the > "GPIO PORT" page actualy was trying to tell you ?? Mere mortals sometimes miss things. That is what the Piclist is for. I've answered the "why doesn't RA4 go high" question many times, it never bothers me. Any questions about PICs are welcome here. Bob --=20 http://www.fastmail.fm - mmm... Fastmail... --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .