Real-time Clock Support for RISC5 FPGA Oberon
We have now added real-time time and date support for RISC5 FPGA Project Oberon systems by connecting them to a Maxim DS3234 RTC chip via the SPI interface. This device includes a battery backup system and keeps time with an accuracy of +/- 2 minutes per year. The RTC feature enables automatic timestamping for Project Oberon files, and allows the implementation of remote datalogging applications and any other applications that rely on accurate timekeeping. The source code and all the implementation details are included in the Astrobe for RISC5 section of the Astrobe Forum: http://www.astrobe.com/forum/viewforum.php?f=13 Regards, Chris Burrows CFB Software http://www.astrobe.com/RISC5
I did the same as follows: Install a task in Oberon loop to increment Kernel.clock. Improved by periodically align to time from NTP. Jörg Von: Oberon <oberon-bounces@lists.inf.ethz.ch> im Auftrag von Chris Burrows <chris@cfbsoftware.com> Antworten an: <chris@cfbsoftware.com>, ETH Oberon and related systems <oberon@lists.inf.ethz.ch> Datum: Samstag, 18. November 2017 um 01:21 An: ETH Oberon and related systems <oberon@lists.inf.ethz.ch> Betreff: [Oberon] Real-time Clock Support for RISC5 FPGA Oberon We have now added real-time time and date support for RISC5 FPGA Project Oberon systems by connecting them to a Maxim DS3234 RTC chip via the SPI interface. This device includes a battery backup system and keeps time with an accuracy of +/- 2 minutes per year. The RTC feature enables automatic timestamping for Project Oberon files, and allows the implementation of remote datalogging applications and any other applications that rely on accurate timekeeping. The source code and all the implementation details are included in the Astrobe for RISC5 section of the Astrobe Forum: http://www.astrobe.com/forum/viewforum.php?f=13 Regards, Chris Burrows CFB Software http://www.astrobe.com/RISC5 -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Improved by periodically align to time from NTP.
There is also `Network time client' as a project exercise for students by Paul Reed. I started this project by getting myself aerial Nordic chip, later realising I need a twin to make a connection. -- Tomas Kral <thomas.kral@email.cz>
Yes, I coded a „network time client“. Jörg Am 18.11.2017 um 09:50 schrieb Tomas Kral <thomas.kral@email.cz>:
Improved by periodically align to time from NTP.
There is also `Network time client' as a project exercise for students by Paul Reed.
I started this project by getting myself aerial Nordic chip, later realising I need a twin to make a connection.
-- Tomas Kral <thomas.kral@email.cz> -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
As some of you know I have written an App in ETHOberon 2.5 on Windows, which converts MusicXML into another format and finally to Note sheets. For reasons of portability I want to translate this App into C language. There seem to be two possible paths to follow: 1. Converting my app to Oberon 2 and then using Ofront as C-Translator 2. Converting my app to Oberon07 and then using Obnc as C-Translator Does anybody have experience with this type of problem? Are there further alternatives or other ideas? Thanks and regards, Dieter
<Note sheet> format must be very <graphic>, getting close to hardware ? Needing access to ETHO's functions which don't exist in C. C is just a language, not an OS. ETHOberon is a language and an OS [driving hardware]. These O to C translators wont handle the <Note sheet rendering>. PublicDomain wily [my most used linux utility] is based on ETHO: mouse-chording & multiple TextFrames in multiple Tracks accessible on the single screen. But they've just copied the CONCEPTS and not tried to translate-Oberon-to-C Unless your app just generates the <data> which is finally fed to some <standard renderer>. Eg. we can use any language/system to translate a text file to a corresponding pdf rendering of it. But the final <note sheet> is created by the pdf renderer.
Just to explain the context: You may have heard about TeX and LaTeX, the document handling and typesetting software, originally developed by Donald E. Knuth. The TeX-flavor for musical notation is "MusixTeX" <http://www.icking-music-archive.org/software/htdocs/index.html>. This renders the note sheets, based on a textual description. The utilization of MusixTeX is very much simplified, when you use a preprocessor called "PMX", which you find also on the mentioned WEB Page. Now there are dozens of musical notation programs. And the most popular data exchange format between these is " MusicXML". I have developed a program in ETHOberon 2.5 which translates MusicXML code, generated by other musical notation programs, to PMX-Input. It is called "XML2PMX" and is also to be found on the above WEB page. With Oberon 2.5 I can produce a Windows-Exe for distribution. And with the aid of OLR, I can equally create a Linux Binary. Now there exist many utility programs around TeX software, which may be written in Fortran, Lua, C, Pascal etc. In order to provide overall portability, the TeX user group has decided, to use C language as the integration point. This is, why I need a C-translation of my little program (some 4500 lines of Oberon). I will investigate for this purpose OBNC as well as Ofront. Regards, Dieter Am 20.11.2017 um 02:39 schrieb eas lab:
<Note sheet> format must be very <graphic>, getting close to hardware ? Needing access to ETHO's functions which don't exist in C. C is just a language, not an OS.
ETHOberon is a language and an OS [driving hardware]. These O to C translators wont handle the <Note sheet rendering>.
PublicDomain wily [my most used linux utility] is based on ETHO: mouse-chording & multiple TextFrames in multiple Tracks accessible on the single screen. But they've just copied the CONCEPTS and not tried to translate-Oberon-to-C
Unless your app just generates the <data> which is finally fed to some <standard renderer>. Eg. we can use any language/system to translate a text file to a corresponding pdf rendering of it. But the final <note sheet> is created by the pdf renderer. -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
-- ____________________________________ Dr. Dieter Glötzel Im Rosengarten 27 64367 Mühltal Tel.: 06151 / 360 82 72
On Mon, 20 Nov 2017 12:16:01 +0100, Dieter wrote:
I have developed a program in ETHOberon 2.5 which translates MusicXML code, generated by other musical notation programs, to PMX-Input. It is called "XML2PMX" and is also to be found on the above WEB page.
With Oberon 2.5 I can produce a Windows-Exe for distribution. And with the aid of OLR, I can equally create a Linux Binary.
Can we see the source of your app? How difficult this is depends on the use of Oberon modules and language features. As far as I understand you want to generate a command line program for Linux or Windows without the Oberon OS. If there is only some file IO this is easy. If there is some user interface related modules used it can be very hard. Greetings, chris
From: Oberon [oberon-bounces@lists.inf.ethz.ch] on behalf of Dieter [d.gloetzel@web.de] Sent: Monday, November 20, 2017 6:16 AM To: oberon@lists.inf.ethz.ch Subject: Re: [Oberon] Translating ETHOberon 2.5 to C
This is, why I need a C-translation of my little program (some 4500 lines of Oberon). I will investigate for this purpose OBNC as well as Ofront.
Dieter: my own experience tells me that a programming language is a way of thinking. (A way of life for some.) I think in a different way when I program in Oberon, Component Pascal, or C. I wrote quite a few C utilities for my FPGA instruments. I claim they are good, but they have their own flavor. While Oberon has certainly taught me how to write good code, I am not trying to pretend, that my C utilities were written in Oberon. Since your program is so small, you may be better off rewriting it rather than translating. If you are not fluent with C, it may be best to find someone who is. (Not me, I am now very busy.) I mean, re-engineering rather than translating is probably a better way to clean code. Please feel free to disagree. Thank you, W
Am 18.11.2017 um 10:37 schrieb Dieter:
As some of you know I have written an App in ETHOberon 2.5 on Windows, which converts MusicXML into another format and finally to Note sheets. For reasons of portability I want to translate this App into C language. There seem to be two possible paths to follow:
1. Converting my app to Oberon 2 and then using Ofront as C-Translator 2. Converting my app to Oberon07 and then using Obnc as C-Translator
Does anybody have experience with this type of problem?
Not really. AFAIK, your code already is Oberon-2. So I would start with Ofront. If I understand the task correctly you need c to get TeX execute your program and understand MusicXML directly. To execute c inside TeX might have been a good idea 20 years ago, today llvm and WebAssembly would do this task much better IMHO. Peter
participants (8)
-
chris -
Chris Burrows -
Dieter -
eas lab -
Jörg -
Peter Matthias -
Skulski, Wojciech -
Tomas Kral