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; Sun, 19 Jul 2020 21:06:42 -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 06K3ueYW020346; Sun, 19 Jul 2020 23:57:25 -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 06K3udf1020343 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 19 Jul 2020 23:56:39 -0400 Received: from w92exedge4.exchange.mit.edu (W92EXEDGE4.EXCHANGE.MIT.EDU [18.7.73.16]) by outgoing-exchange-3.mit.edu (8.14.7/8.12.4) with ESMTP id 06K3wXaR003664 for ; Sun, 19 Jul 2020 23:58:34 -0400 Received: from w92expo17.exchange.mit.edu (18.7.74.71) by w92exedge4.exchange.mit.edu (18.7.73.16) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Sun, 19 Jul 2020 23:56:29 -0400 Received: from oc11exhyb7.exchange.mit.edu (18.9.1.112) by w92expo17.exchange.mit.edu (18.7.74.71) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Sun, 19 Jul 2020 23:56:38 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.176) by oc11exhyb7.exchange.mit.edu (18.9.1.112) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Sun, 19 Jul 2020 23:56:38 -0400 Received: from CO2PR04CA0086.namprd04.prod.outlook.com (2603:10b6:104:6::12) by MWHPR01MB2687.prod.exchangelabs.com (2603:10b6:300:fa::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.23; Mon, 20 Jul 2020 03:56:36 +0000 Received: from CO1NAM03FT039.eop-NAM03.prod.protection.outlook.com (2603:10b6:104:6:cafe::f1) by CO2PR04CA0086.outlook.office365.com (2603:10b6:104:6::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.18 via Frontend Transport; Mon, 20 Jul 2020 03:56:36 +0000 Received: from mail-pl1-f173.google.com (209.85.214.173) by CO1NAM03FT039.mail.protection.outlook.com (10.152.81.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.18 via Frontend Transport; Mon, 20 Jul 2020 03:56:35 +0000 Received: by mail-pl1-f173.google.com with SMTP id d1so8065353plr.8 for ; Sun, 19 Jul 2020 20:56:35 -0700 (PDT) From: James Burkart To: Microcontroller discussion list - Public. Sender: "piclist-bounces@mit.edu" Date: Sun, 19 Jul 2020 20:55:58 -0700 Subject: [PIC] MPLAB-X won't set PWM frequency above 25Hz Thread-Topic: [PIC] MPLAB-X won't set PWM frequency above 25Hz Thread-Index: AdZeSy2XaPmAqpepRWiLU6sGdeXUtA== Message-ID: 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: burkartstudios.com does not designate permitted sender hosts) dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burkartstudios-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=Ud9CpQG1cmQVQjuyd+STZK4XCpzCv922hSMn1mtoVpU=; b=k0gJVPf+ZJIOYNrVA4Mc52H1Qa0j9fzUCkDSObtyaLesaCelzIySFB9vnug/886TnO YjNmPjc3Gh8/WGK8SpIxnd3jdmjW/ZZ6AtqKhd45wPYmbI9wTcHlu7AJmRAShf1O71z2 BPAdG5y11qzz5a5brigYr6DsSIfX+MYNChiqa+jFZAzXmTVDLVL/+v8GZipdsT4fENRo CDIC8/t2qE5+rlXBWcaT7NQQ2P41AbQCpIqWqkjYT1OoFwqv+aQK2uVDBQhtDztuMF+E jr0+WTWruBP9DCc+GG/JKzpEVnhBD3qwum1LA6uXrQJXuipU3HTyfFjUN8WPmCmvaUNi TTZA== authentication-results: spf=none (sender IP is 209.85.214.173) smtp.mailfrom=burkartstudios.com; mit.edu; dkim=pass (signature was verified) header.d=burkartstudios-com.20150623.gappssmtp.com; mit.edu; dmarc=none action=none header.from=burkartstudios.com; 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-received: by 2002:a17:90a:c305:: with SMTP id g5mr19689355pjt.62.1595217394738; Sun, 19 Jul 2020 20:56:34 -0700 (PDT) x-topics: [PIC] x-content-filtered-by: Mailman/MimeDel 2.1.6 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 I'm using MPLAB-X v5.35, and XC-8 v2.20. Using PIC16F1503. Brand new stand alone project. Set internal frequency to 16MHz. TMR2 period set to 250ns. PWM frequency shows 25Hz. Nothing I do is setting the PWM frequency correctly. What am I missing here? I'll have to dig out my stuff to breadboard it and see what the actual PWM frequency is, but this is frustrating. I'd like to set the timer period to 64 us and get a PWM frequency of 15.625 kHz. --=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 .