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; Thu, 22 Jul 2021 17:06:22 -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 16MNvDqf019586; Thu, 22 Jul 2021 19:58:14 -0400 Received: from outgoing-exchange-5.mit.edu (OUTGOING-EXCHANGE-5.MIT.EDU [18.9.28.59]) by PCH.mit.edu (8.14.7/8.12.8) with ESMTP id 16MNvCPR019583 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 22 Jul 2021 19:57:12 -0400 Received: from oc11exedge2.exchange.mit.edu (OC11EXEDGE2.EXCHANGE.MIT.EDU [18.9.3.18]) by outgoing-exchange-5.mit.edu (8.14.7/8.12.4) with ESMTP id 16MNt0q8020661 for ; Thu, 22 Jul 2021 19:57:11 -0400 Received: from w92exhyb8.exchange.mit.edu (18.7.71.113) by oc11exedge2.exchange.mit.edu (18.9.3.18) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Thu, 22 Jul 2021 19:56:46 -0400 Received: from oc11exhyb8.exchange.mit.edu (18.9.1.113) by w92exhyb8.exchange.mit.edu (18.7.71.113) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Thu, 22 Jul 2021 19:56:54 -0400 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (104.47.74.45) by oc11exhyb8.exchange.mit.edu (18.9.1.113) with Microsoft SMTP Server (TLS) id 15.0.1497.23 via Frontend Transport; Thu, 22 Jul 2021 19:56:54 -0400 Received: from MW4PR04CA0115.namprd04.prod.outlook.com (2603:10b6:303:83::30) by SJ0PR01MB6367.prod.exchangelabs.com (2603:10b6:a03:297::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.24; Thu, 22 Jul 2021 23:56:52 +0000 Received: from CO1NAM11FT063.eop-nam11.prod.protection.outlook.com (2603:10b6:303:83:cafe::7b) by MW4PR04CA0115.outlook.office365.com (2603:10b6:303:83::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.24 via Frontend Transport; Thu, 22 Jul 2021 23:56:52 +0000 Received: from cp6.superior-host.com (72.52.183.109) by CO1NAM11FT063.mail.protection.outlook.com (10.13.175.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.24 via Frontend Transport; Thu, 22 Jul 2021 23:56:52 +0000 Received: from [60.92.85.226] (port=60106 helo=[192.168.3.13]) by cp6.superior-host.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1m6iYc-0007qe-3a for piclist@mit.edu; Thu, 22 Jul 2021 19:56:51 -0400 From: James Wages To: "piclist@mit.edu" Sender: "piclist-bounces@mit.edu" Date: Thu, 22 Jul 2021 16:56:45 -0700 Subject: Re: [PIC] Automotive RS-485 & PIC18F25K80 Thread-Topic: [PIC] Automotive RS-485 & PIC18F25K80 Thread-Index: Add/VpJMbS6VQRvKSQyzJ23F+A0Sqg== Message-ID: References: <929F10AE-E5A5-452D-8573-34F012953A78@contoso.com> <5078D101-F751-4BCB-922F-A49E38AD6313@kiramek.com> 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 kiramek.com designates 72.52.183.109 as permitted sender) receiver=protection.outlook.com; client-ip=72.52.183.109; helo=cp6.superior-host.com; dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kiramek.com ; s=default; h=Content-transfer-encoding:Content-type:Mime-version: In-Reply-To:References:Message-ID:To:From:Subject:Date:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=LSdScVzxE9xVyKOHpt53OrjGMOxhpVd0+qB+qF6aMPI=; b=r62p5qvkjb3x+Pm7mWUxar2UWM yIwbRKUq26gyNTRAx6sxbO49BA+NnipgUKT99APGCR9AWMm4xhe4ChaHnoxRi+pdPrr/M02Atrsy/ 9PK1EaNMKrxYZQ/B8YP5zrdxZM1P+dWDzS5NkXDWnfkKkmQ4jmYPAYWWHokzXBfRjQVl/mxMEVeJx QG07vHno4U+g0Dt6u7am5uQ45QctKcGZ1PYZAfkEBjRgD8CuhQ9CA1HZ8rPQWkp0FrZ2VzOxzUIDS RxcqCpnAF1XXVBtHP65jChl9oW3UcgV6ju/LID3REhzs7Ji044P+uxux/K9W9GSjnZEgXRV5FvuRL c0qTrvVw==; authentication-results: spf=pass (sender IP is 72.52.183.109) smtp.mailfrom=kiramek.com; mit.edu; dkim=pass (signature was verified) header.d=kiramek.com;mit.edu; dmarc=bestguesspass action=none header.from=kiramek.com; user-agent: Microsoft-MacOutlook/16.36.20041300 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 - kiramek.com x-source: x-authenticated-sender: cp6.superior-host.com: james@kiramek.com x-topics: [PIC] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 I sincerely appreciate the 2 replies from Andrew K. and madscientistatlarge= .. I would now like to present further specifics, followed by my individual= replies to both of you gentlemen. The PIC18F25K80 datasheet is found here: https://www.microchip.com/wwwproducts/en/PIC18F66K80 On the "interface" PCB I have been discussing (which connects to Toyota "Di= splay Audio"), I see the following: PIC pin 23 connects to DI on the ADM3078E chip. PIC pin 25 connects to RE* & DE on the ADM3078E, which are tied together. *RE "NOT" As per the PIC Datasheet... Pin 25 =3D RB4/AN9/C2INA/ECCP1/P1A/CTPLS/KBI0 Pin 23 =3D RB2/CANTX/C1OUT/P1C/CTED1/INT2 Pin 25 could be any 1 of the following: RB4 =3D Digital I/O AN9 =3D Analog Input C2INA =3D Comparator 2 Input A ECCP1 =3D Capture 1 input/Compare 1 output/PWM1 output P1A =3D Enhanced PWM1 Output A CTPLS =3D CTMU pulse generator output. (CTMU =3D Charge Time Measurement Un= it, for capacitance changes) KBI0 =3D Interrupt-on-change pin Pin 23 could be any 1 of the following: RB2 =3D Digital I/O CANTX =3D CAN bus TX C1OUT =3D Comparator 1 output P1C =3D Enhanced PWM1 Output C CTED1 =3D CTMU Edge 1 input (CTMU =3D Charge Time Measurement Unit, for cap= acitance changes) INT2 =3D External Interrupt 2 Madscientistatlarge, you suggested it could be a CAN protocol. But if that= were true, I would expect both CANTX and CANRX to be used. But while Pin-= 23 supports CANTX, Pin-25 does not support CANRX. So if CAN is indeed used= , you would have TX used by the PIC, but not RX. And I would assume one wo= uld want to use the PIC's ECAN Bus Module when doing CAN communication, for= both TX and RX. If you have further thoughts to share on this point, I wou= ld love to hear them. Andrew K., I am unfamiliar with the old Alpine MBUS protocol you mentioned.= However, by Googling I found this: http://www.hohensohn.info/mbus/ Biggest Differences: MBUS seems to use 10V pulses, but my interface circuit is 3.3V. MBUS apparently uses millisecond width pulses (slow 325 baud) whereas the p= ulse widths in my interface circuit seem to be as short as 5us. I am now led to wonder if Toyota could be using their own custom protocol o= r perhaps a modification of the old Alpine protocol. Hmmm... --James W. --=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 .