manualshive.com logo in svg
background image

User’s Manual

11

2.2  Run a Sample Program

Once the RCM2100 is connected as described in the preceding pages, start Dynamic C by 
double-clicking on the Dynamic C icon or by double-clicking on 

dcrab_XXXX.exe

 in 

the Dynamic C root directory, where 

XXXX

 are version-specific characters. Dynamic C 

uses the serial port specified during installation.

If you are using a USB port to connect your computer to the RCM2100 module, choose 

Options > Project Options

 and select “Use USB to Serial Converter” under the 

Communications

 tab.

Find the file 

PONG.C

, which is in the Dynamic C 

SAMPLES

 folder. To run the program, 

open it with the 

File

 menu (if it is not still open), then compile and run it by pressing 

F9

 or 

by selecting 

Run

 in the 

Run

 menu. The 

STDIO

 window will open and will display a small 

square bouncing around in a box.

2.2.1  Troubleshooting

If Dynamic C appears to compile the BIOS successfully, but you then receive a communi-
cation error message when you compile and load the sample program, it is possible that 
your PC cannot handle the higher program-loading baud rate. Try changing the maximum 
download rate to a slower baud rate as follows.

Locate the 

Serial Options

 dialog in the Dynamic C 

Options > Project Options > 

Communications

 menu. Select a slower Max download baud rate.

If a program compiles and loads, but then loses target communication before you can 
begin debugging, it is possible that your PC cannot handle the default debugging baud 
rate. Try lowering the debugging baud rate as follows.

Locate the 

Serial Options

 dialog in the Dynamic C 

Options > Project Options > 

Communications

 menu. Choose a lower debug baud rate.

If there are any other problems:

Check to make sure you are using the 

PROG

 connector, not the 

DIAG

 connector, on the 

programming cable.

Check both ends of the programming cable to ensure that they are firmly plugged into 
the PC and the programming port on the RCM2100.

Ensure that the RCM2100 module is firmly and correctly installed in its connectors on 
the Prototyping Board.

Select a different COM port within Dynamic C. From the 

Options

 menu, select 

Project Options

, then select 

Communications

. Select another COM port from the list, 

then click OK. Press 

<Ctrl-Y>

 to force Dynamic C to recompile the BIOS. If Dynamic C 

still reports it is unable to locate the target system, repeat the above steps until you locate 
the active COM port. 

Содержание RCM2100

Страница 1: ...ss mainly focus on the distribution of electronic components Line cards we deal with include Microchip ALPS ROHM Xilinx Pulse ON Everlight and Freescale Main products comprise IC Modules Potentiometer...

Страница 2: ...RabbitCore RCM2100 C Programmable Module with Ethernet User s Manual 019 0091 070831 K...

Страница 3: ...it 2000 and RabbitCore are trademarks of Rabbit Semiconductor Inc No part of the contents of this manual may be reproduced or transmitted in any form or by any means without the express written permis...

Страница 4: ...ort 12 Chapter 3 Running Sample Programs 13 3 1 Sample Programs 13 3 1 1 Getting to Know the RCM2100 14 3 1 2 Serial Communication 17 3 1 3 Other Sample Programs 18 3 1 4 Sample Program Descriptions 1...

Страница 5: ...2 6 8 1 How to Set Up your Computer for Direct Connect 53 6 9 Run the PINGME C Sample Program 54 6 10 Running More Sample Programs With Direct Connect 54 6 10 1 Sample Program PINGLED C 54 6 10 2 Samp...

Страница 6: ...ternal Battery Connections 81 C 1 2 Power to VRAM Switch 83 C 1 3 Reset Generator 83 C 2 Chip Select Circuit 84 Appendix D Sample Circuits 85 D 1 RS 232 RS 485 Serial Communication 86 D 2 Keypad and L...

Страница 7: ...RabbitCore RCM2100...

Страница 8: ...cifically The RCM2100 is a microprocessor core module designed to be the heart of your own con troller built around the plug in module Data processing is done by a Rabbit 2000 micro processor operatin...

Страница 9: ...clock Watchdog supervisor Provision for customer supplied backup battery via connections on header J2 Four CMOS compatible serial ports maximum asynchronous baud rate of 690 625 bps maximum synchronou...

Страница 10: ...asy C language program development and debugging including rapid production loading of programs Generous memory size allows large programs with tens of thousands of lines of code and substantial data...

Страница 11: ...rget system eliminating the need for complex and unreliable in circuit emulators NOTE The RCM2100 modules require Dynamic C v7 04 or later for development A compatible version is included on the Devel...

Страница 12: ...M2100 modules Dynamic C User s Manual An Introduction to TCP IP Dynamic C TCP IP User s Manual Rabbit 2000 Microprocessor User s Manual 1 4 2 Using Online Documentation We provide the bulk of our user...

Страница 13: ...mic C installation folder The latest versions of all documents are always available for free unregistered download from our Web sites as well Printing Electronic Manuals We recognize that many users p...

Страница 14: ...ment Kit If you purchased an RCM2100 module by itself you will have to adapt the information in this chapter and elsewhere to your test and development setup 2 1 Connections There are three steps to c...

Страница 15: ...dule on the Prototyping Board Note the orientation of the module NOTE It is important that you line up the RCM2100 pins on headers J1 and J2 exactly with the corresponding pins of header sockets J1 an...

Страница 16: ...rial connection Figure 3 Attaching Programming Cable to the RCM2100 NOTE The stripe on the cable is towards pin 1 of the header J5 Connect the other end of the programming cable to a COM port on your...

Страница 17: ...ply Connections to Prototyping Board Plug in the wall transformer The power LED on the Prototyping Board should light up The RCM2100 and the Prototyping Board are now ready to be used NOTE A RESET but...

Страница 18: ...ging the maximum download rate to a slower baud rate as follows Locate the Serial Options dialog in the Dynamic C Options Project Options Communications menu Select a slower Max download baud rate If...

Страница 19: ...ion menu You can create a new desktop icon that points to default htm in the docs folder in the Dynamic C installation folder 3 For advanced development topics refer to the Dynamic C User s Manual and...

Страница 20: ...n also be used as starting points or building blocks for your own applications NOTE It is assumed in this section that you have at least an elementary grasp of ANSI C If you do not see the introductor...

Страница 21: ...un 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 Protot...

Страница 22: ...llel Ports B C and D PB0 Keypad Col 0 PC1 Keypad Col 1 PB2 Keypad Col 2 PB3 Keypad Col 3 PB4 Keypad Col 4 PB5 Keypad Col 5 PD1 Keypad Row 0 PD2 Keypad Row 1 Connect the LCD to Parallel Port A PA0 back...

Страница 23: ...Port A bit 1 LED DS3 Parallel Port B bit 2 switch S2 Parallel Port B bit 3 switch S3 TOGGLELED C demonstrates the use of costatements to detect switch presses using the press and release method of deb...

Страница 24: ...et up flow control lines CORE_PARITY C This program demonstrates the use of parity modes by repeatedly sending byte values 0 127 from Serial Port B to Serial Port C The program will switch between gen...

Страница 25: ...es are as follows RS485 to RS485 RS485 to RS485 GND to GND MASTER2 C This program demonstrates a simple RS 485 transmission of lower case letters to a slave RCM2100 The slave will send back converted...

Страница 26: ...s an endless loop with a for expression and within that loop Writes a bit to turn bit 1 off lighting LED DS3 Waits through a delay loop Writes a bit to turn bit 1 on turning off the LED Waits through...

Отзывы: