|Datasheets.org.uk - 100 Million Datasheets from 7500 Manufacturers.|
Top Searches for this datasheet
RCM2200 - RCM2200
C-Programmable Module with Ethernet
RabbitCore RCM2200 User's Manual
Part Number 019-0097 090417-G Printed U.S.A. ©2001-2009 Digi International Inc. rights reserved. part contents this manual reproduced transmitted form means without express written permission Digi International. Permission granted make more copies long copyright page contained therein included. These copies manuals sold reason without express written permission Digi International. Digi International reserves right make changes improvements products without providing notice.
Rabbit Dynamic registered trademarks Digi International Inc. Rabbit 2000 RabbitCore trademarks Digi International Inc.
latest revision this manual available Rabbit site, www.rabbit.com, free, unregistered download.
Digi International Inc.
RCM2200 Features Advantages RCM2200 Development Evaluation Tools.3 1.3.1 Development Software.3 Development Contents.3 This Manual 1.5.1 Additional Product Information 1.5.2 Online Documentation
Chapter Getting Started
Connections 2.1.1 Attach Module Prototyping Board.6 2.1.2 Connect Programming Cable 2.1.3 Connect Power 2.1.4 Alternate Power Supply Connections Sample Program 2.2.1 Troubleshooting Where From Here? 2.3.1 Technical Support
Chapter Running Sample Programs
Sample Programs 3.1.1 Getting Know RCM2200 3.1.2 Serial Communication.14 3.1.3 Other Sample Programs 3.1.4 Sample Program Descriptions.16 126.96.36.199 FLASHLED.C. 188.8.131.52 FLASHLEDS.C. 184.108.40.206 TOGGLELED.C
Chapter Hardware Reference
RCM2200 Digital Inputs Outputs 4.1.1 Dedicated Inputs 4.1.2 Dedicated Outputs.20 4.1.3 Memory Interface 4.1.4 Other Inputs Outputs Serial Communication 4.2.1 Serial Ports 4.2.2 Ethernet Port 4.2.3 Programming Port Serial Programming Cable.25 4.3.1 Changing Between Program Mode Mode 4.3.2 Standalone Operation RCM2200.26
Memory 4.4.1 SRAM. 4.4.2 Flash EPROM. 4.4.3 Dynamic BIOS Source Files. Other Hardware 4.5.1 Clock Doubler 4.5.2 Spectrum Spreader.
Chapter Software Reference
More About Dynamic I/O. 5.2.1 PCLK Output. 5.2.2 External Interrupts Serial Communication Drivers. TCP/IP Drivers. Upgrading Dynamic 5.5.1 Extras.
Chapter Using TCP/IP Features
TCP/IP Connections Running TCP/IP Sample Programs. Addresses Explained. Addresses Used Dynamically Assigned Internet Addresses Placing Your Device Internet Addresses Sample Programs. Your Computer Direct Connect. PINGME.C Sample Programs 6.10 Running More Sample Programs With Direct Connect. 6.11 Where From Here?.
Appendix RabbitCore RCM2200 Specifications
Electrical Mechanical Characteristics A.1.1 Headers A.1.2 Physical Mounting. Loading Rabbit 2000 Characteristics Buffer Sourcing Sinking Limit. Jumper Configurations Conformal Coating
Appendix Prototyping Board
Prototyping Board. B.1.1 Prototyping Board Features B.1.2 Prototyping Board Expansion. Mechanical Dimensions Layout Power Supply. Using Prototyping Board B.4.1 Adding Other Components
Appendix Power Supply
Power Supplies C.1.1 Battery-Backup Circuits C.1.2 Reset Generator. Chip Select Circuit.
Appendix Sample Circuits
RS-232/RS-485 Serial Communication Keypad Connections External Memory Converter.79
RCM2200 RabbitCore module designed heart embedded control systems. RCM2200 features integrated Ethernet port provides Internet-enabled systems built easily serial-communication systems.
Throughout this manual, term RCM2200 refers complete series RCM2200 RabbitCore modules unless other production models referred specifically. RCM2200 Rabbit 2000 microprocessor operating 22.1 MHz, static RAM, flash memory, clocks (main oscillator timekeeping), circuitry necessary reset management battery backup Rabbit 2000's internal real-time clock static RAM. 26-pin headers bring Rabbit 2000 lines, address lines, data lines, parallel ports, serial ports. RCM2200 receives power from user board which mounted. RabbitCore RCM2200 interface with kinds CMOS-compatible digital devices through user board.
Small size: 1.60" 2.30" 0.86" Microprocessor: Rabbit 2000 running 22.1 parallel lines: configurable input output, fixed inputs, fixed outputs data lines (D0-D7) address lines (A0-A3) Memory read, write External reset input Five 8-bit timers (cascadable pairs) 10-bit timers 256K-512K flash memory, 128K-512K SRAM Real-time clock Watchdog supervisor
Provision customer-supplied backup battery connections header 10/100-compatible RJ-45 Ethernet port with 10Base-T interface (Ethernet jack installed models) Ethernet associated control signals available 26-pin header Three CMOS-compatible serial ports: maximum asynchronous baud rate 691,200 bps, maximum synchronous baud rate 5,529,600 bps. port configurable clocked port. additional lines located programming port, used lines when programming port being used programming in-circuit debugging-one synchronous serial port also used general CMOS inputs general CMOS output, there additional inputs additional output. Appendix "RabbitCore RCM2200 Specifications," provides detailed specifications RCM2200. addition, three different RCM2200 models available. variant RCM2200, RCM2300, omits Ethernet connectivity offers much smaller footprint, onehalf size RCM2200.
Fast time market using fully engineered, "ready run" microprocessor core. Competitive pricing when compared with alternative purchasing assembling individual components. Easy C-language program development debugging, including rapid production loading programs. Generous memory size allows large programs with tens thousands lines code, substantial data storage. Integrated Ethernet port network connectivity, royalty-free TCP/IP software.
Development Evaluation Tools
complete Development Kit, including Prototyping Board Dynamic development software, available RCM2200. Development puts together essentials need design embedded microprocessor-based system rapidly efficiently. 1.3.1 Development Software RCM2200 module uses Dynamic development environment rapid creation debugging runtime applications. Dynamic provides complete development environment with integrated editor, compiler source-level debugger. interfaces directly with target system, eliminating need complex unreliable in-circuit emulators.
NOTE: RCM2200 module requires Dynamic v7.04 later development. compatible version included Development CD-ROM.
RCM2200 Development contains following items: RCM2200 module with 10Base-T Ethernet port, 256K flash memory, 128K SRAM. RCM2200/RCM2300 Prototyping Board. Wall transformer power supply, (Included only with Development Kits sold North American market. Overseas users will have substitute power supply compatible with local mains power.) 10-pin header programming cable with integrated level-matching circuitry. Dynamic CD-ROM, with complete product documentation disk. Getting Started instructions. Rabbit 2000 Processor Easy Reference poster. Registration card.
This user's manual intended give users detailed information RCM2200 module. does contain detailed information Dynamic development environment TCP/IP software support integrated Ethernet port. Most users will want more detailed information some these topics order RCM2200 module effective use. 1.5.1 Additional Product Information addition product-specific information contained RabbitCore RCM2200 User's Manual (this manual), several higher level reference manuals provided HTML form accompanying CD-ROM. Advanced users will find these references valuable developing systems based RCM2200 modules: Dynamic User's Manual Introduction TCP/IP Dynamic TCP/IP User's Manual Rabbit 2000 Microprocessor User's Manual 1.5.2 Online Documentation online documentation installed along with Dynamic icon documentation menu placed workstation's desktop. Double-click this icon reach menu. icon missing, your browser find load default.htm docs folder, found Dynamic installation folder. latest versions documents always available free, unregistered download from sites well.
This chapter describes RCM2200 hardware more detail, explains accompanying Prototyping Board.
NOTE: This chapter (and this manual) assume that have RCM2200 Development Kit. purchased RCM2200 module itself, will have adapt information this chapter elsewhere your test development setup.
There four steps connecting Prototyping Board with Dynamic sample programs: Attach RCM2200 module Prototyping Board. Connect programming cable between RCM2200 module workstation Connect power supply Prototyping Board. 2.1.1 Attach Module Prototyping Board Turn RCM2200 module that Ethernet connector module extends Prototyping Board, shown Figure below. Align pins from headers bottom side RCM2200 with header sockets Prototyping Board.
Line mounting holes
Figure Installing RCM2200 Prototyping Board
Although install single module into either MASTER SLAVE position Prototyping Board, Prototyping Board features (switches, LEDs, serial port drivers, etc.) connected MASTER position. recommend install module MASTER position.
NOTE: important that line pins headers RCM2200 exactly with corresponding pins header sockets Prototyping Board. header pins become bent damaged alignment offset, module will work. Permanent electrical damage module also result misaligned module powered
Press module's pins firmly into Prototyping Board header sockets. 2.1.2 Connect Programming Cable programming cable connects RCM2200 module running Dynamic download programs monitor RCM2200 debugging. Connect 10-pin connector programming cable labeled PROG header RCM2200 module shown Figure sure orient marked (usually red) edge cable towards connector. DIAG connector, which used normal serial connection.) Connect other programming cable port your Make note port which connect cable, Dynamic needs have this parameter configured when installed.
Figure Connect Programming Cable RCM2200
NOTE: default port used Dynamic NOTE: Some come equipped only with port. possible RS-232/USB converter (Part 20-151-0178) with programming cable supplied with RCM2200 Development Kit. Note that RS-232/USB converters work with Dynamic
2.1.3 Connect Power When other connections have been made, connect power RCM2200 Prototyping Board. First, prepare adapter country where will used selecting plug. RCM2200 Development presently includes Canada/Japan/U.S., Australia/N.Z., U.K., European style plugs. Snap plug assembly into slot adapter shown Figure then press down spring-loaded clip below plug assembly allow plug assembly click into place. Connect adapter 3-pin header Prototyping Board shown Figure below. connector attached either long offset side.
Remove slot cover, insert into slot
Snap plug into place
Prototyping Reset Board
Figure Power Supply Connections
Plug adapter. power Prototyping Board should light RCM2200 Prototyping Board ready used.
NOTE: RESET button provided Prototyping Board allow hardware reset without disconnecting power.
power down Prototyping Board, unplug power connector from should disconnect power before making circuit adjustments prototyping area, changing connections board, removing RabbitCore module from board. 2.1.4 Alternate Power Supply Connections Development kits sold outside North America before 2009 included header connector that could connected 3-pin header Prototyping Board. black wires from connector could then connected positive negative connections your power supply. power supply should deliver V-24
Once RCM2200 connected described preceding pages, start Dynamic double-clicking Dynamic icon your desktop your Start menu. Dynamic uses serial port specified during installation. using port connect your computer RCM2200 module, choose Options Project Options select "Use Serial Converter" under Communications tab, then click Find file PONG.C, which Dynamic SAMPLES folder. program, open with File menu still open), then compile pressing selecting menu. STDIO window will open will display small square bouncing around box. 2.2.1 Troubleshooting Dynamic cannot find target system (error message Rabbit Processor Detected."): Check that RCM2200 powered correctly power Prototyping
Board should when RCM2200 mounted Prototyping Board adapter plugged
Check both ends programming cable ensure that they firmly plugged into PROG connector, DIAG connector, plugged programming port RCM2200 with marked (colored) edge programming cable towards programming header. Ensure that RCM2200 module firmly correctly installed connectors Prototyping Board. Dynamic uses port specified during installation. Select different port within Dynamic From Options menu, select Project Options, then select Communications. Select another port from list, then click Press <Ctrl-Y> force Dynamic recompile BIOS. Dynamic still reports unable locate target system, repeat above steps until locate port used programming cable.
Dynamic appears compile BIOS successfully, then receive communication error message when compile load sample program, possible that your cannot handle higher program-loading baud rate. changing maximum download rate slower baud rate follows. Locate Serial Options dialog Dynamic Options Project Options Communications menu. Select slower download baud rate. program compiles loads, then loses target communication before begin debugging, possible that your cannot handle default debugging baud rate. lowering debugging baud rate follows. Locate Serial Options dialog Dynamic Options Project Options Communications menu. Choose lower debug baud rate.
Where From Here?
everything appears working, recommend following sequence action: sample programs described Chapter basic familiarity with Dynamic RCM2200 module's capabilities. further development, refer RabbitCore RCM2200 User's Manual details module's hardware software components. documentation icon should have been installed your workstation's desktop; click reach documentation menu. create desktop icon that points default.htm docs folder Dynamic installation folder. advanced development topics, refer Dynamic User's Manual Dynamic TCP/IP User's Manual, also online documentation set. 2.3.1 Technical Support
NOTE: purchased your RCM2200 through distributor through Rabbit partner, contact distributor partner first technical support.
there problems this point: Dynamic Help menu further assistance with Dynamic Check Rabbit Technical Bulletin Board forums www.rabbit.com/support/bb/ www.rabbit.com/forums/. Technical Support e-mail form www.rabbit.com/support/.
RUNNING SAMPLE PROGRAMS
develop debug programs RCM2200 (and other Rabbit hardware), must install Dynamic This chapter provides tour sample programs RCM2200. Sample Programs
help familiarize with RCM2200 modules, several sample Dynamic programs have been included. Loading, executing studying these programs will give solid hands-on overview M2200's capabilities, well quick start with Dynamic application development tool. These programs intended serve tutorials, then also used starting points building blocks your applications.
NOTE: assumed this section that have least elementary grasp ANSI not, introductory pages Dynamic User's Manual suggested reading list.
Each sample program comments that describe purpose function program. Before running these sample program, make sure that your RCM2200 connected Prototyping Board your described Section 2.1, "Connections." sample program, open with File menu already open), then compile pressing selecting menu. Sample programs provided Dynamic SAMPLES folder. folders contain sample programs that illustrate features unique RCM2200. RCM2200-Demonstrates basic operation Ethernet functionality RCM2200. TCPIP-Demonstrates more advanced TCP/IP programming Rabbit's Ethernetenabled Rabbit-based boards. Complete information Dynamic provided Dynamic User's Manual.
3.1.1 Getting Know RCM2200 following sample programs found SAMPLES\RCM2200 folder. EXTSRAM.C-demonstrates setup simple addressing external SRAM. This program first maps external SRAM Bank register with maximum wait states, chip select strobe (PE7), allows writes. first bytes SRAM cleared read back. Values then written same area read back. Dynamic STDIO window will indicate writes reads occur Connect external SRAM shown below before this sample program.
RCM2300 Core Module
D0D7 /IOWR /IORD
FLASHLED.C-repeatedly flashes Prototyping Board off. controlled Parallel Port (PE7). will remain continuously. FLASHLEDS.C-demonstrates coding with assembly instructions, cofunctions, costatements flash LEDs Prototyping Board off. LEDs controlled Parallel Port (PE1) Parallel Port (PE7).Once have compiled this program running, LEDs will flash on/off different rates. TOGGLELED.C-demonstrates costatements detect switch presses using press-and-release method debouncing. soon sample program starts running, Prototyping Board (which controlled PE1) starts flashing once second. Press switch Prototyping Board (which connected PB3) toggle Prototyping Board (which controlled PE7) off. pushbutton switch debounced software.
KEYLCD.C-demonstrates simple setup keypad LCD. Connect keypad Parallel Ports
PB0-Keypad PC1-Keypad PB2-Keypad PB3-Keypad PB4-Keypad PB5-Keypad PD3-Keypad PD4-Keypad
RCM2200/RCM2300 Prototyping Board
Connect Parallel Port
PA0-backlight connected) PA1-LCD PA2-LCD (High Control, Data) Contrast PA3-LCD /WR/ Contrast PA4-LCD Contrast PA5-LCD Contrast PA6-LCD Contrast PA7-LCD Contrast
RCM2200/RCM2300 Prototyping Board
Once connections have been made sample program running, will display rows dots, each representing corresponding key. When pressed, corresponding will become asterisk.
3.1.2 Serial Communication following sample programs found SAMPLES\RCM2200 folder. sample programs, PUTS.C available illustrate RS-232 communication. this sample program, will have RS-232 transceiver such MAX232 location five capacitors C3-C7 Prototyping Board. Also install header with pitch 0.1" interface RS-232 signals. diagram shows connections.
Once sample program running, 10pin header cable (for example, Part 540-0009) connect header your port (you will have disconnect programming cable from both RCM2200 only have port, then press RESET button Prototyping Board). Line colored edge cable with header shown diagram (pin indicated small square Prototyping Board silkscreen).
This program writes null terminated string over Serial Port serial utility such HyperTerminal Tera Term view string. following configuration your serial utility.
Bits second: 19200 Data bits: Parity: None Stop bits: Flow control: None
sample programs, MASTER.C SLAVE.C, available illustrate RS-485 master/ slave communication. these sample programs, will need second Rabbit-based system with RS-485, will also have RS-485 transceiver such SP483E bias resistors Prototyping Board. diagram shows connections. will have connect (Serial Port Prototyping Board RS-485 transceiver, will connect RS485 transceiver enable disable RS-485 transmitter.
RS-485 connections between slave master devices follows.
RS485+ RS485+ RS485- RS485-
MASTER.C-This program demonstrates simple RS-485 transmission lower case letters slave RCM2200. slave will send back converted upper case letters back master RCM2200 display them STDIO window. SLAVE.C program slave RCM2200-reset slave before MASTER.C master. SLAVE.C-This program demonstrates simple RS-485 transmission lower case letters master RCM2200. slave will send back converted upper case letters back master RCM2200 display them STDIO window. Compile this program slave before MASTER.C program master. 3.1.3 Other Sample Programs Section covers TCP/IP sample programs, which then described detail.
3.1.4 Sample Program Descriptions
This program about simple Dynamic application get-the equivalent traditional "Hello, world!" program found most basic programming tutorials. familiar with ANSI should have trouble reading through source code understanding only element this sample application should Dynamic handling Rabbit microprocessor's parallel ports. program: Initializes pins Port outputs. Sets pins Port high, turning attached LEDs. Starts endless loop with for(;;) expression, within that loop:
Writes turn off, lighting DS3; Waits through delay loop; Writes turn turning LED; Waits through second delay loop;
These steps repeat long program allowed run. change flash rate adjusting loop values expressions. first loop controls LED's "off" time; second loop controls "on" time.
NOTE: Since variable defined type int, range must between 32767. permit larger values thus longer delays, change declaration unsigned long.
More Information section primitive data types, entries library functions WrPortI( BitWrPortI( Dynamic User's Manual.
addition Dynamic implementation C-language programming embedded systems, supports assembly-language programming very efficient processor-level control module hardware program flow. This application similar FLASHLED.C TOGGLELED.C, uses assembly language low-level port control within cofunctions, another powerful multitasking tool. Dynamic permits assembly language statements within code. This program creates three functions using assembly language statements, then creates cofunction call them. That cofunction then called within main(). Within each C-like functions, #asm #endasm directives used indicate beginning assembly language statements. function initialize_ports( port initialized outputs while port initialized output. function ledon(), written port corresponding desired which equals DS3, which equals DS4), turning that ledoff( function works exactly same except that written bit, turning selected off. Finally, cofunction flashled(), flashed, time milliseconds, time milliseconds passed arguments. This function uses endless for(;;) loop call ledon() ledoff() functions, separated calls wait function DelayMs(). This sequence will make indicated flash off. proper program design, contents main() almost trivial. program first calls initialize_ports(), then begins endless for(;;) loop. Within this loop, program: Calls library function hitwd(), which resets microprocessor's watchdog timer. watchdog timer reset every often, will force hard reset system. purpose keep intermittent program hardware fault from locking system. Normally, this function taken care virtual driver, called explicitly here). Sets costatement which calls instances flashled() function, each LED. Note that flashed second one-half second (500 off, while other flashed reverse pattern. Note also keyword costatement. This keyword abbreviation waitfordone, which also used) must used when calling cofunctions. complete explanation, Section Dynamic User's Manual. More Information entries hitwd() DelayMs() functions Dynamic User's Manual, well those directives #asm #endasm. complete explanaUser's Manual
tion Dynamic handles multitasking with costatements cofunctions, Chapter "Multitasking with Dynamic Chapter "The Virtual Driver," Dynamic User's Manual.
Dynamic unique powerful aspects ability efficiently multitask using cofunctions costatements. This simple application demonstrates these program elements work. This sample program uses costatements manage tasks. Costatements must contained loop that will "tap" each them regular intervals. This program: Initializes pins Port outputs. Sets pins Port high, turning attached LEDs. Sets toggled status variable vswitch (LED off). Starts endless loop using while(1) expression, within that loop:
Executes costatement that flashes DS3; Executes costatement that checks state switch toggles state vswitch pressed; Turns off, according state vswitch.
These steps repeat long program allowed run. first costatement compressed version FLASHLED.c, with slightly different flash timing. also uses library function DelayMs() deliver more accurate timing than simple delay loops previous program. second costatement does more than check status Switch contacts often "bounce" open closed several times when switch actuated, each bounce interpreted fast digital logic independent press. clean this input, code second costatement "debounces" switch signal waiting milliseconds checking state switch again. detected being closed both times, program considers valid switch press toggles vswitch. Unlike most statements, costatements executed their entirety each iteration while(1) loop. Instead, list statements within each costatement initiated first loop, then executed "slice" time each successive interation. This mode operation known state machine, powerful concept that permits single processor efficiently handle number independent tasks. ability Dynamic manage state machine programs enables create very powerful efficient embedded systems with much greater ease than other programming methods. More Information entries DelayMs() function, well Section "Multitasking with Dynamic Dynamic User's Manual.
Chapter describes hardware components principal hardware subsystems RCM2200. Appendix "RabbitCore RCM2200 Specifications," provides complete physical electrical specifications.
RCM2200 Digital Inputs Outputs
Figure shows subsystems designed into RCM2200.
PC0, PC1, more output PB1, PC7, RES_IN more inputs Ethernet signals outputs /RESET
(+synch Serial Port
Real-Time Clock Watchdog Timers Slave Port Clock Doubler
Port Address Lines
PE0PE1, PE4PE5, A0A3 IORD IOWR D0D7
Backup Battery Support
Figure Rabbit Subsystems
RCM2200 parallel lines grouped five 8-bit ports available headers bidirectional lines located pins PA0-PA7, PD3-PD5, PE0- PE1, PE4, PE5, PE7. pinouts headers shown Figure
TPOUTLNK /IORD TPINPE4 TPOUT+ /IOWR TPIN+ /RES
Note: These pinouts seen Bottom Side module.
Figure RCM2200 Pinouts
4.1.1 Dedicated Inputs general CMOS input when Rabbit 2000 either using Serial Port using Serial Port asynchronous mode. Four other general CMOS input-only pins located PB2-PB5. These pins also used slave port. slave write slave read strobes, while serve slave address lines SA1, used access slave registers. general CMOS inputs only. These pins instead selectively enabled serve serial data inputs Serial Ports 4.1.2 Dedicated Outputs general CMOS output-only pins located PB7. also used with slave port /SLAVEATTN output. This configuration signifies that slave requesting attention from master. also output-only pins; instead serve serial data outputs Serial Ports 4.1.3 Memory Interface Four Rabbit 2000 address lines (A0-A3) data lines (D0-D7) available. write (/IOWR) read (/IORD) also available interfacing external devices. ports Rabbit 2000 microprocessor used RCM2200 configurable, factory defaults reconfigured. Table lists Rabbit 2000 factory defaults alternate configurations.
Table RCM2200 Pinout Configurations
Header 23-26 Name TPOUT- Ethernet transmit port TPOUT+ /IORD /IOWR Bitwise parallel programmable TPIN- Ethernet receive port TPIN+ Bitwise parallel programmable A[3:0] Bitwise parallel programmable control slave port chip select /SCS Rabbit 2000 address control INT0B input control INT1B input Ethernet active (ACT) indicator Input (I/O read strobe) Output (I/O write strobe) control INT0A input control INT1A input Bitwise parallel programmable ATXB output ARXB input Ethernet link (LNK) indicator Output Input Output Input Default Alternate Notes
Table RCM2200 Pinout Configurations (continued)
Name PA[0:7] Default Bytewide programmable parallel Reset output Input Input Input Input Input Output Input/Output battery input Alternate Slave port data SD0-SD7 Reset input Serial port clock CLKB input output Slave port write /SWR Slave port read /SRD Slave port address lines 16-23 D[7:0] VBAT Slave port attention line /SLAVEATTN Rabbit 2000 data This weak output driven externally Notes
4.1.4 Other Inputs Outputs shown Table pins PA0-PA7 used allow Rabbit 2000 slave another processor. slave port also uses PB2-PB5, PB7, PE7. PE0, PE1, PE4, used external interrupts. used access clock Serial Port Rabbit microprocessor. programmed serial output Serial Port used serial input Serial Port PC4, PC5, PD0, PD1, PE2, PE3, used internal communication with RealTek Ethernet interface chip.
RCM2200 board does have RS-232 RS-485 transceiver directly board. However, RS-232 RS-485 interface incorporated board RCM2200 mounted example, Prototyping Board supports standard RS-232 transceiver chip. 4.2.1 Serial Ports There four serial ports designated Serial Ports four serial ports operate asynchronous mode baud rate system clock divided asynchronous port handle data bits. address scheme, where additional sent mark first byte message, also supported. Serial Ports also operated clocked serial mode. this mode, clock line synchronously clocks data out. Either communicating devices supply clock. When Rabbit 2000 provides clock, baud rate system clock frequency divided 128, 138,240 22.1 clock speed. Serial Port available only programming port, likely inconvenient interface with. 4.2.2 Ethernet Port Figure shows pinout RJ-45 Ethernet port (J2). Note that some Ethernet connectors numbered reverse order used here.
E_Tx+ E_Tx E_Rx+ E_Rx
Figure RJ-45 Ethernet Port Pinout
LEDs placed next RJ-45 Ethernet jack, indicate Ethernet link (LNK) indicate Ethernet activity (ACT). Ethernet signals also available header signals used drive LEDs user board RCM2200 connected transformer/connector assembly ground connected RCM2200 printed circuit board digital ground resistor, R29, shown Figure
RJ-45 Ethernet Plug
Board Ground Chassis Ground
Figure Isolation Resistor
RJ-45 connector shielded minimize effects to/from Ethernet signals. Rabbit recommends that equivalent RJ-45 connector used user board customer wishes have RJ-45 connector user board.
NOTE: RCM2210 available without LEDs RJ-45 connector plan your RJ-45 connector your user board.
4.2.3 Programming Port RCM2200 10-pin program header labeled programming port uses Rabbit 2000's Serial Port communication. Dynamic uses programming port download debug programs. programming port also used following operations. Cold-boot Rabbit 2000 after reset. Remotely download debug program over Ethernet connection using RabbitLink EG2110. Fast copy designated portions flash memory from Rabbit-based board (the master) another (the slave) using Rabbit Cloning Board.
Alternate Uses Serial Programming Port
three clocked Serial Port signals available synchronous serial port asynchronous serial port, with clock line usable general CMOS input serial programming port also used serial port DIAG connector serial programming cable. addition Serial Port Rabbit 2000 startup-mode (SMODE0, SMODE1), status, reset pins available serial programming port. startup mode pins determine what happens after reset-the Rabbit 2000 either cold-booted program begins executing address 0x0000. These SMODE pins used general inputs once cold boot complete. status used Dynamic determine whether Rabbit microprocessor present. status output three different programmable functions: driven first code fetch cycle. driven during interrupt acknowledge cycle. also serve general-purpose CMOS output. /RESET_IN external input that used reset Rabbit 2000 onboard peripheral circuits RabbitCore module. serial programming port used force hard reset RabbitCore module asserting /RESET_IN signal. Refer Rabbit 2000 Microprocessor User's Manual more information.
Serial Programming Cable
programming cable used connect RCM2200's programming port serial port. programming cable converts RS-232 voltage levels used serial port voltage levels used Rabbit 2000. When PROG connector programming cable connected RCM2200's programming header, programs downloaded debugged over serial interface. DIAG connector programming cable used RCM2200's programming header with RCM2200 operating Mode. This allows programming port used regular serial port. 4.3.1 Changing Between Program Mode Mode RCM2200 automatically Program Mode when PROG connector programming cable attached RCM2200, automatically Mode when programming cable attached. When Rabbit 2000 reset, operating mode determined status SMODE pins. When programming cable's PROG connector attached, SMODE pins pulled high, placing Rabbit 2000 Program Mode. When programming cable's PROG connector attached, SMODE pins pulled low, causing Rabbit 2000 operate Mode.
RESET RCM2200 when changing mode: Press RESET button using Prototyping Board), Cycle power off/on after removing attaching programming cable.
Figure Switching Between Program Mode Mode
program "runs" either mode, only downloaded debugged when RCM2200 module Program Mode. Refer Rabbit 2000 Microprocessor User's Manual more information programming port programming cable.
4.3.2 Standalone Operation RCM2200 RCM2200 must programmed RCM2200/RCM2300 Prototyping Board similar arrangement customer-supplied board. Once RCM2200 been programmed successfully, remove programming cable from programming connector reset RCM2200. RCM2200 reset cycling power off/on pressing RESET button Prototyping Board. RCM2200 module removed from Prototyping Board end-use installation.
CAUTION: Power Prototyping Board other boards should disconnected when removing installing your RCM2200 module protect against inadvertent shorts across pins damage RCM2200 pins plugged correctly. reapply power until have verified that RCM2200 module plugged correctly.
4.4.1 SRAM RCM2200 designed accept 512K SRAM packaged SOIC case. 4.4.2 Flash EPROM RCM2200 also designed accept 128K 512K flash EPROM packaged TSOP case.
NOTE: Rabbit recommends that customer applications should constrained sector size flash EPROM since necessary change sector size future.
Writing arbitrary flash memory addresses time also discouraged. Instead, define "user block" area store persistent data. functions writeUserBlock readUserBlock provided this. Flash Memory Bank Select jumper configuration option based surface-mounted resistors exists JP2, JP3, (corresponding flash memory chips [second flash RCM2250], [RCM2200], flash installed existing RCM2200 versions]). This option, used conjunction with some configuration macros, allows Dynamic compile different co-resident programs upper lower halves 256K flash such that both programs start logical address 0000. This useful applications that require resident download manager separate downloaded program. Technical Note 218, Implementing Serial Download Manager 256K Flash, details.
NOTE: Only Normal Mode, which corresponds using full code space, supported present time.
4.4.3 Dynamic BIOS Source Files Dynamic BIOS source files handle different standard flash EPROM sizes automatically.
4.5.1 Clock Doubler RCM2200 takes advantage Rabbit 2000 microprocessor's internal clock doubler. built-in clock doubler allows half-frequency crystals used reduce radiated emissions. 22.1 frequency generated using 11.0592 crystal. clock doubler disabled automatically BIOS crystals with frequency above 12.9 MHz. clock doubler disabled 22.1 clock speeds required. Disabling Rabbit 2000 microprocessor's internal clock doubler will reduce power consumption further reduce radiated emissions. clock doubler disabled with simple configuration macro shown below. Select "Defines" from Dynamic Options Project Options menu. line CLOCK_DOUBLED=0 always disable clock doubler. clock doubler enabled default, usually entry needed. need specify that clock doubler always enabled, line CLOCK_DOUBLED=1 always enable clock doubler. clock speed will doubled long crystal frequency less than equal 26.7264 MHz. Click save macro. clock doubler will remain whenever project file where defined macro.
4.5.2 Spectrum Spreader RCM2200 RabbitCore modules that have Rabbit 2000 microprocessor labeled IQ4T higher) equipped with Rabbit 2000 microprocessor that spectrum spreader, which helps mitigate problems. default, spectrum spreader automatically RCM2200 modules that carry IQ4T higher) marking when used with Dynamic 7.30 later versions, spectrum spreader also turned stronger setting. means doing through simple configuration macro shown below. Select "Defines" from Dynamic Options Project Options menu. Normal spreading default, usually entry needed. need specify normal spreading, line
strong spreading, line
disable spectrum spreader, line
NOTE: strong spectrum-spreading setting usually necessary RCM2200.
Click save macro. spectrum spreader will remain whenever project file where defined macro. There spectrum spreader functionality RCM2200 RabbitCore modules that have Rabbit 2000 microprocessor labeled IQ1T, IQ2T, IQ3T, when using RCM2200 with version Dynamic prior 7.30.
Dynamic integrated development system writing embedded software. runs IBM-compatible designed with Rabbit single-board computers other single-board computers based Rabbit microprocessor. Chapter provides libraries function calls related RCM2200. More About Dynamic
Dynamic been worldwide since 1989. Dynamic specially designed programming embedded systems, features quick compile interactive debugging. complete reference Dynamic contained Dynamic User's Manual. have choice doing your software development flash memory static included RCM2200. flash memory SRAM options selected with Options Project Options Compiler menu. advantage working save wear flash memory, which limited about 100,000 write cycles. disadvantage that code data might both RAM.
NOTE: application developed RAM, cannot standalone from after programming cable disconnected. standalone applications only from flash memory. NOTE: depend flash memory sector size type. volatility flash memory market, RCM2200 Dynamic were designed accommodate flash devices with various sector sizes.
RCM2250 RCM2260 RabbitCore modules have 256K flash memories. default, Dynamic will only first flash memory program code these RCM2250 RCM2260 RabbitCore modules. Uncomment BIOS USE_2NDFLASH_CODE macro allow second flash memory hold program code that excess available memory first flash.
Developing software with Dynamic simple. Users write, compile, test assembly code without leaving Dynamic development environment. Debugging occurs while application runs target. Alternatively, users compile program image file later loading. Dynamic runs under Windows later. Programs downloaded baud rates 460,800 after program compiles. Dynamic number standard features: Full-feature source and/or assembly-level debugger, in-circuit emulator required. Royalty-free TCP/IP stack with source code most common protocols. Hundreds functions source-code libraries sample programs:
Exceptionally fast support floating-point arithmetic transcendental functions. RS-232 RS-485 serial communication. Analog digital drivers. I2C, SPI, GPS, file system. display keypad drivers.
Powerful language extensions cooperative preemptive multitasking. Loader utility program load binary images into Rabbit targets absence Dynamic Provision customers create their source code libraries augment on-line help creating "function description" block comments using special format library functions. Standard debugging features:
Breakpoints-Set breakpoints that disable interrupts. Single-stepping-Step into over functions source machine code level, µC/OS-II aware. Code disassembly-The disassembly window displays addresses, opcodes, mnemonics, machine cycle times. Switch between debugging machine-code level source-code level simply opening closing disassembly window. Watch expressions-Watch expressions compiled when defined, complex expressions including function calls placed into watch expressions. Watch expressions updated with without stopping program execution. Register window-All processor registers flags displayed. contents general registers modified window user. Stack window-shows contents stack. memory dump-displays contents memory address. STDIO window-printf outputs this window keyboard input host detected debugging purposes. printf output also sent serial port file.
RCM2200 designed interface with other systems, there drivers written specifically I/O. general Dynamic read write functions allow customize parallel meet your specific needs. example,
WrPortI(PEDDR, &PEDDRShadow, 0x00);
port bits inputs,
WrPortI(PEDDR, &PEDDRShadow, 0xFF);
Port bits outputs. sample programs Dynamic SAMPLES\RCM2200 directory provide further examples. 5.2.1 PCLK Output PCLK output controlled bits Global Output Register (GOCR) Rabbit 2000 microprocessor, enabled disabled software. Starting with Dynamic 7.02, PCLK output disabled default compile time minimize radiated emissions; PCLK output enabled earlier versions Dynamic following code PCLK output needed.
PCLK output driven with peripheral clock:
WrPortI(GOCR, &GOCRShadow, (GOCRShadow&~0xc0));
PCLK output driven with peripheral clock
WrPortI(GOCR, &GOCRShadow, ((GOCRShadow&~0xc0)| 0x40));
PCLK output (low):
WrPortI(GOCR, &GOCRShadow, ((GOCRShadow&~0xc0)| 0x80));
PCLK output (high):
WrPortI(GOCR, &GOCRShadow, (GOCRShadow 0xc0));
5.2.2 External Interrupts Rabbit 2000 microprocessor four external interrupt inputs Parallel Port which accessed through pins PE0, PE1, PE4, header These pins used either ports external interrupt inputs. Earlier versions Rabbit 2000 microprocessor labeled IQ1T IQ2T would occasionally lose interrupt request when interrupt inputs used pulse counter. Technical Note 301, Rabbit 2000 Microprocessor Interrupt Problem, further information work around this problem purchased your RCM2200 before July, 2002, Rabbit 2000 microprocessor labeled IQ1T IQ2T.
NOTE: Interrupts RCM2000 series RabbitCore modules sold after July, 2002, work correctly need this workaround.
Serial Communication Drivers
Library files included with Dynamic provide full range serial communications support. RS232.LIB library provides circular-buffer-based serial functions. PACKET.LIB library provides packet-based serial functions where packets delimited bit, transmission gaps, with user-defined special characters. Both libraries provide blocking functions, which return until they finished transmitting receiving, nonblocking functions, which must called repeatedly until they finished. more information, Dynamic User's Manual Technical Note 213, Rabbit 2000 Serial Port Software.
TCP/IP drivers located TCPIP directory. Complete information these libraries TCP/IP functions provided Dynamic TCP/IP User's Manual.
Dynamic patches that focus fixes available from time time. Check site www.rabbit.com/support/ latest patches, workarounds, fixes. default installation patch install file directory (folder) different from that original Dynamic installation. Rabbit recommends using different directory that verify operation patch without overwriting existing Dynamic installation. have made changes BIOS libraries, have programs directory (folder), make these same changes BIOS libraries directory containing patch. simply copy over entire file since overwrite fix; course, copy over programs have written. Once sure patch works entirely your satisfaction, retire existing installation, keep available handle legacy applications. 5.5.1 Extras Dynamic installations designed with board they included with, included charge part low-cost kits. Starting with Dynamic version 9.60, Dynamic includes popular µC/OS-II realtime operating system, point-to-point protocol (PPP), file system, RabbitWeb, other select libraries. Rabbit also offers purchase Rabbit Embedded Security Pack featuring Secure Sockets Layer (SSL) specific Advanced Encryption Standard (AES) library. addition Web-based technical support included extra charge, one-year telephone-based technical support subscription also available purchase. Visit site www.rabbit.com further information complete documentation.
USING TCP/IP FEATURES
Programming development done with RCM2200 RabbitCore modules without connecting Ethernet port network. However, will running sample programs that Ethernet capability will doing Ethernet-enabled development, should connect RCM2200 module's Ethernet port this time. Before proceeding will need have following items. don't have Ethernet access, will need least 10Base-T Ethernet card (available from your favorite computer supplier) installed RJ-45 straight through Ethernet cables hub, RJ-45 crossover Ethernet cable. Ethernet cables Ethernet available from Rabbit TCP/IP tool kit. More information available www.rabbit.com. Connect adapter programming cable shown Chapter "Getting Started." Ethernet Connections There four options connecting RCM2200 module network development runtime purposes. first options permit total freedom selecting network addresses "network," action interfere with other users. recommend these options initial development. simplest alternative desktop development. Connect RCM2200's Ethernet port directly PC's network interface card using RJ-45 crossover cable. crossover cable special cable that flips some connections between connectors permits direct connection client systems. standard RJ-45 network cable will work this purpose. Micro-LAN Another simple alternative desktop development. small Ethernet 10Base-T connect both PC's network interface card RCM2200's Ethernet port using standard network cables.
following options require more care address selection testing actions, conflicts with other users, servers systems occur: Connect RCM2200's Ethernet port existing LAN, preferably which development already connected. will need obtain addressing information from your network administrator. RCM2200 capable direct connection Internet other Wide Area Networks, exceptional care should used with address settings network-related programming development. recommend that development debugging done local network before connecting RabbitCore system Internet.
TIP: Checking debugging initial setup micro-LAN recommended before connecting system WAN.
running Dynamic through serial port RCM2200 does need with Ethernet card. Apply Power Plug adapter. RCM2200 ready used.
Running TCP/IP Sample Programs
have provided number sample programs demonstrating various uses TCP/IP networking embedded systems. These programs require that user connect RCM2200 board together same network. This network local private network (preferred initial experimentation debugging), connection Internet. RCM2200 Board
Ethernet crossover cable
Direct Connection (network computers)
additional network elements
Direct Connection Using
Obtaining addresses interact over existing, operating, network involve number complications, must usually done with cooperation from your and/or network systems administrator your company one). this reason, suggested that user begin instead using direct connection between RCM2200 board using Ethernet crossover cable simple arrangement with hub. crossover cable should confused with regular straight through cables.) wide variety cables also purchased from local computer store. order this direct connection, user will have without networking, disconnect from corporate network, install second Ethernet adapter separate private network attached second Ethernet adapter. Disconnecting your from corporate network easy nearly impossible, depending Mobile PCs, such laptops, designed connected disconnected, will present least problem. your boots from network dependent network some disks, then probably should disconnected. second Ethernet adapter used, aware that Windows TCP/IP will send messages adapter other, depending address binding order Microsoft products. Thus should have different ranges addresses your private network from those used corporate network. both networks service same address, then Windows send packet intended your private network corporate network. similar situation will take place dial-up line send packet Internet. Windows send local Ethernet network also valid that network.
following addresses aside local networks allowed Internet: 10.0.0.0 10.255.255.255, 172.16.0.0 172.31.255.255, 192.168.0.0 192.168.255.255. RCM2200 board uses 10Base-T type Ethernet connection, which most common scheme. RJ-45 connectors similar U.S. style telephone connectors, except they larger have contacts. alternative direct connection using crossover cable direct connection using hub. relays packets received port ports hub. Hubs cost readily available. RCM2200 board uses Mbps Ethernet, Ethernet adapter must either Mbps unit 10/100 unit that adapts either Mbps. corporate setting where Internet brought high-speed line, there typically machines between outside Internet internal network. These machines include combination proxy servers firewalls that filter multiplex Internet traffic. configuration below, RCM2200 board could given fixed address computers local network would able contact possible configure firewall proxy server allow hosts Internet directly contact controller, would probably easier place controller directly external network outside firewall. This avoids some configuration complications sacrificing some security.
Adapter Firewall Proxy Server
Typical Corporate Network
your system administrator give Ethernet cable along with address, netmask gateway address, then able sample programs without having setup direct connection between your computer RCM2200 board. will also need address nameserver, name address your mail server, your domain name some sample programs.
(Internet Protocol) addresses expressed decimal numbers separated periods, example: 220.127.116.11 10.1.1.6 Each decimal number must between 255. total address 32-bit number consisting bytes expressed shown above. local network uses group adjacent addresses. There always addresses local network. netmask (also called subnet mask) determines many addresses belong local network. netmask also 32-bit address expressed same form address. example netmask 255.255.255.0 This netmask zero bits least significant portion, this means that addresses part local network. Applied address above (18.104.22.168), this netmask would indicate that following addresses belong local network: 22.214.171.124 126.96.36.199 188.8.131.52 etc. 184.108.40.206 220.127.116.11 lowest highest address reserved special purposes. lowest address (18.104.22.168) used identify local network. highest address (22.214.171.124) used broadcast address. Usually other address used address gateway network. This leaves available addresses example given.
actual hardware connection Ethernet uses Ethernet adapter addresses (also called addresses.) These 48-bit addresses unique every Ethernet adapter manufactured. order send packet another computer, given address other computer, first determined packet needs sent directly other computer gateway. either case, there address local network which packet must sent. table maintained allow protocol driver determine address corresponding particular address. table empty, address determined sending Ethernet broadcast packet devices local network asking device with desired address answer with address. this way, table entry filled device answers, then device nonexistent inoperative, packet cannot sent. addresses arbitrary allocated desired provided that they don't conflict with other addresses. However, they used with Internet, then they must numbers that assigned your connection proper authorities, generally delegation your service provider.
Dynamically Assigned Internet Addresses
many instances, there fixed addresses. This case when, example, assigned address dynamically your dial-up Internet service provider (ISP) when have device that provides your addresses using Dynamic Host Configuration Protocol (DHCP). RCM2200 such addresses send receive packets Internet, must take into account that this address only valid duration call period time, could private address that directly accessible others Internet. These private address used perform some Internet tasks such sending e-mail browsing Web, usually cannot used participate conversations that originate elsewhere Internet. want find this dynamically assigned address, under Windows ipconfig program while connected look interface used connect Internet. Many networks private addresses that assigned using DHCP. When your computer comes periodically after that, requests networking information from DHCP server. DHCP server give same address each time, fixed address usually guaranteed. concerned about accessing RCM2200 from Internet, place RCM2200 internal network using private address assigned either statically through DHCP.
Placing Your Device Internet
many corporate settings, users isolated from Internet firewall and/or proxy server. These devices attempt secure company from unauthorized network traffic, usually work disallowing traffic that originate from inside network. want users Internet communicate with your RCM2200, have several options. either place RCM2200 directly Internet with real Internet address place behind firewall. place RCM2200 behind firewall, need configure firewall translate forward packets from Internet RCM2200.
Addresses Sample Programs
have provided number sample programs demonstrating various uses TCP/IP networking embedded systems. These programs require that connect your Coyote together same network. This network local private network (preferred initial experimentation debugging), connection Internet. With introduction Dynamic 7.30 have taken steps make easier many sample programs. will TCPCONFIG macro. This macro tells Dynamic select your configuration from list default configurations. will have three choices when encounter sample program with TCPCONFIG macro. replace TCPCONFIG macro with individual MY_IP_ADDRESS, MY_NETMASK, MY_GATEWAY, MY_NAMESERVER macros each program. leave TCPCONFIG usual default which will configurations 10.10.6.100, netmask 255.255.255.0, nameserver gateway 10.10.6.1. would like change default values, example, address 10.1.1.2 Coyote board, 10.1.1.1 your edit values section that directly follows "General Configuration" comment TCP_CONFIG.LIB library. will find this library LIB\TCPIP directory. create CUSTOM_CONFIG.LIB library TCPCONFIG value greater than 100. Instructions doing this beginning TCP_CONFIG.LIB library LIB\TCPIP directory. There some other "standard" configurations TCPCONFIG that select different features such DHCP. Their values documented TCP_CONFIG.LIB library LIB\TCPIP directory. More information available Dynamic TCP/IP User's Manual. Addresses Before Dynamic 7.30 Most sample programs macros define address assigned board address gateway, there gateway. Instead TCPCONFIG macro, will MY_IP_ADDRESS macro other macros.
#define #define #define #define MY_IP_ADDRESS "10.10.6.170" MY_NETMASK "255.255.255.0" MY_GATEWAY "10.10.6.1" MY_NAMESERVER "10.10.6.1"
order direct connection, following addresses used Coyote:
#define MY_IP_ADDRESS "10.1.1.2" #define MY_NETMASK "255.255.255.0" #define MY_GATEWAY "10.10.6.1" #define MY_NAMESERVER "10.10.6.1"
this case, gateway nameserver used, commented out. address board defined 10.1.1.2. address your defined 10.1.1.1.
Your Computer Direct Connect
Follow these instructions your notebook. Check with your administrator unable change settings described here since need administrator privileges. instructions specifically Windows 2000, interface similar other versions Windows.
TIP: using that already network, will disconnect from that network these sample programs. Write down existing settings before changing them facilitate restoring them when finished with sample programs reconnect your network.
control panel (Start Settings Control Panel), then double-click Network icon. Select network interface card used Ethernet interface intend (e.g., TCP/IP Xircom Credit Card Network Adapter) click "Properties" button. Depending which version Windows your running, have select "Local Area Connection" first, then click "Properties" button bring Ethernet interface dialog. Then "Configure" your interface card "10Base-T Half-Duplex" "Auto-Negotiation" connection "Advanced" tab.
NOTE: Your network interface card will likely have different name.
select Address tab, check Specify Address, select TCP/IP click "Properties" assign address your computer (this will disable "obtain address automatically"):
Address 10.10.6.101 Netmask 255.255.255.0 Default gateway 10.10.6.1
Click <OK> <Close> exit various dialog boxes. RCM2200 Board
10.10.6.101 Netmask 255.255.255.0 User's
Ethernet crossover cable
Direct Connection RCM2200 Board
PINGME.C Sample Programs
Connect crossover cable from your computer's Ethernet port RCM2200 board's RJ-45 Ethernet connector. Open this sample program from SAMPLES\TCPIP\ICMP folder, compile program, start running under Dynamic When program starts running, green light RCM2200 board should indicate Ethernet connection made. (Note: light does light, have crossover cable, using perhaps power hub.) next step ping board from your This done bringing MSDOS window running pingme program:
Start typing entry
Notice that light flashes RCM2200 board while ping taking place, indicates transfer data. ping routine will ping board four times write summary message screen describing operation.
6.10 Running More Sample Programs With Direct Connect
sample programs discussed here Dynamic SAMPLES\RCM2200\ folder. CONSOLE.C-Demonstrates features ZCONSOLE.LIB command-oriented console library. This program also conjunction with SERDCLIENT.C SPCLIENT.C. ETHCORE1.C-Creates "devices" (lights) "buttons" browser toggle them. Users change status lights. RCM2200 plugged into MASTER slot Prototyping Board, lights Prototyping Board will track ones browser. long have modified TCPCONFIG macro sample program, enter following server address your browser bring page served sample program.
Otherwise TCP/IP settings entered TCP_CONFIG.LIB library. MYECHO.C-Operates RCM2200 basic server. When client connects, echoes back data sent client. SERDCLIENT.C-Demonstrates ability Rabbit-based target board update files server RCM2200 board connected Serial Port This program conjunction with CONSOLE.C. SPCLIENT.C-Demonstrates ability Rabbit-based target board update files server RCM2200 board connected slave port. This program conjunction with CONSOLE.C.
6.11 Where From Here?
NOTE: purchased your RCM2200 through distributor through Rabbit partner, contact distributor partner first technical support.
there problems this point: Dynamic Help menu further assistance with Dynamic Check Rabbit Technical Bulletin Board forums www.rabbit.com/support/bb/ www.rabbit.com/forums/. Technical Support e-mail form www.rabbit.com/support/. sample programs fine, ready Additional sample programs described Dynamic TCP/IP User's Manual. Please refer Dynamic TCP/IP User's Manual develop your applications. Introduction TCP/IP provides background information TCP/IP, available site.
APPENDIX RABBITCORE RCM2200 SPECIFICATIONS
Appendix provides specifications RCM2200, describes conformal coating.
Electrical Mechanical Characteristics
Figure shows mechanical dimensions RCM2200.
Please refer RCM2200 footprint diagram later this appendix precise header locations.
Figure A-1. RCM2200 Dimensions
NOTE: measurements inches followed millimeters enclosed parentheses. dimensions have manufacturing tolerance ±0.01" (0.25 mm).
recommended that allow "exclusion zone" 0.04" around RCM2200 directions when RCM2200 incorporated into assembly that includes other printed circuit boards. "exclusion zone" 0.16" recommended below RCM2200 when RCM2200 plugged into another assembly using shortest connectors headers Figure shows this "exclusion zone."
Figure A-2. RCM2200 "Exclusion Zone"
Table lists electrical, mechanical, environmental specifications RCM2200.
Table A-1. RabbitCore RCM2200 Specifications
Parameter Microprocessor Ethernet Port (10/100-compatible with 10Base-T interface) Flash Memory SRAM Backup Battery RJ-45, LEDs RCM2200 RCM2210 RCM2250 RCM2260
Rabbit 2000® 22.1 signals only RJ-45, LEDs 256K 512K signals only 256K 512K
Connection user-supplied backup battery support SRAM) parallel lines grouped five 8-bit ports (shared with serial ports): configurable fixed inputs fixed outputs startup mode, reset Status, reset address lines, data lines, read/write Four CMOS-compatible ports. ports configurable clocked ports, dedicated RS-232 programming port. Maximum burst rate CLK/32 Maximum sustained rate CLK/64 slave port allows RCM2200 used intelligent peripheral device slaved master processor, which either another Rabbit 2000 other type processor Five 8-bit timers cascadable pairs, 10-bit timer with match registers that each have interrupt 4.75 5.25 -40°C +70°C 95%, noncondensing headers pitch 1.60" 2.30" 0.86"
Additional Inputs Additional Outputs Memory, Interface Serial Ports
Slave Interface Real-Time Clock Timers Watchdog/Supervisor Power Operating Temperature Humidity Connectors Board Size
A.1.1 Headers RCM2200 uses headers physical connection other boards. headers with spacing. programming port, header with spacing. Figure shows layout another board RCM2200 plugged into. These values relative header connectors. A.1.2 Physical Mounting 9/32" standoff with 4-40 screw recommended attach RCM2200 user board hole position shown Figure A-3. Either plastic hardware, insulating washers keep metal hardware from shorting signals RCM2200.
Figure A-3. User Board Footprint RCM2200
must careful attention loading when designing interface RCM2200. This section provides loading information external devices. Table lists capacitance various RCM2200 ports.
Table A-2. Capacitance Rabbit 2000 Ports
Ports Parallel Ports Data Lines BD0-BD7 Address Lines BA0-BA12 Input Capacitance (pF) Output Capacitance (pF)
Figure shows typical timing diagram Rabbit 2000 microprocessor external read write cycles.
External Read extra wait states)
/CSx /IOCSx /IORD /BUFEN D[7:0]
TBUFEN Tsetup valid Thold
External Write extra wait states)
/CSx /IOCSx /IOWR /BUFEN D[7:0]
TBUFEN valid TDHZV
Figure A-4. External Read Write Cycles-No Extra Wait States
Tadr time required address output reach This time depends loading. Tsetup data setup time relative clock. Tsetup specified from 30%/70% voltage level.
Table lists parameters shown these figures provides minimum measured values.
Table A-3. Memory External Read/Write Parameters
Parameter Read Parameters Tadr Tsetup Thold Tadr Description Time from clock rising edge address valid Data read setup time Data read hold time Time from clock rising edge address valid Max. Min. Min. Max. Value
Data write hold time from /WEx Min. /IOWR
Rabbit 2000 Characteristics
Table outlines characteristics Rabbit 2000 over recommended operating temperature range from -40°C +85°C,
Table A-4. Volt Characteristics
Symbol Parameter Input Leakage High Input Leakage pull-up) Output Leakage pull-up) CMOS Input Voltage CMOS Input High Voltage CMOS Switching Threshold 25°C Table (sinking) Test Conditions VDD, VSS, VSS, Units
CMOS Output Voltage
Table CMOS Output High Voltage (sourcing)
Buffer Sourcing Sinking Limit
Unless otherwise specified, Rabbit buffers capable sourcing sinking current full switching speed. Full switching assumes 25.8 clock capacitive loading address data lines less than pin. Address data rated each. Pins A1-A12 D1-D7 each rated absolute maximum operating voltage Table shows output drive limits parallel buffers when Rabbit 2000 used RCM2200.
Table A-5. Buffer Sourcing Sinking Capability
Output Drive Name Sourcing*/Sinking Limits (mA) Full Switching SRC/SNK 16/16 Maximum Output Drive SRC/SNK 12/12 12/12 12/12 12/12 25/25 12/12
Output Port Name
[7:0] [7:6] [5:4] [3:0]**
maximum sourcing current buffers between pins maximum sinking current buffers between pins maximum output drive buffers must adjusted take into consideration current demands made switching outputs, capacitive loading switching outputs, switching voltage. current drawn switching nonswitching must exceed limits specified first footnotes. combined sourcing from Port [7:0] need adjusted exceed sourcing limit requirement specified Note
Figure shows header locations used configure various RCM2200 options jumpers.
Figure A-5. Location RCM2200 Configurable Positions
Table lists configuration options.
Table A-6. RCM2200 Jumper Configurations
Header Description Flash Memory Size (U8-RCM2250 only) Flash Memory Size (U3) Flash Memory Bank Select (U7-not installed) Flash Memory Size (U7-not installed) SRAM Size 512K 512K Normal Mode Bank Mode 128K/256K 512K 128K RCM2200 RCM2210 RCM2250 Pins Connected 128K/256K 512K Normal Mode Bank Mode Normal Mode Bank Mode 128K/256K Factory Default
Flash Memory Bank Select (U8-RCM2250 only)
Flash Memory Bank Select (U3)
NOTE: jumper connections made using surface-mounted resistors.
areas around real-time clock crystal oscillator Corning silicone-based 1-2620 conformal coating applied. conformally coated area shown Figure A-6. conformal coating protects these high-impedance circuits from effects moisture contaminants over time.
Conformally coated area
Figure A-6. RCM2200 Areas Receiving Conformal Coating
components conformally coated area replaced using standard soldering procedures surface-mounted components. conformal coating should then applied offer continuing protection against effects moisture contaminants.
NOTE: more information conformal coatings, refer Technical Note TN303, Conformal Coatings.
APPENDIX PROTOTYPING BOARD
Appendix describes features accessories Prototyping Board, explains Prototyping Board demonstrate RCM2200 build prototypes your circuits.
Prototyping Board included Development makes easy connect RCM2200 module power supply workstation development. also provides some basic peripherals (switches LEDs), well prototyping area more advanced hardware development. most basic level evaluation development, Prototyping Board used without modification. progress more sophisticated experimentation hardware development, modifications additions made board without modifying damaging RCM2200 module itself. Prototyping Board shown below Figure B-1, with main features identified.
RCM2200/RCM2300 User Reset RCM2200/RCM2300 Slave Module Power Switch Switches Master Module Voltage Connectors Input Connectors Regulator Power User LEDs RS-232 Signal Header
Through-Hole Prototyping Area Master Module Extension Headers Slave Module Extension Headers
Prototyping Area Buses
Figure B-1. RCM2200/RCM2300 Prototyping Board
B.1.1 Prototyping Board Features Power Connection-A 3-pin header provided connection power supply. Note that symmetrical, with both outer pins connected ground center connected input. cable wall transformer provided with North American version development ends connector that correctly connected either orientation. Users providing their power supply should ensure that delivers 8-24 less than voltage regulator will warm while use. (Lower supply voltages will reduce thermal dissipation from device.) Regulated Power Supply-The voltage provided POWER jack routed linear voltage regulator, which provides stable power RCM2200 module Prototyping Board. Shottky diode protects power supply against damage from reversed power connections. Power LED-The power lights whenever power connected Prototyping Board. Reset Switch-A momentary-contact, normally open switch connected directly RCM2200's /RES pin. Pressing switch forces hardware reset system. Switches LEDs-Two momentary-contact, normally open switches connected pins master RCM2200 module read inputs sample applications. LEDs connected pins master module, driven output indicators sample applications. LEDs switches connected through JP1, which traces shorting adjacent pads together. These traces disconnect LEDs, 8-pin header soldered into permit their selective reconnection with jumpers. Figure details. Expansion Areas-The Prototyping Board provided with several unpopulated areas expansion interfacing capabilities. next section details. Prototyping Area-A generous prototyping area been provided installation through-hole components. Ground buses around edge this area. area surface-mount devices provided right through-hole area. (Note that there device pads both bottom Prototyping Board.) Each connected hole designed accept solid wire. Slave Module Connectors-A second connectors pre-wired permit installation second, slave RCM2200 RCM2300 module. This capability reserved future use, although schematics this manual contain details experienced developer will need implement master-slave system.
B.1.2 Prototyping Board Expansion Prototyping Board comes with several unpopulated areas, which filled with components suit user's development needs. After have experimented with sample programs from RabbitCore RCM2200 User's Manual, wish expand board's capabilities further experimentation development. Refer Prototyping Board schematic (090-0122) details necessary. Module Extension Headers-The complete sets both Master Slave RabbitCore modules duplicated these sets headers. Developers solder wires directly into appropriate holes, more flexible development, 26-pin header strips soldered into place. Figure header pinouts. RS-232-Two 2-wire 4-wire RS-232 serial port added Prototyping Board installing driver four capacitors. Maxim MAX232CPE driver chip similar device recommended Refer Prototyping Board schematic additional details. 10-pin 0.1-inch spacing header strip installed permit connection ribbon cable leading standard DE-9 serial connector. RS-232 port components mount underside Prototyping Board, between Master module connectors.
NOTE: RS-232 chip, capacitors header strip available from electronics distributors such Digi-Key.
Prototyping Board Component Header-Four pins from module hardwired Prototyping Board LEDs switches.
Mechanical Dimensions Layout
Figure shows mechanical dimensions layout RCM2200 Prototyping Board.
Figure B-2. RCM2200 Prototyping Board Dimensions
Table lists electrical, mechanical, environmental specifications Prototyping Board.
Table B-1. RCM2200 Prototyping Board Specifications
Parameter Board Size Operating Temperature Humidity Input Voltage Specification 4.25" 5.25" 1.00" (108 -40°C +70°C 95%, noncondensing
Maximum Current Draw 25°C, (including user-added circuits) Prototyping Area Standoffs/Spacers 2.4" 4.0" throughhole, 0.1" spacing, additional space components accept 6-32 screws
RCM2200 requires regulated 0.25 power source operate. Depending amount current required application, different regulators used supply this voltage. Prototyping Board onboard 7805 equivalent linear regulator that easy use. major drawback inefficiency, which directly proportional voltage drop across voltage drop creates heat wastes power. switching power supply used applications where better efficiency desirable. LM2575 example easy-to-use switcher. This part greatly reduces heat dissipation regulator. drawback using switcher increased cost. Prototyping Board itself protected against reverse polarity Shottky diode shown Figure B-3.
LINEAR POWER SUPPLY
Figure B-3. Prototyping Board Power Supply
Using Prototyping Board
Prototyping Board actually both demonstration board prototyping board. demonstration board, used demonstrate functionality RCM2200 right without modifications either board. There jumpers switches configure misconfigure Prototyping Board that initial setup very straightforward. Prototyping Board comes with basic components necessary demonstrate operation RCM2200. LEDs (DS2 DS3) connected PE7, switches connected demonstrate interface Rabbit 2000 microprocessor. Reset switch hardware reset RCM2200.
maximize availability RCM2200 resources, demonstration hardware (LEDs switches) Prototyping Board disconnected. This done cutting traces below silk-screen outline header bottom side Prototyping Board. Figure shows four places where cuts should made. traces between rows shown. exacto knife would work nicely traces. Alternatively, small standard screwdriver carefully forcefully used wipe through traces.Use jumpers across positions need reconnect devices later
VBAT PE3/TPIN+ /IOWR
Figure B-4. Where Traces Permanently Disable Demonstration Hardware Prototyping Board
power (PWR) RESET switch remain connected. Jumpers across appropriate pins header used reconnect specific demonstration hardware later needed.
Table B-2. Prototyping Board Jumper Settings
Header Pins Description Switch Switch
Note that pinout location bottom side Prototyping Board (shown Figure B-4) mirror image top-side pinout. Prototyping Board provides user with RCM2200 connection points brought conveniently labeled points headers Prototyping Board. Small medium
circuits prototyped using point-to-point wiring with wire between prototyping area holes locations holes spaced 0.1" (2.5 mm), 40-pin headers sockets installed pinouts locations which correspond headers shown Figure B-5.
TPOUTLNK /IORD TPINPE4 TPOUT+ /IOWR TPIN+ /RES
Note: These pinouts correspond MASTER/SLAVE positions respectively.
Figure B-5. RCM2200 Prototyping Board Pinout (Top View)
small holes also provided surface-mounted components that installed right prototyping area. There 2.4" through-hole prototyping space available Prototyping Board. traces along edge Prototyping Board easy access. also provided lower right alligator clips probes.
Figure B-6. Traces Along Edge Prototyping Board
B.4.1 Adding Other Components There room Prototyping Board user-supplied RS-232 transceiver chip location 10-pin header serial interfacing external devices location Maxim MAX232 transceiver recommended. When adding MAX232 transceiver position must also charge storage capacitors positions C3-C7 shown Figure B-7.
Figure B-7. Location User-Supplied RS-232 Transceiver Charge Storage Capacitors Back Side Prototyping Board
NOTE: board that supplied with DeviceMate Development already RS-232 chip storage capacitors installed, called DeviceMate Demonstration Board.
There sets pads that used surface mount prototyping SOIC devices. silk screen layout separates rows into 16-pin devices (three each side). However, there pads between silk screen layouts giving user 52-pin SOIC layouts with spacing. There sets pads that used 6-pin SOT23 packages. There also sets pads that used resistors capacitors 0805 package. Each component every pads connected hole which wire soldered (standard wire wrap wire soldered point-to-point wiring Prototyping Board). Because traces very thin, carefully determine which holes connected which surface-mount pad. There also space above space RS-232 transceiver that accommodate large surface-mounted SOIC component.
APPENDIX POWER SUPPLY
Appendix provides information current requirements RCM2200, includes some background chip select circuit used power management. Power Supplies
RCM2200 requires regulated 0.25 power source. RabbitCore design presumes that voltage regulator user board, that power made available RabbitCore board through headers RCM2200 with loading outputs operating 22.1 typically draws RCM2200 will consume additional when programming cable used connect programming header, C.1.1 Battery-Backup Circuits RCM2200 does have battery, there provision customer-supplied battery back SRAM keep internal Rabbit 2000 real-time clock running. Header shown Figure C-1, allows access external battery. This header makes possible connect external power supply. This allows SRAM internal Rabbit 2000 real-time clock retain data with RCM2200 powered down.
Figure C-1. External Battery Connections Header
lithium battery with nominal voltage minimum capacity recommended. lithium battery strongly recommended because nearly constant nominal voltage over most life.
drain battery RCM2200 typically when other power supplied. battery used, battery last more than years:
actual life your application will depend current drawn components RCM2200 storage capacity battery. Note that shelf life lithium battery ultimately years. RCM2200 does drain battery while powered normally. battery-backup circuit serves three purposes: reduces battery voltage SRAM real-time clock, thereby limiting current consumed real-time clock lengthening battery life. ensures that current flow only battery prevent charging battery. voltage, VOSC, supplied which keeps 32.768 oscillator working when voltage begins drop. VRAM nearly equal (<100 typically when power supplied RCM2200. Figure shows RCM2200 battery-backup circuit.
Figure C-2. RCM2200 Battery-Backup Circuit
C.1.2 Reset Generator RCM2200 uses reset generator, reset Rabbit 2000 microprocessor when voltage drops below voltage necessary reliable operation. reset occurs between 4.50 4.75 typically 4.63 RCM2200 reset output, header
Chip Select Circuit
RCM2200 provision battery backup, which kicks keep VRAM from dropping below When RCM2200 powered, battery keeps SRAM memory contents real-time clock (RTC) going. SRAM powerdown mode that greatly reduces power consumption. This powerdown mode activated raising chip select (CS) signal line. Normally SRAM requires operate. However, only required data retention powerdown mode. Thus, when power removed from circuit, battery voltage needs provided both SRAM power signal line. control switch accomplishes this task signal line. Figure shows schematic chip select control switch.
Figure C-3. Chip Select Control Switch
powered-up condition, control switch must allow processor's chip select signal /CS1 control SRAM's signal /CSRAM. with power applied, /CSRAM must same signal /CS1, with power removed, /CSRAM must held high (but only needs high battery voltage). MOSFET transistors with opposing polarity. They both turned when power applied circuit. They allow signal pass from processor SRAM that processor periodically access SRAM. When power removed from circuit, transistors will turn isolate /CSRAM from processor. isolated /CSRAM line pullup resistor VRAM (R28). This pullup resistor keeps /CSRAM VRAM voltage level (which under power condition backup battery's regulated voltage little more than Transistors opposite polarity that rail-to-rail voltages passed. When /CS1 voltage low, will conduct. When /CS1 voltage high, will conduct. takes time transistors turn creating propagation delay. This delay typically very small, about
APPENDIX SAMPLE CIRCUITS
This appendix details several basic sample circuits that used with RCM2200 modules.
RS-232/RS-485 Serial Communication Keypad Connections External Memory Converter
RS-232/RS-485 Serial Communication
RS-232 RCM2200 Prototyping Board
RCM2200 Prototyping Board
Figure D-1. Sample RS-232 RS-485 Circuits
Sample Program: PUTS.C SAMPLES\RCM2200.
RCM2200 Prototyping Board
Figure D-2. Sample Keypad Connections
Sample Program: KEYLCD.C SAMPLES\RCM2200.
RCM2200 Prototyping Board
Figure D-3. Sample Connections
Sample Program: KEYLCD.C SAMPLES\RCM2200.
sample circuit used with external memory device. Larger SRAMs written using this scheme using other available Rabbit 2000 ports (parallel ports address lines.
RCM2200 Prototyping Board
D0D7 /IOWR /IORD
Figure D-4. Sample External Memory Connections
Sample Program: EXTSRAM.C SAMPLES\RCM2200.
output will initially -10.05 after first inverting op-amp, +10.05 after second inverting op-amp. lows produce out, produces out. output scaled changing feedback resistors op-amps. example, changing 5.11 will produce output from Op-amps with very input offset voltage recommended.
PA0PA7 CT0CT7 80.6 40.2 5.11
Figure D-5. Sample Converter Connections
additional information online documentation
spectrum spreader feature Ethernet cables Ethernet connections 10Base-T 10Base-T Ethernet card additional resources Ethernet cables Ethernet addresses steps Ethernet port pinout exclusion zone external interrupts
Prototyping Board jumper configurations flash memory size) flash memory bank select) flash memory bank select) flash memory size) flash memory bank select) flash memory size) (SRAM size) jumper locations
backup-battery circuit external battery connections battery life battery-backup circuit reset generator loading
clock doubler conformal coating
Development DeviceMate RCM2200 digital buffer sourcing sinking limits memory interface SMODE0 SMODE1 digital inputs digital outputs dimensions Prototyping Board RCM2200 Dynamic add-on modules Rabbit Embedded Security Pack sample programs standard features debugging telephone-based technical support upgrades patches port settings
features Prototyping Board flash memory using second 256K flash memory flash memory addresses user blocks
PCLK output physical mounting pinout Ethernet port Prototyping Board RCM2200 alternate configurations power supplies chip select circuit power supply connections Program Mode switching modes programming cable PROG connector RCM2200 connections programming port
hardware connections install RCM2200 Prototyping Board power supply programming cable hardware reset
buffer sourcing sinking limits addresses address
Prototyping Board adding RS-232 transceiver dimensions expansion area features .62, header location mounting RCM2200 optional connections Rabbit 2000 parallel ports optional header pinout power supply power supply connections prototyping area specifications traces
Rabbit subsystems RCM2200 mounting Prototyping Board reset Mode switching modes running TCP/IP sample programs
sample circuits converter external memory sample programs getting know RCM2200 EXTSRAM.C FLASHLED.C .12, FLASHLEDS.C .12, KEYLCD.C TOGGLELED.C .12, address PONG.C RCM2200 serial communication MASTER.C PUTS.C SLAVE.C
TCP/IP CONSOLE.C ETHCORE1.C MYECHO.C PINGME.C running TCP/IP sample programs SERDCLIENT.C SPCLIENT.C TCPIP serial communication serial ports Ethernet port programming port software drivers libraries PACKET.LIB RS232.LIB TCP/IP macros USE_2NDFLASH_CODE PCLK output sample programs serial communication drivers TCP/IP drivers using second 256K flash memory specifications loading digital buffer sourcing sinking limits dimensions electrical, mechanical, environmental exclusion zone header footprint headers physical mounting Prototyping Board Rabbit 2000 characteristics Rabbit 2000 timing diagram relative locations
spectrum spreader subsystems digital inputs outputs switching modes
technical support troubleshooting changing port connections
USB/serial port converter Dynamic settings user block function calls readUserBlock writeUserBlock
090-0120 RCM2200 Schematic
090-0122 RCM2200 Prototyping Board Schematic
090-0128 Programming Cable Schematic
information provided above access latest schematics directly.
Other recent searches
RSC-4x - RSC-4x RSC-4x Datasheet
MMBTA44LT1 - MMBTA44LT1 MMBTA44LT1 Datasheet
MMBTA94LT1 - MMBTA94LT1 MMBTA94LT1 Datasheet
M35046-XXXSP - M35046-XXXSP M35046-XXXSP Datasheet
DS3675-1 - DS3675-1 DS3675-1 Datasheet
SP8790 - SP8790 SP8790 Datasheet
DIP05-1B72-13L - DIP05-1B72-13L DIP05-1B72-13L Datasheet
DIP05-1B66-13L - DIP05-1B66-13L DIP05-1B66-13L Datasheet
B3608 - B3608 B3608 Datasheet
APM2014N - APM2014N APM2014N Datasheet
ACPF-7002 - ACPF-7002 ACPF-7002 Datasheet
74VHC138 - 74VHC138 74VHC138 Datasheet