Armaide Source Code

ARM Oberon-07 Development System for Windows

Version 2.4
Copyright © 2006-2010 CFB Software
Last Updated 16 Mar 2010

E-Mail:   info@cfbsoftware.com
Website:   www.armaide.com

Licence Agreement

Armaide Library and Examples Source Code

Copyright (c) 2008-2010 CFB Software.

You should carefully read the following terms and conditions before using the software. By using this software you indicate that you accept this license agreement.

You are granted the right to use the source code in whole or in part, and to adapt or to modify it, for the purpose of developing application software. The contents of the source files are protected by international copyright laws. Unauthorized reproduction and distribution of all or any portion of the code contained in the source files is strictly prohibited. The source code shall at no time be copied, transferred, sold, distributed, or otherwise made available to other individuals without prior written permission.

DISCLAIMER

This software is provided on an "as is" basis without warranty of any kind, expressed or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. The person using the software bears all risk as to the quality and performance of the software. The author will not be liable for any special, incidental, consequential, indirect or similar damages due to loss of data or any other reason, even if the author or an agent of the author has been advised of the possibility of such damages. In no event shall the author's liability for any damages ever exceed the price paid for the license to use the software, regardless of the form of the claim.

Oberon-07 Examples

The source code of a number of simple example programs is installed in your Documents\Armaide\Examples folder when you install Armaide.

The examples in the General folder are designed to run on most LPC2xxx boards with little or no modification.

The examples in the board-specific folders (e.g. LPC2106 - Embedded Artists) are likely to require modification to run on a different development board, even if the same microcontroller is used. 

The example programs which are shown with screenshots below use the Out library module to generate the text output and send it to UART0. The UART0 socket should be connected to a dumb terminal or terminal emulator running at 38,400 Baud.

All Editions (General folder):

Filename  Description
Blinker.mod Blinker
Blinks an LED once per second using Timer0.   
Info.mod System Info
Outputs the linker and startup parameters specified for the current application and shows the amount of RAM remaining for use by the program. The Evaluation Edition of Armaide limits the total accessible RAM to 2 KB of data.

ViewMemory.mod ViewMemory
Outputs the contents of 64 words of memory starting from address 04000 0000H.  Each line of output contains the address and the contents of the next 4-word block of data displayed in Hexadecimal format.

TestTraps.mod TestTraps
Demonstrates the trapping and display of runtime errors.

Extensions.mod
Lists.mod
Extensions
Shows how Oberon-07's Type Extension feature can be used to create and scan a dynamic list of a variety of objects. Lists contains the generic functions to build and traverse a list of objects. Extensions contains definitions for a number of related objects. The examples used are shapes e.g. circles, rectangles etc. The application first builds a list of different shapes and then scans the list displaying the relevant dimensions and area of each shape.

HexToSet.mod Hexadecimal / Bit SET Conversions
An algorithm to convert hexadecimal numbers to the corresponding Oberon-07 SET notation.

IAPDemo.mod In-Application (IAP) Programming
(* Requires Standard or Professional Edition of Armaide *)

Uses the on-chip IAP functions to retrieve and display the Part ID and bootloader version numbers. 



Standard and Professional Editions only (Board-specific folders):

The following examples access features or libraries that are only included with the Standard and Professional Editions of Armaide. Attempts to compile and / or link them with the Evaluation Edition will result in compiler or linker errors - they are just provided with the Evaluation Edition so that they can be studied.  However, executable files (*.hex) are also included so that the examples may be run on the specific boards even if they cannot be rebuilt. 

The link options files (*.opt) for each board are also included for convenience.

Filename Description
IRQBlinker\IRQTimer.mod
IRQBlinker\IRQBlinker.mod
Interrupts Example
Blinks an LED once a second by handling interrupts generated by Timer1.
Lib\SPI.mod
LedSeconds\LedSeconds.mod
7-Segment LED Counter using SPI
Displays 0 - 9 seconds counter on a 7-segment LED.
Lib\SPI.mod
SDCard\MMC.mod
SDCard\ReadCard.mod
Reading an SD Card using SPI/MMC
Displays the letters and numbers found in the first four blocks of an SD Card that appear to contain text information. The following resulted from reading a newly-formatted 2GB SD card with a FAT file system that had the single file ReadCard.mod in its root folder.