[SOLVED] Need help PIC18F4550 comparator simulation in proteus

Status
Not open for further replies.

john blue

Advanced Member level 3
Joined
Jun 7, 2007
Messages
821
Helped
213
Reputation
430
Reaction score
204
Trophy points
1,323
Visit site
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: 140

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.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…