Real-time multitasking using interrupt handlers
On the contrary - the ARM Oberon compiler allows an Astrobe user to develop realtime multitasking software. E.g. an Astrobe program could 'simultaneously' take temperature / pressure/ acceleration / compass readings and log them to an SD Card and communicate 'at the same time' with another system over a serial RS232 or wireless network link. In an ARM microcontroller program deevloped using Astrobe tasks are defined at the procedure level (using interrupt handlers) within a single application (process). A hierarchical interrupt system determines which task should be started / restarted next. These tasks are initiated on demand by the microcontroller itself using a system of prioritised interrupts that is defined by the programmer. This is different from application level (non-realtime) multitasking where each task is handled by a separate process which is typically scheduled to run in a time-slices under the control of an external operating system Note that the use of procedures as interrupt handlers as implemented in the ARM Oberon compiler used in Astrobe is an extension to the Oberon Programming Language. For more information refer to Chapter 23 'Interrupt procedures' in the document 'An Oberon Compiler for the ARM Processor' by Niklaus Wirth: http://www.inf.ethz.ch/personal/wirth/Oberon/ Regards, Chris Burrows
-----Original Message----- From: eas lab [mailto:lab.eas@gmail.com] Sent: Saturday, 4 October 2014 10:32 PM To: chris@cfbsoftware.com; ETH Oberon and related systems Subject: Re: [Oberon] Microcontroller (SOC) power consumption
OK, so it's not intended for multitasking. We need to distinguish between ETHO & Oberon.
Oberon for Cortex, would have access to machine-code level. Later I want to write about a <universal assembler>, and perhaps some related ideas re. intercommunication between different natural languages: like music notation doesn't depend on English.
== Chris Glur.
On 10/4/14, Chris Burrows <chris@cfbsoftware.com> wrote:
-----Original Message----- From: eas lab [mailto:lab.eas@gmail.com] Sent: Saturday, 4 October 2014 2:23 PM To: ETH Oberon and related systems Subject: Re: [Oberon] Oberon bare metal on the Raspberry Pi
============== Re. Astrobe - LPC1769 Microcontrollers: I failed to find [via http] the comparative power consumption.
It depends directly on which functions you are using and what speed you are running at. Astrobe Oberon / LPC17xx allows you to have very fine control over the power consumption of the targeted system on a chip (SOC). You can individually power on/off the on-chip peripheral devices, control clock speeds and switch into various power-conserving sleep modes. The following article on the mbed (an LPC1768 device) website gives a good overview:
"mbed Power Control/Consumption"
http://developer.mbed.org/users/no2chem/notebook/mbed-power- controlcon sumpti on/
Alternatively you can refer to Chapter 10 'Static Characteristics' etc. of the LPC1769/68/67/66/65/64/63 Product DataSheet:
http://www.nxp.com/documents/data_sheet/LPC1769_68_67_66_65_64_6 3.pdf
IMO rPi IS a remarkable substitute-PC; but the extra layers make it unsuitable for eg. controller applications. Would Astrobe-Oberon7 also be subject to random delays due to GC?
Not at all. Astrobe-Oberon-07 neither has nor needs a garbage collector. Astrobe's purpose is to create OS-free, single, dedicated, Oberon-language applications for real-time embedded controller systems. Hence, memory management is not an issue.
Regards, Chris
Chris Burrows CFB Software Oberon for Cortex-M4, M3 and ARM7 Microcontrollers http://www.astrobe.com
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Chris Burrows wrote:
In an ARM microcontroller program developed using Astrobe tasks are defined at the procedure level (using interrupt handlers) within a single application (process). A hierarchical interrupt system determines which task should be started / restarted next. These tasks are initiated on demand by the microcontroller itself using a system of prioritised interrupts that is defined by the programmer.
I'm a bit snowed-under with problems as S.Africa degenerates to 4th-world conditions, and have difficulty web-searching; but what does the hardware cost. eg. the facilities/price menu. Looking at the big-picture, why would one want to 'Astrobe'? * Oberon is a nice [good effort to result ratio] language. * ARM has good: support, cost, power-consumption, versatility. What about facilities to go-down to asm; which is obviously needed? I want to write some original thoughts/experience re. asm ; when I find time. == Chris Glur.
-----Original Message----- From: eas lab [mailto:lab.eas@gmail.com] Sent: Monday, 6 October 2014 9:35 AM To: chris@cfbsoftware.com; ETH Oberon and related systems Subject: Re: [Oberon] Real-time multitasking using interrupt handlers
I'm a bit snowed-under with problems as S.Africa degenerates to 4th-world conditions, and have difficulty web-searching; but what does the hardware cost. eg. the facilities/price menu.
A list of links to detailed information about development boards and approximate prices are here: http://www.astrobe.com/devboards.htm
Looking at the big-picture, why would one want to 'Astrobe'? * Oberon is a nice [good effort to result ratio] language. * ARM has good: support, cost, power-consumption, versatility.
Yes. I gave a presentation on the subject at Oberon Day 2011 at ETH Zurich. For additional answers to your question you can download a PDF copy of the presentation from here: http://www.oberonday2011.ethz.ch/talks/ or watch the video here: http://www.multimedia.ethz.ch/conferences/2011/oberon
What about facilities to go-down to asm; which is obviously needed?
Wrong assumption - there is no obvious need for asm at all . One of ARM's promotional points for the Cortex-M range of microcontrollers is that no assembler is required and that all development can be done in C. Whatever can be done in C can be done just as well (or better) in Oberon. Regards, Chris
Wrong assumption - there is no obvious need for asm at all . One of ARM's promotional points for the Cortex-M range of microcontrollers is that no assembler is required and that all development can be done in C. Whatever can be done in C can be done just as well (or better) in Oberon.
That sounds like a closed-system: all the I/O has [tried to] be catered for, and is hidden behind HLL. Like MacDonalds & MicroSoft: eat what we dish up ? But no, that's inconsistent with the great free-control of 'modes' eg. power consumption settings == Chris Glur.
-----Original Message----- From: eas lab [mailto:lab.eas@gmail.com] Sent: Tuesday, 7 October 2014 1:21 AM To: chris@cfbsoftware.com; ETH Oberon and related systems Subject: Re: [Oberon] Real-time multitasking using interrupt handlers
Wrong assumption - there is no obvious need for asm at all . One of ARM's promotional points for the Cortex-M range of microcontrollers is that no assembler is required and that all development can be done in C. Whatever can be done in C can be done just as well (or better) in Oberon.
That sounds like a closed-system: all the I/O has [tried to] be catered for, and is hidden behind HLL. Like MacDonalds & MicroSoft: eat what we dish up ?
Nothing could be further from the truth. If MacDonalds had millions of items on their menu that allowed you to specify the number of seeds, their dimensions, type and their locations on the bun that might be a better analogy... Open up the source code of the FPGA Project Oberon operating system and you will see that there is no assembler there: http://www.projectoberon.com/ Oberon is not only a powerful high-level language (HLL) it also has additional low-level features that can be used when you need to work directly with bits, bytes and memory-mapped hardware. Even the simplest I/O devices these days (e.g. a temperature sensor) has a built-in processor / controller. You communicate with them via standard protocols like SPI or I2C. Most 32-bit microcontrollers, as well as having a microprocessor core, flash ROM and RAM also have SPI, I2C, ADC, DAC, UART etc. etc. controllers all on the chip itself. Most of the time, programming these interfaces consists of setting and reading values of memory mapped locations. You do this using Oberon's SYSTEM.GET and SYSTEM.PUT functions (something like the PEEK and POKE of the bad old days). Additionally Oberon's SET data type notation is ideal when you have to deal with specific bit numbers . E.g if the microcontroller manual says that the power to UART1 is controlled by setting bit 4 in the Power Control Register (PCONP, all you have to do is, write: SYSTEM.PUT(MCU.PCONP, {4}) To switch on UART1. Polling for a character from UART0 is not much more difficult: PROCEDURE* GetCh*(VAR ch: CHAR); BEGIN REPEAT UNTIL SYSTEM.BIT(MCU.U0LSR, 0); SYSTEM.GET(MCU.U0RBR, ch) END GetCh; i.e. loop until bit zero of the UART Line Status Register (LSR) is set. Then retrieve the 8-bit byte from the UART Receiver Buffer Register (RBR). No assembler is required. In case you are wondering, PCONP, U0LSR and U0RBR are just predefined constant addresses in an MCU module which we supply and which is tailored to each supported microcontroller: CONST PCONP* = 0400FC0C4H; U0Base* = 04000C000H; U0RBR* = U0Base+000H; U0LSR* = U0Base+014H; Regards, Chris Chris Burrows CFB Software Oberon from Cortex-M4, M3 and ARM7 http://www.astrobe.com
Hi Chris (Burrows),
A list of links to detailed information about development boards and approximate prices are here:
I think that should be http://www.astrobe.com/boards.htm Cheers, Paul
participants (3)
-
Chris Burrows -
eas lab -
Paul Reed