RabbitCore RCM2200 C-Programmable Module with Ethernet User’s Manual 019–0097 • 010418–A
RabbitCore RCM2200: User’s Manual Part Number 019-0097 • 010418–A • 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 Z-WORLD 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 ZWORLD PRIOR TO USE.
Table of Contents 1 Introduction 1.1 RabbitCore RCM2200 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 1.2 Advantages of the RabbitCore RCM2200 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 1.3 Development and Evaluation Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 1.4 How to Use This Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 2 Hardware Reference 2.
2.4 Programming Cable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-9 2.4.1 Changing from Program Mode to Run Mode. . . . . . . . . . . . . . . . . . . . . 2-9 2.4.2 Changing from Run Mode to Program Mode. . . . . . . . . . . . . . . . . . . . . 2-9 3 Software Reference 3.1 More About Dynamic C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1 3.1.1 Operating System Framework . . . . . . . . . . . . . . . . . .
E External Interrupts E.1 Use of External Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-2 E.2 Single-Interrupt Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-3 E.3 OR’ed Interrupt Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
vi RabbitCore RCM2200
Introduction 1 The RabbitCore RCM2200 microprocessor module is designed to be the heart of embedded control systems. The RCM2200 features an integrated Ethernet port and provides for LAN and Internet-enabled systems to be built as easily as serial-communication systems. The RabbitCore RCM2200 has a Rabbit 2000 microprocessor operating at 22.
• 4 address lines (A0–A3) • Memory I/0 read, write • External reset input • Five 8-bit timers (cascadable in pairs) and two 10-bit timers • 256K flash memory, 128K SRAM • Real-time clock • Watchdog supervisor • Provision for customer-supplied backup battery via connections on header J5 • 10Base-T RJ-45 Ethernet port • Raw Ethernet and two associated LED control signals available on 26-pin header • Three CMOS-compatible serial ports: maximum asynchronous baud rate of 345,600 bps, maximum
1.4.2 Additional Reference Information In addition to the product-specific information contained in the RabbitCore RCM2200 Getting Started Manual and the RabbitCore RCM2200 User’s Manual (this manual), several higher level reference manuals are provided in HTML and PDF form on the accompanying CD-ROM.
1–4 Introduction RabbitCore RCM2200
Hardware Reference 2 Chapter 2 describes the hardware components and principal hardware subsystems of the RabbitCore RCM2200. Appendix A, “RabbitCore RCM2200 Specifications,” provides complete physical and electrical specifications. 2.1 RabbitCore RCM2200 Digital Inputs and Outputs Figure 2–1 shows the subsystems designed into the RabbitCore RCM2200.
The RabbitCore RCM2200 has 26 parallel I/O lines grouped in five 8-bit ports available on headers J4 and J5. The 16 bidirectional I/O lines are located on pins PA0–PA7, PD3–PD5, and PE0–PE1, PE4, PE5, and PE7. The pinouts for headers J4 and J5 are shown in Figure 2–2.
Table 2–1: RabbitCore RCM2200 Pinout Configurations Pin Pin Name Default Use Alternate Use 1 GND 2 VCC 3 PC0 Output TXD 4 PC1 Input RXD 5 PC2 Output TXC 6 PC3 Input RXC 7 TPOUT– 8 TPOUT+ 9 LNK 10 PD3 11 PD4 12 PD5 13 /IORD Input (I/O read strobe) 14 /IOWR Output (I/O write strobe) 15 PE0 16 PE1 17 TPIN– 18 TPIN+ 19 PE4 20 PE5 21 ACT 22 PE7 23–26 A[3:0] Notes Header J4 Ethernet transmit port Ethernet LNK LED indicator Bitwise or parallel program
Table 2–1: RabbitCore RCM2200 Pinout Configurations (continued) Pin Default Use PA[0:7] Bytewide programmable parallel I/O Slave port data bus SD0–SD7 9 /RESET Reset output Reset input PB0 Input Serial port clock CLKB input or output 11 PB2 Input Slave port write /SWR 12 PB3 Input Slave port read /SRD 13 PB4 Input SA0 14 PB5 Input SA1 PB7 Output Slave port attention line /SLAVEATTN 16–23 D[7:0] Input/Output 24 VBAT 3 V battery input 25 VCC 26 GND Notes This weak ou
2.2 Serial Communication The RabbitCore RCM2200 board does not have an RS-232 or an RS-485 transceiver directly on the board. However, an RS-232 or RS-485 interface may be incorporated on the board the RCM2200 is mounted on. For example, the Prototyping Board supports a standard RS-232 transceiver chip. 2.2.1 Serial Ports There are four serial ports designated as Serial Ports A, B, C, and D. All four serial ports can operate in an asynchronous mode up to the baud rate of the system clock divided by 64.
programming port so that an externally connected device can force the RCM2200 to start up in an external bootstrap mode. The Rabbit 2000 Microprocessor User’s Manual provides more information related to the bootstrap mode. Alternate Uses of the Programming Port The programming port may also be used as an application port with the DIAG connector on the programming cable.
2.3 Other Hardware 2.3.1 Clock Doubler The RabbitCore RCM2200 takes advantage of the Rabbit 2000 microprocessor’s internal clock doubler. A built-in clock doubler allows half-frequency crystals to be used to reduce radiated emissions. The 22.1 MHz frequency is generated using an 11.0592 MHz crystal. The clock doubler is disabled automatically in the BIOS for crystals with a frequency above 12.9 MHz. The clock doubler may be disabled if 22.1 MHz clock speeds are not required.
The battery-backup circuit serves two purposes: VCC • It reduces the battery voltage to the real-time clock, thereby reducing the current consumed by the real-time clock and lengthening the battery life. R33 VRAM 0W Q5 FDV302P • It ensures that current can flow only out of the battery to prevent charging the battery. R30 10 kW Figure 2–6 shows the RabbitCore 2000 battery backup circuit. /RESET R17 22 kW Q2 MMBT3904 (5 V or VRAM 2.
Run Mode Program Mode To PC COM port RESET RabbitCore when changing mode: Short out pins 9 and 26 on header J5, OR Press RESET button (if using Prototyping Board), OR Remove, then reapply power after removing or attaching programming cable. Figure 2–8: Switching Between Program Mode and Run Mode 2.
2–10 Hardware Reference RabbitCore RCM2200
Software Reference 3 Dynamic C Premier is an integrated development system for writing embedded software. It runs on an IBM-compatible PC and is designed for use with Z-World controllers and other controllers based on the Rabbit microprocessor. Chapter 3 provides the libraries, function calls, and sample programs related to the RabbitCore RCM2200. 3.1 More About Dynamic C Dynamic C has been in use worldwide since 1989.
3.1.1 Operating System Framework Dynamic C does not include an operating system in the usual sense of a complex software system that is resident in memory. The user has complete control of what is loaded as a part of his program, other than those routines that support loading and debugging (which are inactive at embedded run time). However, certain routines are very basic and normally should always be present and active. • Periodic interrupt routine.
3.2 Dynamic C Libraries With Dynamic C running, click File > Open, and select Lib. The following list of Dynamic C libraries will be displayed. The sample programs in the Dynamic C SAMPLES/RCM2200 directory provide further examples. 3.2.2 Serial Communication Drivers The Prototyping Board has room for an RS-232 chip for which the Rabbit serial library, RS232.
3.2.3 TCP/IP Drivers 3.3 Sample Programs The TCP/IP drivers are located in the TCPIP directory. Sample programs are provided in the Dynamic C Samples folder, which is shown below. Complete information on these libraries and the TCP/IP functions is provided in the Dynamic C Premier TCP/IP Function Reference Manual. The various folders contain specific sample programs that illustrate the use of the corresponding Dynamic C libraries. For example, the sample program PONG.
3.4 Upgrading Dynamic C Dynamic C patches that focus on bug fixes are available from time to time. Check the Web sites • www.zworld.com/support/supportcenter.html • www.rabbitsemiconductor.com/support.html ply copy over an entire file since you may overwrite a bug fix; of course, you may copy over any programs you have written. Once you are sure the new patch works entirely to your satisfaction, you may retire the existing installation, but keep it available to handle legacy applications.
3–6 Software Reference RabbitCore RCM2200
RabbitCore RCM2200 Specifications A Appendix A provides the specifications for the RabbitCore RCM2200, and describes the conformal coating.
A.1 Electrical and Mechanical Characteristics Figure A–1 shows the mechanical dimensions for the RabbitCore RCM2200. 2.300 (58.4) 1.060 0.130 dia (26.9) 0.602 (22) 0.86 (18) 0.72 (16) 0.62 0.62 (15.3) (14) (15.7) 0.55 0.625 0.55 (4.0) (0,0) for Pin 1 coordinates 0.156 (20.3) 0.800 (40.6) 1.600 (3.3) 2.300 (22) 0.86 (18) 0.72 (16) (14) (58.4) 1.600 (40.
Table A–1 provides the pin 1 locations for the RabbitCore RCM2200 headers viewed from the top side (as in Figure A–1). Table A–1: RabbitCore RCM2200 Header Pin 1 Locations Header Description Pin 1 (x,y) Coordinates (Inches) J4 RabbitCore RCM2200 user board interface (0.100, 1.445) J5 RabbitCore RCM2200 user board interface (0.100, 0.195) J1 Programming header (top side) (0.125, 1.515) DS1 LNK LED (1.815, 0.105) DS2 ACT LED (2.015, 0.
Table A–2: RabbitCore RCM2200 Specifications Parameter A–4 Specification Board Size 1.60" × 2.30" × 0.86" (41 mm × 59 mm × 22 mm) Operating Temperature –40°C to +70°C Humidity 5% to 95%, noncondensing Input Voltage 4.75 V to 5.25 V DC Current 134 mA at 22.
A.1.1 Headers The RabbitCore 2000 uses headers at J4 and J5 for physical connection to other boards. J4 and J5 are 2 × 13 SMT headers with a 2 mm pin spacing. J1, the programming port, is a 2 × 5 header with a 2 mm pin spacing. Figure A–2 shows the layout of another board for the RabbitCore RCM2200 to be plugged into. These values are relative to the header connectors. A.1.
Figure A–3 shows a typical timing diagram for the Rabbit 2000 microprocessor external memory read and write cycles. External I/O Read (no extra wait states) T1 Tw T2 CLK A[15:0] valid Tadr Tsetup D[7:0] valid Thold /CSx /OEx /IOCSx valid /IORD /BUFEN External I/O Write (no extra wait states) T1 Tw T2 CLK A[15:0] valid Tadr D[7:0] valid /CSx /WEx /IOCSx valid Thold /IOWR /BUFEN Figure A–3: Memory Read and Write Cycles Tadr is the time required for the address output to reach 0.8 V.
Table A–4 lists the parameters shown in these figures and provides minimum or measured values. Table A–4: Memory and External I/O Read/Write Parameters Write Parameters Read Parameters Parameter A.3 Description Value Tadr Time from CPU clock rising edge to address valid Max. 7 ns @ 20 pF, 5 V (10 ns @ 3.3 V) 14 ns @ 70 pF, 5 V (19 ns @ 3.3 V) Tsetup Data read setup time Min. 2 ns @ 5 V (3 ns @ 3.3 V) Thold Data read hold time Min.
A.4 I/O Buffer Sourcing and Sinking Limit Unless otherwise specified, the Rabbit I/O buffers are capable of sourcing and sinking 8 mA of current per pin at full AC switching speed. Full AC switching assumes a 25.8 MHz CPU clock and capacitive loading on address and data lines of less than 100 pF per pin. Address pin A0 and data pin D0 are rated at 16 mA each. Pins A1–A12 and D1–D7 are each rated at 8 mA. The absolute maximum operating voltage on all I/O is VDD + 0.5 V, or 5.5 V.
A.5 Conformal Coating The areas around the crystal oscillator has had the Dow Corning silicone-based 1-2620 conformal coating applied. The conformally coated area is shown in Figure A–4. The conformal coating protects these high-impedance circuits from the effects of moisture and contaminants over time. Any components in the conformally coated area may be replaced using standard soldering procedures for surface-mounted components.
A–10 RabbitCore RCM2200 Specifications RabbitCore RCM2200
Power Supply B Appendix B provides information on the current requirements of the RabbitCore RCM2200, and some background on the chip select circuit used in power management. B.1 Power Supplies The RabbitCore RCM2200 requires a regulated 5 V ± 0.25 V DC power source. The RabbitCore design presumes that the voltage regulator is on the user board, and that the power is made available to the RabbitCore board through headers J4 and J5. A RabbitCore RCM2200 with no loading at the outputs operating at 22.
VRAM R28 /CSRAM 100 kW Q4 /CS1 Q3 VRAM SWITCH /RESET_OUT Figure B–1: Chip Select Control Switch In a powered-up condition, the CS control switch must allow the processor’s chip select signal /CS1 to control the SRAM’s CS signal /CSRAM. So, with power applied, /CSRAM must be the same signal as /CS1, and with power removed, /CSRAM must be held high (but only needs to be as high as the battery voltage). Q3 and Q4 are MOSFET transistors with opposing polarity.
Programming Cable C Appendix C provides additional theoretical information for the Rabbit 2000™ microprocessor when using the DIAG and PROG connectors on the programming cable. The PROG connector is used only when the programming cable is attached to the programming connector (header J5) while a new application is being developed.
The programming port, which is shown in Figure C–1, can serve as a convenient communications port for field setup or other occasional communication need (for example, as a diagnostic port). There are several ways that the port can be automatically integrated into software.
Once you establish that the programming port will never again be needed for programming, it is possible to use the programming port for additional I/O lines. Table C–1 lists the pins available for this alternate configuration.
C–4 Programming Cable RabbitCore RCM2200
Sample Circuits D This appendix details several basic sample circuits that can be used with the RabbitCore RCM2200 modules.
D.1 RS-232/RS-485 Serial Communication RS-232 1 RabbitCore RCM2200 V+ V C1+ 100 nF J4 3 C1 4 C2+ 5 C2 VCC 100 nF 2 6 100 nF 100 nF 3 PC0 11 T1IN 4 PC1 12 R1OUT 5 PC2 10 T2IN 6 PC3 9 3 PC0 4 D 4 PC1 1 R R2OUT T1OUT 14 TXD R1IN 13 RXD T2OUT 7 TXC R2IN 8 RXC RabbitCore RCM2200 J4 10 PD3 47 kW 3 2 RS-485 VCC 680 W DE A 6 B 7 485+ 220 W 485 680 W RE SP483EN Figure D–1: Sample RS-232 and RS-485 Circuits Sample Program: PUTS.
D.2 Keypad and LCD Connections RabbitCore RCM2200 J5 VCC 10 kW resistors PB0 PB2 PB3 PB4 PB5 10 11 12 13 14 J4 Keypad Row 0 Row 2 Row 3 Row 4 Row 5 Row 1 PC1 PD3 PD4 4 10 11 Col 0 Col 1 NC NC Figure D–2: Sample Keypad Connections Sample Program: KEYLCD.C in SAMPLES/RCM2200. RabbitCore RCM2200 2 3 4 5 6 7 8 PA1 PA2 PA3 PA4 PA5 PA6 PA7 100 nF 680 W 3 470 W 1 kW 2.2 kW 4.
D.3 External Memory The sample circuit can be used with an external 64K memory device. Larger SRAMs can be written to using this scheme by using other available Rabbit 2000 ports (parallel ports A to E) as address lines. SRAM RabbitCore RCM2200 A0A3 A0A3 D0D7 D0D7 /WE /OE /CE /IOWR /IORD PE7 10 kW Vcc Figure D–4: Sample External Memory Connections Sample Program: EXTSRAM.C in SAMPLES/RCM2200.
D.4 D/A Converter The output will initially be 0 V to -10.05 V after the first inverting op-amp, and 0 V to +10.05 V after the second inverting op-amp. All lows produce 0 V out, FF produces 10 V out. The output can be scaled by changing the feedback resistors on the op-amps. For example, changing 5.11 kΩ to 2.5 kΩ will produce an output from 0 V to -5 V. Op-amps with a very low input offset voltage are recommended. HC374 649 kW 22 pF 22 pF 5.
D–6 Sample Circuits RabbitCore RCM2200
External Interrupts E Appendix E provides information about using the RabbitCore RCM2200 external interrupts. The Rabbit 2000 microprocessor has four external interrupt inputs on Parallel Port E, which is accessed through pins PE0, PE1, PE4, and PE5 on header J4. Table E–1 lists the general-purpose Parallel Port E I/O pins that can be used for external interrupts. Figure E–1 illustrates these pins.
E.1 Use of External Interrupts Figure E–2 shows a block diagram of how the Rabbit 2000 external interrupt logic is used in general. INT1A INT1B 29 Interrupt Request #1 23 Edge Detectors INT0A INT0B 30 Interrupt Request #0 24 Figure E–2: Rabbit 2000 External Interrupt Logic Interrupts on the Rabbit 2000 can take place at three priority levels from low to high priority, and are numbered 1, 2 and 3.
E.2 Single-Interrupt Request Tie the inputs for external interrupt #1 and #0 together by adding a 1 kΩ resistor between the two lines. Under this configuration, shown in Figure E– 4, both interrupt #1 and #0 will be requested when an edge is detected. The #1 interrupt will take place first since it is of a higher priority.
E–4 External Interrupts RabbitCore RCM2200
Index A additional information Getting Started manual ..... 1-2 online documentation ....... 1-3 references ......................... 1-3 B backup-battery circuit .......... 2-7 external battery connections ........................ 2-7 battery life ............................ 2-7 battery-backup circuit .......... 2-8 reset generator .................. 2-8 VRAM switch .................. 2-8 bus loading .......................... A-5 C clock doubler ........................ 2-7 conformal coating .........
R Rabbit subsystems ................2-1 Run Mode .............................2-9 switching modes ...............2-9 S sample circuits .....................D-1 serial communication ...........2-5 serial ports ............................2-5 Ethernet port .....................2-5 programming port .............2-5 software I/O drivers .........................3-3 libraries .............................3-3 RS232.LIB ....................3-3 TCP/IP ..........................3-4 sample programs ...............
Schematics The following schematics are included for user reference: 090–0120 RabbitCore RCM2200 schematic 090–0122 RCM2200 Prototyping Board schematic 090–0085 Programming Cable User’s 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.