Digi RabbitCore RCM4000 User Manual

Digi 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_J

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 Digi RabbitCore RCM4000

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

    ABLE OF ONTENTS Chapter 1. Introduction 1.1 RCM4000 Features ..........................2 1.2 Advantages of the RCM4000 .......................3 1.3 Development and Evaluation Tools......................4 1.3.1 RCM4010 Development Kit ......................4 1.3.2 RCM4000 Analog Development Kit ....................5 1.3.3 Software ............................5 1.3.4 Online Documentation ........................5 Chapter 2. Getting Started 2.1 Install Dynamic C ..........................7 2.2 Hardware Connections..........................8 2.2.1 Step 1 —...
  • Page 4 B.4 Using the Prototyping Board ......................103 B.4.1 Adding Other Components ...................... 105 B.4.2 Measuring Current Draw ......................105 B.4.3 Analog Features (RCM4000 only) ..................106 B.4.3.1 A/D Converter Inputs...................... 106 B.4.3.2 Thermistor Input ......................109 B.4.3.3 A/D Converter Calibration....................109 RabbitCore RCM4000...
  • Page 5 B.4.4 Serial Communication......................110 B.4.4.1 RS-232 ..........................111 B.5 Prototyping Board Jumper Configurations ..................112 Appendix C. Power Supply C.1 Power Supplies..........................115 C.1.1 Battery Backup .........................115 C.1.2 Battery-Backup Circuit......................116 C.1.3 Reset Generator ........................117 Index Schematics User’s Manual...
  • Page 6 RabbitCore RCM4000...
  • Page 7: Chapter 1. Introduction

    1. I NTRODUCTION ® The RCM4000 series of RabbitCore modules is one of the next ® generation of core modules that take advantage of new Rabbit 4000 features such as hardware DMA, clock speeds of up to 60 MHz, I/O lines shared with up to five serial ports and four levels of alternate pin functions that include variable-phase PWM, auxiliary I/O, quadrature decoder, and input capture.
  • Page 8: Rcm4000 Features

    1 asynchronous • 1 asynchronous clocked serial port clocked serial port shared with program- clocked serial port shared with program- ming port shared with program- ming port ming port • 1 clocked serial port shared with A/D con- verter RabbitCore RCM4000...
  • Page 9: Advantages Of The Rcm4000

    The RCM4000 is programmed over a standard PC USB port through a programming cable supplied with the Development Kit. NOTE: The RabbitLink cannot be used to program RabbitCore modules based on the Rabbit 4000 microprocessor. Appendix A provides detailed specifications for the RCM4000. 1.2 Advantages of the RCM4000 •...
  • Page 10: Development And Evaluation Tools

    RCM4000 RabbitCore module models. install Dynamic C . RX97 RX59 RX75 RX49 RX55 RX57 RX73 CX27 VREF AGND amic C are registered trademarks of Rabbit Semiconductor Inc. CX25 CX23 RX77 RX79 UX16 JP25 Figure 1. RCM4010 Development Kit RabbitCore RCM4000...
  • Page 11: Rcm4000 Analog Development Kit

    1.3.2 RCM4000 Analog Development Kit The RCM4000 Analog Development Kit contains the hardware essentials you will need to use the RCM4000 module. The RCM4000 Analog Development Kit contents are similar to those of the RCM4010 Development Kit, except that the RCM4000 module is included instead of the RCM4010 module.
  • Page 12 RabbitCore RCM4000...
  • Page 13: Chapter 2. Getting Started

    2. G ETTING TARTED This chapter describes the RCM4000 hardware in more detail, and explains how to set up and use the accompanying Prototyping Board. NOTE: This chapter (and this manual) assume that you have the RCM4000 Analog or the RCM4010 Development Kit. If you purchased an RCM4000 or RCM4010 module by itself, you will have to adapt the information in this chapter and elsewhere to your test and development setup.
  • Page 14: Hardware Connections

    RCM1 RX81 /IOWR /RST_IN VBAT JP16 RX83 JP12 JP14 JP18 RX11 UX30 JP10 UX10 RX67 UX12 RX43 UX14 RX97 RX59 RX75 RX49 RX55 RX57 RX73 CX27 VREF AGND CX25 CX23 RX77 RX79 UX16 JP25 Figure 2. Insert Standoffs RabbitCore RCM4000...
  • Page 15: Step 2 - Attach Module To Prototyping Board

    2.2.2 Step 2 — Attach Module to Prototyping Board Turn the RCM4000/RCM4010/RCM4050 module so that the mounting holes line up with the corresponding holes on the Prototyping Board. Insert the metal standoffs as shown in Figure 3, secure them from the bottom using the 4-40 screws and washers, then insert the module’s header J3 on the bottom side into socket RCM1 on the Prototyping Board.
  • Page 16: Step 3 - Connect Programming Cable

    Kit. If you have a serial programming cable, an RS-232/USB converter (Rabbit Part No. 20-151-0178) is available to allow you to use the serial programming cable with a USB port. Depending on the programming cable, connect the other end to a COM port or a USB port on your PC. RabbitCore RCM4000...
  • Page 17: Step 4 - Connect Power

    If you are using a USB programming cable, your PC should recognize the new USB hard- ware, and the LEDs in the shrink-wrapped area of the programming cable will flash — if you get an error message, you will have to install USB drivers. Drivers for Windows XP are available in the Dynamic C Drivers\Rabbit USB Programming Cable\ folder —...
  • Page 18: Run A Sample Program

    BIOS. If Dynamic C still reports it is unable to locate the target system, repeat the above steps for another available COM port. You should receive a Bios compiled success- fully message once this step is completed successfully. RabbitCore RCM4000...
  • Page 19: Where Do I Go From Here

    2.4 Where Do I Go From Here? If the sample program ran fine, you are now ready to go on to the sample programs in Chapter 3 and to develop your own applications. The sample programs can be easily modi- fied for your own use.
  • Page 20 RabbitCore RCM4000...
  • Page 21: Chapter 3. Running Sample Programs

    3. R UNNING AMPLE ROGRAMS To develop and debug programs for the RCM4000 (and for all other Rabbit hardware), you must install and use Dynamic C. This chapter provides a tour of its major features with respect to the RCM4000. 3.1 Introduction To help familiarize you with the RCM4000 modules, Dynamic C includes several sample programs.
  • Page 22: Sample Programs

    —demonstrates the use of cofunctions and costatements to flash LEDs • FLASHLED2.C DS2 and DS3 on the Prototyping Board at different rates. Once you have compiled and run this program, LEDs DS2 and DS3 will flash on/off at different rates. RabbitCore RCM4000...
  • Page 23 —demonstrates how to implement a function in RAM to reduce power • LOW_POWER.C consumption by the Rabbit microprocessor. There are four features that lead to the low- est possible power draw by the microprocessor. 1. Run the CPU from the 32 kHz crystal. 2.
  • 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. RabbitCore RCM4000...
  • 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

    You can observe the output in the window as you type in Tera Term, and you can also use the Dynamic C window to clear the buffer. STDIO The Tera Term serial utility can be downloaded from hp.vector.co.jp/authors/VA002416/teraterm.html. RabbitCore RCM4000...
  • Page 27 —This program demonstrates basic RS-232 serial • SIMPLE3WIRE.C communication. Lower case characters are sent by TxC, and are RxC TxC received by RxD. The characters are converted to upper case and are TxD RxD sent out by TxD, are received by RxC, and are displayed in the Dynamic C STDIO window.
  • Page 28 RxC and TxC now are actually RxF and TxF.) Once you have compiled and run this program, press and release switches S2 or S3 on the Prototyping Board. The data echoed between the serial ports will be displayed in the STDIO window. RabbitCore RCM4000...
  • Page 29: A/D Converter Inputs (Rcm4000 Only)

    3.2.3 A/D Converter Inputs (RCM4000 only) The following sample programs are found in the folder. SAMPLES\RCM4000\ADC —Demonstrates how to recalibrate all the single-ended analog input • AD_CAL_ALL.C channels with one gain using two known voltages to generate the calibration constants for each channel.
  • Page 30: Downloading And Uploading Calibration Constants

    —Demonstrates how to read the analog calibration constants from • UPLOADCALIB.C the user block using a terminal emulation utility such as Tera Term. Start Tera Term or another terminal emulation program on your PC, and configure the serial parameters as follows. RabbitCore RCM4000...
  • Page 31 • Baud rate 19,200 bps, 8 bits, no parity, 1 stop bit • Enable option Local Echo • Feed options — Receive = CR Transmit = CR + LF Follow the remaining steps carefully in Tera Term to avoid overwriting previously saved calibration data when using same the file name.
  • Page 32: Real-Time Clock

    Set the real-time clock using the SETRTCKB.C sample program from the Dynamic C SAMPLES\RTCLOCK folder, using the onscreen prompts. The RTC_TEST.C sample program in the Dynamic C SAMPLES\RTCLOCK folder provides additional examples of how to read and set the real-time clock. RabbitCore RCM4000...
  • Page 33: Chapter 4. Hardware Reference

    4. H ARDWARE EFERENCE 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. 32 kHz 29.49 MHz Ethernet Customer-specific...
  • Page 34: Rcm4000 Digital Inputs And Outputs

    = not connected Note: These pinouts are as seen on the Bottom Side of the module. Figure 6. RCM4000 Pinout standard 2 × 25 IDC header with a nominal 1.27 mm pitch. Headers J3 is a RabbitCore RCM4000...
  • Page 35 Figure 7 shows the use of the Rabbit 4000 microprocessor ports in the RCM4000 modules. PA0–PA7 PB2–PB7 *Port D is used for internal 16-bit data bus. Port A Port B Port D PC0, PC2 Port C Port E ABBIT ® (Serial Ports C &...
  • Page 36 External I/O Address IA7 /SWR Input/Output External I/O Address IA0 /SRD Input/Output External I/O Address IA1 Input/Output External I/O Address IA2 Input/Output External I/O Address IA3 /SCS Input/Output External I/O Address IA4 /SLAVATN Input/Output External I/O Address IA5 RabbitCore RCM4000...
  • Page 37 Table 2. RCM4000 Pinout Configurations (continued) Pin Name Default Use Alternate Use Notes I/O Strobe I0 Input/Output Timer C0 TCLKF Serial Port D RXD/TXD I/O Strobe I1 Input/Output Timer C1 RCLKF Input Capture TXC/TXF Input/Output I/O Strobe I2 Timer C2 RXC/TXC/RXF Serial Port C I/O Strobe I3...
  • Page 38 I/O Strobe I6 PWM2 SMODE1 is the default Input/Output PE6/SMODE1 configuration DREQ0 I/O Strobe I7 PWM3 STATUS is the default Input/Output RXA/RXE/SCLKC PE7/STATUS configuration DREQ1 Input Capture 40–47 LN[0:7] Analog Input A/D converter (RCM4000 only) CONVERT Digital Input RabbitCore RCM4000...
  • Page 39: Memory I/O Interface

    Table 2. RCM4000 Pinout Configurations (continued) Pin Name Default Use Alternate Use Notes 1.15 V/2.048 V/2.500 V Analog reference VREF on-chip ref. voltage voltage (RCM4000 only) Ground Ground * PE5, PE6, and PE7 are used for the Ethernet clock and I/O signals, which ordinarily would not be routed to a general-purpose I/O header to minimize noise.
  • Page 40: Serial Communication

    SDLC/HDLC serial port. The IrDA protocol is also supported in SDLC format by this serial port. Serial Port F must be configured before it can be used. The sample program in the Dynamic C folder IOCONFIG_SWITCHECHO.C SAMPLES\RCM4000\SERIAL shows how to configure Serial Port F. RabbitCore RCM4000...
  • Page 41: Using The Serial Ports

    Table 3 summarizes the possible parallel port pins for the serial ports and their clocks. Table 3. Rabbit 4000 Serial Port and Clock Pins PC6, PC7 PC0, PC1 Serial Port A PC7, PE7 Serial Port D PC1, PE1 SCLKA SCLKD PE0, PE3, PC3 PC4, PC5 PE2, PC2...
  • Page 42: Ethernet Port

    Two LEDs are placed next to the RJ-45 Ethernet jack, one to indicate an Ethernet link LINK ) and one to indicate Ethernet activity ( The RJ-45 connector is shielded to minimize EMI effects to/from the Ethernet signals. RabbitCore RCM4000...
  • Page 43: 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 44: Programming Cable

    JP18 RX11 UX30 JP10 UX10 RX67 TP15 UX12 RX43 UX14 C45C44 RX97 RX59 C56 C46 RX75 RX49 RX55 RX57 CX27 RX73 VREF AGND CX25 CX23 RX77 RX79 UX16 JP25 Figure 9. Switching Between Program Mode and Run Mode RabbitCore RCM4000...
  • Page 45: Standalone Operation Of The Rcm4000

    A program “runs” in either mode, but can only be downloaded and debugged when the RCM4000 is in the Program Mode. Refer to the for more information on the pro- Rabbit 4000 Microprocessor User’s Manual gramming port. 4.3.2 Standalone Operation of the RCM4000 Once the RCM4000 has been programmed successfully, remove the programming cable from the programming connector and reset the RCM4000.
  • Page 46: A/D Converter (Rcm4000 Only)

    A/D conversions. When the R1 resistors are tied to ground for differential measurements, both differential inputs must be referenced to analog ground, and both inputs must be positive with respect to analog ground. RabbitCore RCM4000...
  • Page 47 If a device such as a battery is connected across two channels for a differential measurement, AIN0 and it is not referenced to 2.2 nF analog ground, then the current Device from the device will flow 2.2 nF through both sets of attenuator –...
  • Page 48: 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. +3.3 V 100 nF 2.2 nF Figure 13. Analog Supply Circuit RabbitCore RCM4000...
  • Page 49: Other Hardware

    4.5 Other Hardware 4.5.1 Clock Doubler 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 emissions. The 58.98 MHz frequency specified for the RCM4000 is generated using a 29.49 MHz crystal.
  • Page 50: Memory

    Rabbit for the NAND flash take care of the data-integrity and reliability attributes. Sample programs in the SAMPLES\RCM4000\NANDFlash folder illustrate the use of the NAND flash. These sample programs are described in Section 3.2.1, “Use of NAND Flash (RCM4000 only).” RabbitCore RCM4000...
  • Page 51: Chapter 5. Software Reference

    5. S OFTWARE EFERENCE Dynamic C is an integrated development system for writing embedded software. It runs on an IBM-compatible PC and is designed for use with single-board computers and other devices based on the Rabbit microprocessor. Chapter 5 describes the libraries and function calls related to the RCM4000.
  • Page 52  Hex memory dump—displays the contents of memory at any address.  STDIO window— outputs to this window and keyboard input on the host PC can be printf detected for debugging purposes. output may also be sent to a serial port or file. printf RabbitCore RCM4000...
  • Page 53: 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 54 The sample code below shows how a protected variable is defined and how its value can be restored. main() { protected int state1, state2, state3; _sysIsSoftReset(); // restore any protected variables Additional information on variables is available in the Dynamic C User’s protected Manual. RabbitCore RCM4000...
  • Page 55: Prototyping Board Function Calls

    5.2.4 Prototyping Board Function Calls The functions described in this section are for use with the Prototyping Board features. The source code is in the Dynamic C library if you need LIB\RCM4xxx\RCM40xx.LIB 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.
  • Page 56: Alerts

    (e.g., PADR) dataport the input port bit (0–7) to poll portbit the value of 0 or 1 to receive value the duration of the timeout in seconds (enter 0 for no timeout) timeout RETURN VALUE None. RabbitCore RCM4000...
  • Page 57: Analog Inputs (Rcm4000 Only)

    5.2.5 Analog Inputs (RCM4000 only) The function calls used with the Prototyping Board features and the A/D converter on the RCM4000 model are in the Dynamic C library. LIB\RCM4xxx\ADC_ADS7870.LIB Dynamic C v. 10.07 or later is required to use the A/D converter function calls. anaInConfig unsigned int anaInConfig(unsigned int instructionbyte, unsigned int cmd, long brate);...
  • Page 58 Enter 0 for this parameter thereafter, for example, anaInConfig(0x00, 0x00, 9600); // resets device and sets byte rate RETURN VALUE 0 on write operations data value on read operations SEE ALSO anaInDriver, anaIn, brdInit RabbitCore RCM4000...
  • Page 59 anaInDriver int anaInDriver(unsigned int cmd); DESCRIPTION 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. See anaIn- Config() for the setup.
  • Page 60 A value corresponding to the voltage on the analog input channel: 0–2047 for 11-bit conversions -2048–2047 for 12-bit conversions ADTIMEOUT (-4095) if the conversion is incomplete or busy bit timeout ADOVERFLOW (-4096) for overflow or out of range SEE ALSO anaInConfig, anaIn, brdInit RabbitCore RCM4000...
  • Page 61 anaIn int anaIn(unsigned int channel, int opmode, int gaincode); DESCRIPTION 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 62 A value corresponding to the voltage on the analog input channel: 0–2047 for single-ended conversions -2048–2047 for differential conversions ADTIMEOUT (-4095) if the conversion is incomplete or busy bit timeout ADOVERFLOW (-4096) for overflow or out of range SEE ALSO anaIn, anaInConfig, anaInDriver RabbitCore RCM4000...
  • Page 63 anaInCalib int anaInCalib(int channel, int opmode, int gaincode, int value1, float volts1, int value2, float volts2); DESCRIPTION Calibrates the response of the desired A/D converter channel as a linear function using the two conversion points provided. Four values are calculated and placed into global tables _adcCalibS, _adcCalibD, and adcCalibM to be later stored into simulat- ed EEPROM using the function anaInEEWr().
  • Page 64 (0 to +20 V or 4 to 20 mA) RETURN VALUE 0 if successful. RETURN VALUE 0 if successful. -1 if not able to make calibration constants. SEE ALSO anaIn, anaInVolts, anaInmAmps, anaInDiff, anaInCalib, brdInit RabbitCore RCM4000...
  • Page 65 anaInVolts float anaInVolts(unsigned int channel, unsigned int gaincode); DESCRIPTION Reads the state of a single-ended analog input channel and uses the previously set calibration constants to convert it to volts. PARAMETERS the channel number (0 to 7) corresponding to LN0 to LN7. channel Single-Ended †...
  • Page 66 RETURN VALUE A voltage value corresponding to the voltage on the analog input channel. ADTIMEOUT (-4095) if the conversion is incomplete or busy bit timeout. ADOVERFLOW (-4096) for overflow or out of range. SEE ALSO anaInCalib, anaIn, anaInmAmps, brdInit RabbitCore RCM4000...
  • Page 67 anaInDiff float anaInDiff(unsigned int channel, unsigned int gaincode); DESCRIPTION Reads the state of differential analog input channels and uses the previously set calibra- tion constants to convert it to volts. PARAMETERS the channel number (0 to 7) corresponding to LN0 to LN7. channel Voltage Range channel...
  • Page 68 A voltage value corresponding to the voltage differential on the analog input channel. ADTIMEOUT (-4095) if the conversion is incomplete or busy bit timeout. ADOVERFLOW (-4096) for overflow or out of range. SEE ALSO anaInCalib, anaIn, anaInmAmps, brdInit RabbitCore RCM4000...
  • Page 69 anaInmAmps float anaInmAmps(unsigned int channel); DESCRIPTION Reads the state of an analog input channel and uses the previously set calibration con- stants to convert it to current. PARAMETERS the channel number (0 to 7) corresponding to LN0 to LN7. channel 4–20 mA Channel Code Input Lines...
  • Page 70 +AIN1* +AIN2 +AIN2 -AIN3 +AIN2* +AIN3 +AIN3 -AIN2* +AIN3 +AIN4 +AIN4 -AIN5 +AIN4 +AIN5 +AIN5 -AIN4* +AIN5 +AIN6 +AIN6 -AIN7* +AIN6 +AIN7 +AIN7 -AIN6* +AIN7* read all channels for selected opmode ALLCHAN * Not accessible on Prototyping Board. RabbitCore RCM4000...
  • Page 71 anaInEERd (continued) the gain code of 0 to 7. The gaincode parameter is ignored when gaincode channel is ALLCHAN. Gain Voltage Range Gain Code 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 * Applies to Prototyping Board.
  • Page 72 +AIN1* +AIN2 +AIN2 -AIN3 +AIN2* +AIN3 +AIN3 -AIN2* +AIN3 +AIN4 +AIN4 -AIN5 +AIN4 +AIN5 +AIN5 -AIN4* +AIN5 +AIN6 +AIN6 -AIN7* +AIN6 +AIN7 +AIN7 -AIN6* +AIN7* read all channels for selected opmode ALLCHAN * Not accessible on Prototyping Board. RabbitCore RCM4000...
  • Page 73 anaInEEWr (continued) the gain code of 0 to 7. The gaincode parameter is ignored when gaincode channel is ALLCHAN. Gain Voltage Range Gain Code 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 * Applies to Prototyping Board.
  • Page 74: Upgrading Dynamic C

    Visit our Web site at www.rabbit.com for further information and complete documentation for each module. In addition to the Web-based technical support included at no extra charge, a one-year telephone-based technical support module is also available for purchase. RabbitCore RCM4000...
  • Page 75: Chapter 6. Using The Tcp/Ip Features

    6. U TCP/IP F SING THE EATURES 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 76 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 77: Tcp/Ip Primer On Ip Addresses

    6.2 TCP/IP Primer on IP Addresses Obtaining IP addresses to interact over an existing, operating, network can involve a num- ber of complications, and must usually be done with cooperation from your ISP and/or network systems administrator. For this reason, it is suggested that the user begin instead by using a direct connection between a PC and the RCM4000 using an Ethernet crossover cable or a simple arrangement with a hub.
  • Page 78 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. RabbitCore RCM4000...
  • Page 79: 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 80: How Ip Addresses Are Used

    0090C2 followed by a code that is unique to each RCM4000 module. For exam- ple, a MAC address might be 0090C2C002C0. TIP: You can always obtain the MAC address on your module by running the sample program DISPLAY_MAC.C from the SAMPLES\TCPIP folder. RabbitCore RCM4000...
  • Page 81: Dynamically Assigned Internet Addresses

    6.2.3 Dynamically Assigned Internet Addresses In many instances, devices on a network do not have fixed IP addresses. This is the case when, for example, you are assigned an IP address dynamically by your dial-up Internet service provider (ISP) or when you have a device that provides your IP addresses using the Dynamic Host Configuration Protocol (DHCP).
  • Page 82: 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. RabbitCore RCM4000...
  • Page 83: Running Tcp/Ip Sample Programs

    6.4 Running TCP/IP Sample Programs We have provided a number of sample programs demonstrating various uses of TCP/IP for networking embedded systems. 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 84: How To Set Ip Addresses In The Sample Programs

    TCPCONFIG ent features such as DHCP. Their values are documented at the top of the TCP_CON- library in the directory. More information is available in the FIG.LIB LIB\TCPIP Dynamic C TCP/IP User’s Manual. RabbitCore RCM4000...
  • Page 85: How To Set Up Your Computer For Direct Connect

    6.4.2 How to Set Up your Computer for Direct Connect Follow these instructions to set up your PC or notebook. Check with your administrator if you are unable to change the settings as described here since you may need administrator privileges.
  • Page 86: Run The Pingme.c Sample Program

    —This program demonstrates using the SMTP library to send an e-mail when • SMTP.C the S2 and S3 switches on the Prototyping Board are pressed. LEDs DS2 and DS3 on the Prototyping Board will light up when e-mail is being sent. RabbitCore RCM4000...
  • Page 87: 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 partner, contact the distributor or partner first for technical support. If there are any problems at this point: • Use the Dynamic C Help menu to get further assistance with Dynamic C.
  • Page 88 RabbitCore RCM4000...
  • Page 89: 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 90: Electrical And Mechanical Characteristics

    0.62 0.10 0.72 0.50 (2.5) (18) (16) (13) 2.42 (61) 1.84 (47) 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). RabbitCore RCM4000...
  • Page 91 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 92 Resolution • A/D Conversion Time 180 µs (including 120 µs raw count and Dynamic C) Can be configured for 8 data lines and Auxiliary I/O Bus 6 address lines (shared with parallel I/O lines), plus I/O read/write RabbitCore RCM4000...
  • Page 93 Table A-1. RCM4000 Specifications (continued) Parameter RCM4000 RCM4010 RCM4050 4 shared high-speed, 5 shared high-speed, 4 shared high-speed, CMOS-compatible CMOS-compatible CMOS-compatible ports: ports: ports: • • • all 4 configurable as all 5 configurable as all 4 configurable as asynchronous (with asynchronous (with asynchronous (with IrDA) or as clocked...
  • Page 94: A/D Converter

    ±2.5 LSB Differential Linearity ±0.5 LSB Dynamic Characteristics Throughput Rate 52 ksamples/s Voltage Reference = 2.048 V and 2.5 V Accuracy ±0.05% ±0.25% Buffer Amp Source Current 20 mA Buffer Amp Sink Current 200 µA Short-Circuit Current 20 mA RabbitCore RCM4000...
  • Page 95: 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 96: Rabbit 4000 Dc Characteristics

    High-Level Output Voltage 2.4 V (VDD = 3.3 V) Low-Level Output Voltage 0.4 V (VDD = 3.3 V) I/O Ring Current @ 29.4912 MHz, 12.2 mA 3.3 V, 25°C All other I/O 8 mA DRIVE (except TXD+, TXDD+, TXD-, TXDD-) RabbitCore RCM4000...
  • Page 97: I/O Buffer Sourcing And Sinking Limit

    A.3 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 29.4 MHz CPU clock with the clock doubler enabled and capacitive loading on address and data lines of less than 70 pF per pin.
  • Page 98 T IOWR T IOWR /BUFEN T BUFEN T BUFEN D[7:0] valid T DHZV T DVHZ 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 99 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 Worst-Case Output Delay Spectrum Spreader Delay Data Setup (ns) (ns) Time Delay (ns) 0.5 ns setting 1 ns setting 2 ns setting 30 pF 60 pF 90 pF...
  • Page 100: Conformal Coating

    A new conformal coating should then be applied to offer continuing protection against the effects of moisture and contaminants. NOTE: For more information on conformal coatings, refer to Rabbit’s Technical Note TN303, Conformal Coatings. RabbitCore RCM4000...
  • Page 101: Jumper Configurations

    A.6 Jumper Configurations Figure A-6 shows the header locations used to configure the various RCM4000 options via jumpers. RCM4000 Top Side Top Side CURRENT PRE-2007 Figure A-6. Location of RCM4000 Configurable Positions Table A-9 lists the configuration options. Table A-9. RCM4000 Jumper Configurations Factory Header Description...
  • Page 102 RabbitCore RCM4000...
  • Page 103: Appendix B. Prototyping Board

    B. P PPENDIX ROTOTYPING OARD 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 104: Introduction

    Area Mounting RX67 UX12 RX43 UX14 RX97 RX59 RX75 RX57 RX49 RX55 RX73 CX27 SMT Prototyping VREF AGND CX25 CX23 RX77 RX79 Area UX16 JP25 Analog User LEDs RCM4000 User Module Extension Header Switches Figure B-1. Prototyping Board RabbitCore RCM4000...
  • Page 105: Prototyping Board Features

    B.1.1 Prototyping Board Features —A a 3-pin header is provided for connection to the power supply. • Power Connection Note that the 3-pin header is symmetrical, with both outer pins connected to ground and the center pin connected to the raw V+ input. The cable of the AC adapter provided with the North American version of the Development Kit is terminated with a header plug that connects to the 3-pin header in either orientation.
  • Page 106 +3.3 V supply. Backup Battery —A 2032 lithium-ion battery rated at 3.0 V, 220 mA·h, provides • battery backup for the RCM4000 SRAM and real-time clock. RabbitCore RCM4000...
  • Page 107: Mechanical Dimensions And Layout

    B.2 Mechanical Dimensions and Layout Figure B-2 shows the mechanical dimensions and layout for the Prototyping Board. 2.735 (69.5) 1.935 (49.1) RESET UX49 UX47 +5 V /RST_OUT /IORD +3.3 V RX81 RCM1 /IOWR /RST_IN VBAT RX83 JP16 JP12 JP14 UX30 JP18 RX11 JP10...
  • Page 108: Power Supply

    The Prototyping Board itself is protected against reverse polarity by a Shottky diode at D2 as shown in Figure B-3. LINEAR POWER REGULATOR +3.3 V SWITCHING POWER REGULATOR +5 V LM1117 DCIN DL4003 47 µF 330 µF 10 µF 10 µF 330 µH LM2575 B140 Figure B-3. Prototyping Board Power Supply RabbitCore RCM4000...
  • Page 109: Using The Prototyping Board

    B.4 Using the Prototyping Board The Prototyping Board is actually both a demonstration board and a prototyping board. As a demonstration board, it can be used to demonstrate the functionality of the RCM4000 right out of the box without any modifications to either board. The Prototyping Board comes with the basic components necessary to demonstrate the operation of the RCM4000.
  • Page 110 20 to 30 AWG wire between the proto- typing area, the +3.3 V, +5 V, and GND traces, and the surrounding area where surface- mount components may be installed. Small holes are provided around the surface-mounted components that may be installed around the prototyping area. RabbitCore RCM4000...
  • Page 111: 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 112: Analog Features (Rcm4000 Only)

    Table B-3. Positive A/D Converter Input Voltage Ranges Max. Voltage Min. Voltage Gain A/D Converter Resolution (with prescaler) Multiplier Actual Gain (mV) +22.528 ×1 +11.264 ×2 +5.632 ×4 2.75 +4.506 ×5 2.20 +2.816 ×8 1.375 +2.253 ×10 1.100 +1.408 ×16 14.4 0.688 +1.126 ×20 0.550 RabbitCore RCM4000...
  • Page 113 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 114: Thermistor Input

    Sample programs are available to illustrate how to read and calibrate the various A/D inputs for the single-ended operating mode. Mode Read Calibrate Single-Ended, one channel — AD_CAL_CHAN.C Single-Ended, all channels AD_RDVOLT_ALL.C AD_CAL_ALL.C RabbitCore RCM4000...
  • Page 115 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 RCM4000 Prototyping Board. Table B-5.
  • Page 116: Serial Communication

    #define MYBAUD 115200 // set baud rate #endif main(){ serCopen(_MYBAUD); // open Serial Ports C and D serDopen(_MYBAUD); serCwrFlush(); // flush their input and transmit buffers serCrdFlush(); serDwrFlush(); serDrdFlush(); serCclose(_MYBAUD); // close Serial Ports C and D serDclose(_MYBAUD); RabbitCore RCM4000...
  • Page 117 B.5 Prototyping Board Jumper Configurations Figure B-8 shows the header locations used to configure the various Prototyping Board options via jumpers. UX49 JP16 JP12 JP14 JP18 JP10 JP24 JP23 JP25 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 118: Prototyping Board Jumper Configurations

    1–2 Connected: PB5 to Switch S3 JP18 PB5/Switch S3 n.c. PB5 available on header J2 JP19 LN4 buffer/filter to RCM4000 1–2 Connected JP20 LN5 buffer/filter to RCM4000 1–2 Connected JP21 LN6 buffer/filter to RCM4000 1–2 Connected JP22 LN7 buffer/filter to RCM4000 1–2 Connected RabbitCore RCM4000...
  • Page 119 Table B-6. RCM4000 Prototyping Board Jumper Configurations (continued) Factory Header Description Pins Connected Default × 1–2 Tied to analog ground JP23 LN4_IN–LN6_IN 2–3 Tied to VREF × 1–2 Tied to analog ground JP24 LN0_IN–LN3_IN 2–3 Tied to VREF JP25 Thermistor Location 1–2 n.c.
  • Page 120 RabbitCore RCM4000...
  • Page 121: Appendix C. Power Supply

    C. P PPENDIX OWER UPPLY Appendix C provides information on the current requirements of the RCM4000, and includes some background on the chip select circuit used in power management. 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 122: Battery-Backup Circuit

    • It ensures that current can flow only out of the battery to prevent charging the battery. • A voltage, VOSC, is supplied to U8, which keeps the 32.768 kHz oscillator working when the voltage begins to drop. RabbitCore RCM4000...
  • Page 123: Reset Generator

    C.1.3 Reset Generator The RCM4000 uses a reset generator to reset the Rabbit 4000 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. Since the RCM4000 will operate at voltages as low as 3.0 V, exercise care when operating close to the 3.0 V minimum voltage (for example, keep the power supply as close as possible to the RCM4000) since your RCM4000 could reset unintentionally.
  • Page 124 RabbitCore RCM4000...
  • Page 125: Index

    NDEX conformal coating ....94 10Base-T Ethernet card ..69 additional resources ..81 A/D converter direct connection ....71 access via Prototyping Board Ethernet cables ....71 Development Kits ....4 Ethernet hub ...... 69 RCM4000 Analog Develop- function calls IP addresses ....
  • Page 126 Serial Port F configuration information .. AD_SAMPLE.C ....23 22, 34 pinout THERMISTOR.C ..24, 109 software ........5 Ethernet port ......36 A/D converter calibration auxiliary I/O bus ..33, 47 Prototyping Board ...103 DNLOADCALIB.C ..24 I/O drivers ......47 RCM4000 UPLOADCALIB.C ..24 RabbitCore RCM4000...
  • Page 127 libraries ADC_ADS7870.LIB ..51 RCM40XX.LIB .... 49 serial communication drivers specifications ......83 A/D converter chip .... 88 bus loading ......91 digital I/O buffer sourcing and sinking limits ....91 dimensions ......84 electrical, mechanical, and en- vironmental ....86 exclusion zone ....
  • Page 128 RabbitCore RCM4000...
  • Page 129: Schematics

    CHEMATICS 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 090-0252 USB Programming Cable Schematic www.rabbit.com/documentation/schemat/090-0252.pdf You may use the URL information provided above to access the latest schematics directly. User’s Manual...
  • Page 131 X-ON Electronics Largest Supplier of Electrical and Electronic Components Click to view similar products for manufacturer: Digi International Other Similar products are found below : WR31-L12A-DE1-TB XBP24-DMSIT-250 CTANK-A611 70001634 70002412 20-101-0444 JD2D3-CDS-6F 301-9004-01 20-101-0654 CPTS-4R4E-R JR4N1-CL1-6F WR21-L82B-DE1-SB WR41-U900-NE1-SW WR44-0000-FE2-SW WR44-U900-FE2-SW X4-M11-E-A...

This manual is also suitable for:

Rabbitcore rcm4010Rabbitcore rcm4050

Table of Contents