Received: from PCH.mit.edu (18.7.21.50) by mail.efplus.com (192.168.0.8) with Microsoft SMTP Server (TLS) id 8.3.485.1; Sat, 12 Sep 2020 10:26:37 -0700 Received: from PCH.MIT.EDU (localhost.localdomain [127.0.0.1]) by PCH.mit.edu (8.14.7/8.12.8) with ESMTP id 08CHG0H7021024; Sat, 12 Sep 2020 13:16:08 -0400 Received: from outgoing-exchange-3.mit.edu (OUTGOING-EXCHANGE-3.MIT.EDU [18.9.28.13]) by PCH.mit.edu (8.14.7/8.12.8) with ESMTP id 08CHG0Sl021021 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sat, 12 Sep 2020 13:16:00 -0400 Received: from oc11exedge1.exchange.mit.edu (OC11EXEDGE1.EXCHANGE.MIT.EDU [18.9.3.17]) by outgoing-exchange-3.mit.edu (8.14.7/8.12.4) with ESMTP id 08CHFsrk020613 for ; Sat, 12 Sep 2020 13:16:00 -0400 Received: from oc11expo15.exchange.mit.edu (18.9.4.20) by oc11exedge1.exchange.mit.edu (18.9.3.17) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Sat, 12 Sep 2020 13:15:52 -0400 Received: from oc11exhyb5.exchange.mit.edu (18.9.1.110) by oc11expo15.exchange.mit.edu (18.9.4.20) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Sat, 12 Sep 2020 13:15:58 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.101) by oc11exhyb5.exchange.mit.edu (18.9.1.110) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Sat, 12 Sep 2020 13:15:58 -0400 Received: from DM5PR22CA0016.namprd22.prod.outlook.com (2603:10b6:3:101::26) by SN2PR01MB2110.prod.exchangelabs.com (2603:10b6:804:9::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Sat, 12 Sep 2020 17:15:58 +0000 Received: from DM3NAM03FT065.eop-NAM03.prod.protection.outlook.com (2603:10b6:3:101:cafe::71) by DM5PR22CA0016.outlook.office365.com (2603:10b6:3:101::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16 via Frontend Transport; Sat, 12 Sep 2020 17:15:58 +0000 Received: from smtp.int.clayton.edu (168.28.240.17) by DM3NAM03FT065.mail.protection.outlook.com (10.152.82.254) with Microsoft SMTP Server id 15.20.3370.16 via Frontend Transport; Sat, 12 Sep 2020 17:15:57 +0000 Received: from kahuna.clayton.edu (kahuna.clayton.edu [168.28.245.116]) by smtp.int.clayton.edu (Postfix) with ESMTP id 49CA1C0073; Sat, 12 Sep 2020 13:15:57 -0400 (EDT) Received: by kahuna.clayton.edu (Postfix, from userid 1606) id 3921611800B4; Sat, 12 Sep 2020 13:15:57 -0400 (EDT) From: Byron Jeff To: Microcontroller discussion list - Public. Sender: "piclist-bounces@mit.edu" Date: Sat, 12 Sep 2020 10:15:57 -0700 Subject: Re: Driving P-channel mosfet. [EE] Thread-Topic: Driving P-channel mosfet. [EE] Thread-Index: AdaJKd8bmHJYn7wEQiCTTQtr51jOAA== Message-ID: <20200912171557.GA5541@clayton.edu> References: List-Help: List-Subscribe: , List-Unsubscribe: , In-Reply-To: Reply-To: Microcontroller discussion list - Public. Accept-Language: en-US X-MS-Exchange-Organization-AuthAs: Anonymous X-MS-Exchange-Organization-AuthSource: TS500.efplus4.local X-MS-Has-Attach: X-Auto-Response-Suppress: All X-MS-Exchange-Organization-SenderIdResult: Pass X-MS-Exchange-Organization-PRD: mit.edu X-MS-TNEF-Correlator: received-spf: Pass (protection.outlook.com: domain of clayton.edu designates 168.28.240.17 as permitted sender) receiver=protection.outlook.com; client-ip=168.28.240.17; helo=smtp.int.clayton.edu; dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=clayton.edu; s=csuk; t=1599930957; bh=n9FrIwN0SqLWWJ5gtAKcPyLpV8Ihf521+5stN5AXSIQ=; h=Date:From:To:Subject:References:In-Reply-To:From; b=iFGnyEuxSTreKl93aaRZ1AoLzD1ch3VetsSNZZCxnj5Zzd0y3WIyhTSxWux25l15s PvUCXDXzli4rt7d4F52RpUv6tgnJyC9/3jmtt9cY24xflxx2QWEG5zfASlT1+MO4to FMb4MJampPq0Nj4lVM7sYOV0jx3DuCWeaXnR0KnE= authentication-results: spf=pass (sender IP is 168.28.240.17) smtp.mailfrom=clayton.edu; mit.edu; dkim=pass (signature was verified) header.d=clayton.edu; mit.edu; dmarc=pass action=none header.from=clayton.edu; user-agent: Mutt/1.5.24 (2015-08-30) errors-to: piclist-bounces@mit.edu list-id: "Microcontroller discussion list - Public." list-post: x-beenthere: piclist@mit.edu x-mailman-version: 2.1.6 x-topics: [EE] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 PIC output maxes out at 25ma. You're swinging the line by 5V. V=3DIR so R=3DV/I =3D 5/0.025 =3D 200 ohms. Personally I wouldn't trust using the PIC's internal resistance to limit the current. The primary purpose of the resistor is to set the speed of the gate since it functions as a capacitor. So the lower the resistance, the faster the gate charges/discharges. So, put something in the ballpark of 200 ohms and everything should be fine. BAJ On Sat, Sep 12, 2020 at 04:59:08PM +0100, David C Brown wrote: > I am planning to use a P mosfet - type TP0606 - as a high side switch f= or > an LED display. Everything at 5v. The gate will be driven by a PIC > output. >=20 > Do I need a resistor between PIC and gate, and if so what value? > On t'internet I have seen circuits which don't use a resistor, circuits > which use 100E and circuits that use 10K > __________________________________________ > David C Brown > 43 Bings Road > Whaley Bridge > High Peak Phone: 01663 733236 > Derbyshire eMail: dcb.home@gmail.com > SK23 7ND web: www.bings-knowle.co.uk/dcb > >=20 >=20 >=20 > *Sent from my etch-a-sketch* > --=20 > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist --=20 Byron A. Jeff Associate Professor: Department of Computer Science and Information Technol= ogy College of Information and Mathematical Sciences Clayton State University http://faculty.clayton.edu/bjeff --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .