use p16f628 as DVM

Discussion in 'Programmer's Corner' started by damsgaard, Oct 18, 2012.

  1. damsgaard

    Thread Starter New Member

    Jun 29, 2012
    3
    0
    Hi
    Is der anyone who can help me with a program i asm for a DVM using P16f628.

    I have a frec. counter based on this chip and will like to buildt in a DVM funktion in the same program.

    So it will be very helpfull with a litle help to do that.
     
  2. absf

    Senior Member

    Dec 29, 2010
    1,493
    372
    The 16f628 doesnt have ADC built in and its limited flash (2kW) might not be able to squeeze in the program for both a frequency counter and a mV meter. I suspect 16F88 is a better choice. If possible get a PIC with 12 bit ADC.

    Allen
     
  3. damsgaard

    Thread Starter New Member

    Jun 29, 2012
    3
    0
    Thanks for the response back

    I am a new start in working with pic, so be indulgent

    I had expected to analog inputs could be used as a voltmeter

    Maybe I'm wrong, I want to measure AC picked up with a loop at the same time with a counter, but 2 separate function, and not at the same time, max voltage 5 volts

    excuse me bad English,
     
  4. Markd77

    Senior Member

    Sep 7, 2009
    2,803
    594
  5. MrChips

    Moderator

    Oct 2, 2009
    12,449
    3,363
    There are other ways to measure an analog parameter when you do not have a conventional analog-to-digital converter. All it takes is some imagination and creativity.

    Since you already have a frequency counter, one way to measure voltage is to use a voltage-to-frequency converter.
     
  6. damsgaard

    Thread Starter New Member

    Jun 29, 2012
    3
    0
    Thanks for the tip, I'l try to go for the dc to frec converter, think it's a good idee.

    In the last end, mybe I have to tranform my frec. counter program to another pic, I have p16f690 in my spare box, hope I can use that ???
     
Loading...