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; Mon, 16 Nov 2020 06:34:55 -0800 Received: from PCH.MIT.EDU (localhost.localdomain [127.0.0.1]) by PCH.mit.edu (8.14.7/8.12.8) with ESMTP id 0AGEMLo1008979; Mon, 16 Nov 2020 09:22:43 -0500 Received: from outgoing-exchange-1.mit.edu (OUTGOING-EXCHANGE-1.MIT.EDU [18.9.28.15]) by PCH.mit.edu (8.14.7/8.12.8) with ESMTP id 0AGEMJrE008957 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 16 Nov 2020 09:22:19 -0500 Received: from oc11exedge2.exchange.mit.edu (OC11EXEDGE2.EXCHANGE.MIT.EDU [18.9.3.18]) by outgoing-exchange-1.mit.edu (8.14.7/8.12.4) with ESMTP id 0AGEMD2O004468 for ; Mon, 16 Nov 2020 09:22:19 -0500 Received: from oc11expo8.exchange.mit.edu (18.9.4.13) by oc11exedge2.exchange.mit.edu (18.9.3.18) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Mon, 16 Nov 2020 09:21:58 -0500 Received: from oc11exhyb2.exchange.mit.edu (18.9.1.98) by oc11expo8.exchange.mit.edu (18.9.4.13) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Mon, 16 Nov 2020 09:22:03 -0500 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.173) by oc11exhyb2.exchange.mit.edu (18.9.1.98) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Mon, 16 Nov 2020 09:22:03 -0500 Received: from BN3PR05CA0038.namprd05.prod.outlook.com (2603:10b6:400::48) by BYAPR01MB4968.prod.exchangelabs.com (2603:10b6:a03:1b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.25; Mon, 16 Nov 2020 14:22:00 +0000 Received: from BN8NAM11FT034.eop-nam11.prod.protection.outlook.com (2603:10b6:400:0:cafe::ca) by BN3PR05CA0038.outlook.office365.com (2603:10b6:400::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3589.14 via Frontend Transport; Mon, 16 Nov 2020 14:22:00 +0000 Received: from bosmailout04.eigbox.net (66.96.187.4) by BN8NAM11FT034.mail.protection.outlook.com (10.13.176.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3564.28 via Frontend Transport; Mon, 16 Nov 2020 14:22:00 +0000 Received: from bosmailscan03.eigbox.net ([10.20.15.3]) by bosmailout04.eigbox.net with esmtp (Exim) id 1kefOK-0004Ej-Dc for piclist@mit.edu; Mon, 16 Nov 2020 09:22:00 -0500 Received: from [10.115.3.31] (helo=bosimpout11) by bosmailscan03.eigbox.net with esmtp (Exim) id 1kefOK-0000Uo-3j for piclist@mit.edu; Mon, 16 Nov 2020 09:22:00 -0500 Received: from bosauthsmtp19.yourhostingaccount.com ([10.20.18.19]) by bosimpout11 with id t2Mx230010QhFXN012N00G; Mon, 16 Nov 2020 09:22:00 -0500 Received: from 035-134-194-170.res.spectrum.com ([35.134.194.170]:63453 helo=michael2) by bosauthsmtp19.eigbox.net with esmtpa (Exim) id 1kefOG-0002Z7-Ns for piclist@mit.edu; Mon, 16 Nov 2020 09:21:57 -0500 From: Don Kuenz To: "piclist@mit.edu" Sender: "piclist-bounces@mit.edu" Date: Mon, 16 Nov 2020 06:21:56 -0800 Subject: [PIC] An In-Circuit Serial Programmer application Thread-Topic: [PIC] An In-Circuit Serial Programmer application Thread-Index: Ada8JaeEt7NXVsZKSRGdnCx4Kh8bFg== Message-ID: References: <5FB1CFE4.26802.175E8E5C@brent.eds.co.nz> List-Help: List-Subscribe: , List-Unsubscribe: , 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 eigbox.net designates 66.96.187.4 as permitted sender) receiver=protection.outlook.com; client-ip=66.96.187.4; helo=bosmailout04.eigbox.net; dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crcomp.net; s=dkim; h=Sender:References:Subject:From:To:Date:Reply-To:Message-ID:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=BjE3q2cybX8kYWDX8FWNhHMEEl7ne3Zei+f6gn6mEKs=; b=hlZcTbsz8M98APeyh57v5r9y5H fXuOi0rnMj2f7G1E0osJZMrsSq5hFZi566APCj32pBAEfQhwwSwTOZspix4raK0s7qZbN1i6LWqS0 rZIidZd0v7oB4pqjgWKU9P8BdRXN0LWlpvdd2ZvN/q021zfBOtcl1ykYLWMoDrHhhXvcSecaUKhBV wYxBoIzzZC93TfU1PpuFBtAq4Elk7UTn0L6Q8iFVSm3Co9OuRSeBZgJx+C4PyUB4cy+j7ws6yCdj6 2k9IViwe6GhTZ/+M1dvHRTu4Jdia7eIshu6h2tGkg4T/uILZXeG/FYUQWy5jmJEG6cueiLvx0Kqty wsy+H9Sw==; authentication-results: spf=pass (sender IP is 66.96.187.4) smtp.mailfrom=eigbox.net; mit.edu; dkim=fail (no key for signature) header.d=crcomp.net; mit.edu; dmarc=none action=none header.from=crcomp.net; 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-authority-analysis: v=2.3 cv=DtjNBF3+ c=1 sm=1 tr=0 a=9UqFsMnAB6EOkiq4MrOclQ==:117 a=06cp/ESuOE+YetzzmHXoLw==:17 a=HpEJnUlJZJkA:10 a=nNwsprhYR40A:10 a=kE10iPYx14oA:10 a=QejfARXMAAAA:8 a=rxw6vWQX2D06cZyFN5MA:9 a=BC3gsuZa1vz2YJYxs7Nf:22 a=Z5ABNNGmrOfJ6cZ5bIyy:22 a=UDnyf2zBuKT2w-IlGP_r:22 x-en-authuser: mail@crcomp.net x-en-userinfo: de154d50cc16294658ed7b7577430c21:931c98230c6409dcc37fa7e93b490c27 x-en-orighost: 035-134-194-170.res.spectrum.com x-en-origip: 35.134.194.170 x-topics: [PIC] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 =20 Brent wrote: > IMHO the ICSP circuit can be simpler yet remain effective i many cases...= just a > single pull up resistor to VDD. Value of 10k works well for me, using ICD= 3 and > ICD4. The resistor must present not too great a load to the programmer du= ring HV > programming mode, nor push up VDD appreciably. Conversely it must be low > P.S. - It also works well with a Bootloader. > use the ICSP interface to install the TinyBootloader or an equivalent wit= h > the ICSP Dat and Clk lines set at the Rx and Tx lines and you have a nice > development device with Programming, Debugging and Communications all > achieved via a USB/Serial adapter - Great to hand out to students or use > for casual experimenting as well as in target applications. > enough value to prevent unwanted MCLR pul downs by noise. A couple of bas= ic > tips: keep traces short around ICSP, and don't expose VDD to the outside = world > where it can pick up noise. In most cases the RC reset circuit is no grea= t loss with > most PIC's having fairly decent internal power up & brownout reset genera= tors that > can be enabled. > > Yes ~ a bootloader is indispensable once you have settled on a good one. = All going > well you then only need to use ICSP once... so isolation becomes less imp= ortant. I > prefer a bootloader that doesn't require a button press, DIP switch, or j= umper, to > initiate it... these are time consuming and annoying steps during develop= ment > code/program/debug cycles (frequent for me), and a complication when doin= g field > updates. Ideal: bootloader runs for a brief time at reset and invokes loa= ding if > detected else runs application, optionally add hardware reset capability = by using > e.g. the RTS line, and/or have the application code invoke the bootloader= after > receiving a serial escape sequence (unless this presents an unacceptable = security > risk). >=20 > Nice work on the web page though, good circuit design/description. I skip= read it > and only noticed a missing "be" in 4th pragraph "can not left unused". Your successful experience with using a single pull up resistor and dropping the diode and capacitor confirms my suspicion the old=20 Guideline's mostly a historic artifact. This thread gives me plenty to=20 think about. The typo on the webpage's now corrected. My website attempts to follow an ARRL format with its projects. It's my goal to push my lab=20 notes out to the web. Danke, --=20 Don, KB7RPU, https://www.qsl.net/kb7rpu There was a young lady named Bright Whose speed was far faster than light; She set out one day In a relative way And returned on the previous night. --=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 .