Return-Path: Received: (qmail 28482 invoked from network); 20 Mar 2001 19:39:55 -0000 Received: from unknown (HELO warrior-inbound.servers.plus.net) (212.159.14.227) by excalibur.plus.net with SMTP; 20 Mar 2001 19:39:55 -0000 Received: (qmail 12491 invoked from network); 20 Mar 2001 19:39:53 -0000 Received: from unknown (HELO post.thorcom.com) (212.172.148.70) by warrior with SMTP; 20 Mar 2001 19:39:53 -0000 Received: from majordom by post.thorcom.com with local (Exim 3.16 #2) id 14fRuw-0004WE-00 for rsgb_lf_group-outgoing@blacksheep.org; Tue, 20 Mar 2001 19:35:42 +0000 X-Priority: 3 X-MSMail-Priority: Normal Received: from [193.96.224.45] (helo=mail1.isys.net) by post.thorcom.com with esmtp (Exim 3.16 #2) id 14fRuv-0004W9-00 for rsgb_lf_group@blacksheep.org; Tue, 20 Mar 2001 19:35:41 +0000 Received: from [195.64.98.17] (helo=k) by mail1.isys.net with esmtp (Exim 3.16 #1) id 14fRuW-0007ul-00 for rsgb_lf_group@blacksheep.org; Tue, 20 Mar 2001 20:35:16 +0100 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 From: "Klaus von der Heide" To: rsgb_lf_group@blacksheep.org Date: Tue, 20 Mar 2001 20:41:12 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: LF: Re: RE PICs and DDS etc. In-reply-to: <3AB79B46.A233F226@usa.net> X-Mailer: Pegasus Mail for Win32 (v3.12b) Message-ID: Precedence: bulk Reply-To: rsgb_lf_group@blacksheep.org X-Listname: rsgb_lf_group Sender: Hello Alberto, hello all, > I thought again and, yes, the high order bit of the phase accumulator is not > the squared up version of the sine output, but, after the phase accumulator, > a DDS has a sine lookup ROM. What I really meant was the high order > bit of the output of this ROM. Using this bit, I feel confident to state again > that you don't need a DAC to generate a square wave of the wanted frequency. > > With the AD9850 you have to use the comparator, as you do not have external > access to the output of the sine ROM. > You are right saying that a PIC probably doesn't have enough horse power > for this task. Maybe some chips of the Scenic family ??? The problem is the discrete time the DDS uses. The high order bit only changes at the clock edges. The result is a square wave with heavy phase jitter. For example, draw a sine wave (3 waves), sample it at about 8/3 of its frequency in your sketch, and generate the square wave from these sample values (all on the paper). The one-periods and the zero-periods then are one or two clock cycles long. That's what Andy in other words already said. If a DAC is used then time is continuous and a clean square wave can be obtained. 73 de Klaus, DJ5HG