From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 88088 invoked by alias); 17 Dec 2015 11:15:23 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 88073 invoked by uid 89); 17 Dec 2015 11:15:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_20,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL autolearn=no version=3.3.2 spammy=H*F:D*mk, HX-HELO:sk:gateway, H*RU:sk:gateway, Hx-spam-relays-external:sk:gateway X-HELO: gateway20.websitewelcome.com Received: from gateway20.websitewelcome.com (HELO gateway20.websitewelcome.com) (192.185.65.13) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 17 Dec 2015 11:15:21 +0000 Received: from cm1.websitewelcome.com (cm.websitewelcome.com [192.185.0.102]) by gateway20.websitewelcome.com (Postfix) with ESMTP id CC1A665D3B8AC for ; Thu, 17 Dec 2015 05:07:26 -0600 (CST) Received: from montecarlo.websitewelcome.com ([192.185.12.42]) by cm1.websitewelcome.com with id ub7R1r00g0uS5qw01b7Sw2; Thu, 17 Dec 2015 05:07:26 -0600 Received: from [195.189.206.101] (port=32858 helo=[192.168.209.11]) by montecarlo.websitewelcome.com with esmtpa (Exim 4.85) (envelope-from ) id 1a9WP6-000C9J-Q4; Thu, 17 Dec 2015 05:07:24 -0600 To: Privat , ecos-discuss@ecos.sourceware.org References: <56728F18.1040409@gmx.de> From: =?UTF-8?B?SWxpamEgS29jaG8gW9CY0LvQuNGY0LAg0JrQvtGH0L5d?= Message-ID: <5672976A.9030806@siva.com.mk> Date: Thu, 17 Dec 2015 11:15:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <56728F18.1040409@gmx.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BWhitelist: no X-Exim-ID: 1a9WP6-000C9J-Q4 X-Source-Sender: ([192.168.209.11]) [195.189.206.101]:32858 X-Source-Auth: ilijak+siva.mk X-Email-Count: 2 X-Source-Cap: c2l2YW1rO2JpYmltYW47bW9udGVjYXJsby53ZWJzaXRld2VsY29tZS5jb20= X-IsSubscribed: yes Subject: Re: [ECOS] Real Time Clock X-SW-Source: 2015-12/txt/msg00001.txt.bz2 On 17.12.2015 11:31, Privat wrote: > Dear Ecos Developers and Maintainers, > > i have a question regarding the real time clock. > I have a FreeSacle which runs at 116 Mhz, which means i have 1 000 000 > 000 ns / 116 000 000 or 8ns per cycle. Is it a Kinetis? > > I set the dividend to 1000, and the divisor to 116 which following the > documentation (http://ecos.sourceware.org/docs-2.0/ref/kernel-clocks.html) > - should always yield the ratio of ns between clock ticks. > Unfortunatly that does not result in correct values. > > Strange as it sounds, the default works near perfect. > But reading the realtime clock resolution i got a dividend 1000000000 > and a divisor of 1000 - which would be correct for a 100 Hz processor. > > Any help or advice is welcome. I would also like to know, how the system > is able to derive its own cyclerate. > > Regards Picasso > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss