3.1.1 Getting to Know the RCM2100
The following sample programs can be found in the
•
—demonstrates the setup and simple addressing to an external SRAM.
EXTSRAM.C
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
Connect an external SRAM as shown below before you run this sample program.
8K × 8
SRAM
A0A12
D0D7
/WE
/OE
/CE
•
—repeatedly flashes LED DS3 on the Prototyping Board on and off.
FLASHLED.C
LED DS3 is controlled by Parallel Port A bit 1 (PA1).
•
—repeatedly flashes LED DS3 on the Prototyping Board on and off.
FLASHLED2.C
LED DS3 is controlled by Parallel Port A bit 1 (PA1).
This sample program also shows the use of the
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.
14
window will indicate if writes and reads did not occur
STDIO
10 kW
Vcc
SAMPLES\RCM2100
RCM2100
Core Module
BA0BA12
BD0BD7
/IOW
/IOR
PE7
function to allow
runwatch()
RabbitCore RCM2100
folder.
Need help?
Do you have a question about the RabbitCore RCM2100 and is the answer not in the manual?
Questions and answers