18
RabbitCore RCM2000
3.1.2 Getting to Know the RCM2000
The following sample programs can be found in the SAMPLES\RCM2000 folder.
EXTSRAM.C
—demonstrates the setup and simple addressing to an external SRAM.
This program first maps the external SRAM to the I/O Bank 0 register with a maximum
of 15 wait states, chip select strobe (which is ignored because of the circuitry), and
allows writes. The first 256 bytes of SRAM are cleared and read back. Values are then
written to the same area and are read back. The Dynamic C STDIO window will indi-
cate if writes and reads did not occur
Connect an external SRAM as shown below before you run this sample program.
FLASHLED.C
—repeatedly flashes LED DS3 on the Prototyping Board on and off.
LED DS3 is controlled by Parallel Port A bit 1 (PA1).
FLASHLED2.C
—repeatedly flashes LED DS3 on the Prototyping Board on and off.
LED DS3 is controlled by Parallel Port A bit 1 (PA1).
This sample program also shows the use of the runwatch() function to allow
Dynamic C to update watch expressions while running. The following steps explain
how to do this.
1. Add a watch expression for "k" in the Inspect > Add Watch dialog box.
2. Click "Add" or "Add to top" so that it will be in the watch list permanently.
3. Click OK to close the dialog box.
4. Press <Ctrl+U> while the program is running. This will update the watch window
RCM2000
Core Module
8K × 8
SRAM
D0D7
/BEN
/IOR
/IOW
A0A12
A0A12
D0D7
/WE
/OE
/CE