Dear all!
I need a help on C Code for PIC 16f877A interfacing with ADC (AD7715-5)
My analogue input is 0-5 volts. First of all I wanna show something from ADC in PORTD that is connected to 4 seven segments.
I used an ADC because I need more accuracy and the 10 bit ADC of PIC16f877A is not enough for me.
please help me to do it.
Regards,
uh! Ian, thank you for your comment,
I use MikroC, I searched everywhere for an example code but unfortunatelly I didn't find anything
yeah there are plenty of noises from compressor and vacuum pump in my system, but It is solvable!
I just need a vivd sample for this application of PIC uC.
thanks again
I mean... When you have it done.... What speed will you be sampling....
I analyse crane movement and lifting capacities and sometimes pressure in the hydraulic rams... the movement is slow so I can get away with oversampling
If you signal was fast, like a frequency, you can't afford too much oversampling... I was just wondering about the precision.
aha... I wanna use this micro for a "vacuum pressure guage indicator". In this system, pressure, sometimes varies fast and sometimes varis slow.
Indeed a 12 bit ADC is enough for me, but I had a AD7715-5 and I just wanted to write the body of the PIC software for this purpose. and later I'll change AD7715 with a 12 bit ADC.
I'll give it a go today... Trouble is! I'll have to write the whole thing in Hi-tech so I can simulate it to prove it works I only have simulation models for slightly different models... I'll get back to you.
Dear Ian
I'm wondering that if different C Compilers have different built-in functions? for example if I write a Program in MikroC, it will be different from the program that wrote in Hitech or CCS?!
I'm confused
would you please answer me
thannks
It will take some time as I can't simulate the adc you are using... I was going to change the read function to take a channel parameter so you can specify which channel to read.