Home
Users Manual - Digi International
Contents
1. lad 0 189 104 4 100 4 400 lt gt lt 0 15 3 8 112 Figure B 12 RCM3720 Prototyping Board Dimensions 114 User s Manual RCM3720 Table B 1 lists the electrical mechanical and environmental specifications for the RCM3720 Prototyping Board Table B 7 RCM3720 Prototyping Board Specifications Parameter Board Size Specification 3 856 x 4 400 x 0 37 114 mm x 165 mm x 9 mm Operating Temperature 20 C to 60 C Humidity 5 to 95 noncondensing Input Voltage 7 5 V to 15 VDC Maximum Current Draw including user added circuits 225 mA max Prototyping Area 1 8 x 2 4 46 mm x 61 mm throughhole 0 1 spacing additional space for SMT components Mounting Holes 4 0 156 4 mm diameter accept 6 32 screws and 6 spacers B 2 3 Power Supply The RCM3700 RCM3710 RCM3720 and RCM3750 operate from a regulated 4 75 V to 5 25 V DC power source The RCM3720 Prototyping Board only has an onboard 5 V linear power regulator The RCM3720 Prototyping Board itself is protected against reverse polarity by a Shottky diode at D1 as shown in Figure B 13 LINEAR POWER REGULATOR ve J r a LM13405 5 Sz 2 cin J u bo o 4 2 b 1N5819 Ter c9 7 c2 Cr i uF P uF 10 uF F 330 pF
2. Blue shrink wrap rt eae E Mirna IE ea E To PC COM port i gt le 200900000000000099 OOQOQOQOQQQQQOQQQQQQQQQQQQQQ O OOOO0O0000000000000000000 Figure 9 Switching Between Program Mode and Run Mode User s Manual 35 A program runs in either mode but can only be downloaded and debugged when the RCM3750 is in the program mode Refer to the Rabbit 3000 Microprocessor User s Manual for more information on the pro gramming port and the programming cable 4 3 2 Standalone Operation of the RCM3750 The RCM3750 must be programmed via the RCM3700 Prototyping Board or via a similar arrangement on a customer supplied board Once the RCM3750 has been programmed successfully remove the programming cable from the programming connector and reset the RCM3750 The RCM3750 may be reset by cycling the power off on or by pressing the RESET button on the Prototyping Board The RCM3750 module may now be removed from the Prototyping Board for end use installation CAUTION Power to the Prototyping Board or other boards should be disconnected when removing or installing your RCM3750 module to protect against inadvertent shorts across the pins or damage to the RCM3750 if the pins are not plugged in cor rectly Do not reapply power until you have verifie
3. Gain Code Multiplier Voltage Range V 0 xl 0 20 1 x2 0 10 2 x4 0 5 3 x5 0 4 4 x8 0 2 5 5 x10 0 2 6 x16 0 1 25 7 x20 0 1 Applies to RCM3700 Prototyping Board RETURN VALUE A voltage value corresponding to the voltage on the analog input channel ADOVERFLOW defined macro 4096 if overflow or out of range SEE ALSO anaInCalib anaIn anaInmAmps brdInit User s Manual 52 Reads the state of an analog input channel and uses the calibration constants previously set using anaInCa1lib to convert it to current PARAMETERS channel is the channel number 0 7 Channel Code ete he x Input Lines 0 AINO 1 AIN1 2 AIN2 3 AIN3 4 AIN4 5 AIN5 6 AIN6 7 AIN7 Negative input is ground Applies to RCM3700 Prototyp ing Board 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 anaIn anaInVolts User s Manual 53 Reads the calibration constants gain and offset for an input based on their designated position in the simulated EEPROM area of the flash memory and places them into global tables for analog inputs The constants are stored in the top 2K of the reserved area in the user block memory note that while Rabbit Semiconuctor reserves an area in the
4. RCM36 37XX SERIES 2 BOARD F OOQQQQQQQQQQQQQQQQQQQ OOQQQQQQQQQQQQQQQQQQQ OOQQQQQQQQQQQQQQQQQQQ OOQOQQQQQQQQQQQQQQQQQQ e Soe en OOO 000000009 O OOO OOQOQQQQOQQQQQQQQQQQQQQQQQQ OOOO00O0000000000000000000 Figure C 7 Solder Connectors to RC3700 Prototyping Board User s Manual 128 C 6 Mounting LCD Keypad Module on the Prototyping Board Install the LCD keypad module on header sockets LCD1IJA LCD1JB and LCD1JC of the RCM3700 Prototyping Board as shown in Figure C 8 Be careful to align the pins over the headers and do not bend them as you press down to mate the LCD keypad module with the RCM3700 Prototyping Board En cts E pia mm c4 Cay ue RE SupsS 2 spe RCM36 37XX SERIES PROTOTYPING BOARD O OOJ JOOP OOO000000 OQOQQQQQOQQQQQQQQQQQQQQQQQ OOQQQQQQQQQQQQQQQQQQQQQQQ OOQOQOQQQQQQQQQQQQQQQQQ0Q0000 OOOOO0OO0OO000000000000000000 Figure C 8 Install LCD Keypad Module on RCM3700 Prototyping Board User s Manual 129
5. Figure B 13 RCM3720 Prototyping Board Power Supply 115 RabbitCore RCM3750 B 2 4 Using the RCM3720 Prototyping Board The RCM3720 Prototyping Board is actually both a demonstration board and a prototyp ing board As a demonstration board it can be used to demonstrate the functionality of the RCM3720 right out of the box without any modifications Figure B 14 shows the RCM3720 Prototyping Board pinouts f N N ra S x RCM3720 Signals gt FORO NNQ OTON Oc He MON PSRORARERREERPRE KEES J2 OQOQQQOQOQQQOQOQQQOQQVQN0O OQOQQQOQOQOQOOQOQOQOOQOQOO0O000O0 RS 232 qgqqanrtrenrne NMRNrT HOR TNDTOOAT YE Soe eSeoeeetoeeeao eee J3 or OO aa OO GND O TxC OO RxD RxC OO TxD O Figure B 14 RCM3720 Prototyping Board Pinout User s Manual 116 RCM3720 The RCM3720 Prototyping Board comes with the basic components necessary to demon strate the operation of the RCM3700 RCM3710 RCM3720 and RCM3750 modules Two LEDs DS1 and DS2 are connected to PF6 and PF7 and two switches S1 and S2 are connected to PF4 and PB7 to demonstrate the interface to the Rabbit 3000 micropro cessor Reset switch S3 is the hardware reset for the RCM3720 The RCM3720 Prototyping Board provides the user with connection points for the Rab bitCore module brought out conveniently to labeled points at header J2 on the RCM3720 Prototyping Board Although header J2 is unstuffed a 2 x 20 header strip with a 0
6. 97 glBuffUnlock 144 User s Manual 163 dimensions 2 00 eeeeeeeeees 94 EXPANSION area sesse 92 features sioiias 91 92 jumper configurations 108 109 jumper locations 108 POUT ssh 96 power supply eee 95 prototyping area oo 97 RS 485 network 105 termination and bias resis LOTS erinran 106 specifications e e 95 use of parallel ports 110 RCM3720 Prototyping Board 112 adding components 118 RS 232 components 119 dimensions ceceeee 114 expansion area eee 113 TEAHUTES iito 112 113 how to disable demonstration hardware uu 117 jumper configurations 118 pinout coche ee ere 116 power supply c ee 115 prototyping area 118 specifications 06 115 use of parallel ports 121 RCM3750 mounting on Prototyping Board c fsededicseestesiza 13 TESE neeo ni e 15 reset generator s 159 use of reset pin 159 Run Mode oseese 35 switching modes 35 S sample programs s s s 20 A D converter AD_CALDIFF_CH C 24 102 AD CALMA CHC 24 102 AD_CALSE_ALL C 24 102 AD_CALSE CH 102 AD_CALSE_CHAN C 24 AD RDDIFF CH C 24 102 AD RDMA CH C 24 102 AD RDSE ALL C 24 102 AD _SAMPLE C nn 24 ANAINCONFIG C 24 DNLOADCALIB C 24 THERMISTOR C 24 100 UPLOADCALIB C 25 configuring to run on a Proto
7. 149 sample programs 20 function calls glXPutFastmap 150 R dispInit oo ee 134 TextBorder 151 header pinout 000 127 TextBorderlnit 151 Rabbit 3000 VO address assienments lt 127 TextCursorLocation 152 data and clock delays 85 keypad TextGotoXY 152 spectrum spreader time delays function calls TextMaxChars 154 85 KeyConfig 155 TextPrintf sious 153 Rabbit subsystems 28 keyGet BEERE 156 TextPutChar 153 RCM3700 Prototyping Board 91 keylnit ss 40 c0h0s 155 TextWinClear 154 A D converter keypadDef 157 TextWindowFrame 150 CONVERT pin wees 101 keyProcess 0004 156 LEDs inputs keyScan T Nes 157 function calls 0 0 0 134 current measurements KeyUnget eee 156 displedOut 134 100 keypad template 126 mounting instructions 129 Aira ease LCD disp lay reconfigure keypad 126 MENS nn neii 99 function calls remote cable connection 132 negative voltages 99 glBackLight 135 removing and inserting keypad single ended measure glBlankRegion 137 label innn 126 ments oo eeeecee ee eeee 98 glBlankScreen 136 sample programs 133 reference voltage VREF SIBIOCK 1 138 specifications 0 2 0 0 124 101 glBuffLock 144 VETSIONS eeceseeeeseeeeeeeeees 123 adding components
8. printing step direction The x and y step directions are independent signed values The actual 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 g1Printf x step value stepY is the g1Printf y step value RETURN VALUE None SEE ALSO Use g1GetP Step to examine the current x and y printing step direction Gets the current g 1 Print printing step direction Each step direction is independent of the other and is treated as an 8 bit signed value The actual step increments depends on the height and width of the font being displayed which are multiplied by the step values RETURN VALUE The x step is returned in the MSB and the y step is returned in the LSB of the integer result SEE ALSO Use g1GetP Step to control the x and y printing step direction User s Manual 142 Provides an interface between the STDIO string handling functions and the graphic library The STDIO string formatting function will call this function one character at a time until the entire format ted string has been parsed Any portion of the bitmap character that is outside the LCD display area will be clipped PARAMETERS ch is the character to be displayed on the LCD ptr is not used but is a place holder for STDIO string functions ent is not used is a place holder for STDIO string functions pinst is a pointer to the font descriptor RET
9. 5 155 5 le 6 50 gt 165 Figure B 2 RCM3700 Prototyping Board Dimensions User s Manual 94 RCM3700 Table B 1 lists the electrical mechanical and environmental specifications for the RCM3700 Prototyping Board Table B 1 RCM3700 Prototyping Board Specifications Parameter Specification Board Size 4 50 x 6 50 x 0 75 114 mm x 165 mm x 19 mm Operating Temperature 20 C to 60 C Humidity 5 to 95 noncondensing Input Voltage 7 5 V to 30 V DC Maximum Current Draw 800 mA max for 3 3 V supply including user added circuits 1 A total 3 3 V and 5 V combined 8 channel ADS7870 with programmable gain configurable for 11 bit single ended 12 bit differential and 4 20 mA inputs A D Converter Input impedance 6 7 MQ e A D conversion time including 120 us raw count and Dynamic C 180 us IrDA Transceiver HSDL 3602 link distances up to 1 5 m 2 5 x 3 64 mm x 76 mm throughhole 0 1 spacing Prototyping sacs additional space for SMT components Standoffs Spacers 5 accept 4 40 x 1 2 screws B 1 3 Power Supply The RCM3700 RCM3710 RCM3720 and RCM3750 operate from a regulated 4 75 V to 5 25 V DC power source Only 5 V DC is supplied to the TCM_SMT_SOCKET socket The RCM3700 Prototyping Board has an onboard 5 V switching power regulator from which a 3 3 V linear regulator draws its supply Thus both 5 V and 3 3 V are available on the RCM3700 Prototyping
10. If the sample programs ran fine you are now ready to go on Additional sample programs are described in the Dynamic C TCP IP User s Manual Please refer to the Dynamic C TCP IP User s Manual to develop your own applications An Introduction to TCP IP provides background information on TCP IP and is available on the CD and on our Web site User s Manual 77 APPENDIX A RCM3750 SPECIFICATIONS Appendix A provides the specifications for the RCM3750 and describes the conformal coating User s Manual 78 A 1 Electrical and Mechanical Characteristics Figure A 1 shows the mechanical dimensions for the RCM3750 1 200 x tT 4 DG ES NS NY O v oS ogy lt ow oss ER R8 cmm ui C25 us ec ee Se or ED Et mi Moh a 23 da BE Please refer to the RCM3750 SS gt 2 footprint diagram later in this S y S appendix for precise header A locations Laa 1 200 sO GD 30 5 oo Figure A 1 RCM3750 Dimensions NOTE All measurements are in inches followed by millimeters enclosed in parentheses 0 01 0 25 mm All dimensions have a manufacturing tolerance of 4 79 User s Manual It is recommended that you allow for an exclusion zone of 0 04 1 mm around the RCM3750 in all directions when the RC
11. Initializes the font descriptor structure where the font is stored in xmem Each font character s bitmap is column major and byte aligned PARAMETERS pInfo is a pointer to the font descriptor to be initialized pixWidth is the width in pixels of each font item pixHeight is the height in pixels of each font item startChar is the value of the first printable character in the font character set 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 address of the character from the specified font set PARAMETERS pInfo is the xmem address of the bitmap font set letter is an ASCII character RETURN VALUE xmem address of bitmap character font column major and byte aligned SEE ALSO glPutFont glPrintf User s Manual 141 Puts an entry from the font table to the page buffer and on the LCD if the buffer is unlocked Each font character s bitmap is column major and byte aligned Any portion of the bitmap character that is outside the LCD display area will be clipped PARAMETERS x is the x coordinate column of the top left corner of the text y is the y coordinate row of the top left corner of the text pinfo is a pointer to the font descriptor code is the ASCII character to display RETURN VALUE None SEE ALSO glFontCharAddr glPrintf Sets the gLPrint
12. cccesccescessessecseceseeeceseeecesceseeeeceseeneecaseseecaecsaecseesanereeas 79 Adel Header Sneen vias mares R A ARTETA dbase tess E A tea uae Tecan ERE R ees 82 Av 2 Bus Loading eeaeee ceicS ba E E ork Hee Neo AGE Gos ec doesn es Wise eects eee ata AAN E a ee 83 A 3 Rabbit 3000 DC Characteristics cccceceescesscescesseeseeseecseeesecaecsaecseceeceecaseeseseeeseeeeecaeeeaeeaseaaecaeenaees 86 A 4 I O Buffer Sourcing and Sinking Limit ccc eececcessecseceeeeceseeeceeceseeeeceseeeeceseeneecaeeeaeceeeaeeeeaees 87 A S Conformal Coating sneer E e EN SE La LO I ML EC EEE 88 AG Jumper O OA A O S E tied ee ee 89 Appendix B Prototyping Board 90 B 1 RGM3700 Prototyping B a td seiten eanne E wi ein A ai ER ER i aa 91 aa A S TEE i a E O E E os EEEE EEE 92 B 1 2 Mechanical Dimensions and Layout s sesseesseeeesersreeeseeeessrsrssesesessestsstsrsseeseseesreresrereseesesees 94 B13 Power SUpply sie e ie E EREE E EA E etc teen adi E E E A EE 95 B 1 4 Using the RCM3700 Prototyping Board sessssssseeeeseesrseessesesseseestesseesessestsessesessesesseeesessesees 96 B 1 4 1 Adding Other Components 3 80 cecil r E ov E EE DE E R i arat 97 Bil ERSA OTA NE TK A TA E AEE TE 98 Bul 5 A D Converter NHU Sieen sede a e a A a AE a E a ee 98 B 1 5 2 Thermistor Input ee eenaa e R E TE R E RAEE RECE 100 B 1 5 3 Other A D Converter Features oi eni ee e ana S EEE E E EEEE Ee A EET ENEN 101 User s Manual B 1 5 4 A D Converter Calibrati
13. typing Board nsss 19 FAT file system FMT_DEVICE C 76 FAT file system module 161 getting to know the RCM3750 CONTROLLED 21 DOC ce eee os 20 FLASHLEDL C onns 20 IR_DEMO C esses 21 TOGGLESWITCH C 20 how to run TCP IP sample programs 70 71 how to set IP address 71 LCD keypad module 133 KEYBASIC C oneness 126 KEYPADTOLED C 133 LCDKEYFUN C 133 reconfigure keypad 126 SWITCHTOLED C 133 module integration 75 INTEGRATION FAT _ SETUP Covsatsciatoees 76 INTEGRATION C 76 onboard serial flash SERIAL _FLASHLOG C 22 SFLASH_INSPECT C 22 PONG C neccennais 16 RabbitWeb module 161 Secure Sockets Layer SSL Module snoeien 161 serial communication FLOWCONTROL C 22 PARITY Q sucses 22 SIMPLE3WIRE C 23 SIMPLE48SMASTER C 23 SIMPLE485SLAVE C 23 SIMPLESWIRE C 23 SWITCHCHAR C 23 TCP IP BROWSELED C 73 DISPLAY _MAC C 67 MBOXDEMO_C 73 PINGLED C seese 73 PINGME C ossessi 73 RabbitWeb BLINKLEDS C 74 DOORMONITOR C 74 HANGMAN_GAME C 74 LEDS_CHECKBOX C 74 SPRINKLER C 74 TEMPERATURE C 74 SMTP C vanen 74 SSL SSL_BROWSELED C 75 SSL_MBOXDEMO C 75 serial communication 32 RCM3700 Prototyping Board RS2232 oriei 104 RS 485 network 105 RS 485 termination and bias TESISCO
14. RabbitCore RCM3750 C Programmable Core Module with Ethernet Serial Flash and Enhanced Software User s Manual 019 0149 G RabbitCore RCM3750 User s Manual Part Number 019 0149 Printed in U S A 2005 2012 Digi International Inc All rights reserved Digi International reserves the right to make changes and improvements to its products without providing notice Trademarks Rabbit and Dynamic C are registered trademarks of Digi International Inc Rabbit 3000 and RabbitCore are trademarks of Digi International Inc The latest revision of this manual is available at www digi com Rabbit Semiconductor Inc www digi com RabbitCore RCM3750 TABLE OF CONTENTS Chapter 1 Introduction 6 Ted RCM3750 Features eiennenn wiv ence vecovesvavseaaveesbyteontstiv EEEE RE tap evecedetey ERTETEK EEN OEKRAINE ENEAN 6 1 2 Advantages of the RCM3750 o cceccesscssessseesecsseeseeeceecesecesseseeeceseeseeesecaeecaecsaeeaeceaeaecaeseaesesenecaesaeeaes 8 1 3 Development and Evaluation Tools ccccccessssscesceseeeseeseeseecsecssecsecsaesaecnsceeeceseesesenseseseeeeseseneeaeeeneeaes 9 134 Development Kats co 04 ise eecere sts n Ee R EE E EA E A EA 9 TB 2 SOMWALC oen er EE A EEEE E asks 10 1 3 3 Application Kits essersi niaise a in e eE ek En eE ES EEE AEE EE AREARE TRS 10 1 3 4 802 11b Wi Fi Add On Kit eee ceccceeseesesceseseeseseeeesceeesceeesceeescecesceecsceaeseceesecaeeeceeeeceeeeceeaeneees 10 1 3 5 Online Documen
15. File Allocation Table File System module provides a ready to run flash based file system that e works with a Dynamic C HTTP or RabbitWeb server to update content reliably e provides reliable storage and transfer of databases and Web pages according to an established widely used file system e supports a battery backed wear reducing cache system that protects the file system dur ing power cycles Software Modules on CD ROM 2 Dynamic C RabbitWeb module The Dynamic C RabbitWeb module provides an HTTP HTML rapid Web development extension for embedded devices allowing you to e read and write program variables remotely eliminating complex CGI programming e easily create controls such as pulldown menus or control buttons e ensure valid input values and proper user authorization e elegantly indicate input errors for easy correction Software Modules on CD ROM 3 Dynamic C Secure Sockets Layer SSL module This module provides HTTPS security for supported Rabbit based devices to provide e fast processing of complex encryption algorithms up to 120 kbits s User s Manual 160 e support for HTTPS with SSL version 3 and Transport Layer Security TLS version 1 e royalty and license free with digital certificate creation utility e secure existing Web application in minutes with less than 10 lines of code E 1 Sample Programs Sample programs are included with the bundled Dynamic C modules to illustrate the soft ware featu
16. PG5 Input Not used Pulled up Proto Board PG6 Output TXE RS 485 or RS 232 High set by drivers Serial Port E PG7 Input RXE RS 485 or RS 232 Pulled up set by drivers 111 RabbitCore RCM3750 B 2 RCM3720 Prototyping Board The RCM3720 Prototyping Board included in the Ethernet Connection Kit makes it easy to connect an RCM3720 module to a power supply and a PC workstation for development It also provides some basic I O peripherals LEDs and switches as well as a prototyping area for more advanced hardware development An optional RS 232 chip can be added for RS 232 serial communication For the most basic level of evaluation and development the RCM3720 Prototyping Board can be used without modification oS N N ae O aw As you progress to more sophisticated experimentation and hardware development modi fications and additions can be made to the board without modifying or damaging the RCM3720 module itself The RCM3720 Prototyping Board is shown below in Figure B 11 with its main features identified Surface Mount RS 232 Chip Reguistor oe unstuffed Heat Sink Module Connector me Power Backup ee alll e Input Battery Loo ig 4 EEE EERREEREE cen z 00000 20 20999 on aeeRSR RE 0 PROTOTYPING Sra OOO000000 bond E a Sistelstotetstotetstotetstotetststelsistelstot
17. battery backup battery life 0 159 board initialization function calls cee 42 brdImit eee eeeeeees 42 bus loading eee 83 Cc clock doubler cceeeee 37 conformal coating 88 D Development Kit 9 12 AC adapter eeeeeeeeees 9 DC power supply 5 9 Getting Started instructions 9 programming cable 9 digital T O nrs 27 T O buffer sourcing and sink ing limits 0 eee 87 memory interface 31 SMODEO ooo 34 SMODE1 ooo eects 34 dimensions LCD keypad module 123 LCD keypad template 126 RCM3700 Prototyping Board 94 RCM3720 Prototyping Board 114 RCM3750 ou eeceesesecseereeteees 79 Dynamic C 10 12 16 39 add on modules 10 12 61 FAT file system module 160 installation eeee 12 RabbitWeb module 160 Secure Sockets Layer SSL module ssns 160 Vibraries ceeeeeeeeseeseeees 41 sample programs 20 standard features debugging cee 40 telephone based technical sup jO EE 10 61 upgrades and patches 61 USB port settings 0 0 0 16 E Ethernet cables cece 62 Ethernet connections 62 64 10 100 compatible 64 10Base T Ethernet card 62 additional resources 77 direct connection 64 Ethernet hub ee 62 IP addresses 64 66 MAC addresses
18. 0065 67 SLEDS ciacivacciacsdeicn 62 63 Ethernet port cceeeeeee 33 PINOUE sic eet aes 33 exclusion ZONE ou cece 80 F features ooo eeeececeeeceeseeeeeeeeeees 6 RCM3700 Prototyping Board 91 92 RCM3720 Prototyping Board 112 113 flash memory addresses user blocks sese 38 H hardware connections install RCM3750 on Prototyp ing Board ecce 13 power supply sesssesesee 15 programming cable 14 hardware reset sses 15 headers RCM3700 Prototyping Board JEL eseat 106 JP2 ensinam 103 RCM3720 Prototyping Board IB ET 120 l T O address assignments LCD keypad module 127 T O buffer sourcing and sinking TiS eissien 87 IP addresses 0 ceeeeceteeeees 66 how to set in sample programs 71 how to set PC IP address 72 J jumper configurations 89 JP3 flash memory size 89 User s Manual 162 JP4 flash memory bank se LOC scat cet casechetedaees st 38 89 jumper locations 89 RCM3700 Prototyping Board 108 JP1 RS 485 bias and termi nation resistors 106 109 JP2 RS 232 RS 485 on Se glDispOnOff 135 glDown oe 147 glFastFillRegion 137 glFillCircle wi 140 glFillPolygon 140 glFillRegion 136 glFillScreen o n 136 glFillVPolygon 139 voltage settings 0 125 MAC addresses eee 67 mounting instructions LCD keypad module 129 P rial Port E 0 0 109 g
19. 1 pitch can be installed The 2 x 20 header Part No 405 0016 can be purchased through our online store To maximize the availability of resources the demonstration hardware LEDs and switches on the Prototyping Board may be disconnected This is done by cutting the traces seen within the silkscreen outline for header J4 on the bottom side of the RCM3720 Prototyping Board Figure B 15 shows the four traces where cuts should be made An exacto knife or high speed precision grinder tool like a Dremel tool would work nicely to cut the traces Alternatively if safety is a major concern a small standard screwdriver may be carefully and forcefully used to wipe through the PCB traces RCM3720 Prototyping Board Bottom Side swi sw2 DS1 Ds2 CUT toe oO O O o OOOO O0000000 OO O O O O O O O o O O O O O O O O 20 O OO 09 Figure B 15 Where to Cut Traces to Permanently Disable Demonstration Hardware on RCM3720 Prototyping Board 117 RabbitCore RCM3750 A 2 x 4 header strip with a 0 1 pitch can be installed at J4 and jumpers across the appro priate pins on header J4 can be used to reconnect specific demonstration hardware later if needed Each pin is labeled on the PCB to facilitate placing the jumpers The jumper posi tions are summarized in Table B 8 Table B 8 RCM3720 Prototyping Board Jumper Settings Header J4 Pins Signal Description Demonstration Har
20. ADC_IN3 2 3 Tied to analog ground x 1 2 Tied to VREF JP7 ADC_INO ADC_IN1 2 3 Tied to analog ground x 1 2 Connect for 4 20 mA option on ADC_IN3 n c a Analog Voltage 4 20 mA 3 4 Connect for 4 20 mA option on ADC_IN4 n c Options 5 6 Connect for 4 20 mA option on ADC _IN5 n c 7 8 Connect for 4 20 mA option on ADC_IN6 n c 109 RabbitCore RCM3750 B 1 9 Use of Rabbit 3000 Parallel Ports Table B 6 lists the Rabbit 3000 parallel ports and their use for the RCM3700 Prototyping Board N se O aa Table B 6 RCM3700 Prototyping Board Use of Rabbit 3000 Parallel Ports Port 1 0 Use Initial State PA0 PA7 Output External ID0 ID7 LCD keypad module High core module PBO Output CLKB A D Converter SCLK High SCLK set by driver High core module PBI Output CLKA Programming Port when not driven by CLKA PB2 PB5 Output External IA0 IA3 LCD keypad module High PB6 Output IA4 not used High core module PB7 Output External IA5 Switch S2 High PCO Output TXD RS 232 High set by drivers Serial Port D PCl Input RXD RS 232 Pulled up core module PC2 Output TXC RS 232 High set by drivers Serial Port C PC3 Input RXC RS 232 Pulled up core module PC4 Output TXB Serial Flash High set by drivers Serial Port B PCS5 Input RXB Serial Flash Pulled up core module PC6 Output TXA Programming Port Hig
21. Board The RCM3700 Prototyping Board itself is protected against reverse polarity by a Shottky diode at D2 as shown in Figure B 3 LINEAR POWER SWITCHING POWER REGULATOR 5V REGULATOR 33v J4 y E LM1117 mj D2 zz 2 DCIN yi T t Gp 3 1N5819 C19 ao D d 47 uF aaa 330 uF 0 10 uF 10 pF L1 I LM2575 D1 L at ae 1N5819 Figure B 3 RCM3700 Prototyping Board Power Supply 95 RabbitCore RCM3750 B 1 4 Using the RCM3700 Prototyping Board The RCM3700 Prototyping Board is actually both a demonstration board and a prototyp ing board As a demonstration board it can be used to demonstrate the functionality of the N is O x RCM3750 right out of the box without any modifications Figure B 4 shows the RCM3700 Prototyping Board pinouts RCM3750 Non Analog Signals PE0 QO O PG7_RxE J7 PG6_TxEIC O P04 PD5 VBAT Thermistor OO Figure B 4 RCM3700 Prototyping Board Pinout User s Manual 96 RCM3700 The RCM3700 Prototyping Board comes with the basic components necessary to demon strate the operation of the RCM3750 Two LEDs DS1 and DS2 are connected to PF6 and PF7 and two switches S1 and S2 are connected to PF4 and PB7 to demonstrate the inter face to the Rabbit 3000 microprocessor Reset switch S3 is the hardware reset for the RCM3750 The RCM3700 Prototy
22. C STDIO win dow The test packets and response packets have different codes Once you have loaded and executed these five programs and have an understanding of how Dynamic C and the RCM3750 modules interact you can move on and try the other sample programs or begin building your own Getting Started 21 3 2 1 Use of Serial Flash The following sample programs can be found in the SAMPLES RCM3700 SerialFlash and the SAMPLES RCM3720 SerialFlash folders e SERIAL FLASHLOG C This program runs a simple Web server and stores a log of hits on the home page of the serial flash server This log can be viewed and cleared from a browser at http 10 10 6 100 You will likely have to first configure your net work interface card for a 10Base T Half Duplex or an Auto Negotiation connection on the Advanced tab which is accessed from the control panel Start gt Settings gt Control Panel by choosing Network Connections e SFLASH_ INSPECT C This program is a handy utility for inspecting the contents of a serialflash chip When the sample program starts running it attempts to initialize a serial flash chip on Serial Port B Once a serial flash chip is found the user can perform two different commands to either print out the contents of a specified page or clear set to zero all the bytes in a specified page 3 2 2 Serial Communication The following sample programs can be found in the SAMPLES RCM3700 SERIAL an
23. Capability Pin Name Output Drive Full AC Switching Sourcing Sinking Limits mA Sourcing Sinking All data address and I O lines with clock doubler enabled 6 8 6 8 Under certain conditions you can exceed the limits outlined in Table A 7 See the Rabbit 3000 Microprocessor User s Manual for additional information User s Manual 87 A 5 Conformal Coating The areas around the 32 kHz real time clock crystal oscillator have had the Dow Corning silicone based 1 2620 conformal coating applied The conformally coated area is shown in Figure A 5 The conformal coating protects these high impedance circuits from the effects of moisture and contaminants over time Conformally coated area EES Te cs4 an Ho R29 8 ge Mo 5 ras 4 s ED css ME T A R34 C Figure A 5 RCM3750 Areas Receiving Conformal Coating Any components in the conformally coated area may be replaced using standard soldering procedures for surface mounted components A new conformal coating should then be applied to offer continuing protection against the effects of moisture and contaminants NOTE For more information on conformal coatings refer to Technical Note 303 Con formal Coatings User s Manual 88 A 6 Jumper Configurations Figure A 6 shows the header locations used to configure the various R
24. LCD display area will be clipped If fewer than 3 vertices are specified the function will return without doing anything PARAMETERS n is the number of vertices pFirstCoord is a pointer to array of vertex coordinates x1 y1 x2 y2 x3 y3 RETURN VALUE None SEE ALSO glPlotPolygon gl1FillPolygon glFillVPolygon User s Manual 138 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 outside the LCD display area will be clipped If fewer than 3 vertices are specified the function will return without doing anything PARAMETERS n is the number of vertices y1 is the y coordinate of the first vertex x1 is the x coordinate of the first vertex y2 is the y coordinate of the second vertex x2 is the x coordinate of the second vertex are the coordinates of additional vertices RETURN VALUE None SEE ALSO glPlotVPolygon glFillPolygon gl1FillVPolygon Fills a polygon in the LCD page buffer and on the LCD screen if the buffer is unlocked Any portion of the polygon that is outside the LCD display area will be clipped If fewer than 3 vertices are specified the function will return without doing anything PARAMETERS n is the number of vertices pFirstCoord is a pointer to array of vertex coordinates x1 y1 x2 y2 x3 y3 RETURN VALUE None SEE ALSO g1FillPolygon glPlotPolygon glPlotVPolygon User s Manual 139 Fills a po
25. SD0 SD7 9 PF1 Input O t oo nput Outpu CLKC 10 PFO Input O t Ops eae CLKD 11 PBO Input Output CLKB i PB nuo TAO External Address 0 gsc SWR Slave pot wie IAl External Address 1 13 PB3 Input Output ISRD leve pori read IA2 External Address 2 14 EPs Input Output SAO Slave Port Address 0 TA3 External Address 3 1 ED Input Output SA1 Slave Port Address 1 Fa d IA5 External Address 5 E O ha Pape SLAVEATTN Slave Port Attention 17 PF4 Input O t AOLIB nput Outpu PWMO 18 PF5 Input O t AQDIA nput Outpu PWMI 19 PF6 Input O t AE nput Outpu PWM 20 PF7 Input O t ARDA nput Outpu PWM3 21 PCO Output TXD Serial Port D Serial Port D 22 PC1 PG2 Input Output RXD TXF Serial Port F 23 PC2 Output TXC Serial Port C Serial Port C 24 PC3 PG3 Input Output RXC RXF Serial Port F 17 T O Strobe 7 a EET Inputatput SCS Slave Port Chip Select User s Manual 29 Table 2 RCM3750 Pinout Configurations continued Pin Pin Name Default Use Alternate Use Notes 26 PES imal Owtsek I5 T O Strobe 5 be INTIB Interrupt 1B 77 PEA Tavevonteut 14 1 O Strobe 4 n PURTARE INTOB Interrupt 0B 28 PEI ae eee Il T O Strobe 1 n Pees INTIA Interrupt 1A 10 T O Strobe 0 29 PEO Input Output INTOA Interrupt 0A 30 PG7 Input Output RXE Serial Port E 31 PG6 Input Output TXE ban E 32 IOWR Output External write strobe O T 33 IORD Output External read strobe 34 PD4 Input Output ATXB Alternate Serial Por
26. e SWITCHTOLED C This program demonstrates the use of the external I O bus The program will light up an LED on the LCD keypad module and will display a message on the LCD when a switch press is detected The DS1 and DS2 LEDs on the RCM3700 Prototyping Board will also light up Additional sample programs are available in the SAMPLES LCD_KEYPAD 122x32_1x7 subdirectory User s Manual 133 C 9 LCD Keypad Module Function Calls When mounted on the RCM3700 Prototyping Board the LCD keypad module uses the auxiliary I O bus on the Rabbit 3000 chip Remember to add the line define PORTA_AUX_IO to the beginning of any programs using the auxiliary I O bus C 9 1 LCD Keypad Module Initialization The function used to initialize the LCD keypad module can be found in the Dynamic C LIB DISPLAYS LCD122KEY7 L1B library Initializes the LCD keypad module The keypad is set up using keypadDef or keyConfig after this function 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 The red LED is turned off when the brdInit function executes One function is available to control the LEDs and can be found in the Dynamic C LIB DISPLAYS LCD122KEY7 L1B library LED on off control This function will only work when the LCD keypad module is installed on the RCM3700 Prototyping Board PARAME
27. ernen Ae Sess esac ce och shee RE O EE ey Ee ec 123 C 2 Contrast Adjustments for All Boards cccccesesscescesscesceseeesecsceseecesesaeceeceseeseeeeceeeeneeaeeesecseeeenseees 125 C3 Keypad Labeling ccoseince E E E E ia a SS EE AU 126 24 Header Panouts 26 ici ei E eed ete EA wastes lets Salt ies Nth se ds Sas reed 127 G41 VO Address Assignments ses ccfcccsreptix saves Rte cs eee kao es eae eS 127 C 5 Install Connectors on Prototyping Board ccccescescesseescesseeseeseecseceseseceseesececeseseeeeeseseeseeeseeaees 128 C 6 Mounting LCD Keypad Module on the Prototyping Board ccscceccesesscesseeseeeeeeeeeseeneeeseeneeenees 129 C 7 Bezel Mount Installation ccceecccscessecseceecesecescesecesceseeeeceseeseecseecaecaeesaeceecaeceeseeeeeceaeeneeeaseeeeaees 130 C 7 1 Connect the LCD Keypad Module to Your Prototyping Board ccccccseeseeseeteeseeeeeeeeeerees 132 C8 Sample Program ses scccr 4 seks E a a a oct acp abe us E do a T A E E RRE 133 C 9 LCD Keypad Module Function Calls sseeseseeeesseseseesresessesessesesseeresersesetsestessesessesesseseesessesessesesees 134 C 9 1 LCD Keypad Module Initialization e eeeseseeseseeeeeseeessetsesetstsrestereseesessesresessesessestsseeeeseeseses 134 C292 LEDS cess E S T E N E REE ETEEN 134 9 3 ECD Display renrasig n e E AER E RA Ea ia EEE EE EEA EE E EEEE 135 CEES E E EAA SY a AEE NE E E EE A ETTA E E A 155 Appendix D Power Supply 158 DT Power Sup E Sre re o a ae A
28. in use Linear Power Supply tThe raw DC voltage provided at the POWER IN jack is routed to a 5 V linear voltage regulator The regulator provides stable power to the RCM3720 module and the Prototyping Board Power LED The power LED lights whenever power is connected to the Prototyping Board Reset Switch A momentary contact normally open switch is connected directly to the RCM3720 s RESET_IN pin Pressing the switch forces a hardware reset of the system I O Switches and LEDs Two momentary contact normally open switches are con nected to the PF4 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 sample applications Prototyping Area A generous prototyping area has been provided for the installation of through hole components 5 V and ground buses run along the bottom edge of this area Several areas for surface mount devices are also available Note that there are SMT device pads on both top and bottom of the Prototyping Board Each SMT pad is connected to a hole designed to accept a 30 AWG solid wire or wire wrap wire Module Extension Headers The complete pin set of the RCM3720 module is dupli cated at header J2 Developers can solder wires directly into the appropriate holes or for more flexible development a 2 x 20 header strip with a 0 1 pitch can be soldered into pl
29. information A Flash Memory Bank Select jumper configuration option based on 0 Q surface mounted resistors exists at header JP1 on the RCM3750 modules This option is reserved for future use 4 5 3 Serial Flash A 1Mbyte serial flash is available to store data and Web pages Sample programs in the SAMPLES RCM3700 folder illustrate the use of the serial flash 4 5 4 Dynamic C BIOS Source Files The Dynamic C BIOS source files handle different standard RAM and flash EPROM sizes automatically User s Manual 38 5 SOFTWARE REFERENCE Dynamic C is an integrated development system for writing embedded software It runs on an IBM compatible PC and is designed for use with Rabbit Semiconuctor controllers and other controllers based on the Rabbit microprocessor Chapter 5 describes the libraries and function calls related to the RCM3750 5 1 More About Dynamic C Dynamic C has been in use worldwide since 1989 It is specially designed for program ming embedded systems and features quick compile and interactive debugging A com plete reference guide to Dynamic C is contained in the Dynamic C User s Manual You have a choice of doing your software development in the flash memory or in the static SRAM included on the RCM3750 The flash memory and SRAM options are selected with the Options gt Project Options gt Compiler menu The advantage of working in RAM is to save wear on the flash memory which is limited to about 100 000 wr
30. keypad drivers e Powerful language extensions for cooperative or preemptive multitasking e Loader utility program to load binary images into Rabbit targets in the absence of Dynamic C e Provision for customers to create their own source code libraries and augment on line help by creating function description block comments using a special format for library functions e Standard debugging features gt Breakpoints Set breakpoints that can disable interrupts gt Single stepping Step into or over functions at a source or machine code level C OS II aware gt Code disassembly The disassembly window displays addresses opcodes mnemonics and machine cycle times Switch between debugging at machine code level and source code level by simply opening or closing the disassembly window gt Watch expressions Watch expressions are compiled when defined so complex expressions including function calls may be placed into watch expressions Watch expressions can be updated with or without stopping program execution gt Register window All processor registers and flags are displayed The contents of general registers may be modified in the window by the user P Stack window shows the contents of the top of the stack gt Hex memory dump displays the contents of memory at any address gt STDIO window printf outputs to this window and keyboard input on the host PC can be detected for debugging purposes printf output
31. may also be sent to a serial port or file User s Manual 40 5 2 Dynamic C Functions The functions described in this section are for use with the Prototyping Board features The 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 board design Other generic functions applicable to all devices based on Rabbit microprocessors are described in the Dynamic C Function Reference Manual User s Manual 41 5 2 1 Board Initialization Call this function at the beginning of your program This function initializes Parallel Ports A through G for use with the RCM3700 Prototyping Board or the RCM3720 Prototyping Board The brdInit function is set up to a default I O configuration based on the RabbitCore module detected at compile time e Any RCM3700 RabbitCore module except the RCM3720 will have its I O ports configured for an RCM3700 Prototyping Board e An RCM3720 RabbitCore module will have its I O ports configured for an RCM3720 Prototyping Board You may override these default settings to run an RCM3720 RabbitCore module on the RCM3700 Proto typing Board or to run another RCM3700 RabbitCore module on the RCM3720 Prototyping Board by adding the following macro to the program you will be running e Torun an RCM3720 RabbitCore module on an RCM3700 Prototyping Board add the following
32. module Rabbit Semiconuctor offers 2 ft 60 cm extension cables Contact your authorized dis tributor or a Rabbit Semiconuctor sales representative for more information User s Manual 132 C 8 Sample Programs Sample programs illustrating the use of the LCD keypad module with the RCM3700 Prototyping Board are provided in the SAMPLES RCM3700 LCD_KEYPAD folder These sample programs use the auxiliary I O bus on the Rabbit 3000 chip and so the define PORTA_AUX_IO0 line is already included in the sample programs Each sample program has comments that describe the purpose and function of the pro gram Follow the instructions at the beginning of the sample program To run a sample program open it with the File menu if it is not still open then compile and run it by pressing F9 The RCM3750 must be connected to a PC using the programming cable as described in Chapter 2 Getting Started Complete information on Dynamic C is provided in the Dynamic C User s Manual e KEYPADTOLED C This program demonstrates the use of the external I O bus The program will light up an LED on the LCD keypad module and will display a message on the LCD when a key press is detected The DS1 and DS2 LEDs on the RCM3700 Prototyping Board will also light up e LCDKEYFUN C This program demonstrates how to draw primitive features from the graphic library lines circles polygons and also demonstrates the keypad with the key release option
33. no repeat RETURN VALUE None SEE ALSO keyConfig keyGet keyProcess Writes 1 to each row and reads the value The position of a keypress is indicated by a zero value in a bit position PARAMETER pcKeys is a pointer to the address of the value read RETURN VALUE None SEE ALSO keyConfig keyGet keypadDef keyProcess User s Manual 157 APPENDIX D POWER SUPPLY Appendix D provides information on the current requirements of the RCM3750 and includes some background on the chip select circuit used in power management D 1 Power Supplies Power is supplied from the motherboard to which the RCM3750 is connected via header J1 D 1 1 RCM3750 The RCM3750 has an onboard 3 3 V linear power regulator that provides the 3 3 V supply to operate the microprocessor related circuitry of the RCM3750 Figure D 1 shows the power supply circuit J1 VBAT_EXT RCM3750 LINEAR POWER REGULATOR External Battery a L 3 3V als LP8345 nT 38 7 159 MIC5209 zz 39 V n ee U7 U4 40 ee 10 nF 10 uF 10 uF 10 nF Figure D 1 RCM3750 Power Supply The RCM3750 requires a regulated 4 75 V to 5 25 V DC power source An RCM3750 with no loading at the outputs operating at 22 1 MHz typically draws 175 mA when the Ethernet connection is active User s Manual 158 D 1 2 Battery Backup Circuits The RCM3750 does not have a battery but there is provision fo
34. opmode is the mode of operation SINGLE single ended input DIFF differential input mAMP 4 20 mA input channel SINGLE DIFF mAMP 0 AINO AINO AIN1 AINO 1 AIN1 AIN1 AINO AIN1 2 AIN2 AIN2 AIN3 AIN2 3 AIN3 AIN3 AIN2 AIN3 4 AIN4 AIN4 AINS AIN4 5 AINS AIN5 AIN4 AINS 6 AIN6 AIN6 AIN7 AIN6 7 AIN7 AIN7 AIN6 AIN7 Not accessible on RCM3700 Prototyping Board gaincode is the gain code of 0 to 7 Gain Code Multiplier Voltage Range V 0 xl 0 20 1 x2 0 10 2 x4 0 5 3 x5 0 4 4 x8 0 2 5 5 x10 0 2 6 x16 0 1 25 7 x20 0 1 Applies to RCM3700 Prototyping Board User s Manual 47 RETURN VALUE A value 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 busy bit timeout SEE ALSO anaIn anaInConfig anaInDriver User s Manual 48 Calibrates the response of the desired A D converter channel as a linear function using the two conver sion points provided Four values are calculated and placed into global tables to be later stored into sim ulated EEPROM using the function anaInEEWr Each channel will have a linear constant and a voltage offset PARAMETERS channel is the analog input channel
35. select libraries In addition to the Web based technical support included at no extra charge a one year telephone based technical support module is also available for purchase 5 3 1 1 Featured Application Kit The Secure Embedded Web Application Kit includes three Dynamic C modules that are bundled together facilitates the rapid development of secure Web browser interfaces for embedded system control e Dynamic C FAT file system module e Dynamic C RabbitWeb module e Dynamic C Secure Sockets Layer SSL module Appendix E provides additional information about the Secure Embedded Web Application Kit User s Manual 61 6 USING THE TCP IP FEATURES 6 1 TCP IP Connections Programming and development can be done with the RCM3750 modules without connect ing the Ethernet port to a network However if you will be running the sample programs that use the Ethernet capability or will be doing Ethernet enabled development you should connect the RCM3750 module s Ethernet port at this time Before proceeding you will need to have the following items e If you don t have Ethernet access you will need at least a 10Base T Ethernet card available from your favorite computer supplier installed in a PC e Two RJ 45 straight through CAT 5 6 Ethernet cables and a hub or an RJ 45 crossover CAT 5 6 Ethernet cable The CAT 5 6 Ethernet cables and a 10Base T Ethernet hub are available from Rabbit Semiconuctor in a TCP IP tool kit Mo
36. the AC adapter provided with the North American version of the Development Kit ends in a plug that connects to the power supply header and can be connected to the 3 pin header in either orienta tion A similar header plug leading to bare leads is provided for overseas customers Users providing their own power supply should ensure that it delivers 7 5 30 V DC at 500 mA The voltage regulators will get warm while in use Regulated Power Supply tThe raw DC voltage provided at the POWER IN jack is routed to a 5 V switching voltage regulator then to a separate 3 3 V linear regulator The regulators provide stable power to the RCM3750 module and the Prototyping Board Power LED The power LED lights whenever power is connected to the Prototyping Board Reset Switch A momentary contact normally open switch is connected directly to the RCM3750 s RESET_IN pin Pressing the switch forces a hardware reset of the system I O Switches and LEDs Two momentary contact normally open switches are con nected to the PF4 and PB7 pins of the RCM3750 module and may be read as inputs by sample applications Two LEDs are connected to the PF6 and PF7 pins of the RCM3750 module and may be driven as output indicators by sample applications Prototyping Area A generous prototyping area has been provided for the installation of through hole components 3 3 V 5 V and Ground buses run at both edges of this area Several areas for surface mount de
37. until you locate the active COM port User s Manual 16 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 provided to allow you to modify them for your own use The RCM3750 User s Manual also provides com plete hardware reference information and describes the software function calls for the RCM3750 the Prototyping Board and the optional LCD keypad module For advanced development topics refer to the Dynamic C User s Manual and the Dynamic C TCP IP User s Manual also in the online documentation set 2 5 1 Technical Support NOTE If you purchased your RCM3750 through a distributor or through a Rabbit Semi conductor partner contact the distributor or partner first for technical support If there are any problems at this point use the Dynamic C Help menu to get further assis tance with Dynamic C visit our Web site at http www digi com support or contact your Digi sales representative or authorized distributor for further information User s Manual 17 3 RUNNING SAMPLE PROGRAMS To develop and debug programs for the RCM3750 and for all other Rabbit Semiconduc tor hardware you must install and use Dynamic C 3 1 Introduction To help familiarize you with the RCM3750 modules Dynamic C includes several sample programs Loading executing and studying these programs
38. user block memory for calibration constants this reserved area is not protected The following macros can be used to identify the starting address for these locations ADC_CALIB_ ADDRS address start of single ended analog input channels ADC_CALIB_ ADDRD address start of differential analog input channels ADC_CALIB ADDR M 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 corresponding to ADC_INO to ADC_IN7 opmode is the mode of operation SINGLE single ended input line DIFF differential input line mAMP anilliamp input line channel SINGLE DIFF mAMP 0 AINO AINO AINI AINO 1 AIN1 AIN1 AINO AIN1 2 AIN2 AIN2 AIN3 AIN2 3 AIN3 AIN3 AIN2 AIN3 4 AIN4 AIN4 AINS AIN4 s AIN5 AIN5 AIN4 AIN5 6 AIN6 AIN6 AIN7 AIN6 7 AIN7 AIN7 AIN6 AIN7 ALLCHAN read all channels for selected opmode Not accessible on RCM3700 Prototyping Board User s Manual 54 gaincode is the gain code of 0 to 7 The gaincode parameter is ignored when channel is ALLCHAN Gain Code Voltage Range V 0 0 20 1 0 10 2 0 5 3 0 4 4 0 2 5 5 0 2 6 0 1 25 7 0 1 Applies to RCM3700 Prototyping Board RETURN VALUE 0 if successful 1 if address is invalid or out of range SEE ALSO anaInEEWr anaInC
39. width is the width of the bitmap height is the height of the bitmap bitmap is the address of the bitmap in xmem RETURN VALUE None SEE ALSO glXPutFastmap glPrintf User s Manual 149 Draws bitmap in the specified space The data for the bitmap are stored in xmem This function is like g1XPutBitmap except that it is faster The restriction is that the bitmap must be byte aligned Any portion of a bitmap image or character that is outside the LCD display area will be clipped PARAMETERS left is the top left corner of the bitmap must be evenly divisible by 8 otherwise truncates top is the top left corner of the bitmap width is the width of the bitmap must be evenly divisible by 8 otherwise truncates height is the height of the bitmap bitmap is the address of the bitmap in xmem RETURN VALUE None SEE ALSO glXPutBitmap glPrintf Defines a text only display window This function provides a way to display characters within the text 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 the TextWindowFrame function before other Text functions PARAMETERS window is a pointer to the window frame descriptor pFont is a pointer to the font descriptor x is the x coordinate of the top left corner of the text window frame y is the y coordinate of the top left corner
40. will find this library in the LIB TCPIP directory You can create a CUSTOM_CONFIG LIB library and use a TCPCONFIG value greater than 100 Instructions for doing this are at the beginning of the TCP_CONFIG LIB library in the LIB TCPIP directory There are some other standard configurations for TCPCONF1IG that let you select different features such as DHCP Their values are documented at the top of the TCP_CONFIG LIB library in the LIB TCPIP directory More information is available in the Dynamic C TCP IP User s Manual User s Manual 71 6 4 2 How to Set Up your Computer for Direct Connect Follow these instructions to set up your PC or notebook Check with your administrator if you are unable to change the settings as described here since you may need administrator privileges The instructions are specifically for Windows 2000 but the interface is similar for other versions of Windows TIP If you are using a PC that is already on a network you will disconnect the PC from that network to run these sample programs Write down the existing settings before changing them to facilitate restoring them when you are finished with the sample pro grams and reconnect your PC to the network 1 Go to the control panel Start gt Settings gt Control Panel and then double click the Network icon 2 Select the network interface card used for the Ethernet interface you intend to use e g TCP IP Xircom Credit Card Network Adapt
41. within the specified text window NOTE Execute the TextWindowFrame function before using this function PARAMETERS wPtr is a pointer to the window frame descriptor RETURN VALUE None SEE ALSO TextGotoXY TextPrintf TextWindowFrame TextCursorLocation User s Manual 154 C 9 4 Keypad The functions used to control the keypad are contained in the Dynamic C LIB KEYPADS KEYPAD7 LIB library Initializes keypad process RETURN VALUE None SEE ALSO brdIinit Assigns each key with key press and release codes and hold and repeat ticks for auto repeat and debouncing PARAMETERS cRaw is a raw key code index 1x7 keypad matrix with raw key code index assignments in brackets 0 1 2 3 4 5 6 User Keypad Interface cPress is a key press code An 8 bit value 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 which is approximately one debounce period or 5 us How long to hold before repeating 0 No Repeat cSpdLo is a low speed repeat tick which is approximately one debounce period or 5 ps How many times to repeat 0 None cCntLo is a low speed hold tick which is approximately one debounce period or 5 us How long to hold before going to high speed repeat 0 Slow Only User s Manual 155 cSpdHi
42. your own keypad label insert lt 2 35 gt 60 Figure C 4 Keypad Template To replace the keypad legend remove the 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 Figure C 5 Keypad label is located under the blue keypad matte O e eoOoO O Figure C 5 Removing and Inserting Keypad Label The sample program KEYBASIC C in the 122x32_1x7 folder in SAMPLES LCD KEYPAD shows how to reconfigure the keypad for different applications User s Manual 126 C 4 Header Pinouts Figure C 6 shows the pinouts for the LCD keypad module OPA OS 96460589 anneaenznnnnto Oooo ze eo og ao SS Oooo lO oO oO od nnan i a E J1 oOo 0 a Go oo Oo oO 0 Oo OO oO gaomnagagagagodda ot nine Poor onesessAadug agonoortcecpjpuwuumma lt GA 0O a a a nanna Qo0otnomam an azaBaYM0O za v zonon o Oaaqgagacec O p e a e a S 0 0 0 0 0 0 B o 0 0 0 0 0 J3 J2 Go 6 A 8 B Go oO 0 Bb DB goanogadda ornare GOR BSSEA 998 Adah onnaa a lt oowwwa x 0GA GOA m Figure C 6 LCD Keypad Module Pinouts C 4 1 I O Address Assignments The LCD and keypad on the LCD keypad module are addressed by the CS strobe as explained in Table C 2 Table C 2 LCD Keypad Module Address Assignment Address F
43. 2 pulled up active low enables serial interface BUFIN Input Driven by VREF reference buffer amplifier VREF Output Connected to BUFIN BUFOUT Output VREF output User s Manual 43 PARAMETERS instructionbyte is the instruction byte that will initiate a read or write operation at 8 or 16 bits on the designated register address For example checkid anaInConfig 0x5F 0 9600 read ID and set baud rate cmd are the command data that configure 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 transfer rate of 9600 to 57 600 bps baud must be set the first time this function is called Enter 0 for this parameter thereafter for example anaInConfig 0x00 0x00 9600 resets device and sets baud RETURN VALUE 0 on write operations data value on read operations SEE ALSO anaInDriver anaIn brdInit User s Manual 44 Reads the voltage of an analog input channel by serial clocking an 8 bit command to the ADS7870 A D converter by the Direct Mode method This function assumes that Model most significant byte first and the A D converter oscillator have been enabled See anaInConfig for the setup The conversion begins immediately after the last data bit has been transferred An exception error will occur if Direct Mode bit D7 is not set PARAMETERS cmd contains a ga
44. 50 o o PF4 PF7 o PF6 PC1 PG2 0 2 1 PCO PC3 PG3 O o o C PC2 PE5C o PE7 PE1 Jo o C PE4 Pe7O o PEO NOWRC 5 5 PG6 PD4 CO IORD IRES 2 0 PD5 GND 9 VBATEXT GNDO 2 0 5V Note These pinouts are as seen on the Bottom Side of the module Figure 5 RCM3750 Pinouts User s Manual 27 Figure 6 shows the use of the Rabbit 3000 microprocessor ports in the RCM3750 modules PBO PB7 PA0 PA7 PB2 PB5 v iw U 0 oa Ethernet Port RABBIT Serial Ports C amp D S la S Port C Serial Ports E amp F Port PC6 Programming Real Time Clock o IRES PBA PA S Serial Port A MWatelidoy i JORD SMODEO SMODE1 11 Timers Misc I O Ethernet Slave Port IRES 4 Ethernet signals i Clock Doubler HONE Backup Battery Support PEO PE1 Port E PE4 PE5 PC1 PC3 PE7 PG2 PG3 3000 Port F PF4 PF7 PG6 PG7 Figure 6 Use of Rabbit 3000 Ports The ports on the Rabbit 3000 microprocessor used in the RCM3750 are configurable and so the factory defaults can be reconfigured Table 2 lists the Rabbit 3000 factory defaults and the alternate configurations User s Manual 28 Table 2 RCM3750 Pinout Configurations Pin Pin Name Default Use Alternate Use Notes External data bus ID0 ID7 1 8 PA 7 0 Parallel I O External Data Bus Slave port data bus
45. 50 Multidrop Network 105 RabbitCore RCM3750 The RCM3700 Prototyping Board comes with a 220 Q termination resistor and two 681 Q bias resistors installed and enabled with jumpers across pins 1 2 and 5 6 on header JP1 as shown in Figure B 9 Factory Default Tm PE BA sO u4 PB2 PAt Pag PAS Par ae OOO OOC OOc ave JOO OO bias x QOX O termi nation bias q fi E A A E r Ea 485 Ye oe OO 00000000000000 00000000000000 S ee mern Sorg H i t CONVERT hed z E i XT Cxio 8 APL ALAA FOOT rex JOODOULOO00C SOOO 5 pst ps2 ps3 peg Rs Re ERa RCM36 37XX SERIES S e BOARC OOOO S le S Figure B 9 RS 485 Termination and Bias Resistors For best performance the termination resistors in a multidrop network should be enabled only on the end nodes of the network but not on the intervening nodes Jumpers on boards whose termination resistors are not enabled may be stored across pins 1 3 and 4 6 of header JP1 User s Manual 106 N sr 1S x RCM3700 B 1 7 Other Prototyping Board Modules An optional LCD keypad module is available that can be mounted on the RCM3700 Prototyping Board The signals o
46. 6 outlines the DC characteristics for the Rabbit 3000 at 3 3 V over the recom mended operating temperature range from T 55 C to 85 C Vpp 3 0 V to 3 6 V Table A 6 3 3 Volt DC Characteristics Symbol Parameter Test Conditions Min Typ Max Units Vpp _ Supply Voltage 3 0 3 3 3 6 Vv Vin High Level Input Voltage 2 0 V Vit Low Level Input Voltage 0 8 V low 6 8 mA 0 7x Vv igh ou High Level Output Voltage Von Voom Vpp V VoL Low Level Output Voltage ie 0 4 V Vpp Vpp min I High Level Input Current Vin Vpp gt 10 A Ms absolute worst case all buffers Vpp Vpp max H I Low Level Input Current Vn Vss 10 A IL absolute worst case all buffers Vpp Vpp max H High Impedance State VREVE OEV loz Output Current ae 10 10 uA absolute worst case all buffers Vpp Vpp max no pull up User s Manual 86 A 4 I O Buffer Sourcing and Sinking Limit Unless otherwise specified the Rabbit I O buffers are capable of sourcing and sinking 6 8 mA of current per pin at full AC switching speed Full AC switching assumes a 22 1 MHz CPU clock and capacitive loading on address and data lines of less than 100 pF per 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 RCM3750 Table A 7 I O Buffer Sourcing and Sinking
47. C 7 Bezel Mount Installation This section describes and illustrates how to bezel mount the LCD keypad module designed for remote installation Follow these steps 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 0 125 D 4x ye a i ee the panel z 4 7 oe Sg 7 x a ra 7 oo fo N CUTOUT SF oL 4 ra P N 7 k3 Pa 7 N ra F Fa EF 7 Be 5 8 b a L 2 870 72 9 p 3 100 N 78 8 Figure C 9 Recommended Cutout Dimensions 2 Carefully drop in the LCD keypad module with the bezel and gasket attached User s Manual 130 3 Fasten the unit with the four 4 40 screws and washers included with the LCD keypad module If your panel is thick use a 4 40 screw that is approximately 3 16 5 mm lon ger than the thickness of the panel S Bezel Gasket 7 eel Figure C 10 LCD Keypad Module Mounted in Panel rear view Carefully tighten the screws 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 Ap
48. C to program the master RCM3750 and check to make 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 Getting Started 23 3 2 3 A D Converter Inputs The following sample programs are found in the SAMPLES RCM3700 ADC folder e AD CALDIFF_CH C Demonstrates how to recalibrate one differential analog input channel using two known voltages to generate the calibration constants for that channel Constants will be rewritten into user block data area e AD CALMA CH C Demonstrates how to recalibrate an A D input channel being used to convert analog current measurements to generate the calibration constants for that channel Before running this program make sure that pins 3 5 are connected on headers JP5 JP6 and JP7 Connect pins 1 2 3 4 5 6 7 8 on header JP8 e AD CALSE_ALL C Demonstrates how to recalibrate all single ended analog input channels for one gain using two known voltages to generate the calibration constants for each channel Constants will be rewritten into the user block data area e 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 channel Constants will be rewritten into user block data area NOTE The above sample programs will overwrite any ex
49. CM3750 board does not have any serial transceivers directly on the board How ever a Serial interface may be incorporated on the board the RCM3750 is mounted on For example the Prototyping Board has RS 232 RS 485 and IrDA transceiver chips 4 2 1 Serial Ports There are five serial ports designated as Serial Ports A C D E and F All five serial ports can operate in an asynchronous mode up to the baud rate of the system clock divided by 8 An asynchronous port can handle 7 or 8 data bits A 9th bit address scheme where an additional bit is sent to mark the first byte of a message is also supported Serial Port A is normally used as a programming port but may be used either as an asyn chronous or as a clocked serial port once application development has been completed and the RCM3750 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 synchronously clocks the data in or out Either of the two communicating devices can supply the clock Serial Ports E and F can also be configured as HDLC serial ports The IrDA protocol is also supported in SDLC format by these two ports Serial Port F shares its pins with Serial Ports C and D on header J1 as shown in Figure 7 The selection of port s depends on your need for two clocked serial ports Serial Ports C and D vs a second HDLC serial port Serial Port F Figure 7 RCM3750 Serial Ports C D and F The seria
50. CM3750 options via jumpers Top Side Figure A 6 Location of RCM3750 Jumper Positions Table A 8 lists the configuration options Table A 8 RCM3750 Jumper Configurations nae Factory Header Description Pins Connected Default 1 2 Normal Mode x JP1 Flash Memory Bank Select 2 3 Bank Mode 1 2 128K 256K JP2 SRAM Size 2 3 512K x 1 2 256K JP3 Flash Memory Size 2 3 512K x NOTE The jumper connections are made using 0 Q surface mounted resistors User s Manual 89 APPENDIX B PROTOTYPING BOARD Two different Prototyping Boards are available for the RCM3700 series of RabbitCore modules The RCM3700 Prototyping Board has power supply connections and also pro vides some basic I O peripherals RS 232 RS 485 A D converter IrDA transceiver LEDs and switches as well as a prototyping area for more advanced hardware develop ment The RCM3720 Prototyping Board was designed specifically for the Ethernet Con nection Kit and only has the power supply connections prototyping area LEDs switches and space for an optional RS 232 chip to be installed Either Prototyping Board may be used with the full line of RCM3700 RabbitCore mod ules Appendix B describes the features and accessories for the two prototyping boards User s Manual 90 RCM3700 B 1 RCM3700 Prototyping Board The RCM3700 Prototyping Board included in the RCM3750 Development Kit makes it easy to conne
51. COM port The programming cable converts the RS 232 voltage levels used by the PC serial port to the CMOS voltage levels used by the Rabbit 3000 When the PROG connector on the programming cable is connected to the RCM3750 pro gramming port programs can be downloaded and debugged over the serial interface The DIAG connector of the programming cable may be used on header J2 of the RCM3750 with the RCM3750 operating in the Run Mode This allows the programming port to be used as a regular serial port 4 3 1 Changing Between Program Mode and Run Mode The RCM3750 is automatically in Program Mode when the PROG connector on the pro gramming cable is attached and is automatically in Run Mode when no programming cable is attached When the Rabbit 3000 is reset the operating mode is determined by the status of the SMODE pins When the programming cable s PROG connector is attached the SMODE pins are pulled high placing the Rabbit 3000 in the Program Mode When the programming cable s PROG connector is not attached the SMODE pins are pulled low causing the Rabbit 3000 to operate in the Run Mode RESET RCM3750 when changing mode Press RESET button if using Prototyping Board OR Cycle power off on after removing or attaching programming cable Programming Cable O Colored edge Ovid
52. DINBUFSIZE 15 define DOUTBUFSIZE 15 define MYBAUD 115200 endif main serCopen _MYBAUD serDopen _MYBAUD serCwrFlush serCrdFlush serDwrFlush serDrdFlush User s Manual 104 RCM3700 B 1 6 2 RS 485 The RCM3700 Prototyping Board has one RS 485 serial channel which is connected to the Rabbit 3000 Serial Port E through an RS 485 transceiver The half duplex communi cation uses an output from PF5 on the Rabbit 3000 to control the transmit enable on the communication line Using this scheme a strict master slave relationship must exist between devices to insure that no two devices attempt to drive the bus simultaneously Serial Port E is configured in software for RS 485 as follows define ser485open serEopen define ser485close serEclose define ser485wrFlush serEwrFlush define ser485rdFlush serErdFlush define ser485putc serEputc define ser485getc serEgetc define EINBUFSIZE 15 define EOUTBUFSIZE 15 The configuration shown above is based on circular buffers RS 485 configuration may also be done using functions from the PACKET LIB library The RCM3700 Prototyping Boards with RCM3750 modules installed can be used in an RS 485 multidrop network spanning up to 1200 m 4000 ft and there can be as many as 32 attached devices Connect the 485 to 485 and 485 to 485 using single twisted pair wires as shown in Figure B 8 Note that a common ground is recommended Figure B 8 RCM37
53. EE R E R A E E a a R a R 158 BDI ROEMB A O n T E a E A a N Ue hese Se MELSON 158 D 1 2 Battery Back p Circuit ve cccecsccd concvscdestecedeccescceteese caceueveddcisvevevatbessekdcadede i E ii 159 D M RERI EA NEETI EEA E E SE TEE E EEE OES 159 Appendix E Secure Embedded Web Application Kit 160 Eel Satnple Programs 20 6 gt vestecsvecd cise vsbevedemeshsteds as cscs amass eaan a ee EE a aS S AaS 161 E2 Module Docuimentatt Onis ar tacos bi eete ca seid eis E O E E O E han ed eee ea eee 161 Index 162 User s Manual 1 INTRODUCTION The RCM3750 is a compact module that incorporates the latest revision of the powerful Rabbit 3000 microprocessor flash memory onboard serial flash static RAM and digital T O ports The RCM3750 features an integrated 10 100Base T Ethernet port that provides for LAN and Internet enabled systems Throughout this manual the term RCM3700 refers to the complete line of RCM3700 Rab bitCore modules and includes the RCM3750 unless other production models are referred to specifically The RCM3750 has a Rabbit 3000 microprocessor operating at 22 1 MHz static RAM flash memory two clocks main oscillator and real time clock and the circuitry necessary for reset and management of battery backup of the Rabbit 3000 s internal real time clock and the static RAM One 40 pin header brings out the Rabbit 3000 I O bus lines parallel ports and serial ports The RCM3750 receives regulated DC power from the c
54. High PG Input fNotused Palle an cone mele PG3 Input Not used Balled Sl Gye ea PG4 PG7 Output Not used High User s Manual 122 APPENDIX C LCD KEYPAD MODULE An optional LCD keypad is available for the RCM3700 Prototyping Board Appendix C describes the LCD keypad and provides the software function calls to make full use of the LCD keypad C 1 Specifications Two optional LCD keypad modules with or without a panel mounted NEMA 4 water resistant bezel are available for use with the Prototyping Board They are shown in Figure C 1 LCD Keypad Modules C 000 o BOuo B60 8 Figure C 1 LCD Keypad Modules Versions Only the version without the bezel can mount directly on the Prototyping Board if you have the version with a bezel you will have to remove the bezel to be able to mount the LCD keypad module on the Prototyping Board Either version of the LCD keypad module can be installed at a remote location up to 60 cm 24 away Contact your sales representa tive or your authorized Digi distributor for further assistance in purchasing an LCD keypad module Mounting hardware and a 60 cm 24 extension cable are also available for the LCD keypad module through your Rabbit Semiconuctor sales representative or authorized distributor User s Manual 123 Table C 1 lists the electrical mechanical and environmental specifications for the LCD keypad module T
55. If the LNK light does not light you may not be using a crossover cable or if you are using a hub perhaps the power is off on the hub The next step is to ping the board from your PC This can be done by bringing up the MS DOS window and running the pingme program ping 10 10 6 100 or by Start gt Run and typing the entry ping 10 10 6 100 Notice that the yellow ACT light flashes on the RCM3750 module while the ping is taking place and indicates the transfer of data The ping routine will ping the board four times and write a summary message on the screen describing the operation 6 6 Running Additional Sample Programs With Direct Connect The sample programs discussed here are in the Dynamic C SAMPLES RCM3700 TCPIP and the SAMPLES RCM3720 TCPIP folders The program BROWSELED C demonstrates how to make the RCM3750 module 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 from the Web browser The LEDs on the Proto typing Board match the ones on the Web page As long as you have not modified the TCPCONFIG 1 macro in the sample program enter the following server address in your Web browser to bring up the Web page served by the sample program http 10 10 6 100 Otherwise use the TCP IP settings you entered in the TCP_CONFIG LIB library The optional LCD keypad module see Appendix C must be plugged in to the RCM3700 Prototyping Board
56. LS inis 106 RCM3720 Prototyping Board RS 232 nines 120 serial ports eceeeeseeeeseeeees 32 Ethernet port 0 0 33 programming port 33 SOFtWALC aeiio sidna 10 auxiliary I O bus 31 59 VO drivers cnckteccwinect 59 LUDTaL ES yann 41 LCD keypad module keypad oe 155 LCD display 134 PACKET LIB 60 RCM37xx LIB 06 41 RS232 LIB ueeeeeeceees 60 serial flash oo 60 TCP IP reinn 60 serial communication drivers 60 serial flash drivers 60 TCP IP drivers cccc000 60 Specifications 0 0 78 bus loading e eee 83 digital I O buffer sourcing and sinking limits 0 87 dimensions ceeseeeeeees 79 electrical mechanical and en vironmental 608 81 exclusion ZONE ou cece 80 header footprint 0 82 headers n se 82 LCD keypad module dimensions 008 123 electrical sussend 124 header footprint 124 mechanical 68 124 relative pin 1 locations 124 User s Manual 164 temperature eee 124 Rabbit 3000 DC characteris Rabbit 3000 timing diagram 84 RCM3700 Prototyping Board 95 RCM3720 Prototyping Board 115 relative pin 1 locations 82 spectrum spreader 85 subsystems digital inputs and outputs 27 switching modes 06 35 T TCP IP primer eeeee 64 technical support 06 17 troubleshootin
57. M3750 is incorporated into an assembly that includes other printed circuit boards An exclusion zone of 0 16 4 mm is recom mended below the RCM3750 when the RCM3750 is plugged into another assembly using the shortest connectors for header J1 Figure A 2 shows this exclusion zone gt lt 0 04 1 Exclusion Zone S an F 0 04 1 200 ss 30 5 Figure A 2 RCM3750 Exclusion Zone User s Manual 80 Table A 1 RabbitCore RCM3750 Specifications Parameter RCM3750 Microprocessor Low EMI Rabbit 3000 at 22 1 MHz Ethernet Port 10 100Base T interface RJ 45 3 LEDs Flash Memory 512K SRAM 512K Serial Flash Memory 1Mbyte Backup Batiery Connection for user supplied backup battery to support RTC and SRAM General Purpose I O 33 parallel digital 1 0 lines e 31 configurable I O e 2 fixed outputs Additional I O Reset Can be configured for 8 data lines and Auxiliary I O Bus 5 address lines shared with parallel I O lines plus I O read write Serial Ports Four 3 3 V CMOS compatible ports configurable as e 4 asynchronous serial ports with IrDA or e 3 clocked serial ports SPI plus 1 HDLC with IrDA or e 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 RCM3750 to be used as an in
58. PARAMETERS wPtr is a pointer to the window frame descriptor RETURN VALUE None SEE ALSO TextBorderInit TextGotoXY TextPutChar TextWindowFrame TextCursorLocation User s Manual 151 Sets the cursor location to display the next character The display location is based on the height and width of the character to be displayed NOTE Execute the TextWindowFrame function before using this function PARAMETERS window is a pointer to a font descriptor col is a character column location row is a character row location RETURN VALUE None 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 PARAMETERS window is a pointer to a font descriptor col is a pointer to cursor column variable row is a pointer to cursor row variable RETURN VALUE Lower word Cursor Row location Upper word Cursor Column location SEE ALSO TextGotoXY TextPrintf TextWindowFrame TextCursorLocation User s Manual 152 Displays a character on the display where the cursor is currently pointing Once a character is displayed the cursor will be incremented to the next character position If any portion of a bitmap character is out side the LCD display area the character will not be displayed NOTE Execute the TextWindowFrame function before using this function PARAMETERS window is
59. RX_RTS_PORT Data register for the parallel port that the RTS line is on e g PCDR SERA_RTS_SHADOW Shadow register for the RTS line s parallel port e g PCDRShadow SERA_RTS_BIT The bit number for the RTS line SERA_CTS_PORT Data register for the parallel port that the CTS line is on e g PCDRShadow SERA _CTS_BIT The bit number for the CTS line Standard 3 wire RS 232 communication using Serial Ports C and D is illustrated in the following sample code define CINBUFSIZE 15 set size of circular buffers in bytes define COUTBUFSIZE 15 define DINBUFSIZE 15 define DOUTBUFSIZE 15 define MYBAUD 115200 set baud rate endif main serCopen _MYBAUD open Serial Ports C and D serDopen _MYBAUD serCwrFlush flush their input and transmit buffers serCrdFlush serDwrFlush serDrdFlush serCclose _MYBAUD close Serial Ports C and D serDclose _MYBAUD User s Manual 120 RCM3720 B 2 6 Use of Rabbit 3000 Parallel Ports Table B 10 lists the Rabbit 3000 parallel ports and their use for the RCM3720 Prototyping Board Table B 10 RCM3720 Prototyping Board Use of Rabbit 3000 Parallel Ports Port 1 0 Use Initial State PA0 PA7 Input Not used Pulled up core module PBO Output CLKB Serial Flash SCLK High PBI Output CLKA Programming Port Piet py 8 gre when n
60. Secure Sockets Layer SSL Sample Programs You will need to have the Dynamic C SSL module installed before you run the sample programs described in this section The sample programs can be found in the SAMPLES RCM3700 TCPIP SSL folder Before running these sample programs you will have to create an SSL certificate The SSL walkthrough in the online documentation for the Dynamic C SSL module explains how to do this e SSL_BROWSELED C This program demonstrates a basic controller running a Web page Two LEDs are created on the Web page along with two buttons to toggle them Users can change the status of the lights from the Web browser The LEDs on the Pro totyping Board match the ones on the Web page As long as you have not modified the TCPCONFIG 1 macro in the sample program enter the following server address in your Web browser to bring up the Web page served by the sample program http 10 10 6 100 Otherwise use the TCP IP settings you entered in the TCP_CONFIG LIB library e SSL_MBOXDEMO C Implements a Web server that allows e mail messages to be entered and then shown on the LCD keypad module The keypad allows the user to scroll within messages flip to other e mails mark messages as read and delete e mails When a new e mail arrives an LED on the Prototyping Board and LCD keypad module turns on then turns back off once the message has been marked as read A log of all e mail actions is kept and can be displayed in
61. TERS led is the LED to control 0 LED DSI 1 LED DS2 2 LED DS3 3 LED DS4 4 LED DS5 5 LED DS6 6 LED DS7 value is the value used to control whether the LED is on or off 0 or 1 0 off 1 on RETURN VALUE None User s Manual 134 C 9 3 LCD Display The functions used to control the LCD display are contained in the GRAPHIC LIB library located in the Dynamic C LIB DISPLAYS GRAPHIC library folder When x and y coordi nates on the display screen are specified x can range from 0 to 121 and y can range from 0 to 31 These numbers represent pixels from the top left corner of the display Initializes the display devices clears the screen RETURN VALUE None SEE ALSO glDispOnOFF glBacklight glSetContrast glPlotDot glBlock glPlotDot glPlotPolygon glPlotCircle glHScroll glVScroll glXFontInit glPrintf glPutChar glSetBrushType glBuffLock glBuffUnlock glPlotLine Turns the display backlight on or off PARAMETER onOff turns the backlight on or off 1 turn the backlight on 0 turn the backlight off RETURN VALUE None SEE ALSO glInit glDispOnoff glSetContrast Sets the LCD screen on or off Data will not be cleared from the screen PARAMETER onOff turns the LCD screen on or off 1 turn the LCD screen on 0 turn the LCD screen off RETURN VALUE None SEE ALSO glInit glSetContrast glBackLight User s Manual 135 Sets display contrast NOTE This function is not used wi
62. TROLLED c Demonstrates use of the digital inputs by having you turn the LEDs on the Prototyping Board on or off from the STDIO window on your PC Once you compile and run CONTROLLED C the following display will appear in the Dynamic C STDIO window Po I 10 x 4 lt Proto board LEDs gt gt From PC keyboard Select 32083 4 054 52055 6 056 to toggle LEDs lt 4 Press GQ To Quit gt Press 1 or 2 on your keyboard to select LED DS1 or DS2 on the Prototyping Board Then follow the prompt in the Dynamic C STDIO window to turn the LED on or off e IR_DEMO c Demonstrates sending Modbus ASCII packets between two RCM3700 Prototyping Board assemblies with IrDA transceivers via the IrDA transceivers Note that this sample program will only work with the RCM3700 Prototyping Board First compile and run this program 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 connect the program ming cable to the second Prototyping Board assembly with the RCM3750 and compile and run the same sample program With the programming cable still connected to the second Prototyping Board assembly press switch S1 on the second Prototyping Board to transmit a packet Once the first Prototyping Board assembly receives a test packet it will send back a response packet that will be displayed in the Dynamic
63. URN VALUE None SEE ALSO glPrintf glPutFont doprnt Prints a formatted 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 return respectively will be printed if they exist in the font set but will not have any effect as control characters Any portion of the bitmap character that is outside the LCD display area will be clipped PARAMETERS x is the x coordinate column of the upper left corner of the text y is the y coordinate row of the upper left corner of the text pinfo is a pointer to the font descriptor fmt is a formatted string are formatted string conversion parameter s EXAMPLE glprintf 0 0 amp 112x16 Test d n count RETURN VALUE None SEE ALSO g1lXFontInit User s Manual 143 Increments LCD screen locking counter Graphic calls are recorded in the LCD memory buffer and are not transferred to the LCD if the counter is non zero NOTE glBuffLock and g1BuffUnlock can be nested up to a level of 255 but be sure to balance the calls It is not a requirement to use these procedures but a set of glBuffLock and gl1BuffUnlock bracketing a set of related graphic calls speeds up the rendering significantly RETURN VALUE None SEE ALSO glBuffUnlock glSwap Decrements the LCD screen locking counter The contents of
64. a pointer to a font descriptor ch is a character to be displayed on the LCD RETURN VALUE None SEE ALSO TextGotoXY TextPrintf TextWindowFrame TextCursorLocation Prints a formatted string much like printf on the LCD 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 be displayed The text window feature provides end of line wrapping and clipping after the character in the last col umn and row is displayed The cursor then remains at the end of the string NOTE Execute the TextWindowFrame function before using this function PARAMETERS window is a pointer to a font descriptor f mt is a formatted string are formatted string conversion parameter s EXAMPLE TextPrintf amp TextWindow Test d n count RETURN VALUE None SEE ALSO TextGotoXY TextPutChar TextWindowFrame TextCursorLocation User s Manual 153 This function returns the maximum number of characters that can be displayed within the text window NOTE Execute the TextWindowFrame function before using this function PARAMETERS wPtr is a pointer to the window frame descriptor RETURN VALUE The maximum number of characters that can be displayed within the text window SEE ALSO TextGotoXY TextPrintf TextWindowFrame TextCursorLocation This functions clears the entire area
65. able C 1 LCD Keypad Specifications Parameter Specification 2 60 x 3 00 x 0 75 poe 66 mm x 76 mm x 19 mm Bezel Siz 4 50 x 3 60 x 0 30 A g 114 mm x 91 mm x 7 6 mm Operating Range 0 C to 50 C Tempers Storage Range 40 C to 85 C Humidity 5 to 95 noncondensing Power Consumption j 1 5 W maximum Connections Connects to high rise header sockets on the RCM3700 Prototyping Board LCD Panel Size 122 x 32 graphic display Keypad 7 key keypad LEDs Seven user programmable LEDs The backlight adds approximately 650 mW to the power consumption The LCD keypad module has 0 1 IDC headers at J1 J2 and J3 for 0 100 physical connection to other boards or ribbon cables Figure C 2 shows the LCD keypad module footprint These values are relative to one of the mounting holes NOTE All measurements are in 7 inches followed by millimeters enclosed in parentheses All dimen sions have a manufacturing toler ance of 0 01 0 25 mm 2 5 J1 T TEREA owt oS Ow v mig D Sa NO os Se oo ot Y 0 200 __ _ 0 500 5 1 12 7 le 1 450 36 8 p 2 200 7 55 9 Figure C 2 User Board Footprint for LCD Keypad Module User s Manual 124 C 2 Contrast Adjustments for All Boards Starting in 2005 LCD keypad modules were factory configured to optimize their contrast based on the voltage of the syst
66. ace See Figure B 14 for the header pinouts RS 232 An optional through hole RS 232 chip may be installed at U1 or a surface mount RS 232 chip may be installed at U3 Five 0 1 uF capacitors also need to be added for the RS 232 circuit to work When stuffed the RS 232 chip brings out Serial Ports C and D to the header J3 area on the RCM3720 Prototyping Board An optional 2 x 5 header strip with a 0 1 pitch can be installed at J3 to allow you to connect a rib bon cable that leads to a standard DB 9 serial connector Two 3 wire serial ports or one 5 wire RS 232 serial port are then available at header J3 Backup Battery A 2032 lithium ion battery rated at 3 0 V 220 mA h provides battery backup for the RCM3720 SRAM and real time clock 113 RabbitCore RCM3750 B 2 2 Mechanical Dimensions and Layout Figure B 12 shows the mechanical dimensions and layout for the RCM3720 Prototyping Board OZZEINDY g S0 1 am Tl lo oj H lo ESS oS 0 15 3 8 esd A isa CISC LN SVa Evd Lyd ld 08d d Sad vd 94d 09d Z d 43d vAd 03d 99d quoi Sad VaN OO00000000 OO QQ 29000000000 000000 O900000000000000 O290000000000000 ON90000000000000
67. alib User s Manual 55 Writes the calibration constants gain and offset for an input based from global tables to designated posi tions in the simulated EEPROM area of the flash memory The constants are stored in the top 2K of the reserved area in the user block memory note that while Rabbit Semiconuctor reserves an area in the user block memory for calibration constants this reserved area is not protected The following macros can be used to identify the starting address for these locations ADC_CALIB ADDRS address start of single ended analog input channels ADC_CALIB ADDRD address start of differential analog input channels ADC_CALIB_ ADDR M 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 corresponding to ADC_INO ADC_IN7 opmode is the mode of operation SINGLE single ended input line DIFF differential input line mAMP unilliamp input line channel SINGLE DIFF mAMP 0 AINO AINO AIN1 AINO 1 AIN1 AIN1 AINO AIN1 2 AIN2 AIN2 AIN3 AIN2 3 AIN3 AIN3 AIN2 AIN3 4 AIN4 AIN4 AIN5 AIN4 5 AINS5 AIN5 AIN4 AINS5 6 AIN6 AIN6 AIN7 AIN6 7 AIN7 AIN7 AIN6 AIN7 ALLCHAN read all channels for selected opmode Not accessible on RCM3700 Prototyping Board User s Manual 56 gaincode is the gain c
68. ample given User s Manual 66 6 2 2 How IP Addresses are Used The actual hardware connection via an Ethernet uses Ethernet adapter addresses also called MAC addresses These are 48 bit addresses and are unique for every Ethernet adapter manufactured In order to send a packet to another computer given the IP address of the other computer it is first determined if the packet needs to be sent directly to the other computer or to the gateway In either case there is an Ethernet address on the local network to which the packet must be sent A table is maintained to allow the protocol driver to determine the MAC address corresponding to a particular IP address If the table is empty the MAC address is determined by sending an Ethernet broadcast packet to all devices on the local network asking the 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 cannot be sent Some IP address ranges are reserved for use on internal networks and can be allocated freely as long as no two internal hosts have the same IP address These internal IP addresses are not routed to the Internet and any internal hosts using one of these reserved IP addresses cannot communicate on the external Internet without being connected to a host that has a valid Internet IP address The host would either translate the data or it wou
69. apter Programming Cable Ou Colored edge Ovid Blue shrink wrap To PC COM port N 3 pin power connector OOQQQQQ0Q0Q000 OQQQQQQQQ0Q00000000 O00000000000000000 OQQQQ0Q00Q000 Reset switch Figure 3 Connect Programming Cable and Power Supply NOTE Be sure to use the programming cable part number 101 0542 supplied with this Development Kit the programming cable has blue shrink wrap around the RS 232 con verter section located in the middle of the cable The simplified programming cable and adapter board that are supplied with the Ethernet Connection Kit may also be used as shown in the inset diagram above Programming cables from other Rabbit Semiconduc tor kits are not designed to work with RCM3750 modules Connect the other end of the programming cable to a COM port on your PC NOTE Some PCs now come equipped only with a USB port It may be possible to use an RS 232 USB converter Part No 540 0070 with the programming cable supplied with the RCM3750 Development Kit Note that not all RS 232 USB converters work with Dynamic C User s Manual 14 2 2 3 Connect Power When all other connections have been made you can connect power to the Prototyping Board Connect the wall transformer to 3 p
70. at neither of these currently supports SSL security User s Manual 75 Before you run the INTEGRATION C sample program you will first need to format and partition the serial flash Find the FMT_DEVICE C sample program in the Dynamic C SAMPLES FileSystem folder Open this sample program with the File gt Open menu then compile and run it by pressing F9 FMT_DEVICE cC formats the serial flash for use with the FAT file system If the serial flash is already formatted FMT_DEVICE C gives you the option of erasing the serial flash and reformatting it with a single large partition This erasure does not check for non FAT partitions and will destroy all existing partitions Next run the INTEGRATION_FAT_SETUP C sample program in the Dynamic C SAMPLES RCM3700 Module_ Integration folder Open this sample program with the File gt Open menu then compile and run it by pressing F9 INTEGRATION_FAT_ SETUP C will copy some files into the FAT file system via ximport The last step to complete before you can run the INTEGRATION C sample program is to create an SSL certificate The SSL walkthrough in the online documentation for the Dynamic C SSL module explains how to do this Now you are ready to run the INTEGRATION C sample program in the Dynamic C SAMPLES RCM3700 Module_ Integration folder Open this sample program with the File gt Open menu then compile and run it by pressing F9 NOTE Since HTTP upload and the Dynamic C SSL module curre
71. ate net work preferred for initial experimentation and debugging or a connection via the Internet RCM3750 System RCM3750 System User s PC CAT 5 6 __ Ethernet CAT 5 6 cables Ethernet To additional crossover cable network Hub Direct Connection Tremens network of 2 computers Direct Connection Using a Hub User s Manual 70 6 4 1 How to Set IP Addresses in the Sample Programs With the introduction of Dynamic C 7 30 we have taken steps to make it easier to run many of our sample programs You will see a TCPCONFIG macro This macro tells Dynamic C to select your configuration from a list of default configurations You will have three choices when you encounter a sample program with the TCPCONFIG macro l You can replace the TCPCONFIG macro with individual MY_IP_ADDRESS MY_NET MASK MY_GATEWAY and MY_NAMESERVER macros in each program You can leave TCPCONFIG at the usual default of 1 which will set the IP configurations to 10 10 6 100 the netmask to 255 255 255 0 and the nameserver and gateway to10 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 RCM3750 module and 10 1 1 1 for your PC you can edit the values in the section that directly follows the General Configuration com ment in the TCP_CONFIG LIB library You
72. b Hubs are low in cost and are readily available The RCM3750 uses 10 100 Mbps Ethernet so the hub or Ethernet adapter must be a 10 100 compatible unit In a corporate setting where the Internet is brought in via a high speed line there are typi cally machines between the outside Internet and the internal network These machines include a combination of proxy servers and firewalls that filter and multiplex Internet traf fic In the configuration below the RCM3750 could be given a fixed address so any of the computers on the local network would be able to contact it It may be possible to configure the firewall or proxy server to allow hosts on the Internet to directly contact the controller but it would probably be easier to place the controller directly on the external network out side of the firewall This avoids some configuration complications by sacrificing some security User s Manual 64 Firewall Adapter Proxy Server Network Eth t erne Ethernet RCM3750 Typical Corporate Network System If your system administrator can give you an Ethernet connection along with its IP address the netmask and the gateway address then you may be able to run the sample programs without having to set up a direct connection between your computer and the RCM3750 You will also need the IP address of the nameserver t
73. capability click the upload link on the admin page and choose a simple text file to replace monitor ztm Open another browser window and load the main Web page You will see that your text file has replaced the humidity monitor To User s Manual 76 restore the monitor go back to the other window click back to go to the upload page again and choose HUMIDITY_MONITOR ZHTML to replace monitor ztm and click Upload When you refresh the page in your browser you will see that the page has been restored You have successfully updated and restored your application s files remotely When you are finished with the INTEGRATION C sample program you need to follow a special shutdown procedure before powering off to prevent any possible corruption of the FAT file system Press and hold switch S1 on the Prototyping Board until LED DS1 blinks rapidly to indicate that it is now safe to turn the RCM3750 off This 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 RCM3750 through a distributor or through a Rabbit Semi conductor partner contact the distributor or partner first for technical support If there are any problems at this point use the Dynamic C Help menu to get further assis tance with Dynamic C visit our Web site at http www digi com support or contact your Digi sales representative or authorized distributor for further information
74. ceiver is in use A 10 pin 0 1 inch spacing header strip 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 3 pin shrouded header is installed at J1 A jumper on header JP2 enables the RS 485 output for Serial Port E IrDA An infrared transceiver is included on the Prototyping Board and is capable of handling link distances up to 1 5 m The IrDA uses Serial Port F Serial Ports C and D are unavailable while Serial Port F is in use Backup Battery A 2032 lithium ion battery rated at 3 0 V 220 mA h provides battery backup for the RCM3750 SRAM and real time clock 93 RabbitCore RCM3750 N sr 1S x B 1 2 Mechanical Dimensions and Layout Figure B 2 shows the mechanical dimensions and layout for the RCM3700 Prototyping Board Nw xe A A off stafa ua RE R2 or ofS S oF to 5 r x paea R25 ET se So 6 26 ii 2s ree 33 2e rbo go o9 g oo 2e gs 88 ge el 3 a9 oxit sr ge nai 20 2E 3 E RESET Y 3 A y hd 0 20 0 20 6 10 le gt 0 20
75. ceivers x Serial Flash x x Serial Communication x x TCP IP x x A D Converter x LCD Keypad Module x Dynamic C FAT File System RabbitWeb x x SSL Modules Each sample program has comments that describe the purpose and function of the pro gram Follow the instructions at the beginning of the sample program Note that the RCM3750 must be installed on the Prototyping Board when using these sample programs TCP IP sample programs are described in Chapter 6 Using the TCP IP Features Sample programs for the optional LCD keypad module that is used on the RCM3700 Prototyping Board are described in Appendix C Additional sample programs are available online at http www digi com support or con tact your Digi sales representative or authorized distributor for further information e DIO c Demonstrates the digital I O capabilities of the A D converter on the Proto typing Board by configuring two lines to outputs and two lines as inputs on Prototyping Board header JP4 If you are using the RCM3700 Prototyping Board install a 2 x 2 header at JP4 and con nect pins 1 2 and pins 3 4 on header JP4 before running this sample program e FLASHLED c Demonstrates assembly language program by flashing LEDs DS1 and DS2 on the Prototyping Board at different rates e TOGGLESWITCH c Uses costatements to detect switches using debouncing The cor responding LEDs DS1 and DS2 will turn on or off Getting Started 20 e CON
76. ct an RCM3750 module to a power supply and a PC workstation for devel opment It also provides some basic I O peripherals RS 232 RS 485 A D converter IrDA transceiver LEDs and switches as well as a prototyping area for more advanced hardware development For the most basic level of evaluation and development the RCM3700 Prototyping Board can be used without modification As you progress to more sophisticated experimentation and hardware development modi fications and additions can be made to the board without modifying the RCM3750 module The RCM3700 Prototyping Board is shown below in Figure B 1 with its main features identified RS 232 RCM3700 Module Backup Power RS 485 Header Extension Header Battery Input IRDA Transceiver RCM3700 Module Connector GND Buses Through Hole Prototyping Area Looe RCMB6I37XX SERIES PROTOTYPING BOARD Analog So seh Analog User LCD Keypad Ground Inputs LEDs User Reset Module Switches Switch Connections Figure B 1 RCM3700 Prototyping Board 91 RabbitCore RCM3750 B 1 1 Features Power Connection A 3 pin header is provided for connection to the power supply Note that the 3 pin header is symmetrical with both outer pins connected to ground and the center pin connected to the raw DCIN input The cable of
77. d that the RCM3750 module is plugged in correctly User s Manual 36 4 4 Other Hardware 4 4 1 Clock Doubler The RCM3750 takes advantage of the Rabbit 3000 microprocessor s internal clock dou bler A built in clock doubler allows half frequency crystals to be used to reduce radiated emissions The 22 1 MHz frequency specified for the RCM3750 is generated using a 11 06 MHz resonator The clock doubler may be disabled if 22 1 MHz clock speeds are not required This will reduce power consumption and further reduce radiated emissions The clock doubler is disabled with a simple configuration macro as shown below 1 Select the Defines tab from the Dynamic C Options gt Project Options menu 2 Add the line CLOCK_DOUBLED 0 to always disable the clock doubler The clock doubler is enabled by default and usually no entry is needed If you need to specify that the clock doubler is always enabled add the line CLOCK_DOUBLED 1 to always enable the clock doubler 3 Click OK to save the macro The clock doubler will now remain off whenever you are in the project file where you defined the macro 4 4 2 Spectrum Spreader The Rabbit 3000 features a spectrum spreader which helps to mitigate EMI problems By default the spectrum spreader is on automatically but it may also be turned off or set to a stronger setting The means for doing so is through a simple configuration macro as shown below 1 Select the Defines tab from t
78. d the SAMPLES RCM3720 SERIAL folders NOTE Pin PES is set up to enable disable the RS 232 chip on the RCM3700 Prototyping Board This pin will also be toggled when you run RS 232 sample programs on an RCM3700 Prototyping Board If you plan to use this pin for something else while you are running any of the RS 232 sample programs comment out the following line BitWrPortI PEDR amp PEDRShadow 0 5 set low to enable rs232 device e FLOWCONTROL C This program demonstrates hardware flow control by configuring Serial Port C for CTS RTS with serial data coming from Serial Port D The serial data received are displayed in the STDIO window To set up the Prototyping Board you will need to tie TxC and RxC together on the RS 232 header at J2 and you will also tie TxD and RxD together using the 0 1 jumpers supplied in the Development Kit z as shown in the diagram A repeating triangular pattern should print out in the STDIO window The program will periodically switch flow control on or off to demonstrate the effect of no flow control e PARITY C This program demonstrates the use of parity modes by repeatedly sending byte values 0 127 from Serial Port D to Serial Port C The program will switch between generating parity or not on Serial Port D Serial Port C will always be checking parity so parity errors should occur during every other sequence To set up the Prototyping Board you will ne
79. des detailed specifications for the RCM3750 User s Manual 7 1 2 Advantages of the RCM3750 Fast time to market using a fully engineered ready to run ready to program micro processor core Competitive pricing when compared with the alternative of purchasing and assembling individual components Easy C language program development and debugging Program download utility Rabbit Field Utility and cloning board options for rapid production loading of programs Generous memory size allows large programs with tens of thousands of lines of code and substantial data storage Integrated Ethernet port for network connectivity with royalty free TCP IP software Ideal for network enabling security and access systems home automation HVAC systems and industrial controls User s Manual 1 3 Development and Evaluation Tools 1 3 1 Development Kit The Development Kit contains the hardware and software needed to use the RCM3750 RCM3750 module RCM3700 Prototyping Board AC adapter 12 V DC 1 A included only with Development Kits sold for the North American market A header plug leading to bare leads is provided to allow overseas users to connect their own power supply with a DC output of 7 5 30 V Programming cable with 10 pin header and DB9 connections and integrated level matching circuitry Cable kits to access RS 485 and analog input connectors on Prototyping Board Dynamic C CD ROM with complete pro
80. directory where Dynamic C was installed User s Manual 12 2 2 Hardware Connections There are three steps to connecting the Prototyping Board for use with Dynamic C and the sample programs 1 Attach the RCM3750 module to the Prototyping Board 2 Connect the programming cable between the RCM3750 and the workstation PC 3 Connect the power supply to the Prototyping Board The connections are shown for the RCM3700 Prototyping Board and are similar for the RCM3720 Prototyping Board 2 2 1 Attach Module to Prototyping Board Turn the RCM3750 module so that the Ethernet jack is on the left as shown in Figure 2 below Insert the module s J1 header into the TCM SMT SOCKET socket on the Proto typing Board The shaded corner notch at the bottom right corner of the RCM3750 module should face the same direction as the corresponding notch below it on the Prototyping Board RCM3750 corners 8 oot mammi oT SOOO 200000 COOOL Ye 2C OOQ 218888 8 scow OO ve WU Ps 20000 ed ad Res ETE ETc2s oie ptt E O00 Q000000000000000 OQOQQQQQQQQQQQQQ000Q 9990090999979000 909 OOQOQQQQQQQQQQQOQOQ QQ Q Q Q xe OOOO0OC xe Ye xe ax
81. duct documentation on disk Getting Started instructions Accessory parts for use on the Prototyping Board Rabbit 3000 Processor Easy Reference poster Registration card Programming A AC Adapter f a 1 Cable Ze North Ai merce ZZ kits only y f La a lala CE paa a 0 yee 7 Parts for Prototyping Board Zz Cable Kits Figure 1 RCM3750 Development Kit User s Manual 1 3 2 Software The RCM3750 is programmed using version 9 24 or later of Dynamic C Rabbit Semiconuctor also offers for sale other add on Dynamic C modules including the popular uC OS II real time operating system as well as point to point protocol PPP Advanced Encryption Standard AES and other select libraries In addition to the Web based technical support included at no extra charge a one year telephone based technical support module is also available for purchase Visit our Web site at http www digi com support or contact your Digi sales representative or authorized distributor for further information 1 3 3 Application Kits Rabbit Semiconductor also has application kits featuring the RCM3700 to provide the exact software and other tools that will enable to tailor your RCM3700 or RCM3750 for specific applications e Secure Embedded Web Application Kit Part No 101 0897 North American markets and Part No 101 0898 overseas markets comes with three CD ROMs that have the Dynamic C RabbitWeb FAT File S
82. dware 1 2 PF4 Switch S1 3 4 PB7 Switch S2 5 6 PF6 LED DS1 7 8 PF7 LED DS2 B 2 4 1 Prototyping Area There is a 1 8 x 2 4 through hole prototyping space available on the RCM3720 Proto typing Board The holes in the prototyping area are spaced at 0 1 2 5 mm 5 V and ground traces run along the bottom edge of the prototyping area for easy access Small to medium circuits can be prototyped using point to point wiring with 20 to 30 AWG wire between the prototyping 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 around the prototyping area There are six sets of pads three on each side for 16 pin devices that can be used to surface mount SOIC devices There are also pads that can be used for SMT resistors and capaci tors in an 0805 SMT package Each component has every one of its pin pads connected to a hole in which a 30 AWG wire can be soldered standard wire wrap wire can be soldered in for point to point wiring on the RCM3720 Prototyping Board Because the traces are very thin carefully determine which set of holes is connected to which surface mount pad User s Manual 118 N N M O a a RCM3720 B 2 5 Serial Communication As shipped the RCM3720 Prototyping Board has no RS 232 chip installed and so no RS 232 communication is possible An optional
83. e OOOO 2999009000009909 OQQQQQ OQQQQ a xe SOC OO SOC O00 99900909099 OOQOQOQQQQ0Q000000 QQ le e OO OO OO le fe le OO OO OO OO OOO RCM36 37XX SERIES ROTOTYPING BOARD COOOL Q f Q O O OO OOO B8000000000000000 OOO09900000000000 MOOOOOOO0000000000 OO OO OO OOO OO QOQ OO OO OO QOQOL O00 OO OO OO Figure 2 Install the RCM3750 Module on the Prototyping Board NOTE It is important that you line up the pins on header J1 of the RCM3750 module exactly with the corresponding pins of the TCM SMT SOCKET socket on the Proto typing Board The header pins may become bent or damaged if the pin alignment is off set and the module will not work Permanent electrical damage to the module may also result if a misaligned module is powered up Press the module s pins firmly into the Prototyping Board headers User s Manual 13 2 2 2 Connect Programming Cable The programming cable connects the RCM3750 to the PC running Dynamic C to down load programs and to monitor the RCM3750 module during debugging Connect the 10 pin connector of the programming cable labeled PROG to header J2 on the RCM3750 as shown in Figure 3 Be sure to orient the marked usually red edge of the cable towards pin 1 of the connector Do not use the DIAG connector which is used for a normal serial connection AC Ad
84. e adheres RENE ENA EE E ot 62 6 2 TCP IP Primer on IP Addressesissoniegninriijenii nioi a E E AE NRE E E 64 6 2 1 IP Addresses Explained oocnssstie arn E E E EE S 66 6 22 How IP Addresses are Used icion e etii Tu a R EE A E EEE E E ER 67 6 2 3 Dynamically Assigned Internet Addresses cccceccesseesecsseesecsseeseceeeeseceeceseeeeeeseeeeneeeeeeenseneeenes 68 6 3 Placing Yo r Device onthe Network rare ieriiiire rne a e e EE E O E EE 69 6 4 Running TCP IP Sample Programs ccccesesscescessceseeeseesecseesaecsaesaeceeceaeeeseseeeeeeaeeseeesecaecaeenetereeas 70 6 4 1 How to Set IP Addresses in the Sample Programs c ccssessesssesseeseescesecseceseeeseeeeeerenseenes 71 6 4 2 How to Set Up your Computer for Direct Connect sesessseeessessseeeeseesesetsrsresseressesesreseseessese 72 6 5 Run the PINGME C Sample Programeri oin o E E E ER 73 6 6 Running Additional Sample Programs With Direct Connect sssssesseessseesesersreeessesessesesseesesersesees 73 6 6 1 RabbitWeb Sample Programs ceneni n i E E E E Ra a ia ei 74 6 6 2 Secure Sockets Layer SSL Sample ProgramSs ssessssessssreeeseeeesersessessesessesesstereseesesresseessese 75 6 6 3 Dynamic C FAT File System RabbitWeb and SSL Modules cccescceseeesceseeeeeeeeeseeeeeenes 75 6 7 Where Do Go From Here cicc ctied cccstets ies sh een eas ssa eae ened el eee 77 Appendix A RCM3750 Specifications 78 A 1 Electrical and Mechanical Characteristics
85. ed fiducial reference point RCM3750 Footprint x 0 290 7 4 Y 0 060 gt k 1 5 1 0 000 0 0 Figure A 3 User Board Footprint for RCM3750 User s Manual 82 A 2 Bus Loading You must pay careful attention to bus loading when designing an interface to the RCM3750 This section provides bus loading information for external devices Table A 2 lists the capacitance for the various RCM3750 I O ports Table A 2 Capacitance of Rabbit 3000 I O Ports Input Output 1 0 Ports Capacitance Capacitance pF pF Parallel Ports A to G 12 14 Table A 3 lists the external capacitive bus loading for the various RCM3750 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 Table A 3 External Capacitive Bus Loading 40 C to 85 C Output Port Clock Speed Maximum External MHz Capacitive Loading pF All I O lines with clock doubler enabled 22 1 100 User s Manual 83 Figure A 4 shows a typical timing diagram for the Rabbit 3000 microprocessor external I O read and write cycles NOTE IOCSx can be programmed to be active low default or active high ot LJ LE Lo A 15 0 External I O Read one programmed wait state fe T1 Tw gt lt T2 gt lt gt Tadr gt lt ICSx_ T Jf TA Tosx lt Tosx NOCS
86. ed on mode channel and gain Other factors affecting the calibration must be taken into account by calibrating using the same mode and gain setup as in the intended use Sample programs are provided to illustrate how to read and calibrate the various A D inputs for the three operating modes Mode Read Calibrate Single Ended one channel AD_CALSE_CH C Single Ended all channels AD_RDSE_ALL C AD_CALSE_ALL C Milliamp one channel AD_RDMA CH C AD_CALMA CH C Differential analog ground AD_RDDIFF_CH C AD _CALDIFF_CH C These sample programs are found in the ADC subdirectory in SAMPLES RCM3700 See Section 3 2 3 for more information on these sample programs and how to use them User s Manual 102 RCM3700 B 1 6 Serial Communication The RCM3700 Prototyping Board allows you to access five of the serial ports from the RCM3750 module Table B 4 summarizes the configuration options Table B 4 RCM3700 Prototyping Board Serial Port Configurations Configured via Serial Port Signal Header Header Default Use Alternate Use J2 JP2 RS 232 J2 JP2 RS 232 E J1 J2 JP1 JP2 RS 485 J1 RS 232 J2 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 Ports C and D 103 RabbitCore RCM3750 B 1 6 1 RS 232 N
87. ed to tie TxD and RxC together on the RS 232 header at J2 using the 0 1 jumpers supplied in the Development Kit as shown in the diagram The Dynamic C STDIO window will display the error sequence Getting Started 22 e SIMPLE3WIRE C This program demonstrates basic RS 232 serial communication Lower case characters are sent by TxC and are eae received by RxD The characters are converted to upper case and are Og sent out by TxD are received by RxC and are displayed in the a Dynamic C STDIO window o m o 2 6 To set up the Prototyping Board you will need to tie TxD and RxC together on the RS 232 header at J2 and you will also tie RxD and TxC together using the 0 1 jump ers supplied in the Development Kit as shown in the diagram e SIMPLE5WIRE C This program 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 the RS 232 header at J2 and you will also tie TxC and RxC together using the 0 1 jumpers supplied in the Development Kit as shown in the diagram Once you have compiled and run this program you can test flow con trol by disconnecting TxC from RxC while the program is running Characters will no longer appear in the STDIO window and will display again once TxC is connected back to RxC e SWITCHCHAR C This program demonstrates t
88. em they would be used in Be sure to select a K DU3V LCD keypad module for use with the RCM3700 Prototyping Board these modules operate at 3 3 V You may adjust the contrast using the potentiometer at R2 as shown in Figure C 3 LCD keypad modules configured for 5 V may be used with the 3 3 V RCM3700 Prototyping Board but the backlight will be dim LCD Keypad Module Jumper Configurations Pins Factory ee ee Contrast Adjustment J5 Part No 101 0541 DISPLAY BOARD Ea O Figure C 3 LCD Keypad Module Voltage Settings You can set the contrast on the LCD display of pre 2005 LCD keypad modules by adjust ing the potentiometer at 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 LCD keypad modules that do not have a header at J5 or a contrast adjust ment potentiometer at R2 are limited to operate only at 5 V and will not work with the RCM3700 Prototyping Board The older LCD keypad modules are no longer being sold User s Manual 125 C 3 Keypad Labeling The keypad may be labeled according to your needs A template is provided in Figure C 4 to allow you to design
89. emon 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 the thermistor included with the Development Kit with Rg 25 C 3 KQ and P 25 85 3965 Be sure to use the applicable Ro and B values for your thermistor if you use another thermistor Install the thermistor at location J7 which is shown in Figure B 4 VREF Thermistor 7 THERM_IN7 ADC C w ANALOG_GND Figure B 6 RCM3700 Prototyping Board Thermistor Input User s Manual 100 N S x RCM3700 B 1 5 3 Other A D Converter Features The A D converter s internal reference voltage is software configurable for 1 15 V 2 048 V or 2 5 V The scaling circuitry on the Prototyping Board and the sample programs are opti mized for an internal reference voltage of 2 048 V This internal reference voltage is avail able on pin 3 of shrouded header J8 as VREF and allows you to convert analog input voltages that are negative with respect to analog ground NOTE The amplifier inside the A D converter s internal voltage reference circuit has a very limited output current capability The internal buffer can source up to 20 mA and sink only up to 20 uA A separate buffer amplifier at U7 supplies the load current The A D converter s CONVERT pin is available on pin 2 of shrouded header J8 and can be used as a hardware mea
90. er and click on the Properties button Depending on which version of Windows your PC is running you may have to select the Local Area Connection first and then click on the Properties button to bring up the Ethernet interface dialog Then Configure your interface card for a 10Base T Half Duplex or an Auto Negotiation connection on the Advanced tab NOTE Your network interface card will likely have a different name 3 Now select the IP Address tab and check Specify an IP Address or select TCP IP and click on Properties to assign an IP address to your computer this will disable obtain an IP address automatically IP Address 10 10 6 101 Netmask 255 255 255 0 Default gateway 10 10 6 1 4 Click lt OK gt or lt Close gt to exit the various dialog boxes RCM3750 IP 10 10 6 101 System Netmask 255 255 255 0 User s PC CAT 5 6 Ethernet crossover cable Direct Connection PC to RCM3750 Module User s Manual 72 6 5 Run the PINGME C Sample Program Connect the crossover cable from your computer s Ethernet port to the RCM3750 module s RJ 45 Ethernet connector Open this sample program from the SAMPLES TCPIP ICMP folder compile the program and start it running under Dynamic C When the program starts running the green LINK light on the RCM3750 module should be on to indicate an Ethernet connection is made Note
91. er of the block width is the width of the block height is the height of the block pattern is the bit pattern to display all black if pattern is OxFF all white if pattern is 0x00 and 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 aligned Any por tion of the block that is outside the LCD display area will be clipped PARAMETERS left is the x coordinate of the top left corner of the block x must be evenly divisible by 8 top is the y coordinate of the top left corner of the block width is the width of the block must be evenly divisible by 8 height is the height of the block RETURN VALUE None SEE ALSO glFillScreen glBlankScreen glBlock User s Manual 137 Draws a rectangular block in the page buffer and on the LCD if the buffer is unlocked Any portion of the block that is outside the LCD display area will be clipped PARAMETERS left is the x coordinate of the top left corner of the block top is the y coordinate of the top left corner of the block width is the width of the block height is the height of the block RETURN VALUE 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 outside the
92. erial functions where packets can be delimited by the 9th bit by transmission gaps or with user defined special characters Both libraries provide blocking functions which do not return until 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 information see the Dynamic C Function Reference Manual and Technical Note TN213 Rabbit Serial Port Software 5 2 5 Serial Flash The serial flash drivers are located in the LIB SerialFlash folder Complete informa tion on these function calls is provided in the Dynamic C Function Reference Manual 5 2 6 TCP IP Drivers The TCP IP drivers are located in the LIB TCPIP folder Complete information on these libraries and the TCP IP functions is provided in the Dynamic C TCP IP User s Manual User s Manual 60 5 3 Upgrading Dynamic C Dynamic C patches that focus on bug fixes are available from time to time Check the Web site http www digi com support for the latest patches workarounds and bug fixes 5 3 1 Add On Modules Dynamic C installations are designed for use with the board they are included with and are included at no charge as part of our low cost kits Rabbit Semiconuctor offers for pur chase add on Dynamic C modules including the popular uC OS II real time operating system as well as PPP Advanced Encryption Standard AES and other
93. etstotelstotstelotoMmnicloray 9 RS 232 Header 2999900669006600099000000G0000000 OO BOQ 0Q60900Q5090GO990GG900GG9G0GGG006 Dos BO unstuffed BE BE EE 000000000000000000000 O0 RCM3720 Module Sc 8 VOOOOOOOOOOOGOOO00000 ux teteetetetetetetetetetetetctetetetey OO a H Extension Header Eis 808 BS SM r aks Ee es 990 Through Hole 3896 iS i lt Reset Switch SMT Prototyping 399 Prototyping Area 3 29988 E ee Area 3888888885885585000 E z Power LED PA J000000000000000000 3 3 fsa ee jx 9000000000000000000 9 Poy Ga 8 dd 8 lt 7 90000096606600000060G000 sips Aa U Ee a 99999999999999950996060 RO Iser O Se sle elololeielololoieleloloreleloleir clelolele ANE Switches PERERA eee Through Hole N LEDs User RS 232 Chip 5 V and GND unstuffed Buses Figure B 11 RCM3720 Prototyping Board User s Manual 112 RCM3720 B 2 1 Features Power Connection A 3 pin header is provided for connection to the power supply Note that the 3 pin header is symmetrical with both outer pins connected to ground and the center pin connected to the raw DCIN input The cable of the AC adapter provided with the North American version of the Ethernet Connection Kit ends in a plug that connects to the power supply header and can be connected to the 3 pin header in either orientation Users providing their own power supply should ensure that it delivers at least 200 mA at 7 5 15 V DC The voltage regulator will get warm while
94. evelopment Kit in your PC s CD ROM drive If autorun is enabled the CD installation will begin automatically If autorun is disabled or the installation otherwise does not start use the Windows Start Run menu or Windows Disk Explorer to launch setup exe from the root folder of the CD ROM The installation 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 installation allows you to choose the COM port that will be used The default selec tion is COM1 You may select any available port for Dynamic C s use If you are not cer tain which port is available select COM1 This selection can be changed later within Dynamic C NOTE The installation utility does not check the selected COM port in any way Speci fying a port in use by another device mouse modem etc may lead to a message such as could not open serial port when Dynamic C is started Once your installation is complete you will have up to three new icons on your PC desk top One icon is for Dynamic C one opens the documentation menu and the third is for the Rabbit Field Utility a tool used to download precompiled software to a target system If you have purchased any of the optional Dynamic C modules install them after installing Dynamic C The modules may be installed in any order You must install the modules in the same
95. g changing COM port 16 COMNECHIONS sesse 16 U USB serial port converter Dynamic C settings 16 user block function calls readUserBlock 38 writeUserBlock 38 WwW Wi Fi Add On Kit sesse 10 User s Manual 165
96. h when not driven Serial Port A PC7 Input RXA Programming Port Pulled up core module PDO Output Ethernet RSTDRV Pulled up core module PD1 Input Ethernet BD5 EESK Set by Ethernet PD2 Input Ethernet BD6 EEDI Set by Ethernet PD3 Input Ethernet BD6 EEDO Set by Ethernet PD4 Output ATXB A D converter SDI High set by driver PDS Input ARXB A D converter SDO Pulled up core module PD6 PD7 Input Not used Pulled up core module PEO Output IrDA MDO Pulled up Proto Board PEI Output IrDA MD1 Pulled down Proto Board PE2 Output Ethernet AEN High driven by Ethernet PE3 Input Not used Pulled up core module PE4 Output IrDA FIR_SEL Low slow baud rate User s Manual 110 RCM3700 Table B 6 RCM3700 Prototyping Board Use of Rabbit 3000 Parallel Ports Port 1 0 Use Initial State PES Output RS 232 enable are a PE6 Output Serial Flash Select Pulled up core module PE7 Output LCD keypad module BUFEN Pulled up Proto Board PFO Output A D converter select line Pulled up Proto Board PF1 Input A D converter busy Pulled down Proto Board PF2 PF3 Input Not used Pulled up core module PF4 Input Switch S1 Pulled up 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 Eales Se a Serial Port F PG3 Input RXF IrDA ee Fe ee ae PG4
97. he Dynamic C Options gt Project Options menu 2 Normal spreading is the default and usually no entry is needed If you need to specify normal spreading add the line ENABLE_SPREADER 1 For strong spreading add the line ENABLE_SPREADER 2 To disable the spectrum spreader add the line ENABLE_SPREADER 0 NOTE The strong spectrum spreading setting is not recommended since it may limit the maximum clock speed or the maximum baud rate It is unlikely that the strong set ting will be used in a real application 3 Click OK to save the macro The spectrum spreader will now remain off whenever you are in the project file where you defined the macro NOTE Refer to the Rabbit 3000 Microprocessor User s Manual for more information on the spectrum spreading setting and the maximum clock speed User s Manual 37 4 5 Memory 4 5 1 SRAM RCM3750 modules have 512K of SRAM 4 5 2 Flash EPROM RCM3750 modules also have 512K of flash EPROM NOTE Rabbit Semiconuctor recommends that any customer applications should not be constrained by the sector size of the flash EPROM since it may be necessary to change the sector size in the future Writing to arbitrary flash memory addresses at run time is also discouraged Instead use a portion of the user block area to store persistent data The functions writeUser Block and readUserBlock are provided for this Refer to the Rabbit 3000 Micropro cessor Designer s Handbook for additional
98. he Rabbit Cloning Board Serial Port A has special features that allow it to cold boot the system after reset Serial Port A is also the port that is used for software development under Dynamic C Alternate Uses of the Programming Port All three clocked Serial Port A signals are available as e asynchronous serial port e an asynchronous serial port with the clock line usable as a general CMOS input User s Manual 33 The programming port may also be used as a serial port via the DIAG connector on the programming cable In addition to Serial Port A the Rabbit 3000 startup mode SMODE0 SMODE1 status and reset pins are available on the programming port The two startup mode pins determine what happens after a reset the Rabbit 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 different programmable functions 1 It can be driven low on the first op code fetch cycle 2 It can be driven low during an interrupt acknowledge cycle 3 It can also serve as a general purpose CMOS output The reset pin is an external input that is used to reset the Rabbit 3000 Refer to the Rabbit 3000 Microprocessor User s Manual for more information User s Manual 34 4 3 Serial Programming Cable The programming cable is used to connect the programming port of the RCM3750 to a PC serial
99. he name or IP address of your mail server and your domain name for some of the sample programs User s Manual 65 6 2 1 IP Addresses Explained IP Internet Protocol addresses are expressed as 4 decimal numbers separated by periods for example 216 103 126 155 10 1 1 6 Each decimal number must be between 0 and 255 The total IP address is a 32 bit number consisting of the 4 bytes expressed as shown above A local network uses a group of adja cent IP addresses There are always 2 IP addresses in a local network The netmask also called subnet mask determines how many IP addresses belong to the local network The netmask is also a 32 bit address expressed 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 network Applied to the IP address above 216 103 126 155 this netmask would indicate that the following IP addresses belong to the local network 216 103 126 0 216 103 126 1 216 103 126 2 etc 216 103 126 254 216 103 126 255 The lowest and highest address are reserved for special purposes The lowest address 216 102 126 0 is used to identify the local network The highest address 216 102 126 255 is used as a broadcast address Usually one other address is used for the address of the gateway out of the network This leaves 256 3 253 available IP addresses for the ex
100. ill need to obtain IP addressing information from your network administrator WAN The RCM3750 is capable 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 that development and debugging be done on a local network before connecting a RabbitCore system to the Internet TIP Checking and debugging the initial setup on a micro LAN is recommended before connecting the system to a LAN or WAN The PC running Dynamic C does not need to be the PC with the Ethernet card Apply Power Plug in the AC adapter The RCM3750 module and Prototyping Board are now ready to be used User s Manual 63 6 2 TCP IP Primer on IP Addresses Obtaining IP addresses to interact over an existing operating network can involve a num ber of complications and must usually be done with cooperation from your ISP and or network systems administrator For this reason it is suggested that the user begin instead by using a direct connection between a PC and the RCM3750 using a CAT 5 6 Ethernet crossover cable or a simple arrangement with a hub A crossover cable should not be con fused with regular straight through cables In order to set up this direct connection you will have to use a PC without networking or disconnect a PC from the corporate network or install a second Ethernet adapter and set up a separate priva
101. ime input signals from various port pins Two channel Quadrature Decoder accepts inputs from external incremental encoder modules Four available 3 3 V CMOS compatible serial ports maximum asynchronous baud rate of 2 76 Mbps Three ports are configurable as a clocked serial port SPI and one port is configurable as an HDLC serial port Shared connections to the Rabbit microproces sor make a second HDLC serial port available at the expense of two of the SPI configu rable ports giving you two HDLC ports and one asynchronous SPI serial port Supports 1 15 Mbps IrDA transceiver Table 1 below summarizes their main features of the RCM3750 Table 1 RCM3750 Features Feature RCM3750 Microprocessor Rabbit 3000 running at 22 1 MHz Flash Memory 512K SRAM 512K Serial Flash Memory 1 Mbyte 4 shared high speed 3 3 V CMOS compatible ports all 4 are configurable as asynchronous serial ports 3 are configurable as a clocked serial port SPI and 1 is configurable as an HDLC serial port option for second HDLC serial port at the expense of 2 clocked serial ports SPI Serial Ports Input Voltage 4 75 5 25 V DC 175 mA The RCM3750 is programmed over a standard PC serial port through a programming cable supplied with the Development Kit and can also be programed through a USB port with an RS 232 USB converter or over an Ethernet with the RabbitLink both available from Rabbit Semiconuctor Appendix A provi
102. in code and a channel code 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 Gain Code Multiplier 0 xl 1 x2 x4 x5 x8 x10 x16 x20 yI Alua AJ SJN Channel Code ea oput Channel Code penn Poa 0 AINO AIN1 8 AINO AINO 1 AIN2 AIN3 9 AIN1 AINI 2 AIN4 AIN5 10 AIN2 AIN2 3t AIN6 AIN7 11 AIN3 AIN3 4 AINO AIN1 12 AIN4 AIN4 5 AIN2 AIN3 13 AIN5 AIN5 6 AIN4 AIN5 14 AIN6 AIN6 T AIN6 AIN7 15 AIN7 AIN7 Negative input is ground Not accessible on RCM3700 Prototyping Board len the output bit length is always 12 for 11 bit conversions RETURN VALUE User s 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 anaInConfig anaIn brdInit User s Manual 46 Reads the value of an analog input channel using the direct method of addressing the ADS7870 A D converter The A D converter is enabled the first time this function is called this will take approxi mately 1 second to ensure that the A D converter capacitor is fully charged PARAMETERS channel is the channel number 0 to 7 corresponding to ADC_INO to ADC_IN7
103. in header J4 on the Prototyping Board as shown in Figure 3 The connector may be attached either way as long as it is not offset to one side Plug in the wall transformer The LED above the RESET button on the Prototyping Board should light up The RCM3750 and the Prototyping Board are now ready to be used NOTE A RESET button is provided on the Prototyping Board to allow a hardware reset without disconnecting power 2 2 3 1 Overseas Development Kits Development kits sold outside North America include a header connector that may be connected to 3 pin header J4 on the Prototyping Board The connector may be attached either way as long as it is not offset to one side The red and black wires from the connec tor can then be connected to the positive and negative connections on your power supply The power supply should deliver 7 5 V 30 V DC at 5 W User s Manual 15 2 3 Starting Dynamic C Once the RCM3750 is connected as described in the preceding pages start Dynamic C by double clicking on the Dynamic C icon or by double clicking on dcrab_XXXX exe in the Dynamic C root directory where XXXX are version specific characters Dynamic C uses the serial port on your PC that you specified during installation If you are using a USB port to connect your computer to the RCM3750 module choose Options gt Project Options and select Use USB to Serial Converter under the Communications tab 2 4 Runa Sample Program Use the File menu
104. is a high speed repeat tick which is approximately one debounce period or 5 us How many times to repeat after low speed repeat 0 None RETURN VALUE None SEE ALSO keyProcess keyGet keypadDef Scans and processes keypad data for key assignment debouncing press and release and repeat NOTE This function is also able to process an 8 x 8 matrix keypad RETURN VALUE None SEE ALSO keyConfig keyGet keypadDef Get next keypress RETURN VALUE The next keypress or 0 if none SEE ALSO keyConfig keyProcess keypadDef Pushes the value of cKey to the top of the input queue which is 16 bytes deep PARAMETER cKey RETURN VALUE None SEE ALSO keyGet User s Manual 156 Configures the physical layout of the keypad with the desired ASCII return key codes Keypad physical mapping 1 x 7 0 4 1 5 2 6 3 I L U D R l E where D represents Down Scroll U represents Up Scroll R represents Right Scroll L represents Left Scroll represents Page Down represents Page Up E represents the ENTER key Example Do the following for the above physical vs ASCH return key codes keyConfig 3 R 0 0 0 0 O keyConfig 6 E O 0 0 0 O keyConfig 2 D O 0 0 0 O keyConfig 4 0 0 0 0 O keyConfig 1 U O 0 0 0 O keyConfig 5 0 0 0 0 O keyConfig 0O L O 0 0 0 O Characters are returned upon keypress with
105. isting calibration constants e AD RDDIFF_CH C Demonstrates how to read an A D input channel being used for a differential input using previously defined calibration constants e AD RDMA CH C Demonstrates how to read an A D input channel being used to con vert analog current measurements using previously defined calibration constants for that channel Before running this program make sure that pins 3 5 are connected on headers JP5 JP6 and JP7 Connect pins 1 2 3 4 5 6 7 8 on header JP8 e AD RDSE_ALL C Demonstrates how to read all single ended A D input channels using previously defined calibration constants e AD SAMPLE C Demonstrates how to use a low level driver on single ended inputs The program will continuously display the voltage average of 10 samples that is pres ent on the A D channels e ANAINCONFIG C Demonstrates how to use the Register Mode method to read single ended analog input values for display as voltages The sample program uses the func tion call anaInConfig and the ADS7870 CONVERT line to accomplish this task e THERMISTOR C Demonstrates how to use analog input THERM_IN7 to 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 at standard temperature are given in the part specification e DNLOADCALIB C Demonstrates how to retrieve a
106. ite 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 after the programming cable is disconnected All standalone applications can only run from flash memory NOTE Do not depend on the flash memory sector size or type in your program logic The RCM3750 and Dynamic C were designed to accommodate flash devices with various sector sizes in response to the volatility of the flash memory market Developing software with Dynamic C is simple Users can write compile and test C and assembly code without leaving the Dynamic C development environment Debugging occurs while the application runs on the target Alternatively users can compile a program to an image file for later loading Dynamic C runs on PCs under Windows 95 and later Programs can be downloaded at baud rates of up to 460 800 bps after the program compiles User s Manual 39 Dynamic C has a number of standard features e Full feature source and or assembly level debugger no in circuit emulator required e Royalty free TCP IP stack with source code and most common protocols e Hundreds of functions in source code libraries and sample programs gt Exceptionally fast support for floating point arithmetic and transcendental functions gt RS 232 and RS 485 serial communication gt Analog and digital I O drivers gt I C SPL GPS file system gt LCD display and
107. ive value will produce a scroll to the left RETURN VALUE None SEE ALSO glvScroll User s Manual 148 Scrolls up or down within the defined window by x number of pixels The opposite edge of the scrolled window will be filled in with white pixels The window must be byte aligned Parameters will be verified for the following 1 The left and cols parameters will be verified that they are evenly divisible by 8 If not they will be truncated to a value that is a multiple 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 bitmap must be evenly divisible by 8 top is the top left corner of the bitmap cols is the number of columns in the window 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 ALSO glHScroll Draws bitmap in the specified space The data for the bitmap are stored in xmem This function calls g1XPutFastmap automatically if the bitmap is byte aligned the left edge and the width are each evenly divisible by 8 Any portion of a bitmap image or character that is outside the LCD display area will be clipped PARAMETERS left is the top left corner of the bitmap top is the top left corner of the bitmap
108. ke differential measurements The default setup on the Prototyping Board is to measure only positive voltages for the ranges listed in Table B 2 User s Manual 98 RCM3700 Table B 2 Positive A D Converter Input Voltage Ranges Min eee ee E mV per Count 0 0 20 0 1 10 0 0 10 0 2 5 0 0 5 0 4 a0 0 0 4 0 5 aN 0 0 2 5 8 1 25 0 0 2 0 10 10 0 0 1 25 16 0 629 0 0 1 0 20 0 500 Other possible ranges are possible by physically changing the resistor values that make up the attenuator circuit It is also possible to read a negative voltage on ADC_INO to ADC_INS by moving the jumper see Figure B 5 on header JP7 JP6 or JP5 associated with the A D converter input from analog ground to VREF the reference voltage generated and buffered by the A D converter Adjacent input channels are paired so that moving a particular jumper changes both of the paired channels At the present time Rabbit Semiconuctor does not offer the software drivers to work with single ended negative voltages but the differential mode described below may be used to measure negative voltages NOTE THERM _IN7 was configured to illustrate the use of a thermistor with the sample 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 As the name differential implies
109. ks use IP addresses that are assigned using DHCP When your computer comes up and periodically after that it requests its networking information from a DHCP server The DHCP server may try to give you the same address each time but a fixed IP address is usually not guaranteed If you are not concerned about accessing the RCM3750 from the Internet you can place the RCM3750 on the internal network using an IP address assigned either statically or through DHCP User s Manual 68 6 3 Placing Your Device on the Network In many corporate settings users are isolated from the Internet by a firewall and or a proxy server These devices attempt to secure the company from unauthorized network traffic 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 RCM3750 you have several options You can either place the RCM3750 directly on the Internet with a real Internet address or place it behind the firewall If you place the RCM3750 behind the fire wall you need to configure the firewall to translate and forward packets from the Internet to the RCM3750 User s Manual 69 6 4 Running TCP IP Sample Programs We have provided a number of sample programs demonstrating various uses of TCP IP for networking embedded systems These programs require you to connect your PC and the RCM3750 board together on the same network This network can be a local priv
110. l ports used are selected with the serxOpen function call where X is the serial port C D or F Remember that RxC and RxD on Serial Ports C and D cannot be used if Serial Port F is being used User s Manual 32 4 2 2 Ethernet Port Figure 8 shows the pinout for the RJ 45 Ethernet port J3 Note that some Ethernet con nectors are numbered in reverse to the order used here ETHERNET RJ 45 Plug RJ 45 Jack 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 activity ACT A third LED SPD on the other side of the RJ 45 Ethernet jack indicates that the RCM3750 is connected to a functioning 100Base T network The RJ 45 connector is shielded to minimize EMI effects to from the Ethernet signals 4 2 3 Serial Programming Port The RCM3750 programming port is accessed through header J2 or over an Ethernet con nection via the RabbitLink EG2110 The programming port uses the Rabbit 3000 s Serial Port A for communication Dynamic C uses the programming port to download and debug programs The programming port is also used for the following operations e Cold boot the Rabbit 3000 on the RCM3750 after a reset e Remotely download and debug a program over an Ethernet connection using the RabbitLink EG2110 e Fast copy designated portions of flash memory from one Rabbit based board the master to another the slave using t
111. lFontCharAddr 141 f JP4 A D converter outputs glGetBrushType 145 pinout 109 glGetPfStep oo 142 Ethernet port 0 0 eee 33 JP5 analog inputs refer glHScroll 0 148 LCD keypad module cae 127 ENCE veeccscseseeeeseesseeeees 109 gl Init oe eecseeescssseeeeees 135 RCM3700 Prototyping Board JP6 analog inputs refer glLeftl oe 146 96 f ENCE assioni 109 glPlotCircle 0 0 0 140 RCM3720 Prototyping Board JP7 analog inputs refer glPlotDot ossessi 146 116 ENCE suraga 109 glPlotLine 146 RCM3750 i JP8 analog voltage 4 20 glPlotPolygon 139 alternate configurations 29 mA measurement options gIPlotVPolygon 138 headers ESRR eee 27 109 glPrintf oe 143 power supplies RCM3720 Prototyping Board glPutChar 0 143 battery backup 159 118 glPutFont oc 142 REMI TSO oiiro 158 gIRight oo 147 linear voltage regulator 158 K glSetBrushType 144 w Mode Aedes switching Modes keypad template 126 ees eae A ee cena ete Tiga anddnserine label glSwap pais 144 PROG connector voossennnnnaees 35 BIDE Havaceewicccestonted 147 RCM3750 connections 14 L BIVScroll veces 149 programming port s s s 33 glXFontlnit 141 Prototyping Board LCD keypad module glXGetBitmap 145 FEATUTES siairinirs oseni isisisi 20 bezel mount installation 130 glXGetFastmap 145 mounting RCM3750 13 dimensions 0 sees 120 123 glXPutBitmap
112. ld act as a proxy Each RCM3750 RabbitCore module has its own unique MAC address which consists of the prefix 0090C2 followed by a code that is unique to each RCM3750 module For exam ple a MAC address might be 0090C2C002C0 TIP You can always obtain the MAC address on your board by running the sample pro gram DISPLAY _MAC C from the SAMPLES TCPIP folder User s Manual 67 6 2 3 Dynamically Assigned Internet Addresses In many instances devices on a network do not have fixed IP addresses This is the case when for example you are assigned an IP address dynamically by your dial up Internet service provider ISP or when you have a device that provides your IP addresses using the Dynamic Host Configuration Protocol DHCP The RCM3750 modules can use such IP addresses to send and receive packets on the Internet but you must take into account that this IP address may only be valid for the duration of the call or for a period of time and could be a private IP address that is not directly accessible to others on the Internet These private address can be used to perform some Internet tasks such as sending e mail or browsing the Web but usually cannot be used to participate in conversations that origi nate elsewhere on the Internet If you want to find out this dynamically assigned IP address under Windows XP you can run the ipconfig program while you are connected and look at the interface used to connect to the Internet Many networ
113. les Both pairs of pins are connected to the IrDA transceiver and to the RS 232 transceiver via serial ports on the RCM3700 Prototyping Board Do not enable both transceivers on the RCM3700 Prototyping Board at the same time RETURN VALUE None SO SON a ee User s Manual 42 5 2 2 Analog Inputs NOTE The function calls for the A D converter in this section will work only with the RCM3700 Prototyping Board Use this function to configure the ADS7870 A D converter This function will address the ADS7870 in Register Mode only and will return error if you try the Direct Mode This appendix provides additional addressing and command information ADS 7870 Signal ADS7870 State RCM3700 Function State LNO Input AINO LN1 Input AINI 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 PIOO Input Pulled down PIOI Input Pulled down PIO2 Input Pulled down PIO3 Input Pulled down CONVERT Input Pulled down BUSY Output PD1 pulled down logic high state converter is busy CCLKCNTRL Input Pulled down 0 state sets CCLK as input CCLK Input Pulled down external conversion clock SCLK Input PBO serial data transfer clock SDI Input PD4 3 wire mode for serial data input SDO Output PDS serial data output CS driven CS Input PD
114. lygon in the LCD page buffer and on the LCD if the buffer is unlocked Any portion of the polygon that is outside the LCD display area will be clipped If fewer than 3 vertices are specified the function will return without doing anything PARAMETERS n is the number of vertices x1 is the x coordinate of the first vertex y1 is the y coordinate of the first vertex x2 is the x coordinate of the second vertex y2 is the y coordinate of the second vertex are the coordinates of additional vertices RETURN VALUE None SEE ALSO g1FillvVPolygon glPlotPolygon glPlotVPolygon Draws the outline of a circle in the LCD page buffer and on the LCD 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 center of the circle rad is the radius of the center of the circle in pixels RETURN VALUE None SEE ALSO glFillCircle glPlotPolygon glFillPolygon Draws a filled circle in the LCD page buffer and on the LCD if the buffer is unlocked Any portion 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 center of the circle rad is the radius of the center of the circle in pixels RETURN VALUE None SEE ALSO glPlotCircle glPlotPolygon glFillPolygon User s Manual 140
115. macro at the top of the program you will be running define RCM3700_PROTOBOARD Sample programs that are specifically designed for the RCM3700 Prototyping Board already have this macro included When you run a sample program designed for the RCM3700 Prototyping Board on an RCM3720 a warning 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 RCM3720 Prototyping Board add the following macro at the top of the program you will be running define RCM3720_PROTOBOARD Summary of Initialization 1 TO port pins are configured for Prototyping Board operation Unused configurable I O are set as tied inputs or outputs The LCD keypad module is disabled RS 485 is not enabled RS 232 is not enabled The IrDA transceiver is disabled LEDs are off The A D converter is reset and SCLKB is to 57 600 bps RCM3700 Prototyping Board only The A D converter calibration constants are read this function cannot run in RAM RCM3700 Prototyping Board only 10 Ethernet select is disabled 11 Serial flash select is disabled CAUTION Pin PB7 is connected as both switch S2 and as an external I O bus on the RCM3700 Prototyping Board Do not use S2 when the LCD keypad module is installed CAUTION Pins PC1 and PG2 are tied together and pins PC3 and PG3 are tied together on all the RCM3700 RabbitCore modu
116. must be evenly divisible by 8 bmHeight is the height in pixels of the bitmap 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 g1XPutBitmap except that it s faster The bitmap must be byte aligned Any portion of a bitmap image or character that is outside the LCD display area will be clipped This function call is intended for use only when a graphic engine is used to interface with the LCD keypad module PARAMETERS left is the x coordinate of the top left corner of the bitmap x must be evenly divisible by 8 top is the y coordinate in pixels of the top left corner of the bitmap width is the width of the bitmap must be evenly divisible by 8 height is the height of the bitmap xmemptr is the xmem RAM storage address of the bitmap RETURN VALUE None SEE ALSO glXPutBitmap glPrintf User s Manual 145 Draws a single pixel in the LCD buffer and on the LCD if the buffer is unlocked If the coordinates are outside the LCD display area the dot will not be plotted PARAMETERS x is the x coordinate of the dot y is the y coordinate of the dot RETURN VALUE None SEE ALSO glPlotline glPlotPolygon glPlotCircle Draws a line in the LCD buffer and on the LCD if the buffer is unlocked Any portion of the line that is beyond the LCD display area will be clipped PARAMETERS x0 is the x co
117. n 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 CAUTION Pin PB7 is connected as both switch S2 and as an external I O bus on the Prototyping Board Do not use S2 when the LCD keypad module is installed 107 RabbitCore RCM3750 N S x B 1 8 Jumper Configurations Figure B 10 shows the header locations used to configure the various RCM3700 Prototyp ing Board options via jumpers JEI O00 URZ lOO Bom Battery a JP4 HO O0 LA PS JPG JP7 O O OQO OQO O Q fe modacdmod OO Figure B 10 Location of RCM3700 Prototyping Board Configurable Positions User s Manual 108 RCM3700 Table B 5 lists the configuration options using jumpers Table B 5 RCM3700 Prototyping Board Jumper Configurations Header Description Pins Connected Factory Default 1 2 Bias and termination resistors x 5 6 connected IPI RS 485 Bias and Termination Resistors 13 Bias and termination resistors not 46 connected parking position for jumpers 1 3 24 RS 232 JP2 RS 232 RS 485 on Serial Port E 3 5 x 4 6 RS 485 1 PIO_O n c 2 PIO 1 n c JP4 A D Converter Outputs 3 PIO 2 n c 4 PIO 3 n c 1 2 Tied to VREF JP5 ADC_IN4 ADC_INS5 2 3 Tied to analog ground x 1 2 Tied to VREF JP6 ADC_IN2
118. nalog calibration data to rewrite it back to simulated EEPROM in flash with using a serial utility such as Tera Term Getting Started 24 e UPLOADCALIB C Demonstrates how to read calibrations constants from the user block in flash memory and then transmitting the file using a serial port and a PC serial utility such as Tera Term Use DNLOADCALIB C to download the calibration constants created by this program Getting Started 25 4 HARDWARE REFERENCE Chapter 4 describes the hardware components and principal hardware subsystems of the RCM3750 Appendix A RCM3750 Specifications provides complete physical and electrical specifications Figure 4 shows the Rabbit based subsystems designed into the RCM3750 Customer specific applications RABBIT CMOS level signals Program _iaae Level converter Battery Backup RS 232 RS 485 IrDA Circuit serial communication drivers on motherboard RabbitCore Module ietterals V Latter Figure 4 RCM3750 Subsystems User s Manual 26 4 1 RCM3750 Digital Inputs and Outputs Figure 5 shows the RCM3750 pinouts for header J1 Header J1 is a standard 2 x 20 IDC header with a nominal 0 1 pitch J1 pas 12 ml PAZ PA4 C o o O PAS PA20 o PA3 PAOL 5 o Pa4 PFoC o o PF1 PB2C PBO PB4O o PB3 PB7 Je o 7 PB5 PF
119. ng Board The PIOO to PIO3 channels on the A D converter chip are accessed via header JP4 on the RCM3700 Prototyping Board A runtime error will occur if the brdInit function was not executed before calling this function or if the channel is out of range PARAMETERS channel is channel to 4 for JP4 1 to JP4 4 state isa logic state of 0 or 1 RETURN VALUE None SEE ALSO brdInit digOut User s Manual 58 5 2 3 Digital I O The RCM3750 was designed to interface with other systems and so there are no drivers written specifically for the I O The general Dynamic C read and write functions allow you to customize the parallel I O to meet your specific needs For example use WrPortI PEDDR amp PEDDRShadow 0x00 to set all the Port E bits as inputs or use WrPortI PEDDR amp PEDDRShadow OxFF to set all the Port E bits as outputs When using the auxiliary I O bus on the Rabbit 3000 chip add the line define PORTA_AUX_ IO required to enable auxiliary I O bus to the beginning of any programs using the auxiliary I O bus The sample programs in the Dynamic C SAMPLES RCM3700 and the SAMPLES RCM3720 folders provide further examples User s Manual 59 5 2 4 Serial Communication Drivers Library files included with Dynamic C provide a full range of serial communications sup port The RS232 LIB library provides a set of circular buffer based serial functions The PACKET LIB library provides packet based s
120. ns of forcing the A D converter to start a conversion cycle The CONVERT signal is an edge triggered event and has a hold time of two CCLK periods for debounce A conversion is started by an active rising edge on the CONVERT pin The CONVERT pin must stay low for at least two CCLK periods before going high for at least two CCLK periods Figure B 7 shows the timing of a conversion start The double falling arrow on CCLK indicates the actual start of the conversion cycle Conversion starts BUSY es CONV j Figure B 7 Timing Diagram for Conversion Start Using CONVERT Pin 101 RabbitCore RCM3750 B 1 5 4 A D Converter Calibration N is S To get the best results from the A D converter it is necessary to calibrate each mode sin gle ended differential and current for each of its gains It is imperative that you calibrate each of the A D converter inputs in the same manner as they are to be used in the applica tion For example if you will be performing floating differential measurements or differ ential measurements using a common analog ground then calibrate the A D converter in the corresponding manner The calibration must be done with the attenuator reference selection jumper in the desired position see Figure B 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 bas
121. ntly do not work together compiling the INTEGRATION 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 message Open a Web browser and browse to the device using the IP address from the TCP_ CONFIG LIB library or the URL you assigned to the device The humidity monitor will be displayed in your Web browser This page is accessible via plain HTTP or over SSL secured HTTPS Click on the administrator link to bring up the admin page which is secured automatically using SSL with a user name and a password Use myadmin for user name and use myadmin for the password The admin page demonstrates some RabbitWeb capabilities and provides access to the HTTP upload page Click the upload link to bring up the HTTP upload page which allows you to choose new files for both the humidity monitor and the admin page If your browser prompts you again for your user name and password they are the same as before Note that the upload page is a static page included in the program flash and can only be updated by recompiling and downloading the application This way the page is protected so that you cannot accidentally change it possibly restricting yourself from performing future updates If you wish you may place the upload page into the FAT file system to allow the upload page to be updated To try out the update
122. number 0 to 7 corresponding to ADC_INO to ADC_IN7 opmode is the mode of operation SINGLE single ended input DIFF differential input mAMP ailliamp input channel SINGLE DIFF mAMP 0 AINO AINO AIN1 AINO 1 AIN1 AINI AINO AIN1 2 AIN2 AIN2 AIN3 AIN2 3 AIN3 AIN3 AIN2 AIN3 4 AIN4 AIN4 AINS AIN4 5 AINS AINS5 AIN4 AINS 6 AIN6 AIN6 AIN7 AIN6 7 AIN7 AIN7 AIN6 AIN7 Not accessible on RCM3700 Prototyping Board gaincode is the gain code of 0 to 7 Gain Code Multiplier Voltage Range V 0 xl 0 20 1 x2 0 10 2 x4 0 5 3 x5 0 4 4 x8 0 2 5 5 x10 0 2 6 x16 0 1 25 7 x20 0 1 Applies to RCM3700 Prototyping Board User s Manual valuel is the first A D converter channel value 0 2047 volts is the voltage or current corresponding to the first A D converter channel value 0 to 20 V or 4 to 20 mA valuez2 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 V or 4 to 20 mA RETURN VALUE 0 if successful 1 if not able to make calibration constants SEE ALSO anaIn anaInVolts anaInmAmps anaInDiff anaInCalib brdInit User s Manual 50 Reads the state of a single ended analog input channel and uses the calibration constants previously set using anaInCalib t
123. o change the rate at which the DS1 and DS2 LEDs on the RCM3700 Prototyping Board or the RCM3720 Prototyping Board blink DOORMONITOR C The optional LCD keypad module see Appendix C must be plugged in to the RCM3700 Prototyping Board when 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 game demonstrates some RabbitWeb capabilities using the RCM3720 Proto typing Board LEDS CHECKBOX C This sample program provides a bare bones sample of using some RabbitWeb features to control digital I O using the RCM3720 Prototyping Board SPRINKLER C This program demonstrates how to schedule times for the digital out puts in a 24 hour period using the RCM3700 Prototyping Board or the RCM3720 Prototyping Board TEMPERATURE C This program demonstrates the use of a thermistor with the RCM3700 Prototyping Board to measure temperature and it also demonstrates some simple web variable registration along with the authentication features An e mail message will be sent if the current temperature exceeds the minimum or maximum lim its set by the user Before running this sample program you will have to install the thermistor included in the RCM3700 Development Kit at location J7 on the RCM3700 Prototyping Board which is connected to analog input THERM_IN7 User s Manual 74 6 6 2
124. o convert it to volts PARAMETERS channel is the channel number 0 7 Channel Code eee bi aad 0 AINO 0 20 1 AINI 0 20 2 AIN2 0 20 3 AIN3 0 20 4 AIN4 0 20 5 AIN5 0 20 6 AIN6 0 20 7 AIN7 0 21 Negative input is ground Applies to RCM3700 Prototyping Board t Used for thermistor in sample program gaincode is the gain code of 0 to 7 Gain Code Multiplier Voltage Range V 0 x1 0 20 1 x2 0 10 2 x4 0 5 3 x5 0 4 4 x8 0 2 5 5 x10 0 2 6 x16 0 1 25 7 x20 0 1 Applies to RCM3700 Prototyping Board RETURN VALUE A voltage value corresponding to the voltage on the analog input channel ADOVERFLOW defined macro 4096 if overflow or out of range SEE ALSO anaInCalib anaIn anaInmAmps brdInit User s Manual 51 Reads the state of differential analog input channels and uses the calibration constants previously set using anaInCalib to convert it to volts PARAMETERS channel is the analog input channel number 0 to 7 corresponding to ADC_INO to ADC_IN7 channel DIFF Voltage Range V 0 AINO AIN1 20 to 20 1 AIN1 AINO 2 AIN2 AIN3 20 to 20 3 AIN3 AIN2 4 AIN4 AIN5 20 to 20 5 AIN5 AIN4 6 AIN6 AIN7 7 AIN7 AIN6 _ Applies to RCM3700 Prototyping Board gaincode is the gain code of 0 to 7
125. obe delay e Tpuren the clock to I O buffer enable delay The data setup time delays are similar for both Tsetup and Tholia 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 takes place by shortening the high part of the clock If the doubler is not enabled then every clock is shortened during the low part of the clock period The maxi mum shortening for a pair of clocks combined is shown in the table Technical Note TN227 Interfacing External I O with Rabbit 2000 3000 Designs con tains suggestions for interfacing I O devices to the Rabbit 3000 microprocessors User s Manual 85 A 3 Rabbit 3000 DC Characteristics Table A 5 Rabbit 3000 Absolute Maximum Ratings Symbol Parameter Maximum Rating Ta Operating Temperature 55 to 85 C Ts Storage Temperature 65 to 150 C Maximum Input Voltage e Oscillator Buffer Input Vpp 0 5 V e 5 V tolerant I O 5 5 V Vpp Maximum Operating Voltage 3 6 V Stresses beyond those listed in Table A 5 may cause permanent damage The ratings are stress ratings only and functional operation of the Rabbit 3000 chip at these or any other conditions beyond those indicated in this section is not implied Exposure to the absolute maximum rating conditions for extended periods may affect the reliability of the Rabbit 3000 chip Table A
126. ode of 0 to 7 The gaincode parameter is ignored when channel is ALLCHAN Gain Code Voltage Range v 0 0 20 1 0 10 2 0 5 3 0 4 4 0 2 5 5 0 2 6 0 1 25 7 0 1 Applies to RCM3700 Prototyping Board RETURN VALUE 0 if successful 1 if address is invalid or out of range SEE ALSO anaInEEWr anaInCalib Configures channels PIOO to PIO3 on the A D converter to allow 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 bitwise mask representing JP4 channels 1 to 4 Use logic 0 for inputs and logic 1 for outputs in these bit positions bits 7 5 0 bit 4 JP4 4 bit 3 JP4 3 bit 2 JP4 2 bit 1 JP4 1 bit 0 0 RETURN VALUE None SEE ALSO digOut digIn User s Manual 57 Writes a state to a digital output channel on header JP4 of the RCM3700 Prototyping Board The PIOO to PIO3 channels on the A D converter chip are accessed via header JP4 on the RCM3700 Prototyping Board A runtime error will occur if the brdInit function was not executed before calling this function or if the channel is out of range PARAMETERS channel is channel to 4 for JP4 1 to JP4 4 state is a logic state of 0 or 1 RETURN VALUE None SEE ALSO brdiInit digIn Reads the state of a digital input channel on header JP4 of the RCM3700 Prototypi
127. of the text window frame winWidth is the width of the text window frame winHeight is the height of the text window frame RETURN VALUE 0 window frame was successfully created 1 x coordinate width has exceeded the display boundary 2 y coordinate height has exceeded the display boundary 3 Invalid winHeight and or winWidth parameter value User s Manual 150 This function initializes the window frame structure with the border and title information NOTE Execute the TextWindowFrame function before using this function PARAMETERS wPtr is a pointer to the window frame descriptor border is the border style SINGLE _LINE The function will draw a single line border around the text window DOUBLE _LINE The function will draw a double line border around the text window title is a pointer to the title information If a NULL string is detected then no title is written to the text menu If a 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 displays the border for a given window frame This function will automatically adjust the text window parameters to accommodate the space taken by the text border This adjustment will only occur once after the TextBorderInit function executes NOTE Execute the TextWindowFrame function before using this function
128. on ernennen E a E E E E O S 102 B 1 6 Serial Communication cccccccesccsccssessecesceseeeeceseeeeceseeseecaeesaecssesaecsecseseseseeeeeeeseeseeeeecseeeaeeaeens 103 J e P IR D EEA A E E E E E ES see E E olecesacts tele eoeage 104 1e KA O e oE AEAEE E E E A AEE E AE E E 105 B 1 7 Other Prototyping Board Modules 0 eccecccesseesceseeesecseceseesecseeseceeceseeeeeseeeeeeaeeaeeeaeeeenaeensens 107 B 1 8 Jumper Configurations nsciis iiien ja E E de E E RER E 108 B 1 9 Use of Rabbit 3000 Parallel Ports sss esseeeeseseseessesessessesesserssstsesstersserstsessrerestesessesrsreseereseesee 110 B 2 RCM3720 Prototyping Board csssciciienrinreiiiinei e i E AAE E ai eS 112 lE A EAU LES ENE ENA ORNE E PEA EEE E EEE OE E A E best ET 113 B 2 2 Mechanical Dimensions and Layout ccccccscessesseesseceeseceseeseceeceseeecesceeeeeseseeesecseeeaeeseeaees 114 B23 Powers Supply A cesses close E dees aauine oon ay aes deed unatnuseaeh O 115 B 2 4 Using the RCM3720 Prototyping Board ccccesesscessssseesceseceeeeseeeeceneecsecaeesaeceenseeeeeseearees 116 B 2 4 1 Prototyping Area enne oniri iE a E RE E REEE AE RR dace 118 B 2 5 Serial Communication cccccecesccescssseescesceeeeesceseecaecscecsecssesecsaeesececeseeeeeeeeeeeeseeaeeeseceeereeaeeas 119 B 2 6 Use of Rabbit 3000 Parallel Ports 0 cccccesceeseessesceesecseeeseesecsseeseceeeseeeeeneeneeeaeeaeeaecaeesaeeaeens 121 Appendix C LCD Keypad Module 123 Wal Specifications
129. ordinate of one endpoint of the line y0 is the 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 glPlotPolygon glPlotCircle Scrolls byte aligned window left one pixel right column is filled by current pixel type color PARAMETERS left is the top left corner of bitmap must be evenly 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 the window RETURN VALUE None SEE ALSO glHScroll glRight1 User s Manual 146 Scrolls byte aligned window right one pixel left column is filled by current pixel type color PARAMETERS left is the top left corner of bitmap must be evenly 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 the window RETURN VALUE None SEE ALSO glHScroll glLeft1l Scrolls byte aligned window up one pixel bottom column is filled by current pixel type color PARAMETERS left is the top left corner of bitmap must be evenly divisible by 8 otherwise truncates top is the top left corner of the bitmap cols is the number of columns in the wind
130. ot driven by CLKA PB2 PB6 Output Not used High PB7 Input External IA5 Switch S2 Pulled up Proto Board PCO Output TXD RS 232 High set by drivers Serial Port D PCl Input RXD RS 232 Pulled up core module PC2 Output TXC RS 232 High set by drivers Serial Port C PC3 Input RXC RS 232 Pulled up core module PC4 Output TXB Serial Flash High set by drivers Serial Port B PCS5 Input RXB Serial Flash Pulled up core module PC6 Output TXA Programming Port High when not driven Serial Port A PC7 Input RXA Programming Port Pulled up core module PDO Output Ethernet RSTDRV Pulled up core module PD1 Input Ethernet BD5 EESK Set by Ethernet PD2 Input Ethernet BD6 EEDI Set by Ethernet PD3 Input Ethernet BD6 EEDO Set by Ethernet PD4 PD5 Output Not used High PD6 PD7 Input Not used Pulled up core module PE0 PE1 Output Not used High PE2 Output Ethernet AEN High driven by Ethernet PE3 Input Not used Pulled up core module PE4 PE5 Output Not used High PE6 Input Serial Flash Select Pulled up core module PE7 Output Not used High PFO Output Not used High PF1 Input Not used Low 121 RabbitCore RCM3750 Table B 10 RCM3720 Prototyping Board Use of Rabbit 3000 Parallel Ports Port V0 Use Initial State PF2 PF3 Input Not used Pulled up core module PF4 Input Switch S1 Pulled up Proto Board PFS Output Not used High X PF6 Output LED DS1 High z PF7 Output LED DS2 High A PG0 PG1 Output Not used
131. ow must be evenly divisible by 8 otherwise truncates rows is the number of rows in the window RETURN VALUE None SEE ALSO glVScroll glDown1 Scrolls byte aligned window down one pixel top column is filled by current pixel type color PARAMETERS left is the top left corner of bitmap must be evenly 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 the window RETURN VALUE None SEE ALSO glvScroll glUp1 User s Manual 147 Scrolls right or left within the defined window by x number of pixels The opposite edge of the scrolled window will be filled in with white pixels The window must be byte aligned Parameters will be verified for the following 1 The left and cols parameters will be verified that they are evenly divisible by 8 If not they will be truncated to a value that is a multiple 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 bitmap must be evenly divisible by 8 top is the top left corner of the bitmap cols is the number of columns in the window 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 negat
132. ping Board provides the user with RCM3750 connection points brought out conveniently to labeled points at header J3 on the RCM3700 Prototyping Board Although header J3 is unstuffed a 2 x 20 header is included in the bag of parts RS 485 sig nals are available on shrouded header J1 and RS 232 signals Serial Ports C D and E are available on header J2 A header strip at J2 allows you to connect a ribbon cable A shrouded header connector and wiring harness are included with the RCM3700 Development Kit parts to help you access the RS 485 signals on shrouded header J1 There is a 2 5 x 3 through hole prototyping space 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 medium circuits can be prototyped using point to point wiring with 20 to 30 AWG wire between the prototyping area the 3 3 V 5 V and GND traces and the surrounding area where sur face mount components may be installed Small holes are provided around the surface mounted components that may be installed around the prototyping area B 1 4 1 Adding Other Components There are two sets of pads for 28 pin devices that can be used for surface mount prototyp ing SOIC devices Although the adjacent sets of pads could accommodate up to a 56 pin device they do not allow for the overlap between two 28 pin devices There are also pad
133. ply only one or two turns to each screw in sequence until all are tightened manually as far as they can be so that the gasket is compressed and the plastic bezel faceplate is touching the panel User s Manual 131 C 7 1 Connect the LCD Keypad Module to Your Prototyping Board The LCD keypad module can be located as far as 2 ft 60 cm away from the RCM3700 Prototyping Board and is connected via a ribbon cable as shown in Figure C 11 OOOO OYYOS ONIGALOLO BOOS JOOOOC SIYIS XXZE 98NOY Yore e JOOX OO OOOO0OOO000000 OOOOOOOOO00000 W OOQQQQ0Q00000000 O0000000000000 iau een Peo 920 Fezu lt ME E OO 5c xe OOOC pra OC Ye OC Figure C 11 Connecting LCD Keypad Module to RCM3700 Prototyping Board Note the locations and connections relative to pin 1 on both the RCM3700 Prototyping Board and the LCD keypad
134. r a customer supplied bat tery to back up the data SRAM and keep the internal Rabbit 3000 real time clock running Header J1 shown in Figure D 1 allows access to the external battery for the RCM3750 This header makes it possible to connect an external 3 V backup battery This allows the SRAM and the internal Rabbit 3000 real time clock to retain data with the RCM3750 powered down A lithium battery with a nominal voltage of 3 V and a minimum capacity of 165 mA h is recommended A lithium battery is strongly recommended because of its nearly constant nominal voltage over most of its life The drain on the battery by the RCM3750 is typically 6 uA when no other power is sup plied If a 235 mA h battery is used the battery can last about 4 5 years 235 mA h 4 5 years 6 uA 7 The actual life in your application will depend on the current drawn by components not on the RCM3750 and the storage capacity of the battery The RCM3750 does not drain the battery while it is powered up normally Cycle the main power off on on the RCM3750 after you install a backup battery for the first time and whenever you replace the battery This step will minimize the current drawn by the real time clock oscillator circuit from the backup battery should the RCM3750 experience a loss of main power NOTE Remember to cycle the main power off on any time the RCM3750 is removed from the Protoyping Board or motherboard since that is where the backup battery
135. ransmitting and then receiving an ASCII string on Serial Ports C and E It also displays the serial data received from both ports in the STDIO window Before running this sample program check to make sure that Serial Port E is set up as an RS 232 serial port pins 1 3 and pins 2 4 on header JP2 on the Prototyping Board must be jumpered together using the 2 mm jumpers supplied in the Development Kit Then connect TxC to RxE and connect RxC to TxE on the RS 232 header at J2 using the 0 1 jumpers supplied in the Development Kit as shown in the diagram NOTE The following two sample programs illustrating RS 485 serial communication will only work with the RCM3700 Prototyping Board e SIMPLE485MASTER C This program demonstrates a simple RS 485 transmission of lower case letters to a slave RCM3750 The slave will send back converted upper case letters back to the master RCM3750 and display them in the STDIO window Use SIMPLE485SLAVE C to program the slave RCM3750 and check to make 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 e SIMPLE485SLAVE C This program demonstrates a simple RS 485 transmission of lower case letters to a master RCM3750 The slave will send back converted upper case letters back to the master RCM3750 and display them in the STDIO window Use SIMPLE485MASTER
136. re information is available at http www digi com support 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 RCM3750 module to a network for develop ment and runtime purposes The first two options permit total freedom of action in selecting network addresses and use of the network as no action can interfere with other users We recommend one of these options for initial development e No LAN The simplest alternative for desktop development Connect the RCM3750 module s Ethernet port directly to the PC s network interface card using an RJ 45 crossover CAT 5 6 Ethernet cable A crossover cable is a special cable that flips some connections between the two connectors and permits direct connection of two client systems A standard RJ 45 network cable will not work for this purpose e Micro LAN Another simple alternative for desktop development Use a small Ethernet 10Base T hub and connect both the PC s network interface card and the RCM3750 module s Ethernet port to it using standard network cables User s Manual 62 The following options require more care in address selection and testing actions as conflicts with other users servers and systems can occur LAN Connect the RCM3750 module s Ethernet port to an existing LAN preferably one to which the development PC is already connected You w
137. res associated with each Dynamic C module e The SAMPLES FILESYSTEM folder contains sample programs that demonstrate the use of the Dynamic C FAT file system e The SAMPLES TCPIP RABBITWEB folder contains sample programs that demonstrate the use of the Dynamic C RabbitWeb software e The SAMPLES TCPIP SSL HTTPS folder contains sample programs that demonstrate the use of the Dynamic C Secure Sockets Layer SSL software E 2 Module Documentation Complete documentation for the Dynamic C modules and their functions is provided as part of the Dynamic C installation Double click the documentation icon to reach the menu or if the icon is missing use your browser to find and load default htm in the docs folder found in the Dynamic C installation folder User s Manual 161 A A D converter function calls analn sssssssesseeeseressseesee 7 analnCalib oc 49 analnConfig 0 43 analnDiff oo eee 52 anaInDriver 000 45 anaInEERG cee 54 anaInEEWT 060 56 analnmAmps 60 53 analnVolts cceeeeeee 51 digConfig oo cee 57 digIn oo eeeeeeseeeeeees 58 digOut seres 58 additional information online documentation 11 Add On Kit WICEI vesdesiad Avdvaalaes 10 analog inputs See A D converter application kits Ethernet Connection Kit 10 Secure Embedded Web Appli cation Kit wees 10 auxiliary I O bus e eee 31 SOFtWALE 0 ceceeeeeeteeeeeeeeees 134 B
138. rototyping Board e An RCM3720 RabbitCore module will have its I O ports configured for an RCM3720 Prototyping Board You may override these default settings to run an RCM3720 RabbitCore module on the RCM3700 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 e To run an RCM3720 RabbitCore module on an RCM3700 Prototyping Board add the following macro at the top of the sample program you will be running define RCM3700_PROTOBOARD Sample programs that are specifically designed for the RCM3700 Prototyping Board already have this macro included e To run an RCM3700 RabbitCore module other than the RCM3720 on an RCM3720 Prototyping Board add the following macro at the top of the sample program you will be running define RCM3720_PROTOBOARD Getting Started 19 3 2 Sample Programs Of the many sample programs included with Dynamic C several are specific to the RCM3700 Prototyping Board Sample programs illustrating the general operation of the RCM3750 serial communication and the A D converter on the Prototyping Board are provided in the SAMPLES RCM3700 and the SAMPLES RCM3720 folders as shown in the table below The sample programs use the features available on the two Prototyping Boards Feature e T B e eee Sample Program Folder SAMPLES RCM3700 SAMPLES RCM3720 Digital I O x x IrDA Trans
139. s that can be used for SMT resistors and capacitors in an 0805 SMT package Each compo nent has every one of its pin pads connected to a hole in which a 30 AWG wire can be sol dered standard wire wrap wire can be soldered in for point to point wiring on the RCM3700 Prototyping Board Because the traces are very thin carefully determine which set of holes is connected to which surface mount pad 97 RabbitCore RCM3750 B 1 5 Analog Features The RCM3700 Prototyping Board has an onboard ADS7870 A D converter to demon strate the interface capabilities of the Rabbit 3000 The A D converter multiplexes con verted signals from eight single ended or three differential inputs to alternate Serial Port B on the Rabbit 3000 Parallel Port pins PD4 and PDS B 1 5 1 A D Converter Inputs N sr S x Figure B 5 shows a pair of A D converter input circuits The resistors form an approx 10 1 attenuator and the capacitor filters noise pulses from the A D converter input y User Circuits A gt VREF ADC_INO Vig eet ADG C gt meS x oO N A T JP7 tL tt G x i N 178 KQ ve ADC_IN1 o r AGND Figure B 5 A D Converter Inputs The A D converter chip can make either single ended or differential measurements depending on the value of the opmode parameter in the software function call Adjacent A D converter inputs can be paired to ma
140. se O aa RS 232 serial communication on the RCM3700 Prototyping Board is supported by an RS 232 transceiver installed at U4 This transceiver provides the voltage output slew rate and input voltage immunity required to meet the RS 232 serial communication protocol Basically the chip translates the Rabbit 3000 s signals to RS 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 line loading for reliable communication RS 232 can be used effectively at the RCM3750 module s maximum baud rate for distances of up to 15 m RS 232 flow control on an RS 232 port is initiated in software using the serxflowcon 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 parallel port that the RTS line is on e g PCDR SERA_RTS_SHADOW Shadow register for the RTS line s parallel port e g PCDRShadow SERA_RTS_BIT The bit number for the RTS line SERA_CTS_PORT Data register for the parallel port that the CTS line is on e g PCDRShadow SERA_CTS_BIT The bit number for the CTS line Standard 3 wire RS 232 communication using Serial Ports C and D is illustrated in the following sample code define CINBUFSIZE 15 define COUTBUFSIZE 15 define
141. seesecscessecsceesecsecseeseceseeeeeeeceseeeeecaecseecseseecseceseeeeeeeecaeeseeeaees 22 3 2 3 A D Converter Inputs enn diced E R acs endian wees 24 Chapter 4 Hardware Reference 26 4 1 RCM3750 Digital Inputs and Outputs 0 ccccceseeseceeceseeeeceeeeeceneeececaeeseecaeesaecaeceaeeaeeeaseeeseeeeeeseeeeaes 27 4 1 1 Memory 1 0 Interfata Ea EE EER RE E RESES 31 4 1 2 Other Inputs and OUt puts eisccsc cvicc tis caveccsexsceavicastcsnsndvels emain srair EAS EEEN ir EEE EPNER EE Nar E NEEE ES 31 4 2 Serial Communication ceseeccescesseesceseeseceseeececseesaecsaeeaeceecsaeeeecseesecesseeseseseeeeaesseecseseaeceseaeeneeeeseas 32 42l Serial Poris aei N RT 32 422 Ethernet Port sorrire rinnen nE E R EEA R RIE EE E ROE EEE O R R 33 4 2 3 Serial Programming POrt cccceccesseecesseesecseceeesecseeseceeseseeeceseceeeeaeesaecaecsaecsecaeeeeeneseeeeaeeeneenes 33 4 3 Serial Programming Cable cis ccccecaccccesedcacsecs ccvesccteatecdeseecs cotsecesds ceeds colesccesh decd coucadeavedeadscnvvadetdadeedeeveds 35 4 3 1 Changing Between Program Mode and Run Mode ccccescessesceeseeseeeeeceecceaeceeneeeeeneeeneeees 35 4 3 2 Standalone Operation of the RCM3750 ccccssessessesesesseceseeseceseeseeereeseeeeeeseseeecaeecaecsaeeaeenteeaeens 36 44 Other cE eohi 16 1 peer eee eer pe rene te en eer rere rer reeree teeter erty re reenter cer cyte er mente E EE genes Tee tye rer 37 4 41 Clock Doubler secisevcedeeice nieve axeveaeni a axie
142. stem via the ribbon cable provided Visit our Web site at http www digi com support or contact your Digi sales representa tive or authorized distributor for further information User s Manual 10 1 3 5 Online Documentation The online documentation is installed along with Dynamic C and an icon for the docu mentation menu is placed on the workstation s desktop Double click this icon to reach the menu If the icon is missing use your browser to find and load default htm in the docs folder found in the Dynamic C installation folder Each Dynamic C module has complete documentation available with the online documen tation described above The latest versions of all documents are always available for free unregistered download from our Web sites as well User s Manual 11 2 GETTING STARTED This chapter describes the RCM3750 hardware in more detail and explains how to set up and use the accompanying Prototyping Board NOTE It is assumed that you have the RCM3750 Development Kit If you purchased an RCM3750 module by itself you will have to adapt the information in this chapter and elsewhere to your test and development setup 2 1 Install Dynamic C To develop and debug programs for the RCM3750 and for all other Rabbit Semiconductor hardware you must install and use Dynamic C If you have not yet installed Dynamic C version 9 24 or a later version do so now by inserting the Dynamic C CD from the RCM3750 D
143. t B 35 PD5 Input Output ARXB 36 IRES Reset output Reset input Peset Puput PODRES Generator 37 VBAT 38 GND 39 5 V 40 GND User s Manual 30 4 1 1 Memory I O Interface The Rabbit 3000 address lines AO A18 and all the data lines DO D7 are routed inter nally to the onboard flash memory and SRAM chips I 0 write IOWR and 1 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 PBS and PB7 can also be used as an auxiliary address bus When using the auxiliary 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 auxiliary I O bus 4 1 2 Other Inputs and Outputs The status RESET_IN SMODEO and SMODE I O are normally associated with the programming port Since the status pin is not used by the system once a program has been downloaded and is running the status pin can then be used as a general purpose CMOS output The programming port is described in more detail in Section 4 2 3 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 User s Manual 31 4 2 Serial Communication The R
144. tations i2 0 cccesccaceccaes Ai ch ceece RE E E ete R R AEE E 11 Chapter 2 Getting Started 12 2 1 Install Dynamic Cs soccncien eee antenna E tia tae 12 2 2 Hardware C OnmectiOiss s si ss cgeseiasncshsstecsaateteecncadsneaeteratintepiesasectsnasiedesseattentes noatgessereslaateeeactcees 13 2 2 1 Attach Module to Prototyping Board cccescscceseeseceseeeecesceeeeeceseeeeceseeeeecaecsaecaeeseeceesaeesenaes 13 2 2 2 Connect Programming Cable sissies aeii eeeaceateeeats qesadeateaeeeieeees 14 2229 CONNEC POWE Loiero ieia nae EE aleasts tyedeaeadstocsmanessteohitsanedeateesVaetecciseeessuctas 15 2 2 3 1 Overseas Development KifSioreseesiei ieia E a ER ORE KRAE 15 2 3 Starting Dynami C wssiessesrseisisrisioririsstersverissisrsssss stasi ceddackedscesis eased euadevlanssesis Sii ESES SENES nirean eniinn 16 2 4 Runa Sample Program esis ess csassdesvscsaseessdeceass cvhcaeiigebeati ateeisesates E AEAEE EAEE EET EE EEEE 16 2 4 1 Troubleshooting sorires eer eNe RE REEE ES eE ESER sara EEES 16 2 5 Where Do 1 Go From Here ennenen an o erect oon ane sen 17 275 1 Technical SUPPO tecer e a hte erasers aie erie dt aE aR E EERE 17 Chapter 3 Running Sample Programs 18 I PINO dUCO Neee E E E errr terior 18 3 2 Sample Programs es nrnnneane r E Da 20 3 2 1 Useof Seral Flash so cciicesseccsiesteskssssiecs sahcaseasd sade bidanstieasasdnesedeatadeidis saad AREE eerst EE Rn risa REESE Erais EnS 22 3 2 2 Serial CommMunication cceccecccccces
145. te network attached to the second Ethernet adapter Disconnecting your PC from the corporate network may be easy or nearly impossible depending on how it is set up If your PC boots from the network or is dependent on the network for some or all of its disks then it probably should not be disconnected If a second Ethernet adapter is used be aware that Windows TCP IP will send messages to one adapter or the other depending on the IP address and the binding order in Microsoft products Thus you should have different ranges of IP addresses on your private network from those used on the cor porate network If both networks service the same IP address then Windows may send a packet intended for your private network to the corporate network A similar 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 addresses are set aside for local networks and are not allowed on the Internet 10 0 0 0 to 10 255 255 255 172 16 0 0 to 172 31 255 255 and 192 168 0 0 to 192 168 255 255 The RCM3750 uses a 10 100Base T Ethernet connection The RJ 45 connectors are simi lar to U S style telephone connectors except they are larger and have 8 contacts An alternative to the direct connection using a crossover cable is a direct connection using a hub The hub relays packets received on any port to all of the ports on the hu
146. telligent peripheral device slaved to a master processor which may either be another Rabbit 3000 or any other type of processor Real Time Clock Yes Timers Ten 8 bit timers 6 cascadable 3 reserved for internal peripherals one 10 bit timer with 2 match registers Watchdog Supervisor Yes Pulse Width Modulators 4 PWM output channels with 10 bit free running counter and priority interrupts Input Capture Quadrature Decoder 2 channel input capture can be used to time input signals from various port pins e 1 quadrature decoder unit accepts inputs from external incremental encoder modules or e 1 quadrature decoder unit shared with 2 PWM channels Power with Ethernet active 4 75 5 25 V DC 175 mA 22 1 MHz 150 mA 11 05 MHz Operating Temperature 40 C to 70 C Humidity 5 to 95 noncondensing Table A 1 lists the electrical mechanical and environmental specifications for the RCM3750 User s Manual 81 Table A 1 RabbitCore RCM3750 Specifications continued Parameter RCM3750 Connectors One 2 x 20 0 1 pitch 1 20 x 2 95 x 0 89 30 mm x 75 mm x 23 mm Board Size A 1 1 Headers The RCM3750 uses one header at J1 for physical connection to other boards J1 is a 2 x 20 SMT header with a 0 1 pin spacing Figure A 3 shows the layout of another board for the RCM3750 to be plugged into These values are relative to the designat
147. th the LCD keypad module since the support circuits are not available on the LCD keypad module Fills the LCD display screen with a pattern PARAMETER The screen will be set to all black if pattern is OxFF all white if pattern is 0x00 and vertical stripes for any other pattern RETURN VALUE None SEE ALSO glBlock glBlankScreen glPlotPolygon glPlotCircle Blanks the LCD display screen sets LCD display screen to white RETURN VALUE None SEE ALSO glFillScreen glBlock 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 the x coordinate of the top left corner of the block top is the y coordinate of the top left comer of the block width is the width of the block height is the height of the block pattern is the bit pattern to display all black if pattern is OxFF all white if pattern is 0x00 and vertical stripes for any other pattern RETURN VALUE None SEE ALSO glFillScreen glBlankScreen glBlock glBlankRegion User s Manual 136 Fills a rectangular block in the LCD buffer with the pattern specified The block left and width parame ters must be byte aligned Any portion of the block that is outside the LCD display area will be clipped PARAMETERS left is the x coordinate of the top left corner of the block top is the y coordinate of the top left com
148. 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 to the LCD if the counter is zero RETURN VALUE None SEE ALSO glBuffUnlock glBuffLock _glSwapData located in the library specifically for the LCD that you are using Sets the drawing method or color of pixels drawn by subsequent graphic calls PARAMETER type value can be one of the following macros PIXBLACK draws black pixels turns pixel on PIXWHITE draws white pixels turns pixel off PIXXOR draws old pixel XOR ed with the new pixel RETURN VALUE None SEE ALSO g1lGetBrushType User s Manual 144 Gets the current method or color of pixels drawn by subsequent graphic calls RETURN VALUE The current brush type SEE ALSO glSetBrushType Gets a bitmap from the LCD page buffer and stores it in xmem RAM This function automatically calls g1XGetFastmap if the left edge of the bitmap is byte aligned and the left edge and width are each evenly divisible by 8 This function call is intended for use only when a graphic engine is used to interface with the LCD keypad module PARAMETERS x is the x coordinate in pixels of the top left corner of the bitmap x must be evenly divisible by 8 y is the y coordinate in pixels of the top left corner of the bitmap bmWidth is the width in pixels of the bitmap
149. the Web browser All current e mails can also be read with the Web browser 6 6 3 Dynamic C FAT File System RabbitWeb and SSL Modules The Dynamic C FAT File System RabbitWeb and Secure Sockets Layer SSL modules have been integrated into a sample program for the RCM3750 The sample program requires that you have installed the Dynamic C FAT File System RabbitWeb and SSL modules Visit our Web site at http www digi com support or contact your Digi sales representative or authorized distributor for further information NOTE These sample programs will work on the RCM3700 the RCM3720 and the RCM3750 but not the RCM3710 The RCM3700 RabbitCore modules do not support the download manager portion of the sample program TIP Before running any of the sample programs described in this section you should look at and run sample programs for the TCP IP ZSERVER LIB library the FAT file system RabbitWeb SSL the download manager and HTTP upload to become more familiar with their operation The INTEGRATION C sample program in the SAMPLES RCM3700 Module_ Integration and the SAMPLES RCM3720 Module_ Integration folders demonstrate the use of the TCP IP ZSERVER LIB library and FAT file system functionality with RabbitWeb dynamic HTML content all secured using SSL The sample program also supports dynamic updates of both the application and its resources using the Rabbit Download Manager DLM and HTTP upload capability respectively note th
150. the dif ference in voltage between the two adjacent channels is measured rather than the differ ence between the input and analog ground Voltage measurements taken in differential mode have a resolution of 12 bits with the 12th bit indicating whether the difference is positive or negative The A D converter chip can only accept positive voltages Both differential inputs must be referenced to analog ground and both inputs must be positive with respect to analog ground Table B 3 provides the differential voltage ranges for this setup 99 RabbitCore RCM3750 Table B 3 Differential Voltage Ranges Min Differential Max Differential Amplifier Voltage Voltage mV per Count V V Gain 0 20 0 xl 10 0 10 0 x2 5 0 5 0 x4 2 5 0 4 0 x5 2 0 0 2 5 x8 1 25 0 2 0 x10 1 00 0 1 25 x16 0 625 0 1 0 x20 0 500 The A D converter inputs can also be used with 4 20 mA current sources by measuring the resulting analog voltage drop across 249 Q 1 precision resistors placed between the ana log input and analog ground for ADC_IN3 to ADC_IN6 Be sure to reconfigure the jumper positions on header JP8 as shown in Section B 1 8 using the slip on jumpers included with the spare parts in the Development Kit B 1 5 2 Thermistor Input Analog input THERM _IN7 on the Prototyping Board was designed specifically for use with a thermistor in conjunction with the THERMISTOR C sample program which d
151. through hole RS 232 chip may be installed at U1 or a surface mount RS 232 chip may be installed at U3 Five correspond ing through hole or surface mount 0 1 uF capacitors must also be installed Figure B 16 shows where to install the RS 232 chip and its associated capacitors for the two options C13 C10 Surface Mount Option e SP232ECT EET chip DO NOT INSTALL e five 0 1 uF capacitors BOTH OPTIONS Through Hole Option e SP232ECP chip e five 0 1 uF capacitors RCM3720 PROTOTYPING BOARD 85 OOODOOOOOOOOOOOGGOOVOO00000O OQOQQQQQQQQQQQOQQQQQQQQQQQQQ0QQ 900999009 O O000000 a 2 BO S H LRO us 2 O E exe OOQOQQQOQQQQOQQQQQQQQ OOQOQQQOQQQQQQQQQ00QQ OOQOQQQQQQQ0000 OQQOQQQQQQ0Q0000000 OOQOQOQQOQQQQQQQQ000000 89899989998399899990 OO0000000 Q lo fs Oooog Oo 08888088 oe amp Io ie HHHHHARORA pi ae aes Ge at Eire mE exe ER 3 g O i Header J3 Figure B 16 Locations Where to Install RS 232 Chip and Capacitors NOTE Only one RS 232 circuit needs to be stuffed RS 232 serial communication on the RCM3720 Prototyping Board is supported by the RS 232 transceiver you installed at U1 or U3 This transceiver provides the voltage out put sle
152. to open the sample program PONG C which is in the Dynamic C SAMPLES folder Press function key F9 to compile and run the program The STDIO win dow will open on your PC and will display a small square bouncing around in a box 2 4 1 Troubleshooting If a program compiles and loads but then loses target communication before you can begin debugging it is possible that your PC cannot handle the default debugging baud rate Try lowering the debugging baud rate as follows e Locate the Serial Options dialog in the Dynamic C Options gt Project Options gt Communications menu Choose a lower debug baud rate If there are any other problems e Check that the RCM3750 is powered correctly the power LED above the RESET button on the Prototyping Board should be lit e Check to make sure you are using the PROG connector not the DIAG connector on the programming cable e Check both ends of the programming cable to ensure that they are firmly plugged into the PC and the programming port on the RCM3750 e Ensure that the RCM3750 module is firmly and correctly installed in its connectors on the Prototyping Board e Select a different COM port within Dynamic C From the Options menu select Proj ect Options then select Communications Select another COM port from the list then click OK Press lt Ctrl Y gt to force Dynamic C to recompile the BIOS If Dynamic C still reports it is unable to locate the target system repeat the above steps
153. tss EEE Ea E EEEE EEE EE 37 4 4 2 Spectrum Spreader eeecccsscssecssceseeesceseeeecesceeeeeeeeeeceecaeesaecseceaeceeeaeseeseseseeseseseeeeaeeaeeeaeenesereees 37 User s Manual AAD FM SRAM cs escrssacinutaes adic EE EE io Snegtevuhun later gabe arose aadente OEE ORE 38 AS 26 Flash EPROM ee eea E T E ESR 38 4 5 3 Serial Flash nenni antee E E ERR E aA R iE E E S 38 4 5 4 Dynamic C BIOS Source Files s eesesseeessseseseesresessesesststssteestesesetststestenessestssesesessesessesteseesee 38 Chapter 5 Software Reference 39 Sel More About Dynamic C reen e a a ra aa eree iae o ieai EEEE 39 5 2 Dynamic C Funci ns aena r E E E E A E RE E T E E a 41 5222 Board Initialization seto a n aa a a a e Bioeng a a R eee toess 42 5 22 Analog TNPUtS nee eneo ar a E AN Se eee dence E E E E E EN e ES 43 sae DET TET E AE PANE AETA EA AEI AEA NI PENE EE A I IED IN TN 59 5 2 4 Serial Communication Drivers ccccccsccessesseeseceseeseeeecesceseceseeseeeeeeaecseecaessaeceecsenseneeeeesereneeeaes 60 S2 S Seral Flash kirita iiaa ire En E Nad ec A E A EE E EES 60 S20 CR TReD rivers arne tasted a a r n E ania Geeta A O A EET 60 5 3 Upgrading Dynamic Creina seen Was te cerned eet A R aida el aE RA a 61 5 31 Add On MOdules eer hre eare areae dheseh cunssaseheocac dso aeaa aaant eenas oa Eo n sduczstionsdustacetseg 6l 5 3 lel Featured A pplication Kif nenn e o E EER E TET 61 Chapter 6 Using the TCP IP Features 62 65 EEP TP Connect ons oyan e a
154. unction 0xE000 Device select base address CS OxExx0 OxExx7 LCD control OxExx8 LED enable OxExx9 Not used OxExxA 7 key keypad OxExxB bits 0 6 7 LED driver OxExxB bit 7 LCD backlight on off OxExxC ExxF Not used User s Manual 127 C 5 Install Connectors on Prototyping Board Before you can use the LCD keypad module with the RCM3700 Prototyping Board you will need to install connectors to attach the LCD keypad module to the RCM3700 Proto typing Board These connectors are included with the RCM3700 Development Kit First solder the 2 x 13 connector to location LCD1JA on the RCM3700 Prototyping Board as shown in Figure C 7 e Ifyou plan to bezel mount the LCD keypad module continue with the bezel mounting instructions in Section C 7 Bezel Mount Installation e If you plan to mount the LCD keypad module directly on the RCM3700 Prototyping Board solder two additional 2 x 7 connectors at locations LCD1JB and LCD1JC on the RCM3700 Prototyping Board Section C 6 Mounting LCD Keypad Module on the Prototyping Board explains how to mount the LCD keypad module on the RCM3700 Prototyping Board Pcupce Pco_txD PEs Pet
155. ustomer supplied motherboard on which it is mounted The RCM3750 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 your own microprocessor based system a complete Dynamic C software development system with optional modules and a Prototyping Board that allows you to evaluate the RCM3750 and to prototype circuits that interface to the RCM3750 module 1 1 RCM3750 Features e Small size 1 20 x 2 95 x 0 89 30 mm x 75 mm x 23 mm e Microprocessor latest revision of Rabbit 3000 running at 22 1 MHz supports Dynamic C Secure Sockets Layer SSL module for added security e 33 parallel 5 V tolerant I O lines 31 configurable for I O 2 fixed outputs e External reset I O e Alternate I O bus can be configured for 8 data lines and 5 address lines shared with parallel I O lines I O read write e Ten 8 bit timers six cascadable and one 10 bit timer with two match registers e 10 100Base T RJ 45 Ethernet port User s Manual 6 512K flash memory and 512K SRAM options for 256K flash memory and 128K SRAM 1 Mbyte serial flash memory which is required to run the optional Dynamic C FAT file system Real time clock Watchdog supervisor Provision for customer supplied backup battery via connections on header J1 10 bit free running PWM counter and four pulse width registers Two channel Input Capture can be used to t
156. vices are also available Note that there are SMT device pads on both top and bottom of the Prototyping Board Each SMT pad is connected to a hole designed to accept a 30 AWG solid wire or wire wrap wire LCD Keypad Module Rabbit Semiconuctor s LCD keypad module may be plugged in directly to headers LCDIJA LCD1JB and LCD1JC The signals on headers LCD1JB and LCD1JC will be available only if the LCD keypad module is plugged in to header LCD1IJA Appendix C provides complete information for mounting and using the LCD keypad module Module Extension Headers The complete non analog pin set of the RCM3750 module is duplicated at header J3 Developers can solder wires directly into the appro priate holes or for more flexible development a 2 x 20 header strip with a 0 1 pitch can be soldered into place See Figure B 4 for the header pinouts Analog I O Shrouded Headers The complete analog pin set of the RCM3750 Prototyping Board is available on shrouded headers J8 and J9 See Figure B 4 for the header pinouts User s Manual 92 N se O a a RCM3700 RS 232 Three 3 wire serial ports or one 5 wire RS 232 serial port and one 3 wire serial port are available on the Prototyping Board at header J2 A jumper on header JP2 is used to select the drivers for Serial Port E which can be set either as a 3 wire RS 232 serial port or as an RS 485 serial port Serial Ports C and D are not available while the IrDA trans
157. w rate and input voltage immunity required to meet the RS 232 serial communica tion protocol Basically the chip translates the Rabbit 3000 s signals to RS 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 line loading for reliable communication RS 232 can be used effectively at the RabbitCore module s maximum baud rate for dis tances of up to 15 m 119 RabbitCore RCM3750 When stuffed the RS 232 chip brings out Serial Ports C and D to the header J3 area on the RCM3720 Prototyping Board An optional 2 x 5 header strip with a 0 1 pitch can be installed at J3 to allow you to connect a ribbon cable that leads to a standard DB 9 serial connector The 2 x 5 header Part No 405 0023 can be purchased through our online store Table B 9 summarizes the serial port locations nN Table B 9 RCM3720 Prototyping Board Serial Port Locations Serial Port Signal Header Header Pins x TxC 6 q k RxC 4 TxD 3 a B RxD 5 These serial ports can be configured in software as either one 5 wire or two 3 wire RS 232 channels RS 232 flow control on an RS 232 port is initiated in software using the serx flowcontroloOn 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 SE
158. when using this sample program The sample program MBOXDEMO C implements a Web server that allows e mail messages to be entered and then shown on the LCD keypad module The keypad allows the user to scroll within messages flip to other e mails mark messages as read and delete e mails When a new e mail arrives an LED on the Prototyping Board and LCD keypad module turns on then turns back off once the message 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 The sample program PINGLED C demonstrates ICMP by pinging a remote host It will flash LEDs DS1 and DS2 on the Prototyping Board when a ping is sent and received User s Manual 73 The sample program SMTP C allows you to send an e mail when a switch on the Prototyp ing Board is pressed Follow the instructions included with the sample program LED DS1 on the Prototyping Board will light up when sending e mail Note that pin PB7 is con nected to both switch S2 and to the external I O bus on the Prototyping Board and so switch S2 should not be used with Ethernet operations 6 6 1 RabbitWeb Sample Programs You will need to have the Dynamic C RabbitWeb module installed before you run the sample programs described in this section The sample programs can be found in the SAM PLES RCM3700 TCPIP RABBITWEB folder BLINKLEDS C This program demonstrates a basic example t
159. will give you a solid hands on overview of the RCM3750 s capabilities as well as a quick start with Dynamic C as an application development tool NOTE The sample programs assume that you have at least an elementary grasp of the C programming language If you do not see the introductory pages of the Dynamic C User s Manual for a suggested reading list More complete information on Dynamic C is provided in the Dynamic C User s Manual In order to run the sample programs discussed in this chapter and elsewhere in this manual 1 Your RCM3750 must be plugged in to the Prototyping Board as described in Chapter 2 Getting Started 2 Dynamic C must be installed and running on your PC 3 The programming cable must connect the programming header on the Prototyping Board to your PC 4 Power must be applied to the RCM3750 through the Prototyping Board Refer to Chapter 2 Getting Started if you need further information on these steps To run a sample program open it with the File menu then compile and run it by pressing F9 or by selecting Run in the Run menu The RCM3750 must be in Program Mode see Figure 9 on page 35 and must be connected to a PC using the programming cable Getting Started 18 The default I O configuration in the sample programs is based on the RabbitCore module detected during compile time e Any RCM3700 RabbitCore module except the RCM3720 will have its I O ports con figured for an RCM3700 P
160. would be located D 1 3 Reset Generator The RCM3750 uses a reset generator to reset the Rabbit 3000 microprocessor when the volt age drops below the voltage necessary for reliable operation The reset occurs between 2 85 V and 3 00 V typically 2 93 V The RCM3750 has a reset pin pin 36 on header J1 This pin provides access to the reset output from the reset generator and is also connected to the reset input of the Rabbit 3000 to allow you to reset the microprocessor externally R21 protects the reset generator from being overdriven This allows the same pin pin 36 on header J1 to be used to either sense a reset or to force a reset User s Manual 159 APPENDIX E SECURE EMBEDDED WEB APPLICATION KIT Appendix E provides information for the Secure Embedded Web Application Kit based on the RCM3700 In addition to an RCM3700 series RabbitCore module and Dynamic C 8 51 or a later version the Secure Embedded Web Application Kit comes with an enhanced software bundle that facilitates the rapid development of secure Web browser interfaces for embedded system control The enhanced software bundle that is provided in the Secure Embedded Web Application Kit comes on three CD ROMs The software modules included in the software bundle require Dynamic C 8 51 or a later version which is included on a separate CD ROM in the Secure Embedded Web Application Kit Software Modules on CD ROM 1 Dynamic C FAT File System module The Dynamic C FAT
161. x DO 7 NORD BUFEN D 7 0 lt _ gt Tlocsx Tlocsx TioRD TioRDi lt gt TBUFEN TBUFEN lt setup 2 C Xoia D Thodi oe LL ed A 15 0 CSx 7 jF 6 amp J amp NOCSx X T T SES Tiocsx NOWR BUFEN D 7 0 External I O Write one programmed wait state be T1 Tw gt lt T2 gt lt gt lt gt gt Tadr Tosx gt lt TBUFEN TBUFEN 7 TDHZV Tovuz lt gt Tosx e Tiocsx Figure A 4 I O Read and Write Cycles No Extra Wait States User s Manual 84 Table A 4 lists the delays in gross memory access time Table A 4 Data and Clock Delays VIN 10 Temp 40 C 85 C maximum Clock to Address Output Delay Spectrum Spreader Delay ns Data Setup ns VIN Time Delay a i orma rong F F F ns ll oO ll no dbl dbl no dbl dbl 3 3 V 6 8 11 1 3 4 5 4 5 9 The measurements are taken at the 50 points under the following conditions e T 40 C to 85 C V Vpp 10 e Internal clock to nonloaded CLK pin delay lt 1 ns 85 C 3 0 V The clock to address output delays are similar and apply to the following delays e Tugr the clock to address delay e Tcsx the clock to memory chip select delay e Tiocsx the clock to I O chip select delay e Tiorp the clock to I O read strobe delay e Tiowr the clock to I O write str
162. ystem and Secure Sockets Layer SSL modules and includes Dynamic C 8 51 or a later version and an RCM3700 This enhanced soft ware bundle facilitates the rapid development of secure Web browser interfaces for embedded system control Appendix E provides additional information about the Secure Embedded Web Application Kit e Ethernet Connection Kit Part No 101 0963 North American markets and Part No 101 0964 overseas markets comes with one CD ROM that includes Dynamic C 9 01 or a later version an RCM3720 module and an RCM3720 Prototyping Board This kit is intended to demonstrate and help you develop Ethernet based applications Visit our Web site at http www digi com support or contact your Digi sales representa tive or authorized distributor for further information 1 3 4 802 11b Wi Fi Add On Kit Rabbit Semiconuctor also offers a Wi Fi Add On Kit Part No 101 0999 for the full line of RCM3700 modules including the RCM3750 This Wi Fi Add On Kit consists of an RCM3600 RCM3700 Interposer Board a Wi Fi CompactFlash card with a CompactFlash Wi Fi Board a ribbon interconnecting cable and the software drivers and sample pro grams to help you enable the full line of RCM3700 modules with Wi Fi capabilities The RCM3600 RCM3700 Interposer Board is placed between the RCM3750 module and the Prototyping Board so that the CompactFlash Wi Fi Board which holds the Wi Fi Compact Flash card can be connected to the RCM3750 based sy
Download Pdf Manuals
Related Search
Related Contents
B-sensor with addressable Serial Peripheral Interface user manual Cálculo, generación y pago de cuotas obrero Ford FCS-12141-12 Automobile Accessories User Manual Consulter le mode d`emploi du produit ainsi que sa fiche de sécurité Multimetro ambientale 11 in 1 SPITFIRE 取扱説明書: HG-1 - オーシャンオプティクス [Ocean Optics] 4 - SEW Eurodrive Bedienungs- anleitung Copyright © All rights reserved.
Failed to retrieve file