background image

RabbitCore RCM3700 User’s Manual

30

4.1.1  Memory I/O Interface

The Rabbit 3000 address lines (A0–A18) and all the data lines (D0–D7) are routed inter-
nally to the onboard flash memory and SRAM chips. I/0 write (/IOWR) and I/0 read 
(/IORD) are available for interfacing to external devices.

Parallel Port A can also be used as an external I/O data bus to isolate external I/O from the 
main data bus. Parallel Port B pins PB2–PB5 and PB7 can also be used as an external 
address bus.

When using the external I/O bus for either Ethernet or the LCD/keypad module on the 
Prototyping Board, or for any other reason, you must add the following line at the begin-
ning of your program.

#define PORTA_AUX_IO    

// required to enable external I/O bus

4.1.2  Other Inputs and Outputs

/RES is an output from the reset circuitry that can be used to reset other peripheral devices. 
This pin can also be used to reset the microprocessor.

Summary of Contents for RCM3700

Page 1: ...RabbitCore RCM3700 C Programmable Core Module with Ethernet Serial Flash and Enhanced Software User s Manual 019 0136_L...

Page 2: ...ved Digi International reserves the right to make changes and improvements to its products without providing notice Trademarks Rabbit RabbitCore and Dynamic C are registered trademarks of Digi Interna...

Page 3: ...ic C 13 2 4 Run a Sample Program 13 2 4 1 Troubleshooting 13 2 5 Where Do I Go From Here 14 2 5 1 Technical Support 14 Chapter 3 Running Sample Programs 15 3 1 Introduction 15 3 2 Sample Programs 17 3...

Page 4: ...ample Programs 70 6 4 2 How to Set Up your Computer for Direct Connect 71 6 5 Run the PINGME C Sample Program 72 6 6 Running Additional Sample Programs With Direct Connect 72 6 6 1 RabbitWeb Sample Pr...

Page 5: ...ontrast Adjustments for All Boards 125 C 3 Keypad Labeling 126 C 4 Header Pinouts 127 C 4 1 I O Address Assignments 127 C 5 Install Connectors on Prototyping Board 128 C 6 Mounting LCD Keypad Module o...

Page 6: ...ich it is mounted The RCM3700 can interface with all kinds of CMOS compatible digital devices through the motherboard The Development Kit and the Ethernet Connection Kit have what you need to design y...

Page 7: ...one asynchronous SPI serial port Supports 1 15 Mbps IrDA transceiver There are three RCM3700 production models Table 1 below summarizes their main features The RCM3700 is programmed over a standard P...

Page 8: ...anguage program development and debugging Rabbit Field Utility to download compiled Dynamic C bin files and cloning board options for rapid production loading of programs Generous memory size allows l...

Page 9: ...you get your RCM3700 up and running so that you can run the sample programs to explore its capabilities and develop your own applications Development Kit Contents The RCM3700 Development Kit contains...

Page 10: ...the Dynamic C RabbitWeb FAT File System and Secure Sockets Layer SSL modules and includes Dynamic C 8 51 or a later version and an RCM3700 This enhanced software bundle facilitates the rapid developme...

Page 11: ...allation program will guide you through the installation process Most steps of the process are self explanatory Dynamic C uses a COM serial port to communicate with the target development system The i...

Page 12: ...GND GND A2 A1 D1 D3 D5 D7 GND A3 A1 D0 D2 D4 D6 GND BKLT CS LED1 LED3 LED5 GND GND A2 A0 D1 D3 D5 D7 L2 C1 C2 IR1 R1 R2 R3 R4 Rx Tx R5 R6 C3 R9 R7 R8 JP1 J1 485 GND 485 JP2 R12 R11 U3 C4 C7 C8 C10 R13...

Page 13: ...able Carefully pull on the connector to remove it from the header NOTE Be sure to use the programming cable part number 101 0542 supplied with this Development Kit the programming cable has blue shrin...

Page 14: ...r The LED above the RESET button on the Prototyping Board should light up The RCM3700 and the Prototyping Board are now ready to be used NOTE A RESET button is provided on the Prototyping Board to all...

Page 15: ...Rabbit Processor Detected Check that the RCM3700 is powered correctly the red power lamp on the Prototyping Board should be lit when the RCM3700 is mounted on the Prototyping Board and the AC adapter...

Page 16: ...ud rate 2 5 Where Do I Go From Here If the sample program ran fine you are now ready to go on to other sample programs and to develop your own applications The source code for the sample programs is p...

Page 17: ...the introductory pages of the Dynamic C User s Manual for a suggested reading list In order to run the sample programs discussed in this chapter and elsewhere in this manual 1 Your RCM3700 must be plu...

Page 18: ...M3700 Prototyping Board or to run another RCM3700 RabbitCore module on the RCM3720 Prototyping Board by adding the following macro to the sample program you will be running To run an RCM3720 RabbitCor...

Page 19: ...used on the RCM3700 Prototyping Board are described in Appendix C Additional sample programs are available online at www rabbit com support down loads downloads_prod shtml DIO c Demonstrates the digi...

Page 20: ...rogram on one Prototyping Board assembly then remove the programming cable and press the RESET button on the Prototyping Board so that the first RabbitCore module is operating in the Run mode Then con...

Page 21: ...be found in the SAMPLES RCM3700 SERIAL and the SAMPLES RCM3720 SERIAL folders NOTE PE5 is set up to enable disable the RS 232 chip on the RCM3700 Prototyping Board This pin will also be toggled when...

Page 22: ...rogram demonstrates 5 wire RS 232 serial communication with flow control on Serial Port C and data flow on Serial Port D To set up the Prototyping Board you will need to tie TxD and RxD together on th...

Page 23: ...ake sure that Serial Port E is set up as an RS 485 serial port pins 3 5 and pins 4 6 on header JP2 must be jumpered together using the 2 mm jumpers supplied in the Development Kit SIMPLE485SLAVE C Thi...

Page 24: ...are connected on header JP8 AD_CALSE_CHAN C Demonstrates how to recalibrate one single ended analog input channel with one gain using two known voltages to generate the calibration constants for that...

Page 25: ...calculate temperature for display to the STDIO window This sample program assumes that the thermistor is the one included in the Development Kit whose values for beta series resistance and resistance...

Page 26: ...EEPROM in flash with using a serial utility such as Tera Term UPLOADCALIB C Demonstrates how to read calibrations constants from the user block in flash memory and then transmitting the file using a...

Page 27: ...and electrical specifications Figure 4 shows the Rabbit based subsystems designed into the RCM3700 Figure 4 RCM3700 Subsystems SRAM 11 MHz osc 32 kHz osc RabbitCore Module Customer supplied external...

Page 28: ...ure 5 RCM3700 Pinouts Header J1 is a standard 2 x 20 IDC header with a nominal 0 1 pitch Note These pinouts are as seen on the Bottom Side of the module PA6 PA4 PA2 PA0 PF0 PB2 PB4 PB7 PF5 PF7 PC1 PG2...

Page 29: ...ists the Rabbit 3000 factory defaults and the alternate configurations Port A Port B Port D Ethernet Port Port E PA0 PA7 PB0 PB7 PB2 PB5 PE0 PE1 PE4 PE5 PE7 PD4 PD5 RES IOWR Watchdog 11 Timers Clock D...

Page 30: ...l Address 1 Slave port read 14 PB4 Input Output IA2 SA0 External Address 2 Slave Port Address 0 15 PB5 Input Output IA3 SA1 External Address 3 Slave Port Address 1 16 PB7 Input Output IA5 SLAVEATTN Ex...

Page 31: ...I0 INT0A I O Strobe 0 Interrupt 0A 30 PG7 Input Output RXE Serial Port E 31 PG6 Input Output TXE 32 IOWR Output External write strobe 33 IORD Output External read strobe 34 PD4 Input Output ATXB Alter...

Page 32: ...ate external I O from the main data bus Parallel Port B pins PB2 PB5 and PB7 can also be used as an external address bus When using the external I O bus for either Ethernet or the LCD keypad module on...

Page 33: ...serial port once application development has been completed and the RCM3700 is operating in the Run Mode Serial Ports C and D can also be operated in the clocked serial mode In this mode a clock line...

Page 34: ...bered in reverse to the order used here Figure 8 RJ 45 Ethernet Port Pinout Two LEDs are placed next to the RJ 45 Ethernet jack one to indicate an Ethernet link LINK and one to indicate Ethernet activ...

Page 35: ...3000 is either cold booted or the program begins executing at address 0x0000 The status pin is used by Dynamic C to determine whether a Rabbit microprocessor is present The status output has three di...

Page 36: ...Rx Tx R5 R6 C3 R9 R7 R8 JP1 J1 485 GND 485 JP2 R12 R11 U3 C4 C7 C8 C10 R13 C11 U4 C5 C6 C9 J2 GND IORD PB5 PB3 PA0 PA6 PB0 RES 5V PF4 PF6 PC1 PG2 PC0_TXD PE5 PE1 PG7_RXE PD4 VBAT PA4 PA2 IOWR PE7 PB4...

Page 37: ...has been programmed successfully remove the programming cable from the programming connector and reset the RCM3700 The RCM3700 may be reset by cycling the power off on or by pressing the RESET button...

Page 38: ...ng and the maximum clock speed 1 Select the Defines tab from the Dynamic C Options Project Options menu 2 Add the line CLOCK_DOUBLED 0 to always disable the clock doubler The clock doubler is enabled...

Page 39: ...k Select jumper configuration option based on 0 surface mounted resistors exists at header JP1 on the RCM3700 modules This option used in conjunction with some configuration macros allows Dynamic C to...

Page 40: ...emory which is limited to about 100 000 write cycles The disadvantage is that the code and data might not both fit in RAM NOTE An application can be compiled in RAM but cannot run standalone from RAM...

Page 41: ...ing a special format for library functions Standard debugging features Breakpoints Set breakpoints that can disable interrupts Single stepping Step into or over functions at a source or machine code l...

Page 42: ...source code is in the RCM37xx LIB library in the Dynamic C SAMPLES RCM3700 or the SAMPLES RCM3720 folder depending on which Prototyping Board you will be using if you need to modify it for your own b...

Page 43: ...ng message will be displayed to inform you of that You can disable the warning by commenting out the line indicated by the compiler To run an RCM3700 RabbitCore module other than the RCM3720 on an RCM...

Page 44: ...LN1 Input AIN1 LN2 Input AIN2 LN3 Input AIN3 LN4 Input AIN4 LN5 Input AIN5 LN6 Input AIN6 LN7 Input AIN7 RESET Input Board reset device RISE FALL Input Pulled up for SCLK active on rising edge PIO0 In...

Page 45: ...nfigure the registers addressed by the instruction byte Enter 0 if you are performing a read operation For example i anaInConfig 0x07 0x3b 0 write ref osc reg and enable baud is the serial clock trans...

Page 46: ...as follows D7 1 D6 D4 Gain Code D3 D0 Channel Code Use the following calculation and the tables below to determine cmd cmd 0x80 gain_code 16 channel_code len the output bit length is always 12 for 11...

Page 47: ...Manual 45 A value corresponding to the voltage on the analog input channel 0 2047 for 11 bit conversions bit 12 for sign 1 overflow or out of range 2 conversion incomplete busy bit timeout SEE ALSO a...

Page 48: ...de is the mode of operation SINGLE single ended input DIFF differential input mAMP 4 20 mA input gaincode is the gain code of 0 to 7 unsigned int anaIn unsigned int channel int opmode int gaincode cha...

Page 49: ...corresponding to the voltage on the analog input channel 0 2047 for 11 bit A D conversions signed 12th bit ADOVERFLOW defined macro 4096 if overflow or out of range 4095 if conversion is incomplete or...

Page 50: ..._IN7 opmode is the mode of operation SINGLE single ended input DIFF differential input mAMP milliamp input gaincode is the gain code of 0 to 7 int anaInCalib int channel int opmode int gaincode int va...

Page 51: ...converter channel value 0 to 20 V or 4 to 20 mA value2 is the second A D converter channel value 0 2047 volts2 is the voltage or current corresponding to the first A D converter channel value 0 to 20...

Page 52: ...defined macro 4096 if overflow or out of range SEE ALSO anaInCalib anaIn anaInmAmps brdInit float anaInVolts unsigned int channel unsigned int gaincode Channel Code Single Ended Input Lines Negative...

Page 53: ...ng to the voltage on the analog input channel ADOVERFLOW defined macro 4096 if overflow or out of range SEE ALSO anaInCalib anaIn anaInmAmps brdInit float anaInDiff unsigned int channel unsigned int g...

Page 54: ...umber 0 7 RETURN VALUE A current value between 4 00 and 20 00 mA corresponding to the current on the analog input channel ADOVERFLOW defined macro 4096 if overflow or out of range SEE ALSO anaInCalib...

Page 55: ...tart of differential analog input channels ADC_CALIB_ADDRM address start of milliamp analog input channels NOTE This function cannot be run in RAM PARAMETER channel is the analog input channel number...

Page 56: ...meter is ignored when channel is ALLCHAN RETURN VALUE 0 if successful 1 if address is invalid or out of range 2 if there is no valid ID block SEE ALSO anaInEEWr anaInCalib Gain Code Voltage Range V Ap...

Page 57: ...fferential analog input channels ADC_CALIB_ADDRM address start of milliamp analog input channels NOTE This function cannot be run in RAM PARAMETER channel is the analog input channel number 0 to 7 cor...

Page 58: ...them to be used as digital I O via header JP4 on the RCM3700 Prototyping Board Remember to execute the brdInit function before calling this function to prevent a runtime error PARAMETER statemask is a...

Page 59: ...state is a logic state of 0 or 1 RETURN VALUE None SEE ALSO brdInit digIn Reads the state of a digital input channel on header JP4 of the RCM3700 Prototyping Board The PIO0 to PIO3 channels on the A D...

Page 60: ...specific needs For example use WrPortI PEDDR PEDDRShadow 0x00 to set all the Port E bits as inputs or use WrPortI PEDDR PEDDRShadow 0xFF to set all the Port E bits as outputs When using the external...

Page 61: ...they are finished transmitting or receiving and nonblocking functions which must be called repeatedly until they are fin ished allowing other functions to be performed between calls For more informat...

Page 62: ...use with the board they are included with and are included at no charge as part of our low cost kits Starting with Dynamic C version 9 60 Dynamic C includes the popular C OS II real time operating sys...

Page 63: ...t 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 RCM3700 module to a network for develop...

Page 64: ...apable of direct 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 t...

Page 65: ...r situation will take place if you use a dial up line to send a packet to the Internet Windows may try to send it via the local Ethernet network if it is also valid for that network The following IP a...

Page 66: ...able to run the sample programs with out having to setup a direct connection between your computer and the RCM3700 You will also need the IP address of the nameserver the name or IP address of your m...

Page 67: ...essed in the 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 netw...

Page 68: ...he device with the desired IP address to answer with its MAC address In this way the table entry can be filled in If no device answers then the device is nonexistent or inoperative and the packet cann...

Page 69: ...the Internet These addresses can be used to perform some Internet tasks such as sending e mail or browsing the Web but it is more difficult to participate in conversations that originate elsewhere on...

Page 70: ...fic and 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 RCM3700 you have several options You can either p...

Page 71: ...require you to connect your PC and the RCM3700 board together on the same network This network can be a local private net work preferred for initial experimentation and debugging or a connection via...

Page 72: ...etmask to 255 255 255 0 and the nameserver and gateway to 10 10 6 1 If you would like to change the default values for example to use an IP address of 10 1 1 2 for the RCM3700 board and 10 1 1 1 for y...

Page 73: ...ct the network 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 y...

Page 74: ...e program BROWSELED C demonstrates how to make the RCM3700 board be a Web server Two LEDs are created on the Web page along with two buttons to toggle them Users can change the status of the lights fr...

Page 75: ...using this sample program This program demonstrates adding and monitoring passwords entered via the LCD keypad module HANGMAN_GAME C This sample program based on the children s hangman word guessing g...

Page 76: ...age has been marked as read A log of all e mail actions is kept and can be displayed in the Web browser All current e mails can also be read with the Web browser 6 6 3 Dynamic C FAT File System Rabbit...

Page 77: ...GRATION C sample program will generate a serious warning Ignore the warning because we are not using HTTP upload over SSL A macro HTTP_UPLOAD_SSL_SUPRESS_WARNING is available to suppress the warning m...

Page 78: ...procedure can be modified by the user to provide other application specific shutdown tasks 6 7 Where Do I Go From Here NOTE If you purchased your RCM3700 through a distributor or through a Rabbit par...

Page 79: ...RabbitCore RCM3700 User s Manual 77 APPENDIX A RCM3700 SPECIFICATIONS Appendix A provides the specifications for the RCM3700 and describes the conformal coating...

Page 80: ...the RCM3700 Figure A 1 RCM3700 Dimensions NOTE All measurements are in inches followed by millimeters enclosed in parentheses All dimensions have a manufacturing tolerance of 0 01 0 2 mm The mounting...

Page 81: ...mbly that includes other printed circuit boards An exclusion zone of 0 16 4 mm is recom mended below the RCM3700 when the RCM3700 is plugged into another assembly using the shortest connectors for hea...

Page 82: ...s 1 HDLC with IrDA or 1 clocked serial port SPI plus 2 HDLC serial ports with IrDA Serial Rate Maximum asynchronous baud rate CLK 8 Slave Interface A slave port allows the RCM3700 to be used as an int...

Page 83: ...ysical connection to other boards J1 is a 2 20 SMT header with a 0 1 pin spacing Figure A 3 shows the layout of another board for the RCM3700 to be plugged into These values are relative to the design...

Page 84: ...nal capacitive bus loading for the various RCM3700 output ports Be sure to add the loads for the devices you are using in your custom system and verify that they do not exceed the values in Table A 3...

Page 85: ...TE IOCSx can be programmed to be active low default or active high Tadr Tadr External I O Read one programmed wait state CLK A 15 0 External I O Write one programmed wait state CLK A 15 0 IORD valid T...

Page 86: ...h Tsetup and Thold When the spectrum spreader is enabled with the clock doubler every other clock cycle is shortened sometimes lengthened by a maximum amount given in the table above The shortening ta...

Page 87: ...um Ratings Symbol Parameter Maximum Rating TA Operating Temperature 55 to 85 C TS Storage Temperature 65 to 150 C Maximum Input Voltage Oscillator Buffer Input 5 V tolerant I O VDD 0 5 V 5 5 V VDD Max...

Page 88: ...pin The absolute maximum operating voltage on all I O is 5 5 V Table A 7 shows the AC and DC output drive limits of the parallel I O buffers when the Rabbit 3000 is used in the RCM3700 Under certain c...

Page 89: ...CM3700 Areas Receiving Conformal Coating Any components in the conformally coated area may be replaced using standard soldering procedures for surface mounted components A new conformal coating should...

Page 90: ...Core RCM3700 User s Manual 88 A 6 Jumper Configurations Figure A 6 shows the header locations used to configure the various RCM3700 options via jumpers Figure A 6 Location of RCM3700 Configurable Posi...

Page 91: ...ade using 0 surface mounted resistors Table A 8 RCM3700 Jumper Configurations Header Description Pins Connected Factory Default JP1 Flash Memory Bank Select 1 2 Normal Mode 2 3 Bank Mode JP2 SRAM Size...

Page 92: ...r IrDA transceiver LEDs and switches as well as a prototyping area for more advanced hardware development The RCM3720 Prototyping Board was designed specifically for the Ethernet Connection Kit and on...

Page 93: ...PA0 PA6 PB0 RES 5V PF4 PF6 PC1 PG2 PC0_TXD PE5 PE1 PG7_RXE PD4 VBAT PA4 PA2 IOWR PE7 PB4 PB2 PA1 PA3 PA5 PA7 PB7 PF0 PF1 PF5 PF7 PE4 PE0 PD5 PG6 TXE PC2 TXC PC3 PG3 GND RXC TXC RXE GND NC U1 C12 C13...

Page 94: ...rmally open switches are con nected to the PF4 and PB7 pins of the RCM3700 module and may be read as inputs by sample applications Two LEDs are connected to the PF6 and PF7 pins of the RCM3700 module...

Page 95: ...trip is installed at J2 allows you to connect a ribbon cable that leads to a standard DE 9 serial connector RS 485 One RS 485 serial port is available on the Prototyping Board at shrouded header J1 A...

Page 96: ...U1 C12 C13 C15 C14 L1 C17 U2 C18 U6 R14 D1 C19 D2 J4 DCIN 3 3V GND 5V 5V GND 3 3V LCD1JB LCD1JC LCD1JA U5 C16 R15 BT1 GND TXD RXD TXE GND TCM_SMT_SOCKET 5V VBAT PD5 IORD PG6_TXE PE0 PE4 PE7 PC2_TXC PC...

Page 97: ...Board Power Supply Table B 1 RCM3700 Prototyping Board Specifications Parameter Specification Board Size 4 50 6 50 0 75 114 mm 165 mm 19 mm Operating Temperature 20 C to 60 C Humidity 5 to 95 nonconde...

Page 98: ...B 4 shows the RCM3700 Prototyping Board pinouts Figure B 4 RCM3700 Prototyping Board Pinout J2 GND TxD RxD TxE GND GND RxC TxC RxE J9 J1 J7 GND IOWR PE7 PB4 PB2 PA1 PA3 PA5 PA7 PB7 PF0 PF1 PF5 PF7 PC...

Page 99: ...available on the RCM3700 Prototyping Board The holes in the prototyping area are spaced at 0 1 2 5 mm 3 3 V 5 V and GND traces run along both edges of the prototyping area for easy access Small to me...

Page 100: ...ir of A D converter input circuits The resistors form an approxi mately 10 1 attenuator and the capacitor filters noise pulses from the A D converter input Figure B 5 A D Converter Inputs The A D conv...

Page 101: ...program and so is not available for use as a differential input There is also no resistor attenuator for THERM_IN7 so its input voltage range is limited Differential measurements require two channels...

Page 102: ...e THERMISTOR C sample program which demon strates how to use analog input THERM_IN7 to calculate temperature for display to the Dynamic C STDIO window The sample program is targeted specifically for t...

Page 103: ...as a very limited output current capability The internal buffer can source up to 20 mA and sink only up to 20 A A separate buffer amplifier at U7 supplies the load current The A D converter s CONVERT...

Page 104: ...5 If a calibration is performed and the jumper is subsequently moved the corresponding input s must be recalibrated The calibration table in software only holds calibration constants based on mode cha...

Page 105: ...s Serial Port E is configured in hardware for RS 232 or RS 485 via jumpers on header JP2 as shown in Section B 1 8 Serial Port F is configured in software for the IrDA transceiver in lieu of Serial Po...

Page 106: ...Xflowcon trolOn function call from RS232 LIB where X is the serial port C or D The locations of the flow control lines are specified using a set of five macros SERX_RTS_PORT Data register for the para...

Page 107: ...485open serEopen define ser485close serEclose define ser485wrFlush serEwrFlush define ser485rdFlush serErdFlush define ser485putc serEputc define ser485getc serEgetc define EINBUFSIZE 15 define EOUTBU...

Page 108: ...C14 L1 C17 U2 C18 U6 R14 D1 C19 D2 J4 DCIN 3 3V GND 5V 5V GND 3 3V LCD1JB LCD1JC LCD1JA U5 C16 R15 BT1 GND TXD RXD TXE GND TCM_SMT_SOCKET 5V VBAT PD5 IORD PG6_TXE PE0 PE4 PE7 PC2_TXC PC0_TXD PF6 PF4...

Page 109: ...the RCM3700 Prototyping Board The signals on headers LCD1JB and LCD1JC will be available only if the LCD keypad module is installed Refer to Appendix C LCD Keypad Module for complete information CAUT...

Page 110: ...8 Jumper Configurations Figure B 10 shows the header locations used to configure the various RCM3700 Prototyp ing Board options via jumpers Figure B 10 Location of RCM3700 Prototyping Board Configurab...

Page 111: ...parking position for jumpers JP2 RS 232 RS 485 on Serial Port E 1 3 2 4 RS 232 3 5 4 6 RS 485 JP4 A D Converter Outputs 1 PIO_0 n c 2 PIO_1 n c 3 PIO_2 n c 4 PIO_3 n c JP5 ADC_IN4 ADC_IN5 1 2 Tied to...

Page 112: ...t TXC RS 232 Serial Port C High set by drivers PC3 Input RXC RS 232 Pulled up core module PC4 Output TXB Serial Flash Serial Port B High set by drivers PC5 Input RXB Serial Flash Pulled up core module...

Page 113: ...Proto Board PF5 Output RS 485 Tx enable Pulled down Proto Board PF6 Output LED DS1 High PF7 Output LED DS2 High PG0 PG1 Input Not used Pulled up Proto Board PG2 Input TXF IrDA Serial Port F Pulled up...

Page 114: ...PG7 PE1 PE5 PC3 PG3 PC1 PG2 PF7 PF5 PB7 PB4 PB2 PF0 PA0 PA2 PA4 PA6 GND GND RES PD4 IOWR PG7 PE1 PE5 PC3 PG3 PC1 PG2 PF1 PF5 PB7 PB4 PB2 PF0 PA0 PA2 PA4 PA6 5V VBAT PD5 IORD PG6 PE0 PE4 PE7 PC2 PC0 PF...

Page 115: ...and PB7 pins of the RCM3720 module and may be read as inputs by sample applications Two LEDs are connected to the PF6 and PF7 pins of the RCM3720 module and may be driven as output indicators by sampl...

Page 116: ...B3 PB0 PF1 PA1 PA3 PA5 PA7 J4 J3 J1 J6 U2 C7 C2 C9 D1 C1 C14 U3 C11 C12 C13 C10 R6 J2 BT1 RCM3720 PROTOTYPING BOARD CX1 CX2 RX7 RX8 RX9 RX10 RX11 RX12 RX13 RX14 RX15 RX16 RX5 CX14 CX13 RX6 UX9 CX12 CX...

Page 117: ...ed against reverse polarity by a Shottky diode at D1 as shown in Figure B 13 Figure B 13 RCM3720 Prototyping Board Power Supply Table B 7 RCM3720 Prototyping Board Specifications Parameter Specificati...

Page 118: ...ed to demonstrate the functionality of the RCM3720 right out of the box without any modifications Figure B 14 shows the RCM3720 Prototyping Board pinouts Figure B 14 RCM3720 Prototyping Board Pinout J...

Page 119: ...eader part number 405 0016 can be purchased through Rabbit s online store To maximize the availability of resources the demonstration hardware LEDs and switches on the Prototyping Board may be disconn...

Page 120: ...yping area the 5 V and ground traces and the surrounding area where surface mount components may be installed Small holes are provided around the surface mounted components that may be installed aroun...

Page 121: ...S 232 signal levels Note that the polarity is reversed in an RS 232 circuit so that a 5 V output becomes approximately 10 V and 0 V is output as 10 V The RS 232 transceiver also provides the proper li...

Page 122: ...or D The locations of the flow control lines are specified using a set of five macros SERX_RTS_PORT Data register for the parallel port that the RTS line is on e g PCDR SERA_RTS_SHADOW Shadow registe...

Page 123: ...rial Port C High set by drivers PC3 Input RXC RS 232 Pulled up core module PC4 Output TXB Serial Flash Serial Port B High set by drivers PC5 Input RXB Serial Flash Pulled up core module PC6 Output TXA...

Page 124: ...sed High PF6 Output LED DS1 High PF7 Output LED DS2 High PG0 PG1 Output Not used High PG2 Input Not used Pulled up core module tied to PC1 PG3 Input Not used Pulled up core module tied to PC3 PG4 PG7...

Page 125: ...le for use with the Prototyping Board They are shown in Figure C 1 Figure C 1 LCD Keypad Modules Versions Only the version without the bezel can mount directly on the Prototyping Board if you have the...

Page 126: ...1 5 W maximum The backlight adds approximately 650 mW to the power consumption Connections Connects to high rise header sockets on the RCM3700 Prototyping Board LCD Panel Size 122 x 32 graphic displa...

Page 127: ...R2 or by setting the voltage for 3 3 V by connecting the jumper across pins 3 4 on header J5 as shown in Figure C 3 Only one of these two options is available on these LCD keypad modules NOTE Older L...

Page 128: ...e old legend and insert your new legend prepared according to the template in Figure C 4 The keypad legend is located under the blue key pad matte and is accessible from the left only as shown in Figu...

Page 129: ...odule Address Assignment Address Function 0xE000 Device select base address CS 0xExx0 0xExx7 LCD control 0xExx8 LED enable 0xExx9 Not used 0xExxA 7 key keypad 0xExxB bits 0 6 7 LED driver 0xExxB bit 7...

Page 130: ...10 R13 C11 U4 C5 C6 C9 J2 GND IORD PB5 PB3 PA0 PA6 PB0 RES 5V PF4 PF6 PC1 PG2 PC0_TXD PE5 PE1 PG7_RXE PD4 VBAT PA4 PA2 IOWR PE7 PB4 PB2 PA1 PA3 PA5 PA7 PB7 PF0 PF1 PF5 PF7 PE4 PE0 PD5 PG6 TXE PC2 TXC...

Page 131: ...D5 PG6 TXE PC2 TXC PC3 PG3 GND RXC TXC RXE GND NC U1 C12 C13 C15 C14 L1 C17 U2 C18 U6 R14 D1 C19 D2 J4 DCIN 3 3V GND 5V 5V GND 3 3V LCD1JB LCD1JC LCD1JA U5 C16 R15 BT1 GND TXD RXD TXE GND TCM_SMT_SOCK...

Page 132: ...for bezel mount installation 1 Cut mounting holes in the mounting panel in accordance with the recommended dimen sions in Figure C 9 then use the bezel faceplate to mount the LCD keypad module onto th...

Page 133: ...until the gasket is compressed and the plastic bezel face plate is touching the panel Do not tighten each screw fully before moving on to the next screw Apply only one or two turns to each screw in s...

Page 134: ...U5 C16 R15 BT1 GND TXD RXD TXE GND TCM_SMT_SOCKET 5V VBAT PD5 IORD PG6_TXE PE0 PE4 PE7 PC2_TXC PC0_TXD PF6 PF4 PB5 PB3 PB0 PF1 PA1 PA3 PA5 PA7 J5 GND R16 GND RES PD4 IOWR PE1 PE5 PC3 PG3 PF7 PF5 PB7 P...

Page 135: ...pter 2 Getting Started Complete information on Dynamic C is provided in the Dynamic C User s Manual KEYPADTOLED C This program demonstrates the use of the external I O bus The program will light up an...

Page 136: ...nction call RETURN VALUE None C 9 2 LEDs When power is applied to the LCD keypad module for the first time the red LED DS1 will come on indicating that power is being applied to the LCD keypad module...

Page 137: ...FF glBacklight glSetContrast glPlotDot glBlock glPlotDot glPlotPolygon glPlotCircle glHScroll glVScroll glXFontInit glPrintf glPutChar glSetBrushType glBuffLock glBuffUnlock glPlotLine Turns the displ...

Page 138: ...lock glPlotPolygon glPlotCircle Fills a rectangular block in the LCD buffer with the pattern specified Any portion of the block that is outside the LCD display area will be clipped PARAMETERS left is...

Page 139: ...d vertical stripes for any other pattern RETURN VALUE None SEE ALSO glFillScreen glBlankScreen glBlock glBlankRegion Clears a region on the LCD display The block left and width parameters must be byte...

Page 140: ...UE None SEE ALSO glFillScreen glBlankScreen glPlotPolygon glPlotCircle Plots the outline of a polygon in the LCD page buffer and on the LCD if the buffer is unlocked Any portion of the polygon that is...

Page 141: ...coordinate of the second vertex are the coordinates of additional vertices RETURN VALUE None SEE ALSO glPlotVPolygon glFillPolygon glFillVPolygon Fills a polygon in the LCD page buffer and on the LCD...

Page 142: ...if the buffer is unlocked Any por tion of the circle that is outside the LCD display area will be clipped PARAMETERS xc is the x coordinate of the center of the circle yc is the y coordinate of the c...

Page 143: ...t endChar is the value of the last printable character in the font character set xmemBuffer is the xmem pointer to a linear array of font bitmaps RETURN VALUE None SEE ALSO glPrinf Returns the xmem ad...

Page 144: ...ctual step increments depend on the height and width of the font being displayed which are multi plied by the step values PARAMETERS stepX is the glPrintf x step value stepY is the glPrintf y step val...

Page 145: ...d string much like printf on the LCD screen Only the character codes that exist in the font set are printed all others are skipped For example b t n and r ASCII backspace tab new line and carriage ret...

Page 146: ...the LCD buffer are transferred to the LCD if the counter goes to zero RETURN VALUE None SEE ALSO glBuffLock glSwap Checks the LCD screen locking counter The contents of the LCD buffer are transferred...

Page 147: ...p xBm is the xmem RAM storage address of the bitmap RETURN VALUE None Draws bitmap in the specified space The data for the bitmap are stored in xmem This function is similar to glXPutBitmap except tha...

Page 148: ...he y coordinate of one endpoint of the line x1 is the x coordinate of the other endpoint of the line y1 is the y coordinate of the other endpoint of the line RETURN VALUE None SEE ALSO glPlotDot glPlo...

Page 149: ...divisible by 8 otherwise truncates top is the top left corner of the bitmap cols is the number of columns in the window must be evenly divisible by 8 otherwise truncates rows is the number of rows in...

Page 150: ...ple of 8 2 Parameters will be checked to verify that the scrolling area is valid The minimum scrolling area is a width of 8 pixels and a height of one row PARAMETERS left is the top left corner of bit...

Page 151: ...must be evenly divisible by 8 rows is the number of rows in the window nPix is the number of pixels to scroll within the defined window a negative value will produce a scroll up RETURN VALUE None SEE...

Page 152: ...xt window using only character row and column coordinates The text window feature provides end of line wrapping and clipping after the character in the last column and row is displayed NOTE Execute th...

Page 153: ...string is detected then it will be written center aligned to the top of the text menu box RETURN VALUE None SEE ALSO TextBorder TextGotoXY TextPutChar TextWindowFrame TextCursorLocation This function...

Page 154: ...ne SEE ALSO TextPutChar TextPrintf TextWindowFrame Gets the current cursor location that was set by a Graphic Text function NOTE Execute the TextWindowFrame function before using this function PARAMET...

Page 155: ...CD screen Only printable characters in the font set are printed escape sequences r and n are also recognized All other escape sequences will be skipped over for example b and t will cause nothing to b...

Page 156: ...um number of characters that can be displayed within the text window SEE ALSO TextGotoXY TextPrintf TextWindowFrame TextCursorLocation This functions clears the entire area within the specified text w...

Page 157: ...alue is returned when a key is pressed 0 Unused See keypadDef for default press codes cRelease is a key release code An 8 bit value is returned when a key is pressed 0 Unused cCntHold is a hold tick w...

Page 158: ...or key assignment debouncing press and release and repeat NOTE This function is also able to process an 8 8 matrix keypad RETURN VALUE None SEE ALSO keyConfig keyGet keypadDef Get next keypress RETURN...

Page 159: ...ey codes keyConfig 3 R 0 0 0 0 0 keyConfig 6 E 0 0 0 0 0 keyConfig 2 D 0 0 0 0 0 keyConfig 4 0 0 0 0 0 keyConfig 1 U 0 0 0 0 0 keyConfig 5 0 0 0 0 0 keyConfig 0 L 0 0 0 0 0 Characters are returned upo...

Page 160: ...sor related circuitry of the RCM3700 but not the Ether net circuit which requires 5 V Figure D 1 shows the power supply circuit Figure D 1 RCM3700 Power Supply The RCM3700 requires a regulated 4 75 V...

Page 161: ...other power is sup plied If a 235 mA h battery is used the battery can last about 4 5 years The actual battery life in your application will depend on the current drawn by components not on the RCM370...

Page 162: ...he voltage begins to drop D 1 3 Reset Generator The RCM3700 uses a reset generator to reset the Rabbit 3000 microprocessor when the volt age drops below the voltage necessary for reliable operation Th...

Page 163: ...Application Kit Software Modules on CD ROM 1 Dynamic C FAT File System module The Dynamic C FAT File Allocation Table File System module provides a ready to run flash based file system that works with...

Page 164: ...strate the soft ware features associated with each Dynamic C module The SAMPLES FILESYSTEM folder contains sample programs that demonstrate the use of the Dynamic C FAT file system The SAMPLES TCPIP R...

Page 165: ...33 SMODE1 33 dimensions LCD keypad module 123 LCD keypad template 126 RCM3700 78 RCM3700 Prototyping Board 94 RCM3720 Prototyping Board 114 Dynamic C 8 9 38 add on modules 8 9 60 FAT file system modu...

Page 166: ...n 139 glFontCharAddr 141 glGetBrushType 145 glGetPfStep 142 glHScroll 148 glInit 135 glLeft1 146 glPlotCircle 140 glPlotDot 146 glPlotLine 146 glPlotPolygon 139 glPlotVPolygon 138 glPrintf 143 glPutCh...

Page 167: ...NTROLLED C 18 DIO C 17 FLASHLED1 C 17 IR_DEMO C 18 TOGGLESWITCH C 17 how to run TCP IP sample programs 69 70 how to set IP address 70 LCD keypad module 133 KEYBASIC C 126 KEYPADTOLED C 133 LCDKEYFUN C...

Page 168: ...teris tics 85 Rabbit 3000 timing diagram 83 RCM3700 Prototyping Board 95 RCM3720 Prototyping Board 115 relative pin 1 locations 81 spectrum spreader 84 subsystems digital inputs and outputs 26 switchi...

Page 169: ...Prototyping Board Schematic www rabbit com documentation schemat 090 0199 pdf 090 0156 LCD Keypad Module Schematic www rabbit com documentation schemat 090 0156 pdf 090 0128 Programming Cable Schemati...

Reviews: