Return-Path: Received: (qmail 21703 invoked from network); 14 Nov 1999 10:31:21 +0000 Received: from unknown (HELO magnus.force9.net) (195.166.128.27) by guiness.force9.net with SMTP; 14 Nov 1999 10:31:21 +0000 Received: (qmail 18777 invoked from network); 14 Nov 1999 10:30:15 -0000 Received: from unknown (HELO post.thorcom.com) (212.172.148.70) by magnus.plus.net.uk with SMTP; 14 Nov 1999 10:30:15 -0000 Received: from majordom by post.thorcom.com with local (Exim 3.02 #1) id 11mwoS-0006FN-00 for rsgb_lf_group-outgoing@blacksheep.org; Sun, 14 Nov 1999 10:23:12 +0000 Received: from tk2.ihug.co.nz ([203.29.160.14] helo=smtp2.ihug.co.nz) by post.thorcom.com with esmtp (Exim 3.02 #1) id 11mwoK-0006FH-00 for rsgb_lf_group@blacksheep.org; Sun, 14 Nov 1999 10:23:05 +0000 Received: from test (p27-max10.chc.ihug.co.nz [209.79.136.91]) by smtp2.ihug.co.nz (8.9.3/8.9.3/Debian/GNU) with SMTP id XAA01535 for ; Sun, 14 Nov 1999 23:22:49 +1300 Message-ID: <011701bf2e8a$9c12b720$0200a8c0@test> From: "Dave Brown" To: rsgb_lf_group@blacksheep.org References: <199911140337_MC2-8CFC-355C@compuserve.com> Subject: LF: Re: Question: Rotating Shift Encoder Date: Sun, 14 Nov 1999 23:25:39 +1300 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Precedence: bulk Reply-To: rsgb_lf_group@blacksheep.org X-Listname: rsgb_lf_group Sender: Geri Simple shaft encoders use two identical pulse trains, say A and B, from the encoder that are 90 degrees apart in time. That way the direction of turning can be detected depending on whether the A pulse is output before the B pulse. If your circuit has two data lines going into the PIC (not counting ground and logic power supply lines) then it is probably one of these. Grounding the A input then the B input should make the frequency go one way (say up) and doing the opposite, grounding the B input and then the A input should make the frequency go back (go down). If this works then you can make a simple logic circuit to do it but beware of trying to do it too fast. The DDS may not be able to respond at 45 bauds? Hope this helps. 73 Dave ZL3FJ