--===============1152624000== Content-Type: text/plain; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by pch.mit.edu id l5C3pfkT009724 I had removed the pic just to be sure...no luck though. Thanks, FJ From: Rolf Reply-To: "Microcontroller discussion list - Public." To: "Microcontroller discussion list - Public." Subject: Re: [PIC] one button on/off circuit problem Date: Mon, 11 Jun 2007 23:15:26 -0400 Not as simple as having the pin A1 configured as output and set low? Always see 0V that way ;-) Rolf fred jones wrote: > Thanks for the reply. I understand this. Sorry if I didn't make it=20 clear. > In order for this to work, as I understand it, there should be a high = on=20 the > A1 PIC pin and when the button is pressed, the PIC should see it go lo= w=20 and > then take A0 low in code. The problem is that I can't get 5V on the A= 1 > line, it stays low no matter what I've tried as previously explained. = I > figured putting a 10K pullup resistor to 5V on the A1 pin would give m= e a > constant 5V on the A1 pin until the button is pressed but still it=20 doesn't > give me 5V on the A1 pic pin. > Thanks, > FJ > > > From: Kevin Timmerman > Reply-To: "Microcontroller discussion list - Public." > To: "Microcontroller discussion list - Public." > Subject: Re: [PIC] one button on/off circuit problem > Date: Mon, 11 Jun 2007 22:30:57 -0400 > > A.1 is an input to the PIC so it can read the switch state. > > To turn power off, set A.0 low. > > > At 09:46 PM 6/11/2007, you wrote: > >Hi all, > >I need to ask for help on something cause I obviously don't know wha= t=20 I'm > >doing ;-) > > > >I took this circuit here: > >http://www.pic101.com/pushpush.gif > >And I replaced the pass transistor with a P channel FET. I can get = it=20 to > >turn on and latch with taking the pic pin A0 high, However I can't t= urn=20 it > >off by getting 5V on pin A1. I put a 10K resistor on the A1 line to= 5V > but > >don't get a high. I tried it with the 4.7K from collector to Gate a= s > shown > >and without. I tried a 1Mohm resistor from Gate to Source in place = of=20 the > >10K. No difference in any case. I can't see a 5V signal at A1. He= lp > with > >what I'm doing wrong is greatly appreciated. > >Thanks, > >FJ > > > >_________________________________________________________________ > >Get a preview of Live Earth, the hottest event this summer - only on= =20 MSN > >http://liveearth.msn.com?source=3Dmsntaglineliveearthhm > > > >-- > >http://www.piclist.com PIC/SX FAQ & list archive > >View/change your membership options at > >http://mailman.mit.edu/mailman/listinfo/piclist > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > > _________________________________________________________________ > Like puzzles? Play free games & earn great prizes. Play Clink now. > http://club.live.com/clink.aspx?icid=3Dclink_hotmailtextlink2 > > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist _________________________________________________________________ PC Magazine=92s 2007 editors=92 choice for best Web mail=97award-winning = Windows=20 Live Hotmail.=20 http://imagine-windowslive.com/hotmail/?locale=3Den-us&ocid=3DTXT_TAGHM_m= igration_HM_mini_pcmag_0507 --===============1152624000== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 7bit -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist --===============1152624000==--