adc programming help

Status
Not open for further replies.
Time in between acquisitions depends on the impedance of what you are measuring. What is this poor uC going to be thats 75C?
 
That's the expected max operating temp inside a metal case exposed to the sun. impedance is <10K

I am looking at code optimisation and the Sim tells me I am wasting around 150uSec 'waiting' on the adc channel acq and the adc sampling.

I am thinking about breaking up the adc sampling into pieces and calling each sample then continuing regular code for a bit then saving the sample and queueing another adc channel...do more regular code....adc sample...do more regular code....save the sample ...queue next channel etc.

Interleaving the adc time requirements within the existing code structures. perhaps I can save those 150usec.
 
Last edited:
programming help

sir, i am new to pic programming i did a adc code using 16f877.
but it did not work please help me by checking my code is wrong or right.
i am compare only 5v.
the compiler is MPLAB.
frequency is 12Mhz.
 

Attachments

  • CYCLO.C
    3.2 KB · Views: 160
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…