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, 4 Jun 2020 14:59:32 -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 054LmmvD021781; Thu, 4 Jun 2020 17:49:10 -0400 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 054LmlNf021778 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 4 Jun 2020 17:48:47 -0400 Received: from w92exedge4.exchange.mit.edu (W92EXEDGE4.EXCHANGE.MIT.EDU [18.7.73.16]) by outgoing-exchange-1.mit.edu (8.14.7/8.12.4) with ESMTP id 054Llviq027685 for ; Thu, 4 Jun 2020 17:48:08 -0400 Received: from oc11expo11.exchange.mit.edu (18.9.4.16) by w92exedge4.exchange.mit.edu (18.7.73.16) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Thu, 4 Jun 2020 17:47:49 -0400 Received: from oc11exhyb8.exchange.mit.edu (18.9.1.113) by oc11expo11.exchange.mit.edu (18.9.4.16) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Thu, 4 Jun 2020 17:48:27 -0400 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.107) by oc11exhyb8.exchange.mit.edu (18.9.1.113) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Thu, 4 Jun 2020 17:48:27 -0400 Received: from DM5PR06CA0058.namprd06.prod.outlook.com (2603:10b6:3:37::20) by DM6PR01MB4841.prod.exchangelabs.com (2603:10b6:5:72::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3045.19; Thu, 4 Jun 2020 21:48:27 +0000 Received: from DM3NAM03FT036.eop-NAM03.prod.protection.outlook.com (2603:10b6:3:37:cafe::1c) by DM5PR06CA0058.outlook.office365.com (2603:10b6:3:37::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18 via Frontend Transport; Thu, 4 Jun 2020 21:48:27 +0000 Received: from mail-pj1-f52.google.com (209.85.216.52) by DM3NAM03FT036.mail.protection.outlook.com (10.152.82.189) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18 via Frontend Transport; Thu, 4 Jun 2020 21:48:26 +0000 Received: by mail-pj1-f52.google.com with SMTP id k2so1689880pjs.2 for ; Thu, 04 Jun 2020 14:48:26 -0700 (PDT) Received: from [192.168.1.5] (118-93-186-68.dsl.dyn.ihug.co.nz. [118.93.186.68]) by smtp.gmail.com with ESMTPSA id 206sm3004632pfc.120.2020.06.04.14.48.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jun 2020 14:48:24 -0700 (PDT) From: Brent Brown To: Microcontroller discussion list - Public. Sender: "piclist-bounces@mit.edu" Date: Thu, 4 Jun 2020 14:48:20 -0700 Subject: Re: [EE] Detecting a change of level on four lines with digital logic/analog circuitry? Thread-Topic: [EE] Detecting a change of level on four lines with digital logic/analog circuitry? Thread-Index: AdY6u238a/mebMqyRUmwI8DNA+fcmg== Message-ID: <5ED96C24.28458.2422AF89@brent.eds.co.nz> References: 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: None (protection.outlook.com: eds.co.nz does not designate permitted sender hosts) dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eds-co-nz.20150623.gappssmtp.com; s=20150623; h=from:organization:to:date:mime-version:subject:message-id:priority :in-reply-to:references:content-transfer-encoding :content-description; bh=2DshaahAF3fYFYWD7hGEiZqPs6LvLQnPDhlwGBkdytI=; b=FCH73wRAPTcXn/El+ftfKa8VLn+Q95DFrFPh17hsVyR1jmB9+5TI3h8X+pPWTQfEdb o3rjq76i8+s7uvyZgRWV7k5EIfV8nHr0Cj1rcXuGNpTEKA2jf2/X/wwkji8c1ek13ckR oD/nl7qfcooSfMGckUFnyXoIUxGnWvwFz+NV43cJwvBP8o8HMPlz4QI6jsVW/HBU1ybL pi+Fh8RGsBgnNZ5kh4SzyVuPqRFsp5xOpUcXkQHejllOLZsauICBYBxoxJuexj/Glszk P+zIGTYcE2bU66wHB56DjZujO3iCxaddiODJfDjhZ8Dp7jocy7NBJMTtL39HH0IdCk6I kmBg== authentication-results: spf=none (sender IP is 209.85.216.52) smtp.mailfrom=eds.co.nz; mit.edu; dkim=pass (signature was verified) header.d=eds-co-nz.20150623.gappssmtp.com; mit.edu; dmarc=none action=none header.from=eds.co.nz; 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:c797:: with SMTP id gn23mr7970398pjb.165.1591307305403; Thu, 04 Jun 2020 14:48:25 -0700 (PDT) x-topics: [EE] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Hi Jason, How about: Sum the lines with 4 x resistors, feed this analog voltage into = the +ve=20 input of one comparator, and -ve input of another comparator. Remaining inp= uts to=20 a C, with R to analog voltage above, where RC time constant sets pulse peri= od.=20 Combine comparator outputs with 2 x diodes and a pull-up or pull-down resis= tor as=20 required. Brent. On 4 Jun 2020 at 16:35, Jason White wrote: > Hi everyone, >=20 > I have an application where I need to generate at pulse least 1 microseco= nd > long any time a rising or falling edge is detected on four digital lines. > The four signals can change at any time to any direction. The pulse is us= ed > to trigger a timer providing a reset signal to the rest of the system. > Microcontrollers and programmable logic devices aren't allowed. >=20 > Four 74HC123s will do it, but are too big. > Four window comparators monitoring the signal through an RC will do it, b= ut > also seems too big. >=20 > Is four schmitt trigger XOR gates with four RC's the smallest > implementation? >=20 > I was thinking some sort of analog implementation might be able to do it > smaller. But AC coupling the four signals together would allow them to > cancel out. Perhaps a 4-bit encoder/decoder or multiplexer might do it > better? --=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 .