From owner-freebsd-stable Wed Jul 7 12:44:10 1999 Delivered-To: freebsd-stable@freebsd.org Received: from shell.webmaster.com (mail.webmaster.com [209.133.28.73]) by hub.freebsd.org (Postfix) with ESMTP id 3FE2E14F4E for ; Wed, 7 Jul 1999 12:44:07 -0700 (PDT) (envelope-from davids@webmaster.com) Received: from whenever ([209.133.29.2]) by shell.webmaster.com (Post.Office MTA v3.5.3 release 223 ID# 0-12345L500S10000V35) with SMTP id com; Wed, 7 Jul 1999 12:44:06 -0700 From: "David Schwartz" To: "John Hay" Cc: Subject: RE: PPS API change assert/clear Date: Wed, 7 Jul 1999 12:44:06 -0700 Message-ID: <000401bec8b1$12fba1c0$021d85d1@youwant.to> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0 Importance: Normal In-Reply-To: <199907071936.VAA06015@zibbi.mikom.csir.co.za> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Do you mean that if you measure the voltage on the DCD pin and it go from > negative to positive (ASSERT) you get a CLEAR from the software? Negative to positive is not an assertion of DCD. DCD is active low. It has been logically asserted when the voltage goes negative. > That is > wrong and not what I see here. Do you have version 1.224.2.6 of sio.c? > I know it has been broken in versions before that in stable and versions > before 1.246 in current. Why is that wrong? (I know, the standard says so, but it seems to me that the standard makes no sense.) When I asked Ulrich Windl, one of the authors of the standard, (but this may be before the clarification), he said: Me: Since DCD is active-low, is an 'ASSERT' a high-to-low transition on the DCD pin? Ulrich: This problem has been discussed a lot. ASSERT is from the perspective of the UART's register. ASSERT means the CD bit in the modem status register has been set. Depending what your line drivers and level converters do, the level may change. Ulrich gave me the answer that I expected. The one that I thought made sense. And the Linux PPSkit that Ulrich Windl wrote works as he stated. It's hard for me to keep my software working when the definition keeps changing. :/ David Schwartz http://www.gpsclock.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message