This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Real Time Clock
- From: Privat <PicassoCT at gmx dot de>
- To: Ilija Kocho [ÐÐÐÑÐ ÐÐÑÐ] <ilijak at siva dot com dot mk>, ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 17 Dec 2015 12:17:19 +0100
- Subject: Re: Real Time Clock
- Authentication-results: sourceware.org; auth=none
- References: <56728F18 dot 1040409 at gmx dot de> <5672976A dot 9030806 at siva dot com dot mk>
Its a MPC5668x ?
Am 17.12.2015 um 12:07 schrieb Ilija Kocho [ÐÐÐÑÐ ÐÐÑÐ]:
> 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