Rabbit RabbitCore RCM4000 User Manual

C-programmable analog core module with ethernet
Table of Contents

Advertisement

Quick Links

RabbitCore RCM4000
C-Programmable Analog Core Module
with Ethernet
User's Manual
019–0157 • 060501–A

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RabbitCore RCM4000 and is the answer not in the manual?

Questions and answers

Summary of Contents for Rabbit RabbitCore RCM4000

  • Page 1 RabbitCore RCM4000 C-Programmable Analog Core Module with Ethernet User’s Manual 019–0157 • 060501–A...
  • Page 2 RabbitCore RCM4000 User’s Manual Part Number 019-0157 • 060501–A • Printed in U.S.A. ©2006 Rabbit Semiconductor • All rights reserved. Rabbit Semiconductor reserves the right to make changes and improvements to its products without providing notice. Trademarks Rabbit and Dynamic C are registered trademarks of Rabbit Semiconductor.
  • Page 3: Table Of Contents

    2.4.1 Technical Support ...13 Chapter 3. Running Sample Programs 3.1 Introduction...15 3.2 Sample Programs ...16 3.2.1 Use of NAND Flash (RCM4000 only) ...18 3.2.2 Serial Communication...20 3.2.3 A/D Converter Inputs (RCM4000 only) ...22 3.2.4 Real-Time Clock ...22 Chapter 4. Hardware Reference 4.1 RCM4000 Digital Inputs and Outputs ...24...
  • Page 4 B.4 Using the Prototyping Board ... 97 B.4.1 Adding Other Components ... 99 B.4.2 Measuring Current Draw ... 99 B.4.3 Analog Features (RCM4000 only) ... 100 B.4.3.1 A/D Converter Inputs... 100 B.4.3.2 Thermistor Input ... 102 B.4.3.3 A/D Converter Calibration... 102...
  • Page 5 B.4.4 Serial Communication ...103 B.4.4.1 RS-232 ... 104 B.5 Prototyping Board Jumper Configurations ...105 Appendix C. Power Supply C.1 Power Supplies...109 C.1.1 Battery-Backup Circuits ...109 C.1.2 Reset Generator ...110 Notice to Users Index Schematics User’s Manual...
  • Page 6 RabbitCore RCM4100...
  • Page 7: Chapter 1. Introduction

    Throughout this manual, the term RCM4000 refers to the complete series of RCM4000 RabbitCore modules unless other production models are referred to specifically. The RCM4000 has a Rabbit 4000 microprocessor operating at up to 58.98 MHz, static RAM, flash memory, NAND flash mass-storage option, an 8-channel A/D converter, two clocks (main oscillator and timekeeping), and the circuitry necessary for reset and man- agement of battery backup of the Rabbit 4000’s internal real-time clock and the static...
  • Page 8: Rcm4000 Features

    5 shared high-speed, CMOS-compatible ports: Serial Ports The RCM4000 is programmed over a standard PC serial port through a programming cable supplied with the Development Kit, and can also be programed through a USB port with an RS-232/USB converter or over an Ethernet with the RabbitLink (both available from Rabbit Semiconductor).
  • Page 9: Advantages Of The Rcm4000

    1.2 Advantages of the RCM4000 • Fast time to market using a fully engineered, “ready-to-run/ready-to-program” micro- processor core. • Competitive pricing when compared with the alternative of purchasing and assembling individual components. • Easy C-language program development and debugging • Rabbit Field Utility to download compiled Dynamic C .bin files, and cloning board options for rapid production loading of programs.
  • Page 10: Development And Evaluation Tools

    1.3 Development and Evaluation Tools 1.3.1 RCM4000 Development Kit The RCM4000 Development Kit contains the hardware essentials you will need to use your RCM4000 module. The items in the Development Kit and their use are as follows. • RCM4010 module. • Prototyping Board.
  • Page 11: Software

    1.3.2 Software The RCM4000 is programmed using version 10.03 or later of Dynamic C. A compatible version is included on the Development Kit CD-ROM. Rabbit Semiconductor also offers add-on Dynamic C modules containing the popular µC/OS-II real-time operating system, as well as PPP, Advanced Encryption Standard (AES), and other select libraries.
  • Page 12 RabbitCore RCM4000...
  • Page 13: Chapter 2. Getting Started

    NOTE: This chapter (and this manual) assume that you have the RCM4000 Development Kit. If you purchased an RCM4000 module by itself, you will have to adapt the infor- mation in this chapter and elsewhere to your test and development setup.
  • Page 14: Hardware Connections

    1. Prepare the Prototyping Board for Development. 2. Attach the RCM4000 module to the Prototyping Board. 3. Connect the programming cable between the RCM4000 and the PC. 4. Connect the power supply to the Prototyping Board. 2.2.1 Prepare the Prototyping Board for Development Snap in four of the plastic standoffs supplied in the bag of accessory parts from the Devel- opment Kit in the holes at the corners as shown.
  • Page 15: Attach Module To Prototyping Board

    2.2.2 Attach Module to Prototyping Board Turn the RCM4000 module so that the mounting holes line up with the corresponding holes on the Prototyping Board. Insert a standoff between the upper mounting hole and the Prototyping Board as shown, then insert the module’s header J3 on the bottom side into socket RCM1 on the Prototyping Board.
  • Page 16: Connect Programming Cable

    Connect the 10-pin connector of the programming cable labeled the RCM4000 as shown in Figure 4. Be sure to orient the marked (usually red) edge of the cable towards pin 1 of the connector. (Do not use the normal serial connection.)
  • Page 17: Connect Power

    Plug in the AC adapter. The LED on the Prototyping Board next to the power con- nector at J1 should light up. The RCM4000 and the Prototyping Board are now ready to be used. NOTE: A RESET button is provided on the Prototyping Board next to the battery holder to allow a hardware reset without disconnecting power.
  • Page 18: Run A Sample Program

    Dynamic C icon or by double-clicking on dcrab_XXXX.exe in the Dynamic C root directory, where XXXX are version-specific characters. If you are using a USB port to connect your computer to the RCM4000, choose and select “Use USB to Serial Converter” under the Project Options tab.
  • Page 19: Where Do I Go From Here

    2.4.1 Technical Support NOTE: If you purchased your RCM4000 through a distributor or through a Rabbit Semi- conductor or Z-World partner, contact the distributor or partner first for technical support. If there are any problems at this point: •...
  • Page 20 RabbitCore RCM4000...
  • Page 21: Chapter 3. Running Sample Programs

    To help familiarize you with the RCM4000 modules, Dynamic C includes several sample programs. Loading, executing and studying these programs will give you a solid hands-on overview of the RCM4000’s capabilities, as well as a quick start with Dynamic C as an application development tool.
  • Page 22: Sample Programs

    3.2 Sample Programs Of the many sample programs included with Dynamic C, several are specific to the RCM4000 modules. These programs will be found in the —Demonstrates use of the digital outputs by having you turn LEDs • CONTROLLED.C DS2 and DS3 on the Prototyping Board on or off from the...
  • Page 23 PB4 and PB5 respectively. Once you have loaded and executed these five programs and have an understanding of how Dynamic C and the RCM4000 modules interact, you can move on and try the other sample programs, or begin building your own.
  • Page 24: Use Of Nand Flash (Rcm4000 Only)

    This log can be viewed and cleared from a browser by connecting the RJ-45 jack on the RCM4000 to your PC as described in Section 6.1. The sidebar on the next page explains how to set up your PC or notebook to view this log.
  • Page 25 Follow these instructions to set up your PC or notebook. Check with your administra- tor if you are unable to change the settings as described here since you may need administrator privileges. The instructions are specifically for Windows 2000, but the interface is similar for other versions of Windows.
  • Page 26: Serial Communication

    To set up the Prototyping Board, you will need to tie TxD and RxC together on the RS-232 header at J4, and you will also tie RxD and TxC together using the jumpers supplied in the Development Kit as shown in the diagram. SAMPLES\RCM4000\SERIAL STDIO window. window. STDIO folder. RabbitCore RCM4000...
  • Page 27 —This program demonstrates 5-wire RS-232 serial communication • SIMPLE5WIRE.C with flow control on Serial Port D and data flow on Serial Port C. To set up the Prototyping Board, you will need to tie TxD and RxD together on the RS-232 header at J4, and you will also tie TxC and RxC together using the jumpers supplied in the Development Kit as shown in the diagram.
  • Page 28: A/D Converter Inputs (Rcm4000 Only)

    3.2.3 A/D Converter Inputs (RCM4000 only) The following sample programs are found in the —Demonstrates how to recalibrate one single-ended analog input • AD_CAL_CHAN.C channel with one gain using two known voltages to generate the calibration constants for that channel. The constants will be rewritten into the user block data area.
  • Page 29: Chapter 4. Hardware Reference

    Chapter 4 describes the hardware components and principal hardware subsystems of the RCM4000. Appendix A, “RCM4000 Specifica- tions,” provides complete physical and electrical specifications. Figure 5 shows the Rabbit-based subsystems designed into the RCM4000. User’s Manual 4. H ARDWARE Figure 5. RCM4000 Subsystems...
  • Page 30: Rcm4000 Digital Inputs And Outputs

    4.1 RCM4000 Digital Inputs and Outputs Figure 6 shows the RCM4000 pinouts for header J3. Figure 6. RCM4000 Pinout standard 2 × 25 IDC header with a nominal 1.27 mm pitch. Headers J3 is a RabbitCore RCM4000...
  • Page 31 Figure 7 shows the use of the Rabbit 3000 microprocessor ports in the RCM4000 modules. Figure 7. Use of Rabbit 4000 Ports The ports on the Rabbit 4000 microprocessor used in the RCM4000 are configurable, and so the factory defaults can be reconfigured. Table 2 lists the Rabbit 4000 factory defaults and the alternate configurations.
  • Page 32 Table 2. RCM4000 Pinout Configurations Pin Name Default Use +3.3 V_IN /RES_OUT Reset output /IORD Input /IOWR Output /RESET_IN Input VBAT_EXT Battery input 8–15 PA[0:7] Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Alternate Use Reset output from Reset...
  • Page 33 Table 2. RCM4000 Pinout Configurations (continued) Pin Name Default Use Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output User’s Manual Alternate Use I/O Strobe I0 Timer C0 TCLKF Serial Port D RXD/TXD I/O Strobe I1 Timer C1 RCLKF Input Capture...
  • Page 34 Table 2. RCM4000 Pinout Configurations (continued) Pin Name Default Use Input/Output Input/Output Input/Output Input/Output PE5/SMODE0 Input/Output PE6/SMODE1 Input/Output PE7/STATUS Input/Output Alternate Use I/O Strobe I1 Timer C1 RXD/RCLKF INT1 QRD1A Input Capture I/O Strobe I2 Timer C2 TXF/SCLKC DREQ0 QRD2B...
  • Page 35: Memory I/O Interface

    /RESET_IN is normally associated with the programming port, but may be used as an external input to reset the Rabbit 4000 microprocessor and the RCM4000 memory. /RESET_OUT is an output from the reset circuitry that can be used to reset other peripheral devices.
  • Page 36: Serial Communication

    4.2 Serial Communication The RCM4000 module does not have any serial transceivers directly on the board. How- ever, a serial interface may be incorporated on the board the RCM4000 is mounted on. For example, the Prototyping Board has an RS-232 transceiver chip.
  • Page 37: Ethernet Port

    4.2.2 Ethernet Port Figure 8 shows the pinout for the RJ-45 Ethernet port (J2). Note that some Ethernet con- nectors are numbered in reverse to the order used here. ETHERNET Figure 8. RJ-45 Ethernet Port Pinout Two LEDs are placed next to the RJ-45 Ethernet jack, one to indicate an Ethernet link ) and one to indicate Ethernet activity ( LINK The RJ-45 connector is shielded to minimize EMI effects to/from the Ethernet signals.
  • Page 38: Programming Port

    4.2.3 Programming Port The RCM4000 is programmed via the 10-pin header labeled J1. The programming port uses the Rabbit 4000’s Serial Port A for communication. Dynamic C uses the programming port to download and debug programs. Serial Port A is also used for the following operations.
  • Page 39: Programming Cable

    4.3 Programming Cable The programming cable is used to connect the programming port of the RCM4000 to a PC serial COM port. The programming cable converts the RS-232 voltage levels used by the PC serial port to the CMOS voltage levels used by the Rabbit 4000.
  • Page 40: Standalone Operation Of The Rcm4000

    RCM4000 module to protect against inadvertent shorts across the pins or damage to the RCM4000 if the pins are not plugged in cor- rectly. Do not reapply power until you have verified that the RCM4000 module is plugged in correctly.
  • Page 41: A/D Converter (Rcm4000 Only)

    4.4 A/D Converter (RCM4000 only) The RCM4000 has an onboard ADS7870 A/D converter whose scaling and filtering are done via the motherboard on which the RCM4000 module is mounted. The A/D converter multiplexes converted signals from eight single-ended or four differential inputs to Serial Port B on the Rabbit 4000.
  • Page 42 CCLK indicates the actual start of the conversion cycle. Figure 12. Timing Diagram for Conversion Start Using CONVERT Pin Appendix B explains the implementation examples of these features on the Prototyping Board. Figure 11. Current Flow from Ungrounded or Floating Source RabbitCore RCM4000...
  • Page 43: A/D Converter Power Supply

    The analog section is isolated from digital noise generated by other components by way of a low-pass filter composed of C1, L1, and C3 on the RCM4000 as shown in Figure 13. The +V analog power supply powers the A/D converter chip.
  • Page 44: Other Hardware

    The RCM4000 takes advantage of the Rabbit 4000 microprocessor’s internal clock doubler. A built-in clock doubler allows half-frequency crystals to be used to reduce radiated emis- sions. The 58.98 MHz frequency specified for the RCM4000 is generated using a 29.49 MHz crystal.
  • Page 45: Memory

    Designer’s Handbook 4.6.3 NAND Flash The RCM4000 model has a NAND flash to store data and Web pages. The NAND flash is particularly suitable for mass-storage applications, but is generally unsuitable for direct program execution. The NAND flash differs from parallel NOR flash (the type of flash memory used to store program code on Rabbit-based boards and RabbitCore modules currently in production) in two respects.
  • Page 46 RabbitCore RCM4000...
  • Page 47: Chapter 5. Software Reference

    Dynamic C is contained in the Dynamic C User’s Manual. You have a choice of doing your software development in the flash memory or in the static SRAM included on the RCM4000. The flash memory and SRAM options are selected with Options > Program Options > Compiler The advantage of working in RAM is to save wear on the flash memory, which is limited to about 100,000 write cycles.
  • Page 48 Hex memory dump—displays the contents of memory at any address. STDIO window— printf detected for debugging purposes. outputs to this window and keyboard input on the host PC can be output may also be sent to a serial port or file. printf RabbitCore RCM4000...
  • Page 49: Dynamic C Function Calls

    5.2 Dynamic C Function Calls 5.2.1 Digital I/O The RCM4000 was designed to interface with other systems, and so there are no drivers written specifically for the I/O. The general Dynamic C read and write functions allow you to customize the parallel I/O to meet your specific needs. For example, use WrPortI(PEDDR, &PEDDRShadow, 0x00);...
  • Page 50 SRAM without affecting the performance of the application program. Data integrity is not assured when a reset or power failure occurs during the update process. Additional information on bbram User’s Manual. // restore any protected variables variables is available in the Dynamic C protected RabbitCore RCM4000...
  • Page 51: Prototyping Board Functions

    The source code is in the Dynamic C to modify it for your own board design. NOTE: The analog input function calls are supported only by the RCM4000 model since the RCM4010 does not have an A/D converter. Other generic functions applicable to all devices based on Rabbit microprocessors are described in the Dynamic C Function Reference Manual.
  • Page 52: Alerts

    Polls a digital input for a set value or until a timeout occurs. The RCM4000 will be in a low-power mode during this time. Once a timeout occurs or the correct byte is received, this function call will enable the normal power source and exit.
  • Page 53: Analog Inputs (Rcm4000 Only)

    5.2.5 Analog Inputs (RCM4000 only) unsigned int anaInConfig(unsigned int instructionbyte, unsigned int cmd, long baud); Use this function to configure the A/D converter. This function will address the A/D converter in Register Mode only, and will return an error if you try the Direct Mode. Appendix B.4.3 provides additional addressing and command information.
  • Page 54 0x00, 9600); RETURN VALUE 0 on write operations, data value on read operations SEE ALSO anaInDriver, anaIn, brdInit // read ID and set baud rate // write ref/osc reg and enable // resets device and sets baud RabbitCore RCM4000...
  • Page 55 unsigned int anaInDriver(unsigned int cmd, unsigned int len); Reads the voltage of an analog input channel by serial-clocking an 8-bit command to the A/D converter by its Direct Mode method. This function assumes that Mode1 (most significant byte first) and the A/D converter oscillator have been enabled.
  • Page 56 RETURN VALUE A value corresponding to the voltage on the analog input channel: 0–2047 for 11-bit conversions (bit 12 for sign) -1 overflow or out of range -2 conversion incomplete, busy bit timeout SEE ALSO anaInConfig, anaIn, brdInit RabbitCore RCM4000...
  • Page 57 unsigned int anaIn(unsigned int channel, int opmode, int gaincode); Reads the value of an analog input channel using the Direct Mode method of addressing the A/D converter. Note that it takes about 1 second to ensure an internal capacitor on the A/D converter is charged when the function is called the first time.
  • Page 58 +AIN4 -AIN5 +AIN5 +AIN5 -AIN4* +AIN6 +AIN6 -AIN7* +AIN7 +AIN7 -AIN6* Voltage Range Multiplier ×1 0–22.5 ×2 0–11.25 ×4 0–5.6 ×5 0–4.5 ×8 0–2.8 ×10 0–2.25 ×16 0–1.41 ×20 0–1.126 mAMP +AIN0 +AIN1* +AIN2* +AIN3 +AIN4 +AIN5 +AIN6 +AIN7* RabbitCore RCM4000...
  • Page 59 value1 is the first A/D converter channel raw count value volts1 is the voltage or current corresponding to the first A/D converter channel value (0 to +20 V or 4 to 20 mA) value2 is the second A/D converter channel raw count value volts2 is the voltage or current corresponding to the first A/D converter channel value (0 to +20 V or 4 to 20 mA) RETURN VALUE...
  • Page 60 Input Lines +AIN0 0–22.5 +AIN1 0–22.5 +AIN2 0–22.5 +AIN3 0–22.5 +AIN4 0–22.5 +AIN5 0–22.5 +AIN6 0–22.5 ‡ +AIN7 0–2 Voltage Range Multiplier ×1 0–22.5 ×2 0–11.25 ×4 0–5.6 ×5 0–4.5 ×8 0–2.8 ×10 0–2.25 ×16 0–1.41 ×20 0–1.126 † RabbitCore RCM4000...
  • Page 61 float anaInDiff(unsigned int channel, unsigned int gaincode); Reads the state of differential analog input channels and uses the previously set calibration constants to convert it to volts. PARAMETERS channel is the analog input channel number (0 to 7) corresponding to LN0_IN to LN7_IN channel * Accessible on Prototyping Board.
  • Page 62 ADTIMEOUT (defined macro = -4095) if conversion is incomplete or busy-bit timeout. SEE ALSO anaInCalib, anaIn, anaInVolts 4–20 mA Channel Code Input Lines +AIN0 +AIN1 +AIN2 † +AIN3 +AIN4* +AIN5* +AIN6* +AIN7 * Negative input is ground. † Applies to Prototyping Board. RabbitCore RCM4000...
  • Page 63 root int anaInEERd(unsigned int channel, unsigned int opmode, unsigned int gaincode); Reads the calibration constants, gain, and offset for an input based on their designated position in the flash memory, and places them into global tables _adcCalibS, _adcCalibD, and _adcCalibM for analog inputs.
  • Page 64 0 to 7. The gaincode parameter is ignored when channel is ALLCHAN. RETURN VALUE 0 if successful. -1 if address is invalid or out of range. SEE ALSO anaInEEWr, anaInCalib Voltage Range Gain Code 0–22.5 0–11.25 0–5.6 0–4.5 0–2.8 0–2.25 0–1.41 0–1.126 * Applies to Prototyping Board. RabbitCore RCM4000...
  • Page 65 int anaInEEWr(unsigned int channel, int opmode unsigned int gaincode); Writes the calibration constants, gain, and offset for an input based from global tables _adcCalibS, _adcCalibD, and _adcCalibM to designated positions in the flash memory. Depending on the flash size, the following macros can be used to identify the starting address for these locations. ADC_CALIB_ADDRS, address start of single-ended analog input channels ADC_CALIB_ADDRD, address start of differential analog input channels ADC_CALIB_ADDRM, address start of milliamp analog input channels...
  • Page 66 0 to 7. The gaincode parameter is ignored when channel is ALLCHAN. RETURN VALUE 0 if successful -1 if address is invalid or out of range. SEE ALSO anaInEEWr, anaInCalib Voltage Range Gain Code 0–22.5 0–11.25 0–5.6 0–4.5 0–2.8 0–2.25 0–1.41 0–1.126 * Applies to Prototyping Board. RabbitCore RCM4000...
  • Page 67: Upgrading Dynamic C

    5.3 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/ • www.rabbitsemiconductor.com/support/ for the latest patches, workarounds, and bug fixes. 5.3.1 Add-On Modules Dynamic C installations are designed for use with the board they are included with, and are included at no charge as part of our low-cost kits.
  • Page 68 RabbitCore RCM4000...
  • Page 69: Chapter 6. Using The Tcp/Ip Features

    6. U 6.1 TCP/IP Connections Programming and development can be done with the RCM4000 without connecting the Ethernet port to a network. However, if you will be running the sample programs that use the Ethernet capability or will be doing Ethernet-enabled development, you should connect the RCM4000 module’s Ethernet port at this time.
  • Page 70 LAN or WAN. The PC running Dynamic C does not need to be the PC with the Ethernet card. 3. Apply Power Plug in the AC adapter. The RCM4000 module and Prototyping Board are now ready to be used. RabbitCore RCM4000...
  • Page 71: Tcp/Ip Primer On Ip Addresses

    The hub relays packets received on any port to all of the ports on the hub. Hubs are low in cost and are readily available. The RCM4000 uses 10 Mbps Ethernet, so the hub or Ethernet adapter can be a 10 Mbps unit or a 10/100 Mbps unit.
  • Page 72 RCM4000. You will also need the IP address of the nameserver, the name or IP address of your mail server, and your domain name for some of the sample programs.
  • Page 73: Ip Addresses Explained

    6.2.1 IP Addresses Explained IP (Internet Protocol) addresses are expressed as 4 decimal numbers separated by periods, for example: 216.103.126.155 10.1.1.6 Each decimal number must be between 0 and 255. The total IP address is a 32-bit number consisting of the 4 bytes expressed as shown above. A local network uses a group of adja- cent IP addresses.
  • Page 74: How Ip Addresses Are Used

    Each RCM4000 RabbitCore module has its own unique MAC address, which consists of the prefix 0090C2 followed by a code that is unique to each RCM4000 module. For exam- ple, a MAC address might be 0090C2C002C0.
  • Page 75: Dynamically Assigned Internet Addresses

    The DHCP server may try to give you the same address each time, but a fixed IP address is usually not guaranteed. If you are not concerned about accessing the RCM4000 from the Internet, you can place the RCM4000 on the internal network using an IP address assigned either statically or through DHCP.
  • Page 76: Placing Your Device On The Network

    You can either place the RCM4000 directly on the Internet with a real Internet address or place it behind the firewall. If you place the RCM4000 behind the fire- wall, you need to configure the firewall to translate and forward packets from the Internet to the RCM4000.
  • Page 77: Running Tcp/Ip Sample Programs

    These programs require you to connect your PC and the RCM4000 module together on the same network. This network can be a local private net- work (preferred for initial experimentation and debugging), or a connection via the Internet.
  • Page 78: How To Set Ip Addresses In The Sample Programs

    . If you would like to change the default values, for example, to use an IP 10.10.6.1 address of for the RCM4000 module, and 10.1.1.2 edit the values in the section that directly follows the “General Configuration” com- ment in the TCP_CONFIG.LIB...
  • Page 79: How To Set Up Your Computer For Direct Connect

    4. Click to exit the various dialog boxes. <OK> <Close> IP 10.10.6.101 Netmask 255.255.255.0 Direct Connection PC to RCM4000 Module User’s Manual ) and click on the “Properties” button. tab, and check Specify an IP Address RCM4000 System User’s PC...
  • Page 80: Run The Pingme.c Sample Program

    45 Ethernet connector. When the program starts running, the green RCM4000 module should be on to indicate an Ethernet connection is made. (Note: If the light does not light, you may not be using a crossover cable, or if you are using a hub with straight-through cables perhaps the power is off on the hub.)
  • Page 81: Where Do I Go From Here

    6.7 Where Do I Go From Here? NOTE: If you purchased your RCM4000 through a distributor or through a Rabbit Semi- conductor or Z-World partner, contact the distributor or partner first for technical support. If there are any problems at this point: •...
  • Page 82 RabbitCore RCM4000...
  • Page 83: Appendix A. Rcm4000 Specifications

    A. RCM4000 S PPENDIX PECIFICATIONS Appendix A provides the specifications for the RCM4000, and describes the conformal coating. User’s Manual...
  • Page 84: Electrical And Mechanical Characteristics

    A.1 Electrical and Mechanical Characteristics Figure A-1 shows the mechanical dimensions for the RCM4000. Figure A-1. RCM4000 Dimensions NOTE: All measurements are in inches followed by millimeters enclosed in parentheses. All dimensions have a manufacturing tolerance of ±0.01" (0.25 mm).
  • Page 85 It is recommended that you allow for an “exclusion zone” of 0.04" (1 mm) around the RCM4000 in all directions when the RCM4000 is incorporated into an assembly that includes other printed circuit boards. An “exclusion zone” of 0.08" (2 mm) is recom- mended below the RCM4000 when the RCM4000 is plugged into another assembly.
  • Page 86 1 asynchronous clocked serial port dedicated for programming • 1 clocked serial port dedicated for A/D converter (RCM4000) Serial Rate Slave port allows the RCM4000 to be used as an intelligent peripheral device Slave Interface slaved to a master processor Real Time Clock RCM4000 ®...
  • Page 87 Table A-1. RCM4000 Specifications (continued) Parameter Timers Watchdog/Supervisor Pulse-Width Modulators Input Capture Quadrature Decoder Power Operating Temperature Humidity Connectors Board Size User’s Manual RCM4000 Ten 8-bit timers (6 cascadable from the first), one 10-bit timer with 2 match registers, and...
  • Page 88: A/D Converter

    Short-Circuit Current Test Conditions 4 – 9.7 pF 6 MΩ 7 MΩ 11 bits 12 bits ±1 LSB ±0.5 LSB 52 ksamples/s = 2.048 V and 2.5 V ±0.05% 20 µA 20 mA 20 mA ±2.5 LSB ±0.25% RabbitCore RCM4000...
  • Page 89: Headers

    A.1.2 Headers The RCM4000 uses a header at J3 for physical connection to other boards. J3 is a 2 × 25 SMT header with a 1.27 mm pin spacing. J1, the programming port, is a 2 × 5 header with a 1.27 mm pin spacing.
  • Page 90: Rabbit 4000 Dc Characteristics

    0.7 × VDD -0.3 V + 0.3 V = 3.0 V to 3.6 V. 3.3 V 3.6 V 1.8 V 1.90 V + 0.3 V 0.3 × VDD + 0.3 V 0.3 × VDD 12.2 mA 8 mA RabbitCore RCM4000...
  • Page 91: I/O Buffer Sourcing And Sinking Limit

    I/O Ports Parallel Ports A to E Table A-6 lists the external capacitive bus loading for the various RCM4000 output ports. Be sure to add the loads for the devices you are using in your custom system and verify that they do not exceed the values in Table A-6.
  • Page 92 Figure A-4 shows a typical timing diagram for the Rabbit 4000 microprocessor external I/O read and write cycles. Figure A-4. External I/O Read and Write Cycles—No Extra Wait States NOTE: /IOCSx can be programmed to be active low (default) or active high. RabbitCore RCM4000...
  • Page 93 Table A-8 lists the delays in gross memory access time for several values of VDD Table A-8. Preliminary Data and Clock Delays Clock to Address Output Delay (ns) 30 pF 60 pF 90 pF The measurements are taken at the 50% points under the following conditions. •...
  • Page 94: Conformal Coating

    Figure A-5. The conformal coating protects these high-impedance circuits from the effects of moisture and contaminants over time. Figure A-5. RCM4000 Areas Receiving Conformal Coating Any components in the conformally coated area may be replaced using standard soldering procedures for surface-mounted components. A new conformal coating should then be applied to offer continuing protection against the effects of moisture and contaminants.
  • Page 95: Jumper Configurations

    A.6 Jumper Configurations Figure A-6 shows the header locations used to configure the various RCM4000 options via jumpers. Figure A-6. Location of RCM4000 Configurable Positions Table A-9 lists the configuration options. Table A-9. RCM4000 Jumper Configurations Header Description PE6 or SMODE1 Output on J3...
  • Page 96 RabbitCore RCM4000...
  • Page 97: Appendix B. Prototyping Board

    Appendix B describes the features and accessories of the Proto- typing Board, and explains the use of the Prototyping Board to demonstrate the RCM4000 and to build prototypes of your own circuits. The Prototyping Board has power-supply connections and also provides some basic I/O peripherals (RS-232, LEDs, and switches), as well as a prototyping area for more advanced hardware development.
  • Page 98: Introduction

    The Prototyping Board included in the Development Kit makes it easy to connect an RCM4000 module to a power supply and a PC workstation for development. It also pro- vides some basic I/O peripherals (RS-232, LEDs, and switches), as well as a prototyping area for more advanced hardware development.
  • Page 99: Prototyping Board Features

    • I/O Switches and LEDs nected to the PB4 and PB5 pins of the RCM4000 module and may be read as inputs by sample applications. Two LEDs are connected to the PB2 and PB3 pins of the RCM4000 module, and may be driven as output indicators by sample applications.
  • Page 100 +3.3 V supply. —A 2032 lithium-ion battery rated at 3.0 V, 220 mA·h, provides • Backup Battery battery backup for the RCM4000 SRAM and real-time clock. —You may cut the trace below header JP1 on the RabbitCore RCM4000...
  • Page 101: Mechanical Dimensions And Layout

    B.2 Mechanical Dimensions and Layout Figure B-2 shows the mechanical dimensions and layout for the Prototyping Board. Figure B-2. Prototyping Board Dimensions User’s Manual...
  • Page 102: Power Supply

    Prototyping Area Connectors B.3 Power Supply The RCM4000 requires a regulated 3.0 V – 3.6 V DC power source to operate. Depending on the amount of current required by the application, different regulators can be used to supply this voltage.
  • Page 103: Using The Prototyping Board

    The Prototyping Board comes with the basic components necessary to demonstrate the operation of the RCM4000. Two LEDs (DS2 and DS3) are connected to PB2 and PB3, and two switches (S2 and S3) are connected to PB4 and PB5 to demonstrate the interface to the Rabbit 4000 microprocessor.
  • Page 104 Output, pulled high Serial Port D (RS-232, header J4) (high) Serial Port C (RS-232, header J4) (high) Serial Port B (used by A/D converter RCM4000 only) Serial Port A (programming port) (high) Parallel I/O, Output, I0–I7 A/D converter inputs (RCM4000 only)
  • Page 105: Adding Other Components

    B.4.1 Adding Other Components There are pads for 28-pin TSSOP devices, 16-pin SOIC devices, and 6-pin SOT devices that can be used for surface-mount prototyping with these devices. There are also pads that can be used for SMT resistors and capacitors in an 0805 SMT package. Each component has every one of its pin pads connected to a hole in which a 30 AWG wire can be soldered (standard wire wrap wire can be soldered in for point-to-point wiring on the Prototyping Board).
  • Page 106: Analog Features (Rcm4000 Only)

    B.4.3 Analog Features (RCM4000 only) The Prototyping Board has typical support circuitry installed to complement the ADS7870 A/D converter on the RCM4000 module (the A/D converter is not available on the RCM4010 module). B.4.3.1 A/D Converter Inputs Figure B-6 shows a pair of A/D converter input circuits. The resistors form an approx. 9:1 attenuator, and the capacitor filters noise pulses from the A/D converter input.
  • Page 107 Many other possible ranges are possible by physically changing the resistor values that make up the attenuator circuit. NOTE: Analog input LN7_IN does not have the 10 kΩ resistor installed, and so no resistor attenuator is available, limiting its maximum input voltage to 2 V. This input is intended to be used for a thermistor that you may install at header location JP25.
  • Page 108: Thermistor Input

    A/D inputs for the three operating modes. Mode Single-Ended, one channel Single-Ended, all channels Differential, analog ground sample program, which demon- THERMISTOR.C @ 25°C = 3 kΩ and β 25/85 = 3965. Be sure Read — AD_CAL_CHAN.C AD_RDVOLT_ALL.C AD_CAL_ALL.C AD_RDDIFF_CH.C AD_CALDIFF_CH.C Calibrate RabbitCore RCM4000...
  • Page 109: Serial Communication

    B.4.4 Serial Communication The Prototyping Board allows you to access five of the serial ports from the RCM4000 module. Table B-5 summarizes the configuration options. Note that Serial Ports E and F can be used only with the RCM3400 Prototyping Board.
  • Page 110: B.4.4.1 Rs-232

    -10 V and 0 V is output as +10 V. The RS-232 transceiver also provides the proper line loading for reliable communication. RS-232 can be used effectively at the RCM4000 module’s maximum baud rate for distances of up to 15 m.
  • Page 111: Prototyping Board Jumper Configurations

    B.5 Prototyping Board Jumper Configurations Figure B-8 shows the header locations used to configure the various Prototyping Board options via jumpers. Figure B-8. Location of Configurable Jumpers on Prototyping Board Table B-6 lists the configuration options using either jumpers or 0 Ω surface-mount resistors. Table B-6.
  • Page 112 Table B-6. RCM3400 Prototyping Board Jumper Configurations (continued) Header Description PC1/RxD/Switch S2 PC2/TxC/LED DS3 PC3/RxC/Switch S3 JP10 JP11 LN0 buffer/filter to RCM4000 JP12 PB2/LED DS2 JP13 LN1 buffer/filter to RCM4000 JP14 PB3/LED DS3 JP15 LN2 buffer/filter to RCM4000 JP16 PB4/Switch S2...
  • Page 113 Table B-6. RCM3400 Prototyping Board Jumper Configurations (continued) Header Description JP23 LN4_IN–LN6_IN JP24 LN0_IN–LN3_IN JP25 Thermistor Location NOTE: Jumper connections JP3–JP10, JP12, JP14, JP16, JP18, JP23, and JP24 are made using 0 Ω surface-mounted resistors. Jumper connections JP11, JP13, JP15, JP17, and JP19–JP22 are made using 10 kΩ...
  • Page 114 RabbitCore RCM4000...
  • Page 115: Appendix C. Power Supply

    C.1 Power Supplies The RCM4000 requires a regulated 3.0 V – 3.6 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 RCM4000 board through header J2.
  • Page 116: Reset Generator

    The RCM4000 uses a reset generator to reset the Rabbit 3000 microprocessor when the volt- age drops below the voltage necessary for reliable operation. The reset occurs between 2.85 V and 3.00 V, typically 2.93 V. The RCM4000 has a reset output, pin 3 on header J2. RabbitCore RCM4000...
  • Page 117: Notice To Users

    RABBIT AND Z-WORLD PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPO- NENTS IN LIFE-SUPPORT DEVICES OR SYSTEMS UNLESS A SPECIFIC WRITTEN AGREEMENT SIGNED BY A CORPORATE OFFICER OF DIGI INTERNATIONAL IS ENTERED INTO BETWEEN THE CUSTOMER AND DIGI INTERNATIONAL.
  • Page 118 RabbitCore RCM4000...
  • Page 119: Index

    ... 85 User’s Manual clock doubler ... 38 conformal coating ... 88 Development Kits ... 4 RCM4000 Development Kit 4 AC adapter ... 4 DC power supply ... 4 Getting Started instruc- tions ... 4 programming cable ... 4 digital I/O ...
  • Page 120 A/D converter inputs AD_CAL_ALL.C ...102 AD_CAL_CHAN.C 22, 102 AD_CALDIFF_CH.C .102 AD_RDDIFF_CH.C ...102 AD_RDVOLT_ALL.C ...22, 102 AD_SAMPLE.C ...22 THERMISTOR.C ..22, 102 getting to know the RCM4000 CONTROLLED.C ...16 FLASHLED1.C ...16 FLASHLED2.C ...16 LOW_POWER.C ...17 TAMPERDETECTION.C ...17 TOGGLESWITCH.C ...17 how to run TCP/IP sample programs ...71, 72...
  • Page 121 specifications ... 77 A/D converter chip ... 82 bus loading ... 85 digital I/O buffer sourcing and sinking limits ... 85 dimensions ... 78 electrical, mechanical, and environmental ... 80 exclusion zone ... 79 header footprint ... 83 Prototyping Board ... 96 Rabbit 4000 DC characteris- tics ...
  • Page 122 RabbitCore RCM4000...
  • Page 123: Schematics

    090-0227 RCM4000 Schematic www.rabbit.com/documentation/schemat/090-0227.pdf 090-0230 Prototyping Board Schematic www.rabbit.com/documentation/schemat/090-0230.pdf 090-0128 Programming Cable Schematic www.rabbit.com/documentation/schemat/090-0128.pdf The schematics included with the printed manual were the latest revisions available at the time the manual was last revised. The online versions of the manual contain links to the latest revised schematic on the Web site.

Table of Contents

Save PDF