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, 4 Jan 2020 23:48:49 -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 0057bLBH032149; Sun, 5 Jan 2020 02:39:57 -0500 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 0057bJa5032145 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 5 Jan 2020 02:37:20 -0500 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 0057YxeH014993 for ; Sun, 5 Jan 2020 02:37:05 -0500 Received: from oc11expo32.exchange.mit.edu (18.9.4.113) by w92exedge4.exchange.mit.edu (18.7.73.16) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Sun, 5 Jan 2020 02:33:36 -0500 Received: from oc11exhyb1.exchange.mit.edu (18.9.1.60) by oc11expo32.exchange.mit.edu (18.9.4.113) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Sun, 5 Jan 2020 02:35:28 -0500 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.100) by oc11exhyb1.exchange.mit.edu (18.9.1.60) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Sun, 5 Jan 2020 02:35:28 -0500 Received: from BYAPR01CA0070.prod.exchangelabs.com (2603:10b6:a03:94::47) by BL0PR01MB5137.prod.exchangelabs.com (2603:10b6:208:2f::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.10; Sun, 5 Jan 2020 07:35:26 +0000 Received: from CO1NAM03FT029.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e48::201) by BYAPR01CA0070.outlook.office365.com (2603:10b6:a03:94::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.12 via Frontend Transport; Sun, 5 Jan 2020 07:35:25 +0000 Received: from mail-ot1-f44.google.com (209.85.210.44) by CO1NAM03FT029.mail.protection.outlook.com (10.152.80.168) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Sun, 5 Jan 2020 07:35:24 +0000 Received: by mail-ot1-f44.google.com with SMTP id k14so67139039otn.4 for ; Sat, 04 Jan 2020 23:35:24 -0800 (PST) From: Mike Rigby-Jones To: Microcontroller discussion list - Public. Sender: "piclist-bounces@mit.edu" Date: Sat, 4 Jan 2020 23:35:12 -0800 Subject: Re: [EE] MCP2551 CANbus driver behaviour Thread-Topic: [EE] MCP2551 CANbus driver behaviour Thread-Index: AdXDnJG8F5u6UKWUSZmMvWfgHGnzSQ== Message-ID: References: <5E118492.6050800@narwani.org> List-Help: List-Subscribe: , List-Unsubscribe: , In-Reply-To: <5E118492.6050800@narwani.org> 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 gmail.com designates 209.85.210.44 as permitted sender) receiver=protection.outlook.com; client-ip=209.85.210.44; helo=mail-ot1-f44.google.com; dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=C+N+wzWBXNQ40hmM2zix+rY4yPFF/VzurgTBriFbZ8o=; b=G/lENtDQK/7hve9OxUGFxrv+wF1Uo1t0+gsdgzQXjnbjFbVsuYwDb1ZGwcFWPsVgZA MLHzqJNIVHU22WsAZbSQdPRLldZxRROsHQG/QAhR6rjlvDS4LJBNqiLiQHbvujrxxvAh BH8W9mJmqCHciMcUaPD1AbKgS9zVlj7XUH5g8V32+JhzRI/+K8GsSJ2RHCCoP88F2rlj zvQDv9VNmdZcD3ceCRgbcNHwYdtHzOYsz8sNnoQIE/koActcWJzwRmsDZAohj7RAuDXn 2qW0aBo/kDN6TY6KJjkXpkF1iL1I5G0i70QbE7Kz82cqE10OVG45zBWfqNoZ9evDLL5H eeFA== authentication-results: spf=pass (sender IP is 209.85.210.44) smtp.mailfrom=gmail.com; mit.edu; dkim=pass (signature was verified) header.d=gmail.com;mit.edu; dmarc=pass action=none header.from=gmail.com;compauth=pass reason=100 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:a9d:6f0d:: with SMTP id n13mr113063407otq.165.1578209723504; Sat, 04 Jan 2020 23:35:23 -0800 (PST) x-topics: [EE] 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 Look at section 1.5 TXD Permanent Dominant Detection. The driver will disable outputs if you hold a low state for more than 1.25ms to protect the CAN bus. Regards Mike On Sun, 5 Jan 2020, 06:42 Neil, wrote: > Hi, > > Tinkering with an MCP2551 CAN driver chip on a breadboard and the > behaviour is not what I expect... > First, I've got 5V and ground to Vdd and Vss resp., a 20k resistor on Rs > to ground, and a 120-ohm resistor across CANH and CANL. > Second, the datasheet is here... > http://ww1.microchip.com/downloads/en/DeviceDoc/20001667G.pdf > > Table 1-2 (truth table) says that I should get a differential voltage > (~2V as per CAN spec) when TXD is low, and I expect that it will be > continuous, but I get a spike for a few ms (haven't actually measured > the time) > > What an I missing or misinterpreting here? > > Cheers, > -Neil. > > > -- > 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 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .