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.

voltage comparator with interrupt fails, PIC MCU

Status
Not open for further replies.

rajeshgaut

Newbie level 5
Joined
Apr 12, 2008
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,357
I am working with PIC 16f877A, using internal voltage comparator module with Interrupt.
The inverting pin is connected to 0 to 5 volt adjustable external ref voltage. adjusted for 2 volts.
at non-inverting pin is connected to pure sine wave voltage source (0 to 5 volt).

I want interrupt should occur when sine wave voltage reaches at 2 volts.
Now the problem is that… when sine wave voltage reaches to 2 volts the MCU gets hanged up. Even I am clearing the comparator flag in the interrupt subroutine. I tried to disable comp interrupt in interrupt subroutine but prob is same…

Please help me out….
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top