RabbitCore RCM2200 C-Programmable Module with Ethernet Getting Started Manual 019–0096 • 010501–B
RabbitCore RCM2200: Getting Started Manual Part Number 019-0096 • 010501–B • Printed in U.S.A. © 2001 Z-World Inc. • All rights reserved. Z-World reserves the right to make changes and improvements to its products without providing notice. Notice to Users RABBIT SEMICONDUCTOR PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE-SUPPORT DEVICES OR SYSTEMS UNLESS A SPECIFIC WRITTEN AGREEMENT REGARDING SUCH INTENDED USE IS ENTERED INTO BETWEEN THE CUSTOMER AND RABBIT SEMICONDUCTOR PRIOR TO USE.
Table of Contents 1 Introduction & Overview 1.1 RCM2200 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 1.1.1 Other Factory Versions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 1.1.2 Physical & Electrical Specifications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 1.2 Development Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3 1.
2.4 Where Do I Go From Here? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-7 2.4.1 Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-8 3 Software Installation & Overview 3.1 An Overview of Dynamic C. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1 3.2 System Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2 3.2.
Introduction & Overview 1 The RabbitCore RCM2200 is an advanced module that incorporates the powerful Rabbit 2000™ microprocessor, flash memory, static RAM, digital I/O ports and a 10Base-T Ethernet port, all on a PCB just half the size of a business card. 1.1 RCM2200 Description The RCM2200 is a small-footprint module designed for use on a motherboard that supplies power and interface to real-world I/O devices.
1.1.2 Physical & Electrical Specifications Table 1–1 lists the basic specifications for the RCM2200. NOTE: For complete product specifications, see Appendix A in the RabbitCore RCM2200 User’s Manual. Table 1–1: RCM2200 specifications Specification Power Supply Data 4.75 – 5.25 VDC (134 mA at 22.1 MHz clock speed) Size 2.3 x 1.6 x 0.
1.2 Development Software The RCM2200 module uses the Dynamic C development environment for rapid creation and debugging of runtime applications. Dynamic C provides a complete development environment with integrated editor, compiler and source-level debugger. It interfaces directly with the target system, eliminating the need for complex and unreliable in-circuit emulators.
Providing this documentation in electronic form saves an enormous amount of paper by not printing copies of manuals that users don’t need. Finding Online Documents The online documentation is installed along with Dynamic C, and an icon for the documentation menu is placed on the workstation’s desktop. Double-click this icon to reach the menu. If the icon is missing, create a new desktop icon that points to default.htm in the docs folder, found in the Dynamic C installation folder.
Hardware Setup 2 This chapter describes the RCM2200 module hardware in more detail, and explains how to set up and use the accompanying prototyping and development board. NOTE: This chapter (and this manual) assume that you have the RabbitCore RCM2200 Development Kit. If you purchased an RCM2200 module by itself, you will have to adapt the information in this chapter and elsewhere to your test and development setup. 2.
2.2 Overview of the Prototyping Board The Prototyping Board included in the Development Kit makes it easy to connect an RCM2200 module to a power supply and a PC workstation for development. It also provides some basic I/O peripherals (switches and LEDs), as well as a prototyping area for more advanced hardware development. For the most basic level of evaluation and development, the Prototyping Board can be used without modification.
RCM2200/2300 Master Module Connectors Power Voltage Connector Regulator Reset Switch User Switches & LEDs (2 each) Power LED SMT Device Prototyping Area Through-Hole Prototyping Area Master Module Extension Headers Slave Module Extension Headers RCM2200/2300 Slave Module Connectors Vcc & Ground Busses Backup Battery Figure 2–1: The RCM2200 Prototyping Board. and bottom of the Prototyping Board.) Each SMT pad is connected to a hole designed to accept a 30 AWG solid wire.
2.2.2 Prototyping Board Expansion To disconnect these devices and permit the pins to be used for other purposes, cut the traces between the pin rows of JP1. Use a knife or similar tool to cut or break the traces crossing JP1 in the area between the silk-screened arrows, as indicated in Figure 2–2 below. The Prototyping Board comes with several unpopulated areas, which may be filled with components to suit the user’s development needs. After you have experimented with the sample programs in Section 3.
2.3.1 Attach Module to Prototyping Board Turn the RabbitCore RCM2200 module so that the Ethernet connector end of the module extends off the Prototyping Board, as shown in Figure 2–3 below. Align the module headers J4 and J5 into sockets J1 and J2 on the Prototyping Board. Although you can install a single module into either the Master or Slave position, all of the development board features (switches, LEDs, serial port drivers, etc.) are connected to the Master position.
IMPORTANT! It is important that you line up the pins of the RabbitCore module headers J4 and J5 exactly with the corresponding pins of headers J1 and J2 on the Prototyping Board. The header pins may become bent or damaged if the pin alignment is offset, and the module will not work. Permanent electrical damage to the module may also result if a misaligned module is powered up. Press the module’s pins firmly into the Prototyping Board headers. The installed module is shown in Figure 2–4.
runtime purposes. The first two options permit total freedom of action in selecting network addresses and use of the “network,” as no action can interfere with other users. We recommend one of these options for initial development. • No LAN — The simplest alternative for desktop development. Connect the RabbitCore’s Ethernet port directly to the workstation’s network interface card, using an RJ-45 crossover cable.
Figure 2–6: Connecting the power cable to the Prototyping Board. The connector may be oriented either way, but must not be offset. click on it to reach the documentation menu. You can create a new desktop icon that points to default.htm in the docs folder in the Dynamic C installation folder. 2.4.1 Technical Support If you encounter any problems, call our Technical Support center: • Z-World Technical Support, (530) 757-3737 3.
Software Installation & Overview 3 To develop and debug programs for the RabbitCore RCM2200 (and for all other Z-World and Rabbit Semiconductor hardware), you must install and use Dynamic C. This chapter takes you through the installation of Dynamic C, and then provides a tour of its major features with respect to the RabbitCore RCM2200 module. 3.
expressions, breakpoints and other advanced debugging features. Watch expressions can be used to compute C expressions involving the target’s program variables or functions. Watch expressions can be evaluated while stopped at a breakpoint or while the target is running its program.
The default location, as shown in the example above, is in a folder named for the version of Dynamic C, placed in the root folder of the C: drive. If this location is not suitable, enter a different root path before clicking Next >. Files are placed in the specified folder, so do not set this location to a drive’s root directory. 3.3.3 Select COM Port Dynamic C uses a COM (serial) port to communicate with the target development system. The installation allows you to choose the COM port that will be used.
3.4 Starting Dynamic C Once the RabbitCore module is set up and connected as described in Chapter 2 and Dynamic C has been installed, start Dynamic C by double-clicking on the Dynamic C icon. Dynamic C should start, then look for the target system on the COM port you specified during installation (by default, COM1). Once detected, Dynamic C should go through a sequence of steps to cold-boot the module and compile the BIOS.
Of the many sample programs included with Dynamic C, several are specific to the RCM2200 module. These programs will be found in the Samples/RCM2200 folder. We suggest that you examine the following five of these sample programs, in order, to get a complete tour of the capabilities of the RabbitCore RCM2200 modules. They form a “learning arc” from basic I/O control to advanced TCP/IP issues, including web serving: • FlashLED.c • ToggleLED.c Getting Started Manual • FlashLEDs.c • PingLED.c • EthCore1.
3–6 Software Installation & Overview RabbitCore RCM2200
Using the TCP/IP Features 4 4.1 TCP/IP Connections If you have Ethernet access, use a straight Ethernet cable to establish an Ethernet connection to the RCM2200 from an Ethernet hub. Before proceeding you will need to have the following items. • If you don’t have Ethernet access, you will The PC running Dynamic C through the serial port on the RCM2200 does not need to be the PC with the Ethernet card.
RCM2200 Board User’s PC Ethernet crossover cable RCM2200 Board Ethernet cables Direct Connection (Network of 2 computers) To additional network Hub elements Direct Connection Using a Hub Obtaining IP addresses to interact over an existing, operating, network can involve a number of complications, and must usually be done with cooperation from your ISP and/or network systems administrator (if your company has one).
Internet traffic. In the configuration below, the RCM2200 board could be given a fixed address so any of the computers on the local network would be able to contact it. It may be possible to configure the firewall or proxy server to allow hosts on the Internet to directly contact the controller, but it would probably be easier to place the controller directly on the external network outside of the firewall. This avoids some of the configuration complications by sacrificing some security.
leaves 256 - 3 = 253 available IP addresses for the example given. 4.4 How IP Addresses are Used The actual hardware connection via an Ethernet uses Ethernet adapter addresses (also called MAC addresses.) These are 48-bit addresses and are unique for every Ethernet adapter manufactured. In order to send a packet to another computer, given the IP address of the other computer, it is first determined if the packet needs to be sent directly to the other computer or to the gateway.
Click on Start > Settings > Control Panel to bring up the Control Panel, and then double-click the Network icon. In the window find the line of the form TCP/IP > Ethernet adapter name. Double-click on this line to bring up the TCP/IP properties dialog box. You can edit the IP address directly and the subnet mask. (Disable “obtain an IP address automatically.”) You may want to write down the existing values in case you have to restore them later.
4.9 Running More Demo Programs With Direct Connect The programs STATIC.C and SSI3.C (SAMPLES\TCPIP\HTTP) demonstrate how to make the RCM2200 board be a Web server. This program allows you to turn the LEDs on an attached Demonstration Board from the Development Kit on and off from a remote Web browser. In order to run these sample programs, edit the IP address as for the pingme program, compile the program and start it executing.
Schematics The following schematics are included for user reference: 090–0120 RabbitCore RCM2200 090–0122 RCM2200 Prototyping Board 090-0085 Programming Cable Getting Started Manual Schematics 1
REVISION HISTORY REV APPEND THE FOLLOWING DOCUMENTS WHEN CHANGING THIS DOCUMENT: ECO DESCRIPTION OF CHANGE REVISION APPROVAL PROJECT APPROVAL DOCUMENT APPROVAL DATE ENGINEER DATE CONTROL DRAWING CONTENT: 2900 SPAFFORD ST.
* C NONE
REVISION APPROVAL MASTER REVISION HISTORY DESCRIPTION ECO APPROVAL DATE DOCUMENT CONTROL APPROVAL DATE SLAVE REV PROJECT ENGINEER APPEND THE FOLLOWING DOCUMENTS WHEN CHANGING THIS DOCUMENT: DRAWING CONTENT: 2900 SPAFFORD ST.
REVISION APPROVAL REVISION HISTORY REV APPEND THE FOLLOWING DOCUMENTS WHEN CHANGING THIS DOCUMENT: PROJECT ENGINEER DESCRIPTION ECO APPROVAL DATE DOCUMENT CONTROL APPROVAL DATE DRAWING CONTENT: ZWORLD 2900 SPAFFORD ST.