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; Tue, 29 Sep 2020 20:59:40 -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 08U3mloR026765; Tue, 29 Sep 2020 23:49:38 -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 08U3mjsp026762 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 29 Sep 2020 23:48:46 -0400 Received: from w92exedge3.exchange.mit.edu (W92EXEDGE3.EXCHANGE.MIT.EDU [18.7.73.15]) by outgoing-exchange-3.mit.edu (8.14.7/8.12.4) with ESMTP id 08U3mbrf031082 for ; Tue, 29 Sep 2020 23:48:45 -0400 Received: from w92expo16.exchange.mit.edu (18.7.74.70) by w92exedge3.exchange.mit.edu (18.7.73.15) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Tue, 29 Sep 2020 23:48:01 -0400 Received: from oc11exhyb8.exchange.mit.edu (18.9.1.113) by w92expo16.exchange.mit.edu (18.7.74.70) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Tue, 29 Sep 2020 23:48:38 -0400 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.42) by oc11exhyb8.exchange.mit.edu (18.9.1.113) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Tue, 29 Sep 2020 23:48:38 -0400 Received: from MWHPR17CA0074.namprd17.prod.outlook.com (2603:10b6:300:c2::12) by BL0PR01MB4388.prod.exchangelabs.com (2603:10b6:208:83::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.22; Wed, 30 Sep 2020 03:48:36 +0000 Received: from CO1NAM03FT059.eop-NAM03.prod.protection.outlook.com (2603:10b6:300:c2:cafe::12) by MWHPR17CA0074.outlook.office365.com (2603:10b6:300:c2::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.14 via Frontend Transport; Wed, 30 Sep 2020 03:48:36 +0000 Received: from premium47-1.web-hosting.com (68.65.123.241) by CO1NAM03FT059.mail.protection.outlook.com (10.152.81.192) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.34 via Frontend Transport; Wed, 30 Sep 2020 03:48:35 +0000 Received: from 107-145-246-199.res.spectrum.com ([107.145.246.199]:59176 helo=[192.168.10.106]) by premium47.web-hosting.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1kNT6R-001Rg3-MQ; Tue, 29 Sep 2020 23:48:34 -0400 From: Neil To: Microcontroller discussion list - Public. Sender: "piclist-bounces@mit.edu" Date: Tue, 29 Sep 2020 20:48:25 -0700 Subject: [PIC] 18F...K22, K42, K40 Thread-Topic: [PIC] 18F...K22, K42, K40 Thread-Index: AdaW3h/ZZO3sjZ8PQqmd7h/gbNDBUQ== Message-ID: <5F740009.9050802@narwani.org> 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: None (protection.outlook.com: narwani.org does not designate permitted sender hosts) dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=narwani.org ; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date: Message-ID:Subject:From:Reply-To:To:Sender:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=sAAf5YhEmUcn1GsDEvMbmUUTkDpK6lYt2LFn/iWOz/g=; b=OtSfCmq5FbKZdb3nz7yInUztCG 0n5MND+2QNhXFRmdY2R6/VsziBFFkPQP0uJcbbwWcUrePSO7BD/RCkTjisvTp9CqbreneHDYnPCD2 WpHao+bfeVSIDIR8VBz4dHEMY6AcAqxlLttaxll6DShuGPAqPDeb0Y/LVrJbAq6hnzj0WZTVh618P ZzkSNXuLLRhC/sJd//3bvbw98AjIdQsk/v8RAjwAKgNB+FUglnlSFO4ulOa18mb04NMuePWPxSxKL hnVua5hpWiG/yLLCoIY7O0/S/BelbaoT9TDIGaYwxKktU/9Hb5GKe8TDxPhtwJEduHBqn8Z21LLx/ rV/b78TA==; authentication-results: spf=none (sender IP is 68.65.123.241) smtp.mailfrom=narwani.org; mit.edu; dkim=pass (signature was verified) header.d=narwani.org;mit.edu; dmarc=bestguesspass action=none header.from=narwani.org; user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 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-source-args: x-source-dir: x-antiabuse: Sender Address Domain - narwani.org x-source: x-authenticated-sender: premium47.web-hosting.com: ca4@narwani.org x-topics: [PIC] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Looking at doing a project for someone who chose the PIC18LF45K40. I remember a few years ago when I moved from K22 to K42 (to get the=20 12-bit ADC), there was an issue with pre-initializing EEPROM data, but=20 IIRC that had to do with MPLABX (vs MPLAB) and not an issue with the chip. I did some workaround with looking for a key value in a specific EEPROM=20 location and if not there, it went through an initialization routine. Being able to set different configurations in the code (using #define),=20 which then set specific values in EEPROM made life much easier. With the K40, looks like I'm forced to use MPLABX, though for a 3rd=20 party, I probably should suck up my hatred of MPLABX and use the newer=20 tools. That said... anyone know if I can pre-initialize EEPROM from MPLABX=20 nowadays? PS: I don't want to manually punch in values into MPLABX IPE. Cheers, -Neil. --=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 .