Return-Path: X-Spam-DCC: paranoid 1290; Body=3 Fuz1=3 Fuz2=3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on lipkowski.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DNS_FROM_AHBL_RHSBL, RATWARE_GECKO_BUILD autolearn=no version=3.1.3 Received: from post.thorcom.com (post.thorcom.com [195.171.43.25]) by paranoid.lipkowski.org (8.13.7/8.13.7) with ESMTP id u1HMmVe1016723 for ; Wed, 17 Feb 2016 23:48:32 +0100 Received: from majordom by post.thorcom.com with local (Exim 4.14) id 1aWApT-0006Pc-Vz for rs_out_1@blacksheep.org; Wed, 17 Feb 2016 22:44:15 +0000 Received: from [195.171.43.32] (helo=relay1.thorcom.net) by post.thorcom.com with esmtp (Exim 4.14) id 1aWApT-0006PT-K3 for rsgb_lf_group@blacksheep.org; Wed, 17 Feb 2016 22:44:15 +0000 Received: from mout.gmx.net ([212.227.17.21]) by relay1.thorcom.net with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86) (envelope-from ) id 1aWAoT-0004gH-U5 for rsgb_lf_group@blacksheep.org; Wed, 17 Feb 2016 22:44:14 +0000 Received: from [192.168.0.100] ([185.78.62.107]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0LtZfc-1Zmpc40ikG-010xyy for ; Wed, 17 Feb 2016 23:42:56 +0100 To: rsgb_lf_group@blacksheep.org References: <56BDED97.5060308@freenet.de> <56BE0364.6070503@gmx.net> <56BE1134.7060205@freenet.de> <56BE1D9E.6060200@freenet.de> <56C4DEFF.5060709@freenet.de> From: Tobias DG3LV Message-ID: <56C4F76A.8020401@gmx.net> Date: Wed, 17 Feb 2016 23:42:50 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56C4DEFF.5060709@freenet.de> X-Provags-ID: V03:K0:cdxXy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7Uv86C X-Scan-Signature: 4e28719a46cd3d69582e1b8d1c614db3 Subject: Re: Re: [rsgb_lf_group] Re: LF: PIC-based GPSDO with A/D converter / supported serial baudrates ? Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-SA-Exim-Scanned: Yes Sender: owner-rsgb_lf_group@blacksheep.org Precedence: bulk Reply-To: rsgb_lf_group@blacksheep.org X-Listname: rsgb_lf_group X-SA-Exim-Rcpt-To: rs_out_1@blacksheep.org X-SA-Exim-Scanned: No; SAEximRunCond expanded to false X-Scanned-By: MIMEDefang 2.56 on 10.1.3.10 Status: O X-Status: X-Keywords: X-UID: 6876 Hi Wolf ! The PIC16F1783 has an internal 4x PLL, which could be used in conjunction with a typical 7.3728 MHz (external) crystal to gain 29.491200 MHz Fosc for your PIC. This is just 16 times the baudrate of 460800 Baud ! The RS232 level converters aren't a good choice for those high frequencies, as Andy pointed out : An RS422 / RS 485 level IC would be much better and work across considerable distance without problems. (Or simply use the TTL-level outputs without any level shifters = bypass the existing level shifters on the PCB). The computing power of this 8 Bit PICs is limited (even at 32MHz), so it cannot not do too much of computing beyond the serial communication task. A simple protocol could e.g. use the highest or lowest Bit of each byte to synchronize a 3-or more-Byte frame. At a high-high-low scheme of these bits it's easy to get the payload decoded in correct sequence. The A/D converter may run on higher samplerates than "recommended", as we are digitizing "audio" and not DC. The FFT will show how high you can go before the degradation starts. The datasheets mostly are conservative on their data to avoid legal action... For a non-commercial project like this we can push the limits considerably higher. 73 de dg3lv Tobias Am 17.02.2016 um 21:58 schrieb Wolfgang Büscher: > Ok then - so the FTDI-chip based interfaces are the ones to use. > In the meantime I got the serial port adapter working at 460800 bits per > second (where the communication with the PIC16F1783 looks good) but not > at 500000 bits/sec (where the PIC could realize the bitrate without any > error). The rise- and fall time of the RS232 level converters seem to be > different, so when sending a loop of 0x55 bytes the '0101010' pattern > doesn't look like a square wave with 50 % duty cycle at all. > > But anyway, for narrow band applications it's ok, and even the dsPICs I > have here at the moment (with 12 bits/sample from the ADC) are specified > for 200 kS/sec at the maximum (the PIC16F1783 was announced for 100 ksps > but the recent datasheet says its only 75 ksps). I will try to run it at > 80 ksps and decimate down to 20 ks/sec for the output, with some of gain > from a CIC filter for effectively 16 bits per sample. 20 kHz * 2 bytes * > ( 1 + 8 + 1 ) bits = 400 kBit/second (raw, including start + stop bit) - > that's close to what the 'Prolific' adapter can handle. > > Brings up a crazy idea: Since there is not enough bandwidth for a 3rd > byte (for a sample frame), the receiver could examine the amount of > 'noise' in the bits of each byte, to tell the high-byte from the > low-byte just in case an unknown number of bytes get lost on the way... > the least significant byte will have more toggling bits than the most > significant byte. > Well, it's good fun to push the 'midrange PIC' to its limits (haven't > been doing this for a long time, being more used to ARM controllers > these days). The PIC16F1783 has 4096 program steps, 256 bytes of RAM, > and (Andy will know what I'm talking about) it now has TWO 'address > pointers', FSR0 and FSR1 instead of only one, and an add-with-carry > instruction which the older PIC16's didn't have... makes efficient > programming in assembler a bit easier, even though the CIC filter (with > N=4, R=4, N=2) consume almost CPU time when running at 80 kHz sampling > rate. Oh well, there still is the option to use a dsPIC instead. > > All the best, > Wolf . > > > > Am 17.02.2016 um 16:23 schrieb Andy Talbot andy.g4jnt@gmail.com > [rsgb_lf_group]: >> >> >> I've just made some tests on the FTDI232 chip at high baud rates. >> >> Using a custom routine written in PowerBasic (CC) , I used that >> language's own interpretation and interface to the driver to pass >> arbitrary baud rates to the chip. With the device set for 8 data, 1 >> stop bit and no parity, I repeatedly send the character 0x55 in a >> continuous loop. This pattern of bits, if sent contiguously >> (characters are sent LSB first) should therefore result in a square >> wave being generated at a frequency exactly equal to half the >> specified baud rate. >> >> The FTDI232 data sheet states that baud rates are determined based on >> a 3MHz input to a divisor of (N + M/8, where N = 2 to 16384, plus two >> special cases on N = 0 and N = 1 for 3Meg and 1Meg rates >> respectively. This setting is hidden from my application, and >> happens transparently based on the baud rate I specify beign passed to >> the driver via PowerBasic. >> >> The following results were obtained : >> >> Requested Frequency >> Baud rate Generated >> >> 1M 500000 >> 2M >> >> >> >> On 12 February 2016 at 17:59, Wolfgang Büscher >> <dl4yhf@freenet.de> wrote: >> >> Thanks Andy. I wanted to keep it simple (but not necessarily >> stupid), by using available hardware. In my case, the dreadful >> (and, most likely, "faked") Prolific USB <-> RS232 adapter. >> >> >> >> >> __._,_.___ >> ------------------------------------------------------------------------ >> Posted by: Andy Talbot >> ------------------------------------------------------------------------ >> >> >> Visit Your Group >> >> >> >> Yahoo! Groups >> >> >> • Privacy >> • >> Unsubscribe >> >> • Terms of Use >> >> >> __,_._,___ >