Beacon Hill Cottage

...because open source matters

  • Increase font size
  • Default font size
  • Decrease font size
Home RiscOS Projects


Download this file ([ ]14 Kb19/01/2017 17:38
Download this file ([ ]8 Kb22/03/2015 16:26

Another RiscOS project attached, this time for interfacing with SPI enabled chips such as the Gertboard ADC MCP3002.

If connected as shown on page 34 of the Gertboard pdf documentation, including the J7 connection as described on pages 9 and 10, the !RunImage program outputs a stream of data fetched from the MCP3002 chip.

Note the module PiSPI obviously has to be loaded first.

The Module has not been fully tested so comes with a health warning. If you have any suggestions/improvements please let me know.

The SWI block has been registered so shouldn't clash with other software.

Version 0.02: Added data memory barrier instructions

Version 0.03: Updated to detect and use the appropriate memory maps for Broadcom BCM2835 and BCM2836 SoC. Copyright symbol removed, free to use as appropriate but let me know of any changes/enhancements so they may be included.

Version 0.04: Cannot remember what changes were made but the version was updated to 0.04.

Last Updated on Thursday, 19 January 2017 17:39


Download this file ([ ]201 Kb07/03/2015 10:16

This is the current state of code originally written in 1998 but has been updated to use 32 bit addressing.

The original code used the UNIXLib library in which the socket calls were very different to that currently distributed with the current version of the C/C++ developers tools and hence not all the daemons have been converted yet.

However the download includes two modules and their source code. One is for registering PollWords, the other for Async Sockets, the latter relies on the first to communicate back to application.

The Inetd code shows how these modules can be setup and can call back to the running application passing the Internet event for processing.

I'm sure both modules can be modified and improved, any suggestions are welcomed.

Last Updated on Saturday, 07 March 2015 10:17