manualshive.com logo in svg
background image

RabbitCore RCM2200

C-Programmable Module with Ethernet

User’s Manual

019–0097

090417–G

Содержание RabbitCore RCM2200

Страница 1: ...RabbitCore RCM2200 C Programmable Module with Ethernet User s Manual 019 0097 090417 G...

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

Страница 3: ...g 9 2 3 Where Do I Go From Here 10 2 3 1 Technical Support 10 Chapter 3 Running Sample Programs 11 3 1 Sample Programs 11 3 1 1 Getting to Know the RCM2200 12 3 1 2 Serial Communication 14 3 1 3 Other...

Страница 4: ...Sample Programs 45 6 8 How to Set Up Your Computer for Direct Connect 46 6 9 Run the PINGME C Sample Programs 47 6 10 Running More Sample Programs With Direct Connect 47 6 11 Where Do I Go From Here 4...

Страница 5: ...User s Manual Appendix D Sample Circuits 75 D 1 RS 232 RS 485 Serial Communication 76 D 2 Keypad and LCD Connections 77 D 3 External Memory 78 D 4 D A Converter 79 Index 81 Schematics 83...

Страница 6: ...RabbitCore RCM2200...

Страница 7: ...ement of battery backup of the Rabbit 2000 s internal real time clock and the static RAM Two 26 pin headers bring out the Rabbit 2000 I O bus lines address lines data lines parallel ports and serial p...

Страница 8: ...inputs and one general CMOS output and there are two additional inputs and one additional output Appendix A RabbitCore RCM2200 Specifications provides detailed specifications for the RCM2200 In additi...

Страница 9: ...the need for complex and unreliable in circuit emulators NOTE The RCM2200 module requires Dynamic C v7 04 or later for development A compatible version is included on the Development Kit CD ROM 1 4 D...

Страница 10: ...higher level reference manuals are provided in HTML and PDF form on the accompanying CD ROM Advanced users will find these references valuable in developing systems based on the RCM2200 modules Dynami...

Страница 11: ...xplains how to set up and use the accompanying Prototyping Board NOTE This chapter and this manual assume that you have the RCM2200 Development Kit If you purchased an RCM2200 module by itself you wil...

Страница 12: ...e Ethernet connector end of the module extends off the Prototyping Board as shown in Figure 1 below Align the pins from headers J4 and J5 on the bottom side of the RCM2200 with header sockets J1 and J...

Страница 13: ...programming cable connects the RCM2200 module to the PC running Dynamic C to download programs and to monitor the RCM2200 for debugging NOTE COM 1 is the default port used by Dynamic C NOTE Some PCs n...

Страница 14: ...Prototyping Board as shown in Figure 3 below The connector may be attached either way as long as it is not offset to one side Figure 3 Power Supply Connections Plug in the AC adapter The power LED on...

Страница 15: ...he program open it with the File menu if it is not still open then compile and run it by pressing F9 or by selecting Run in the Run menu The STDIO window will open and will display a small square boun...

Страница 16: ...1 Run all of the sample programs described in Chapter 3 to get a basic familiarity with Dynamic C and the RCM2200 module s capabilities 2 For further development refer to the RabbitCore RCM2200 User...

Страница 17: ...elementary grasp of ANSI C If you do not see the introductory pages of the Dynamic C User s Manual for a sug gested reading list Each sample program has comments that describe the purpose and function...

Страница 18: ...D DS2 will remain on continuously FLASHLEDS C demonstrates the use of coding with assembly instructions cofunc tions and costatements to flash LEDs DS2 and DS3 on the Prototyping Board on and off LEDs...

Страница 19: ...3 PA6 LCD D6 LCD Contrast 4 PA7 LCD D7 LCD Contrast 5 Once the connections have been made and the sample program is running the LCD will display two rows of 6 dots each dot representing the correspond...

Страница 20: ...Use a serial utility such as HyperTerminal or Tera Term to view the string Use the following configuration for your serial utility Bits per second 19200 Data bits 8 Parity None Stop bits 1 Flow contro...

Страница 21: ...e SLAVE C to pro gram the slave RCM2200 reset the slave before you run MASTER C on the master SLAVE C This program demonstrates a simple RS 485 transmission of lower case letters to a master RCM2200 T...

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

Страница 23: ...be flashed the on time in millisec onds and the off time in milliseconds are passed as arguments This function uses an end less for loop to call the ledon and ledoff functions separated by calls to th...

Страница 24: ...erent flash timing It also uses the library function DelayMs to deliver more accurate timing than the simple delay loops of the previous program The second costatement does more than check the status...

Страница 25: ...igned into the RCM2200 Figure 4 Rabbit Subsystems RABBIT 2000 Port A Port B synch Serial Port B Port D Serial Port B Port E PA0 PA7 PB0 PB2 PB5 PB7 PE0 PE1 PE4 PE5 PE7 PD3 PD5 A0 A3 IORD IOWR D0 D7 RE...

Страница 26: ...Ports D and C 4 1 2 Dedicated Outputs One of the general CMOS output only pins is located on PB7 PB7 can also be used with the slave port as the SLAVEATTN output This configuration signifies that the...

Страница 27: ...O 11 PD4 ATXB output 12 PD5 ARXB input 13 IORD Input I O read strobe 14 IOWR Output I O write strobe 15 PE0 Bitwise or parallel programmable I O I0 control or INT0A input 16 PE1 I1 control or INT1A in...

Страница 28: ...C5 PD0 PD1 PE2 PE3 and PE6 are used for internal communication with the RealTek Ethernet interface chip Header J5 1 8 PA 0 7 Bytewide programmable parallel I O Slave port data bus SD0 SD7 9 RESET Rese...

Страница 29: ...the clock When the Rabbit 2000 provides the clock the baud rate can be up to 80 of the system clock frequency divided by 128 or 138 240 bps for a 22 1 MHz clock speed Serial Port A is available only o...

Страница 30: ...ynchronous serial port an asynchronous serial port with the clock line usable as a general CMOS input The serial programming port may also be used as a serial port via the DIAG connector on the serial...

Страница 31: ...the programming cable is attached to the RCM2200 and is automatically in Run Mode when no programming cable is attached When the Rabbit 2000 is reset the operating mode is determined by the status of...

Страница 32: ...CM2200 may be reset by cycling the power off on or by pressing the RESET button on the Prototyping Board The RCM2200 module may now be removed from the Prototyping Board for end use installation CAUTI...

Страница 33: ...ed on 0 surface mounted resistors exists at JP2 JP3 and JP5 corresponding to the flash memory chips at U8 second flash on RCM2250 U3 RCM2200 and U7 no flash installed on existing RCM2200 versions This...

Страница 34: ...l clock doubler will reduce power consumption and further reduce radiated emissions The clock doubler is disabled with a simple config uration macro as shown below 1 Select the Defines tab from the Dy...

Страница 35: ...ow There is no spectrum spreader functionality for RCM2200 RabbitCore modules that have a Rabbit 2000 microprocessor labeled IQ1T IQ2T or IQ3T or when using any RCM2200 with a version of Dynamic C pri...

Страница 36: ...30 RabbitCore RCM2200...

Страница 37: ...ected with the Options Project Options Compiler menu The advantage of working in RAM is to save wear on the flash memory which is limited to about 100 000 write cycles The disadvantage is that the cod...

Страница 38: ...absence of Dynamic C Provision for customers to create their own source code libraries and augment on line help by creating function description block comments using a special format for library func...

Страница 39: ...CLK output as needed PCLK output driven with peripheral clock WrPortI GOCR GOCRShadow GOCRShadow 0xc0 PCLK output driven with peripheral clock 2 WrPortI GOCR GOCRShadow GOCRShadow 0xc0 0x40 PCLK outpu...

Страница 40: ...mission gaps or with user defined special characters Both libraries provide blocking functions which do not return until they are finished transmit ting or receiving and nonblocking functions which mu...

Страница 41: ...ug 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 h...

Страница 42: ...36 RabbitCore RCM2200...

Страница 43: ...bit com 1 Connect the AC adapter and the programming cable as shown in Chapter 2 Getting Started 2 Ethernet Connections There are four options for connecting the RCM2200 module to a network for develo...

Страница 44: ...t connection to the Internet and other Wide Area Networks but exceptional care should be used with IP address settings and all network related programming and development We recommend that development...

Страница 45: ...etwork or install a second Ethernet adapter and set up a separate private network attached to the second Ethernet adapter Disconnecting your PC from the corporate network may be easy or nearly impossi...

Страница 46: ...t and the internal network These machines include a combination of proxy servers and firewalls that filter and multiplex Internet traf fic In the configuration below the RCM2200 board could be given a...

Страница 47: ...e same form as the IP address An example netmask is 255 255 255 0 This netmask has 8 zero bits in the least significant portion and this means that 28 addresses are a part of the local network Applied...

Страница 48: ...o allow the protocol driver to determine the MAC address corresponding to a particular IP address If the table is empty the MAC address is determined by sending an Ethernet broadcast packet to all dev...

Страница 49: ...can be used to perform some Internet tasks such as sending e mail or browsing the Web but usually cannot be used to participate in conversations that originate elsewhere on the Internet If you want to...

Страница 50: ...usually work by disallowing traffic that did not originate from inside the net work If you want users on the Internet to communicate with your RCM2200 you have several options You can either place th...

Страница 51: ...in the section that directly follows the General Configuration comment in the TCP_CONFIG LIB library You will find this library in the LIB TCPIP directory 3 You can create a CUSTOM_CONFIG LIB library...

Страница 52: ...rk interface card used for the Ethernet interface you intend to use e g TCP IP Xircom Credit Card Network Adapter and click on the Properties button Depending on which version of Windows your PC is ru...

Страница 53: ...the Dynamic C SAMPLES RCM2200 folder CONSOLE C Demonstrates the features of ZCONSOLE LIB command oriented con sole library This program is also run in conjunction with SERDCLIENT C or SPCLI ENT C ETHC...

Страница 54: ...eck the Rabbit Technical Bulletin Board and forums at www rabbit com support bb and at www rabbit com forums Use the Technical Support e mail form at www rabbit com support If the sample programs ran...

Страница 55: ...User s Manual 49 APPENDIX A RABBITCORE RCM2200 SPECIFICATIONS Appendix A provides the specifications for the RCM2200 and describes the conformal coating...

Страница 56: ...2200 footprint diagram later in this appendix for precise header locations J1 R2 C3 D2 R7 C27 R8 R36 RT1 R41 R37 R38 D1 R39 Y2 C2 C1 U8 U7 U3 U6 C7 GND GND EGND DS2 LNK ACT DS1 R19 Q3 Q4 Q5 Q2 R1 Y1 C...

Страница 57: ...hat includes other printed circuit boards An exclusion zone of 0 16 4 mm is recom mended below the RCM2200 when the RCM2200 is plugged into another assembly using the shortest connectors for headers J...

Страница 58: ...ts 2 startup mode reset Additional Outputs Status reset Memory I O Interface 4 address lines 8 data lines I O read write Serial Ports Four 5 V CMOS compatible ports Two ports are configurable as clock...

Страница 59: ...These values are relative to the header connectors A 1 2 Physical Mounting A 9 32 7 mm standoff with a 4 40 screw is recommended to attach the RCM2200 to a user board at the hole position shown in Fi...

Страница 60: ...CM2200 This section provides bus loading information for external devices Table A 2 lists the capacitance for the various RCM2200 I O ports Table A 2 Capacitance of Rabbit 2000 I O Ports I O Ports Inp...

Страница 61: ...e depends on the bus loading Tsetup is the data setup time relative to the clock Tsetup is specified from 30 70 of the VDD voltage level Tadr Tadr External I O Read no extra wait states CLK A 15 0 Ext...

Страница 62: ...Thold Data read hold time Min 0 ns Write Parameters Tadr Time from CPU clock rising edge to address valid Max 7 ns 20 pF 5 V 14 ns 70 pF 5 V Thold Data write hold time from WEx or IOWR Min CPU clock c...

Страница 63: ...Capability Pin Name Output Drive Sourcing Sinking Limits mA The maximum DC sourcing current for I O buffers between VDD pins is 112 mA The maximum DC sinking current for I O buffers between VSS pins i...

Страница 64: ...ader Description Pins Connected Factory Default JP1 Flash Memory Size U8 RCM2250 only 1 2 128K 256K 2 3 512K JP2 Flash Memory Bank Select U8 RCM2250 only 1 2 Normal Mode 2 3 Bank Mode JP3 Flash Memory...

Страница 65: ...s 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 agains...

Страница 66: ...60 RabbitCore RCM2200...

Страница 67: ...ENDIX 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 RCM2200 and to build prototypes o...

Страница 68: ...rogress to more sophisticated experimentation and hardware development modi fications and additions can be made to the board without modifying or damaging the RCM2200 module itself The Prototyping Boa...

Страница 69: ...y open switches are con nected to the PB2 and PB3 pins of the master RCM2200 module and may be read as inputs by sample applications Two LEDs are connected to the PE1 and PE7 pins of the master module...

Страница 70: ...ble development 26 pin header strips can be soldered into place See Figure B 5 for the header pinouts RS 232 Two 2 wire or one 4 wire RS 232 serial port can be added to the Prototyping Board by instal...

Страница 71: ...d Table B 1 RCM2200 Prototyping Board Specifications Parameter Specification Board Size 4 25 5 25 1 00 108 mm 133 mm 25 mm Operating Temperature 40 C to 70 C Humidity 5 to 95 noncondensing Input Volta...

Страница 72: ...s protected against reverse polarity by a Shottky diode at D2 as shown in Figure B 3 Figure B 3 Prototyping Board Power Supply B 4 Using the Prototyping Board The Prototyping Board is actually both a...

Страница 73: ...Hardware on Prototyping Board The power LED PWR and the RESET switch remain connected Jumpers across the appropriate pins on header JP1 can be used to reconnect specific demonstration hardware later i...

Страница 74: ...be installed to the right of the prototyping area There is a 2 4 4 through hole prototyping space available on the Prototyping Board VCC and GND traces run along the edge of the Prototyping Board for...

Страница 75: ...of pads that can be used for surface mount prototyping SOIC devices The silk screen layout separates the rows into six 16 pin devices three on each side However there are pads between the silk screen...

Страница 76: ...70 RabbitCore RCM2200...

Страница 77: ...used to connect the programming header J1 to a PC C 1 1 Battery Backup Circuits The RCM2200 does not have a battery but there is provision for a customer supplied bat tery to back up SRAM and keep th...

Страница 78: ...g the battery life It ensures that current can flow only out of the battery to prevent charging the battery A voltage VOSC is supplied to U6 which keeps the 32 768 kHz oscillator working when the volt...

Страница 79: ...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 M...

Страница 80: ...74 RabbitCore RCM2200...

Страница 81: ...5 APPENDIX D SAMPLE CIRCUITS This appendix details several basic sample circuits that can be used with the RCM2200 modules RS 232 RS 485 Serial Communication Keypad and LCD Connections External Memory...

Страница 82: ...ES RCM2200 VCC 100 nF 100 nF 1 3 4 5 100 nF 100 nF R2OUT R2IN R1OUT R1IN T2OUT T2IN T1OUT T1IN 11 12 10 9 14 7 13 8 RXC RXD TXC TXD PC1 PC2 PC3 PC0 V V 2 6 C1 C1 C2 C2 J7 6 5 4 3 RS 232 RCM2200 Protot...

Страница 83: ...AMPLES RCM2200 PB2 PB0 PB3 PB4 PB5 PC1 VCC 10 kW resistors RCM2200 Prototyping Board Keypad J8 J7 11 12 13 10 14 4 10 11 PD3 PD4 Row 0 Row 2 Row 3 Row 4 Row 5 Row 1 Col 0 Col 1 NC NC 7 8 9 10 PA2 PA1...

Страница 84: ...Larger SRAMs can be written to using this scheme by using other available Rabbit 2000 ports parallel ports A to E as address lines Figure D 4 Sample External Memory Connections Sample Program EXTSRAM...

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

Страница 86: ...80 RabbitCore RCM2200...

Страница 87: ...addresses 39 41 steps 37 38 Ethernet port 23 pinout 23 exclusion zone 51 external interrupts 33 F features 1 2 Prototyping Board 62 63 flash memory using second 256K flash memory 31 flash memory addr...

Страница 88: ...CORE1 C 47 MYECHO C 47 PINGME C 47 running TCP IP sample programs 39 SERDCLIENT C 47 SPCLIENT C 47 TCPIP 11 serial communication 23 serial ports 23 Ethernet port 23 programming port 24 software I O dr...

Страница 89: ...hemat 090 0120 pdf 090 0122 RCM2200 Prototyping Board Schematic www rabbit com documentation schemat 090 0122 pdf 090 0128 Programming Cable Schematic www rabbit com documentation schemat 090 0128 pdf...

Страница 90: ......

Страница 91: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information DIGI 20 101 0488 20 101 0494 20 101 0955 20 101 0454...

Отзывы: