14
RabbitCore RCM2100
3.1.1 Getting to Know the RCM2100
The following sample programs can be found in the SAMPLES\RCM2100 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 7 register with a maximum
of 15 wait states, chip select strobe (PE7), 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 indicate 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.
RCM2100
Core Module
8K × 8
SRAM
D0D7
PE7
/IOR
/IOW
A0A12
BA0BA12
BD0BD7
/WE
/OE
/CE
10 kW
Vcc