CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

problem with detect high with any pin that set to input
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun May 29, 2011 11:48 pm     Reply with quote

Your schematic doesn't show any circuits connected to the Opamp pins.
It doesn't show power and ground on the Opamps.
Post a new schematic that shows all the Opamp connections, including
resistors, capacitors, and the sensors. Post the manufacturer and part
number of the sensors that you have connected to the Opamps.

What voltages do you measure on the pins of Port B with an oscilloscope ?
Is it a continuous steady voltage level on each pin ?
Ttelmah



Joined: 11 Mar 2010
Posts: 19612

View user's profile Send private message

PostPosted: Mon May 30, 2011 2:00 am     Reply with quote

Also, the MCLR switch connection seems to be designed to blow the power supply.
Include the circuit of the oscillator, power supply, and what smoothing capacitors are round the PIC itself.

Best Wishes
amir6682



Joined: 23 May 2011
Posts: 14

View user's profile Send private message

PostPosted: Mon May 30, 2011 3:44 am     Reply with quote

can i separate output of opamp and test circuit with 5v out of supply???
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon May 30, 2011 11:28 am     Reply with quote

Disconnect all Opamps, and put this circuit on pin B0 of the PIC:
Code:

           +5v
            |
            <
            > 4.7K       
            <         ___  Switch 
To          |        _|_|_
PIC -----------------o   o------
pin                            |             
                              --- GND
                               -   

Then test it. The normal state is a logic high level on pin B0. When you
press the button, you will get a logic low level on pin B0.
amir6682



Joined: 23 May 2011
Posts: 14

View user's profile Send private message

PostPosted: Mon May 30, 2011 10:24 pm     Reply with quote

I separate opamp from the circuit and it was ok so problem is about opamp. My opamp is LM358. Thank for your help.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group