I have an algoritm for how I create pulse to drive mosfets. I take the value from tako and I compare it the control voltage (I set it with pot at first) and I get new D. I want to see some code examples in assemble for analog to digital conversion by using a pot in pic input (1* to set reference voltage and 2* for tako feedback). In my program, pic is continuously take voltage which comes from tako, and change duty cycle. If you give me some code examples or web pages includes written programs in these topics, i will happy more.
Thank you for your interest.