/*
* Programmer: Shivendra Kr. Sahu
* Target PIC: PIC16F676 or PIC16F684
* use like this FOR 70 VM
--www-- -----ADC
* 5*4.7k |
>
>1.8k
|
*/
#include <htc.h>
//#include<pic16f676.h>
//__CONFIG (FOSC_INTRCIO & MCLRE_ON & BOREN_ON & CP_ON & CPD_OFF & WDTE_OFF & PWRTE_OFF );// For 16F676 - comment for 16F684
#include<pic16f684.h>
__CONFIG (FOSC_INTOSCIO & MCLRE_ON & BOREN_ON & CP_ON & CPD_OFF & WDTE_OFF & PWRTE_OFF );// For 16F684 - comment for 16F676
#define _XTAL_FREQ 4000000
void main(void) {
char samplecounter;
initialize();
while (1){
voltage = getVoltage();
for (samplecounter = 0; samplecounter < 80; samplecounter++){
displayVoltage();
}
}
}