Example program provided by Embedded Systems Academy, Copyright 2000 Visit www.esacademy.com/faq/progs for more examples This example: MEMTESTLIB - name of application: main.c ==================================================== Demonstration of Michael Barr's Memory Test Library Hardware requirements ===================== Phytec RDK 591 with Philips 591 Software requirements ===================== Phytec Flash Tools (part of RDK 591) www.phytec.com Raisonance 8051 compiler system - EVAL version sufficient www.raisonance.com or Keil 8051 Compiler System - EVAL version sufficient www.keil.com Optional: Development Assistant-C by RistanCASE www.ristancase.ch Tested using ============ Raisonance 51 Toolset version 6.1.1 Keil C51 Toolset version 6.00 Application description ============================================= Raisonance specific files have their names prefixed with 'r'. Keil specific files have their names prefixed with 'k'. The same source files are used for both compilers. This program demonstrates the 8051 port of the Memory Test Library written by Michael Barr The library consists of four functions: extern datum memTestDataBus(volatile datum xdata * address); - tests the data bus extern datum xdata *memTestAddressBus(volatile datum xdata * baseAddress, unsigned long nBytes); - tests the address bus extern datum xdata *memTestDevice(volatile datum xdata * baseAddress, unsigned long nBytes); - tests the memory device extern int memTest(void); - performs all three tests in order and returns a pass or fail result