use p16f628 as DVM

Thread Starter

damsgaard

Joined Jun 29, 2012
3
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.
 

absf

Joined Dec 29, 2010
1,968
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
 

Thread Starter

damsgaard

Joined Jun 29, 2012
3
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,
 

MrChips

Joined Oct 2, 2009
30,720
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.
 

Thread Starter

damsgaard

Joined Jun 29, 2012
3
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 ???
 
Top