Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
betwixt and Susan thank you very much. The qualifier volatile solve my problem.
- - - Updated - - -
betwixt and Susan thank you so mach. The problem is solved thanks to the qualifier volatile that I missed.
betwixt , Thank you very much Sir for your help.The program is work now thanks to your last modification,you can see it below. but Please I want you to tell me if is correct or not.I want my program work and the interruption cut the program for 10 us in this time (10 us) only the ADC work. In...
betwixt, thank for your explanation. Actually I want to use interrupt (ADC interrupt or other...) to measure a voltage and a current for 10 us and use these measurements in a While Loop. I used another interrupt (Timer 0) but I do not know if we can use ADC in Timer 0 like in the program below...
I am using PIC16F877A to light up an LED I use ADC interrupt but the LED doesn't light up. here is my code please help me.
unsigned int k= 0 ;
unsigned adc_value1,adc_value2;
float V=0,V1,I1,I=0;
void interrupt()
{
if (PIR1.ADIF)
{
PIR1.ADIF=0; // clear AD interrupt flag...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.