sleep mode hardware problem

Status
Not open for further replies.

ismu

Full Member level 2
Joined
May 12, 2009
Messages
145
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Location
nil
Activity points
2,340
look bellow picture
u can see upper diode and resistor used to charge battery when 5v power supply present at same time PIC will work normal mode bcz ~3v present in RB0 pin, if suppoly become 0v then RB0 !=0v so pic can,t goto sleep mode , when i give RB0=0v from externaly(directly to gnd removing from previous connection) then its work fine. program is when RB0=0 then goto sleep else work in normal mode.Can u find wats the hardware fault/ is there any other simple good ckt instead of this?
 

Attachments

  • sleep.png
    26.8 KB · Views: 78

are you using interrupt in RB0? could you post your code? also, add another diode and a pull-down resistor for RB0...
 
Reactions: ismu

    ismu

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…