Continue to Site

Welcome to EDAboard.com

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.

[PIC] ADC stopped unexpectedly

Status
Not open for further replies.

parthiban

Newbie level 6
Newbie level 6
Joined
Jun 12, 2013
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
117
my project is based on PIC18F45K22 controller, in this project i read ac voltage at every 50ms by timer interrupt. i configured adc and timer everything is perfect untill input is present. if input AC voltage is removed the adc conversion process stopped and again input is present then its starts perfectly. i am unable to get, why adc stopped when input i not there? could anyone can tel?
 

As a first guess, the answer is in your code. Second guess, you managed to mistreat the PIC by the way you apply the AC voltage. In both cases, we are missing substantial information.
 

sorry, i have attached my ac sensing circuit, there is circuit step down ac to analog multiplexer then to pic. here you can get almost information.
 

Attachments

  • acsense.png
    acsense.png
    137.5 KB · Views: 70
Last edited:

my project is based on PIC18F45K22 controller, in this project i read ac voltage at every 50ms by timer interrupt. i configured adc and timer everything is perfect untill input is present. if input AC voltage is removed the adc conversion process stopped and again input is present then its starts perfectly. i am unable to get, why adc stopped when input i not there? could anyone can tel?
My money is on the interrupt you should never do ADC conversion in interrupt's always out side I do mine and it never stops
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top