Mar 16, 2012 #1 ismu Full Member level 2 Joined May 12, 2009 Messages 145 Helped 1 Reputation 2 Reaction score 1 Trophy points 1,298 Location nil Activity points 2,340 Can any one help me to give simple program/ algoritham logic to read adc in PIN2 (bellow picture) at 2v resolution in ac input (minimum step voltage = 2v in ac input , this should be detect PIC). . 16f72 has only 8bit adc Attachments Untitled.png 138.3 KB · Views: 69
Can any one help me to give simple program/ algoritham logic to read adc in PIN2 (bellow picture) at 2v resolution in ac input (minimum step voltage = 2v in ac input , this should be detect PIC). . 16f72 has only 8bit adc
Mar 17, 2012 #2 S skogsjanne Full Member level 3 Joined May 28, 2009 Messages 172 Helped 26 Reputation 52 Reaction score 26 Trophy points 1,308 Activity points 2,084 With that setup assuming Vref is 5V you will get a resolution of (3000 + 10) / 10 * 5 / 255 = 5.9V Not 2V. For code go to www.microchip.com or some PIC forum you can find using a search engine. Good luck!
With that setup assuming Vref is 5V you will get a resolution of (3000 + 10) / 10 * 5 / 255 = 5.9V Not 2V. For code go to www.microchip.com or some PIC forum you can find using a search engine. Good luck!
Mar 17, 2012 #3 A ark5230 Advanced Member level 3 Joined Jun 29, 2009 Messages 862 Helped 163 Reputation 324 Reaction score 140 Trophy points 1,323 Location India Activity points 6,187 5.9 is nearly equal to 6 so reducing the 10K to its one third value (as needed) would bring things under control it seems.
5.9 is nearly equal to 6 so reducing the 10K to its one third value (as needed) would bring things under control it seems.
Mar 18, 2012 #4 S skogsjanne Full Member level 3 Joined May 28, 2009 Messages 172 Helped 26 Reputation 52 Reaction score 26 Trophy points 1,308 Activity points 2,084 No, the other way around.
Mar 18, 2012 #5 A ark5230 Advanced Member level 3 Joined Jun 29, 2009 Messages 862 Helped 163 Reputation 324 Reaction score 140 Trophy points 1,323 Location India Activity points 6,187 Yes, true. It is applicable for Vref.