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.

[SOLVED] Need help PIC18F4550 comparator simulation in proteus

Status
Not open for further replies.

john blue

Advanced Member level 3
Advanced Member level 3
Joined
Jun 7, 2007
Messages
821
Helped
213
Reputation
430
Reaction score
204
Trophy points
1,323
Activity points
4,749
I have the following codes. But, proteus doesnt seems to work. Anyone can help? Thanks in advance.


Code:
#include <htc.h>


void main(){


 	CMCON = 0x01;   //Outputs' Mode

  	TRISA0 = 1;    // Configure as input pin for negative input of Comparator 1
    TRISA3 = 1;    // Configure as input pin for positive input of Comparator 1
	TRISA4 = 0;    // Output

	TRISA1 = 1;

while(1){


    
	
}

	
	
	}
 

It seems that the comparator didnt compare the inputs :)
 

Attachments

  • comparator test.rar
    24.3 KB · Views: 136

Got it.

I'll load your Proteus design and see what I can figure out.

I'm finishing up some coding for a client's project and should be finished in a few hours. I'll troubleshoot your Proteus project as soon as I finish.

BigDog

---------- Post added at 02:22 ---------- Previous post was at 02:19 ----------

By the way, these intermittent forum anomalies are starting to drive me crazy. It took me three attempts to post my last message.
 

Tried on hardware and it works. :p
 

I still have not been able to achieve expect result in Proteus. I'm starting to believe it is a bug.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top