Home
Smartcat (BL2100) - Digi International
Contents
1. Program Mode Run Mode Power Power poeseseoooseses ecosesoooees sosesesoSssesecesesesoses im 7 p oa i TN EBD F Dom x OO ORN ar illo 15 A ee Bou HD Te x ese Wo EIE B SER HO EO E ch JO i LLLE fi jc 1o mw WO ge Wo Ho no no Ho Wo BO EMI E io Ho j Ho JS d 8 ge EO f sesesosesesese es SOS99 Sesesosesesesg eseses DIAG Lm mr Colored edge N ned shrink wrap Programming Cable To PC COM port RESET BL2100 when changing mode Cycle power off on after removing or attaching programming cable Figure 17 BL2100 Program Mode and Run Mode Set Up A program runs in either mode but can only be downloaded and debugged when the BL2100 is in the Program Mode Refer to the Rabbit 2000 Microprocessor User s Manual for more information on the pro gramming port and the programming cable 28 Smartcat BL2100 3 5 A D Converter Inputs The single 14 channel A D converter chip used in the BL2100 has a resolution of 12 bits models BL2100 and BL2120 only Eleven of the 14 channels are available externally and three are used internally for the reference voltages 4 096 V Vief 2 048 V Vie 2 and Analog Ground These internal voltages can be used to check the functioning of the A D converter chip The A D converter chip only
2. Part No 101 0541 DISPLAY BOARD O J4 Figure C 3 LCD Keypad Module Contrast Adjustment 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 5 V by removing the jumper that was installed at the factory across pins 1 2 on header J5 as shown in Figure C 3 Only one of these two options is available on these older 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 work with the BL2100 These LCD keypad modules are no longer being sold User s Manual 81 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 your own keypad label insert lt 2 35 a 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 oqoqO oOQO0Q0 O Figure C 5 Removing and Inserting Keypad Label
3. Default cs a ule J d Assyeg Noy IN OOV NDGV ENDOY 9NOGY coovG CERE oA Jjeeesessosesesessgeseses Dav eee en Figure 14 RS 485 Termination and Bias Resistors For best performance the bias and termination resistors in a multidrop network should only be enabled on both end nodes of the network Disable the termination and bias resis tors on any intervening BL2100 units in the network by removing both jumpers from header JP1 TIP Save the jumpers for possible future use by parking them across pins 1 3 and 4 6 of header JP1 Pins 3 and 4 are not otherwise connected to the BL2100 User s Manual 25 3 3 3 Ethernet Port Figure 15 shows the pinout for the Ethernet port J2 on the BL2100 module Note that there are two standards for numbering the pins on this connector the convention used here and numbering in reverse to that shown Regardless of the numbering convention followed the pin positions relative to the spring tab position l
4. 20 headers C switching threshold 20 Demonstration Board digital outputs 21 13 5 PET 120 121 122 CE compliance qmm 6 E AUR 21 wm 120 121 122 design guidelines 7 iis dimensions JPl usen 25 chip select circuit 77 BL2100 main board 62 pane Said eee ee ER 34 LCD keypad module 79 l Ethernet cable 55 pepe ep pad Tem pM enam I O address assignments 71 connector options 2 iue LM MR p LCD keypad module 83 Dynamic C 5 35 36 installation D add on modules 14 37 plastic enclosure installation 14 BL2100 114 D A converter 30 basic instructions 35 IP addresses 3 calibration constants 30 COM port es 14 15 how toset 57 boudin anmbob s 40 debapeing e oca 36 OW to set ssssseeeeee User s Manual 123 how to set PC IP address 58 J jumper configurations 67 68 Demonstration Board 120 121 122 digital inputs 68 JP1 RS 485 bias and termina tion resistors 25 68 JP2 configure IN16 IN23 as digital inputs or outputs 68 JP2 flash memory bank se lect Senn 32 jumper locations 67 K Kissen uai 21 keypad template 82 removing and inserting label
5. Fs ntl HER QD Q G 8 Q S P i Ol RPE J17 oM 7 zb GO6SSS9oSeSesoSSg esosesosose Figure 4 Reconnect RabbitCore Module to BL2100 Main Board User s Manual 11 4 Connect the programming cable to download programs from your PC and to program and debug the BL2100 Connect the 10 pin PROG connector of the programming cable to header J1 on the BL2100 RabbitCore module Ensure that the colored edge lines up with pin 1 as shown Do not use the DIAG connector which is used for a nonprogramming serial connection Connect the other end of the programming cable to a COM port on your PC Make a note of the port to which you connect the cable as Dynamic C will need to have this parameter configured Note that COMI on the PC is the default COM port used by Dynamic C SG 56eseseoosos Tote tl 2 d k i M g 1 LA e lle jr 9 Li GOSSSoSOSOSOSS eS DIAG Colored edge gt mK Red shrink wrap To PC COM port Programming Cable Figure 5 Programming Cable Connections NOTE Never disconnect the programming cable by pulling on the ribbon cable Carefully pull on the connector to remove it from the header NOTE S
6. Feature BL2100 BL2110 BL2120 BL2130 Microprocessor Rabbit 2000 running at 22 1 MHz Static RAM 128K Flash Memory 256K RJ 45 Ethernet Connector Filter Capacitors and LEDs A D Converter Inputs 10 V to 10 V D A Converter Outputs 0 V to 10 V RabbitCore Module Used RCM2200 RCM2300 Additional 512K flash 512K SRAM memory options are available for custom orders involving nominal lead times Contact your Rabbit sales representative or authorized distributor for more information Appendix A provides detailed specifications 1 2 1 Connector Options In addition to the standard screw terminal connectors supplied on BL2100 boards IDC headers bottom mount sockets and polarized friction lock terminals may be factory installed instead Visit our Web site at www rabbit com or contact your Rabbit sales representative or authorized distributor for further information Standard screw terminals accept up to 14 AWG 1 5 mm wire Bottom mount socket 0 1 pitch IDC headers 0 1 pitch Polarized friction lock terminals 0 1 pitch Smartcat BL2100 1 3 Optional Add Ons e Plastic enclosure can be wall mounted or panel mounted with LCD keypad module that comprises a 122 x 32 LCD graphic display 7 key keypad and seven LEDs The plastic enclosure consists of a base and a cover for an assembly made up of
7. 100nF 4 14 kQ T 89 25 5 kQ 10 2 KQ 39 ADREF 1 707 V o 2 048 V 2926 V l e e 10 ns 100 nF 25 55ko S 100nF 25 5kQ 100 nF Figure 21 Analog Reference Voltages This circuit generates the 4 096 V reference voltage which is used by the A D converter and by the D A converters This sets the operating range of the A D converter and the D A converters 0 10 V To use the full accuracy of the A D converter and the D A convert ers this voltage must be accurate to the same degree The reference zener diode in combination with the 300 Q resistor form a shunt regulator The 4 096 V reference voltage then feeds the A D converter the D A converters and the voltage divider composed of the 10 kQ and the 14 kQ resistors The voltage divider gener ates a second reference voltage of 1 707 V to feed the four op amps for the buffered A D converter inputs The 2 048 V reference voltage is also used to generate the 2 5 V reference for D REF used in the digital output circuit User s Manual 31 3 8 Memory 3 8 1 SRAM The BL2100 module is designed to accept 128K to 512K of SRAM packaged in an SOIC case The standard BL2100 modules come with 128K of SRAM 3 8 2 Flash Memory The BL2100 is also designed to accept 128K to 512K of flash memory packaged in a TSOP case The standard BL2100 modules comes with one 256K flash memory NOTE Rabbit recommends that any customer appl
8. RETURN VALUE None SEE ALSO glFontCharAddr glPrintf Sets the g1Printf 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 98 Smartcat BL2100 Gets the current g1Printf 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 giGetPfStep to control the x and y printing step direction 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 cnt is not used is a place holder
9. Serial Port Mode B C D 0 RS 232 3 wire RS 232 3 wire RS 485 1 RS 232 5 wire CTS RTS RS 485 The BL2100 also has one RS 485 serial channel and one CMOS serial channel that serves as the programming port All four serial ports operate in an asynchronous mode 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 the programming port can be operated alternately 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 The BL2100 boards typically use all four ports in the asynchronous serial mode Serial Ports B and C are used for RS 232 communication and Serial Port D is used for RS 485 communica tion The BL2100 uses an 11 0592 MHz crystal which is doubled to 22 1184 MHz At this frequency the BL2100 supports standard asynchronous baud rates up to a maximum of 230 400 bps 3 3 4 RS 232 The BL2100 RS 232 serial communication is supported by an RS 232 transceiver 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 2000 s CMOS TTL 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 an
10. Smartcat BL2100 C Programmable Single Board Computer with Ethernet and Operator Interface User s Manual 019 0103 M Smartcat BL2100 User s Manual Part Number 019 0103 Printed in U S A 2001 2010 Digi International Inc All rights reserved Digi International reserves the right to make changes and improvements to its products without providing notice Trademarks Rabbit RabbitCore and Dynamic C are registered trademarks of Digi International Inc Rabbit 2000 is a trademark of Digi International Inc The latest revision of this manual is available on the Rabbit Web site www rabbit com for free unregistered download Digi8 International Inc www rabbit com Smartcat BL2100 TABLE OF CONTENTS Chapter 1 Introduction 1 1 1 BE2100 Description eet reete teet deed ei dec erre Yeu PEOR ERE ERE Pe Eee Ure a reo Reid ee tel duod 1 1 2 BEL2100 Beatutes n res P ide cot sees et Crete e ete Ee ever sa ei A s ca E aeteals 1 1 2 1 niii M 2 1 3 Optional Add Ons deer ertet metr e een DES PER e pei ruo Rp e PER EET Hebe rare EE LR NEE CR PR EREE Rue 3 1 4 Development and Evaluation Tools eese innen nnne nennen enhn tenente enne nennen 4 I MEUM ETE 4 IE AID I 5 1 4 3 Online Documentation 5 ceteri eter tet ee ehe Y ER ERE REESE ERE UREHER E EE ava tease anus Ua eee egy e ERE
11. Bit 10 high current output channel OUT10 Bit 9 high current output channel OUTO9 Bit 8 high current output channel OUTOS Bit 7 high current output channel OUTO7 Bit 6 high current output channel OUTO6 Bit 5 high current output channel OUTO5 Bit 4 high current output channel OUT04 Bit 3 high current output channel OUTO3 Bit 2 high current output channel OUTO2 Bit 1 high current output channel OUTOI Bit 0 high current output channel OUTOO The high current outputs can be configured to be sinking or sourcing outputs by setting the correspond ing bit to an 0 or 1 0 sinking 1 sourcing RETURN VALUE None SEE ALSO brdInit digOut EXAMPLE outputMode 0x0ff1 Outputs OUT15 OUT12 Sinking Outputs OUT11 OUT08 Sourcing Outputs OUTO7 OUT04 Sourcing Outputs OUT03 OUTO1 Sinking Output OUTOO Sourcing User s Manual 43 Sets the state of a digital output OUTOO OUT 195 Remember to call the brdInit and the digOutConfig functions before executing this function A runtime error will occur for the following conditions 1 channel or value out of range 2 brdInit Or digOutConfig was not executed before executing digout PARAMETERS channel is the output channel number 0 15 0 23 if IN16 IN23 are configured as digital outputs value is the output value 0 or 1 SEE ALSO brdInit digIn digOutConfig Reads the state of an input channel A run time error will
12. Demonstrates how to use the A D converter channels with the low level A D driver The program uses the STDIO window to display the voltage average of 10 sam ples that is being monitored on all the A D converter channels using the low level A D driver 4 2 4 D A Converter Outputs The following sample programs are found in the DAC subdirectory in SAMPLES BL2100 e DACAL C This program demonstrates how to recalibrate an D A converter channel using two known voltages and defines the two coefficients gain and offset that will be rewritten into the D A converter s EEPROM simulated in flash memory NOTE This sample program will overwrite the calibration constants set at the factory e DAOUT1 C This program outputs a voltage that can be read with a voltmeter The out put voltage is computed using the calibration constants that are read from the EEPROM simulated in flash memory User s Manual 39 e DAOUT2 C This program demonstrates the use of both the D A and the A D convert ers The user selects both the D A converter and A D channel to be used then sets the D A converter output voltage to be read by the A D channel All activity will be dis played in the STDIO window 4 2 5 Using Calibration Constants The following sample programs are found in the Calib Save Retrieve subdirectory in SAMPLES BL2100 Note that both sample programs prompt you to use a serial number for the BL2100 This serial number can be any 5 digit number
13. ne 103 glVScroll 105 glIXFontInit 97 glXPutBitmap 105 glXPutFastmap 106 TextCursorLocation 107 TextGotoXY 107 TextPrintf 108 TextPutChar 108 TextWindowFrame 106 LDEs function calls ledOut 92 mounting instructions 84 mounting locations 65 remote cable connection 89 removing and inserting keypad label 5 2 5its 82 removing and plugging in pro gramming cable 85 86 sample programs 90 VerSiODS visies 79 M MEMOTY eeeeeeee een 32 flash memory configurations 32 SRAM configuration for dif ferent sizes 32 models 5 eben 2 BL2100 2 BU2110 eie 2 BE2120 senes 2 BE2130 mee 2 connector options 2 mounting instructions LCD keypad module 84 O options psen resres 3 connectors oessssssseeeseeereeeeseees 2 LCD keypad module 3 plastic enclosure 3 P pinout BL2100 headers 18 Ethernet port 26 LCD keypad module 83 plastic enclosure 4 113 assembly instructions 114 attach BL2100 to base 11 dimensions 116 mounting instructions 116 setup attach BL2100 to enclosure b se ee 114 attaching top 116 install LC
14. 91 C 8 LCD Keypad Module Function Calls C 8 1 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 BL21XX LIB library LED on off control This function will only work when the LCD keypad module is installed on the BL2100 PARAMETERS ledis 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 l on RETURN VALUE None SEE ALSO brdInit 92 Smartcat BL2100 C 8 2 LCD Display The functions used to control the LCD display are contained in the Dynamic C DISPLAYS GRAPHICNGRAPHIC LIB library folder When x and y coordinates on the display screen are specified x can range from 0 to 121 and y can range from 0 to 31 These numbers rep resent 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 onOf f turns t
15. CY 5 AD CE GCOnmnplIances neutrons itinere terret dee PUn rH 6 1 5 1 Design Guidelimes rere o te pee ie tee etr esee Erbe cer Eee ee es Dee e in tee 7 1 5 2 Interfacing the BL2100 to Other Devices enne 7 Chapter 2 Getting Started 9 2 1 BL2100 Connections ersen ainesest en ee ree EE E aaa EEE eE E EREE EE EE E EE aer 9 2 2 Installing Dynamic Caienna aieiaa teet Fere ee petro spe sett vies eeu e EaR reae aea RAEE AEE GS ura Ae esee cas 14 2 5 Starting Dynamic C iioii esent ees e Ra E E en pe Role Renee LH Te ERE UR nee 15 peau Sample Propran ERE 15 2 4 1 Troubleshooting 5 erret eoe Eee reet baa epe YR ee Fe e eden eio eee ke reels 15 2 9 Where Do I Go From Hete cieecieetiseeesesiisceeeseestet oe pese obdeusiacsatcosstati cease ves tans dvaceusensceecsecasteestans 16 RS MB Technical SITIO JETER 16 Chapter 3 Subsystems 17 3 I BE2T00 Pimolls 5 rerit ER RUE eei clexisiiebec n ar etis eius 18 3 1 1 Headers and Screw Terminals cccccccescccessscecesseecsseeceesececsececeseeeesesaeecsnseeeseeeseaeeeseeeeeseeeeneaee 19 32 Mat alll VO anassen EE 20 3 21 WD Stal Un Puts eheee EEE E EE ER EE EESE ESA Ea ES SEE A Esa Vae EEE NEES ESSE 20 3 2 2 III DINE 21 3 9 Serial COMMUMICALION sriain t 23 IERS 22 e E E A E E 23 DNA RSA n e EE T A Ea E R E RRE EE E O ERE 23 I ENErnet POEE iniecit tertie ore cage E E S eE E eR E EGEE 26 3 34 Programming PO erste Ebrei terreno reato EE iE r EEE Ne ER NES EEE r EEEE E KEE EEE EE cena he S
16. Manual 117 118 Smartcat BL2100 APPENDIX E DEMONSTRATION BOARD Appendix E shows how to connect the Demonstration Board to the BL2100 E 1 Connecting Demonstration Board Before running sample programs based on the Demonstration Board you will have to con nect the Demonstration Board from the BL2100 Tool Kit to the BL2100 board Proceed as follows 1 Use the wires included in the BL2100 Tool Kit to connect header J1 on the Demonstra tion Board to screw terminal headers J5 and J8 on the BL2100 The connections are shown in Figure E 1 for sample program DIGIN C and for sample program SMTP C in Figure E 2 for sample program DIGOUT C and in Figure E 3 for sample program SSI C 2 Make sure that your BL2100 is connected to your PC and that the power supply is con nected to the BL2100 and plugged in as described in Chapter 2 Getting Started User s Manual 119 ee SLODOPYGSVSV SOSCLSVOVDOVGsV SeA LEETE E gt Os i E m Q o A i ITE BL2100 m a 3 eae LL FE
17. NOTE If you purchased your BL2100 through a distributor or Rabbit partner contact the distributor or partner first for technical support If there are any problems at this point Use the Dynamic C Help menu to get further assistance with Dynamic C e Check the Rabbit Technical Bulletin Board and forums at www rabbit com support bb and at www rabbit com forums Use the Technical Support e mail form at www rabbit com support If the sample programs ran fine you are now ready to go on 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 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 our Web site 60 Smartcat BL2100 APPENDIX A SPECIFICATIONS Appendix A provides the specifications for the BL2100 and describes the conformal coating User s Manual 61 A 1 Electrical and Mechanical Specifications Figure A 1 shows the mechanical dimensions for the BL2100 Two additional mounting holes 7 are located under the RabbitCore module RJ 45 jack extends 0 16 4 0 mm past edge of board 363 C9 T AAA JX 2 11 OL 54 206390090 CO CX 1 62 0 63 B T 41 16 3 41 B7 Figure A 1 BL2100 Dimensions NOTE All measurements are
18. The sample program KEYBASIC C in the SAMPLES LCD_KEYPAD 122x32_1x7 folder shows how to reconfigure the keypad for different applications 82 Smartcat BL2100 C 4 Header Pinouts Figure C 6 shows the pinouts for the LCD keypad module 2929 0588nf g amp mm ooziiuiiuio Ou C D D O Zl e o gt Huair nnna nnan i a E J1 oOo pug g oo Oo 00 og 0l oO cm o co m c cn Q st nine upnpoc c ao2o08nnsBa ud c m m m 5 5 ul ul iu n x GA 0O zz m X e e co em OOTAS ANR Oc g z mnmmgmpncos 20020m08o0 onoaaaaoac o32222 2 0 0 0 0 0 0 B oo 0 0 0 0 B J2 J3 n no utm 8 ag B8B EH Hull eg H Q mam aa aet CQ O0 Q9 s UO n Lr nduscd2 genadig Onna OO a ae 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 PE7 strobe as explained in Table C 2 Table C 2 LCD Keypad Module Address Assignment Address Function Exx0 Exx7 LCD control Exx8 LED enable Exx9 Not used ExxA 7 key keypad ExxB bits 0 6 7 LED driver ExxB bit 7 LCD backlight on off ExxC ExxF Not used User s Manual 83 C 5 Mounting LCD Keypad Module on the BL2100 Finish making any connections involving the analog I O on screw terminal header J2 before you install the LCD keypad module since the LCD keypad module will block access to the screws on screw terminal header J2 Install the LCD k
19. and the plastic bezel faceplate is touching the panel Smartcat BL2100 C 6 1 Connect the LCD Keypad Module to Your BL2100 The LCD keypad module can be located as far as 2 ft 60 cm away from the BL2100 and is connected via a ribbon cable as shown in Figure C 13 a nu Ug wu wu SERE SVLOD SPL SVSG p SQVSgeg B2SLOSSSsg O looo00 Pin 1 sux UB os Gos E E dins A H 5 gnonnnn o UUUHUUH om TT m j amm C UUUUUUUUUU om ODE TET IET zm 2 T mm 620069 UUUUUUU Figure C 13 Connecting LCD Keypad Module to BL2100 Note the locations and connections relative to pin 1 on both the BL2100 and the LCD key pad module Rabbit offers 2 ft 6
20. array of vertex coordinates x1 y1 x2 y2 x3 y3 RETURN VALUE None SEE ALSO glFillPolygon glPlotPolygon glPlotVPolygon Fills 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 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 glFillVPolygon 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 radis the radius of the center of the circle in pixels RETURN VALUE None SEE ALSO glFillCircle glPlotPolygon glFillPolygon 96 Smartcat BL2100 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
21. board over the plastic enclosure base as shown below in Figure 3 Attach the BL2100 to the base using the four 4 40 x 1 4 screws supplied with the enclosure base R 9 f l ES A Eu Sececoocococ qecoecte eoes ML i 2 e d Figure 3 Attach BL2100 Main Board to Plastic Enclosure Base The plastic enclosure base facilitates handling the BL2100 during development and pro vides an attractive mounting alternative Alternatively you may wish to use standoffs to protect the components on the other side of the board The plastic enclosure base is offered as a separate option when individual BL2100 boards are purchased NOTE Appendix D Plastic Enclosure provides additional information and specifications for the plastic enclosure 10 Smartcat BL2100 3 Reconnect the RabbitCore module to headers J16 and J17 on the BL2100 main board it was removed from earlier as shown in Figure 4 Be careful to align the pins over the headers and do not bend them as you press down to mate the module with the BL2100 main board NOTE If you are working with more than one BL2100 at a time take care to keep the BL2100 main boards and their corresponding RabbitCore modules paired since the Rab bitCore modules store calibration constants specific to the BL2100 main board to which they are plugged in
22. channel SEE ALSO analn anaInCalib brdInit Reads the calibration constants gain and offset from the simulated EEPROM in flash memory located in reserved user block memory area 0x1C00 0x1FFF PARAMETER channel is the A D converter input channel 0 10 RETURN VALUE 0 if successful if address is invalid or out of range SEE ALSO anaInEEWr brdInit 48 Smaricat BL2100 Writes the calibration constants gain and offset to the simulated EEPROM in flash memory located in reserved user block memory area 0x 1C00 0x1FFF PARAMETER channel is the A D converter input channel 0 10 for which the calibration constants will be read RETURN VALUE 0 if successful if address is invalid or out of range SEE ALSO anaInEERd brdInit User s Manual 49 4 4 5 D A Converter Outputs The functions in this section apply only to the BL2100 and the BL2120 models Calibrates the response of the D A converter channel desired as a linear function using the two conver sion points provided Gain and offset constants are calculated and placed into global table dacCalib PARAMETERS channel is the D A converter output channel 0 3 valuel is the first D A converter value 0 4095 volts1 is the voltage corresponding to the first D A converter value 0 V to 10 V value2 is the second D A converter value 0 4095 volts2 is the voltage corresponding to the second D A converter value 0 V to 10 V RETURN V
23. circle rad is the radius of the center of the circle in pixels RETURN VALUE None SEE ALSO glPlotCircle glPlotPolygon glFillPolygon Initializes the font descriptor structure where the font is stored in xmem 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 User s Manual 97 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 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
24. for STDIO string functions pInst is a font descriptor pointer RETURN VALUE None SEE ALSO glPrintf glPutFont doprnt User s Manual 99 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 X n and V 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 top left corner of the text y is the y coordinate row of the top left corner of the text pInfo is a font descriptor pointer fmt is a formatted string are formatted string conversion parameter s EXAMPLE glprintf 0 0 amp fil2x16 Test d n count RETURN VALUE None SEE ALSO glXFontInit 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 glBuffUnlock 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 glBuffUnlock bracketing a set of related graphic calls speeds up the rendering significantly RETURN VALUE None SEE ALSO glBuffUnlock glSwap Decrements th
25. function calls dimensions 116 serA85Rx siisii hes 45 spectrum spreader 34 S SerA85Tx aeiee 45 subsystems eee 17 sample programs 38 serCflowcontrolOff 45 T AID converter serCflowcontrolOn 45 AD CALIB C is 39 serMode eee 45 TCP IP connections 55 ADLIC e estt 39 programming port 21 10Base T Ethernet card 55 AD2 C s isis 39 RS 232 descrip Hon MERE 23 additional resources 60 ADI f RES 39 RS 485 description 23 Ethernet hub 55 ADAC MN 39 RS 485 network 24 T MPO EAR URSEN 55 calibration constants RS 485 termination and bias technical support 16 GETCALIB C 29 30 40 TESISLOTS isse 78 Tool Kit us oce eon ios 4 SAVECALIB C 29 30 40 Serial ports AC adapter s eaten 4 D A converter Ethernet port 26 DC power supply 4 DACAL C e a unas go SEBUpereeeedes o aiio gen 9 Demonstration Board 4 DAOUTEG ones 39 attach BL2100 to enclosure Dynamic C software 4 DAOUT2 C amp eie 40 base e LO plastic enclosure 4 digital I O POWEFSHPP ly connections 13 programming cable 4 DIGIN C 38 programming cable connec software cste 4 DIGOUT GC ets 38 HONS sse 12 User s Manual 4 PWM C pieced 4 38 reconnect RabbitCore module wire assembly 4 how to set IP address 57 11 troubleshoot
26. have access to an Ethernet network use a crossover Ethernet cable to con nect the BL2100 to a PC that at least has a 10Base T Ethernet card If you have Ethernet access use a straight through Ethernet cable to establish an Ethernet connection to the BL2100 from an Ethernet hub These connections are shown in Figure 23 BL2100 Board BL2100 Board User s PC Ethernet 7 Ethernet cables crossover C J e To additional cable network Hub elements Direct Connection Network of 2 computers Direct Connection Using a Hub Figure 23 Ethernet Connections User s Manual 55 The PC running Dynamic C through the serial programming port on the BL2100 does not need to be the PC with the Ethernet card 3 Apply Power Plug in the AC adapter The BL2100 is now ready to be used NOTE A hardware RESET is accomplished by unplugging the AC adapter then plug ging it back in or by momentarily grounding the board reset input at pin 9 on screw terminal header J2 When working with the BL2100 the green LNK light is on when a program is running and the board is properly connected either to an Ethernet hub or to an active Ethernet card The orange ACT light flashes each time a packet is received 56 Smartcat BL2100 5 2 TCP IP Sample Programs We have provided a number of sample progr
27. iN23 Q e z Raw J Power in22 Battery feno Supply IN21 O l zL OUTOO Digital wo z lt J14 J8 gt u oum Inputs mioj e fa OLE 1 maur UTI or ouro2 IN18 Q v e 9 on 6 Q OUTO3 wm s EE pm 9 QD ovr Digital mel Q te SA 2 Joutos Outputs os I E 9 ouroe OUT14 Q 8 Or 8 Q OUTO7 Digital ours amp e 3j ier GQ outs Outputs our Qv T i EJT fi m amp Q ovTes oui u a ET 2 Qr E K OUT10 z JE Ep EP UT E 052 eco L K2 PaaS a t 2 Figure 8 a BL2100 Pinouts screw terminal headers NOTE Screw terminal header J2 and the associated analog I O are not available on the BL2110 and the BL2130 18 Smartcat BL2100 3 1 1 Headers and Screw Terminals Standard BL2100 models are equipped with two 1 x 12 screw terminal strips J8 and J14 and two 1 x 14 screw terminal strips J5 and J11 The BL2100 and BL2110 also have the RJ 45 Ethernet jack and one 1 x 16 screw terminal strip J2 There is provision on the circuit board to accommodate one of the following types of connectors instead of the screw terminal strips e 2x 17 2x 20 and 2 x 25 IDC headers with a pitch of 0 1 e x17 1 x20 and 1 x 25 friction lock connectors with a pitch of 0 1 The holes used by the friction lock connectors are on the outside edges of the connector locations e 1x17 1 x20 and 1 x 25 bottom mount sockets with a pitch of 0 1 The holes for
28. measures voltages between 0 V and the applied reference voltage Therefore each external input has circuitry that provides scaling and buffering All 11 external inputs are scaled and buffered to provide the user with an input impedance of 1 MQ and a range of 10 24 V to 10 24 V Figure 18 shows the buffered A D converter inputs V Rin E ADCINO ADOIN 1MQ itz ADREF AGND Figure 18 Buffered A D Converter Inputs The op amp is powered from the V supply The 1 MQ and 200 kQ resistors set the gain scale factor which is 0 2 in this case This results in a dynamic input range of 0 2 x 20 48 V or 4 096 V The center point of this range is set by the 1 707 V reference voltage With the reference set to 1 707 V the center point is at O V and the input voltage can range from 10 24 V to 10 24 V To maintain the best accuracy the input range should be limited to 10 0 V to 10 0 V The A D converter inputs are factory calibrated and the calibration constants are stored in flash memory You may calibrate the A D converter inputs at a later time using the software functions described in Section 4 4 4 A D Converter Inputs The GETCALIB C and the SAVECALIB C sample programs in the Dynamic C SAMPLES BL2100 Calib Save Retrieve folder illustrate how to retrieve and save calibration data User s Manual 29 3 6 D A Converter Outputs Only the BL2100 and the BL2120
29. microprocessor This microprocessor is used in all BL2100 series boards that carry the CE mark e EN55022 1998 Class A e FCC Part 15 Class A NOTE The BL2100 satisfied the Class A limits but not the Class B limits Such equip ment need not be restricted in its sale but the following warning must be included in the instructions for its use Warning This is a Class A product In a domestic environment this product may cause radio interference in which case the user may be required to take adequate measures Additional shielding or filtering may be needed to meet Class B emissions standards 6 Smartcat BL2100 1 5 1 Design Guidelines Note the following requirements for incorporating a BL2100 series single board computer into your application to comply with CE requirements General The power supply provided with the Tool Kit is for development purposes only It is the customer s responsibility to provide a CE compliant power supply for the end product application When connecting the BL2100 single board computer to outdoor cables the customer is responsible for providing CE approved surge lighting protection e Rabbit recommends placing digital I O or analog cables that are 3 m or longer in a metal conduit to assist in maintaining CE compliance and to conform to good cable design practices When installing or servicing the BL2100 it is the responsibility of the end user to use proper ESD preca
30. models are stuffed with D A converters The D A con verter outputs are buffered and scaled to provide an output from 0 V to 10 V NOTE The D A converter output voltage depends on the original power supply voltage RAW so if RAW 13 V the maximum D A converter output will be RAW 3 V Figure 19 shows the D A converter outputs 102 kQ DAC et 86 6 kQ um S Y Y AGND Figure 19 D A Converter Outputs To stay within the maximum power dissipation of the D A converter circuit the maximum D A converter output current is 10 mA per channel for a power supply voltage RAW up to 15 V and drops to 2 mA per channel for a power supply voltage of 36 V D A Converter Output 9 15 36 Power Supply Voltage RAW V Figure 20 Maximum D A Converter Output Current vs Power Supply Voltage The D A converter inputs are factory calibrated and the calibration constants are stored in flash memory You may calibrate the A D converter inputs at a later time using the software functions described in Section 4 4 5 D A Converter Outputs The GETCALIB C and the SAVECALIB C sample programs in the Dynamic C SAMPLES BL2100 Calib Save Retrieve folder illustrate how to retrieve and save calibration data 30 Smartcat BL2100 3 7 Analog Reference Voltage Circuit Figure 21 shows the analog voltage reference circuit V 3009 4 096 V 9 e o gt
31. occur for the following conditions 1 channel out of range 2 brdInit Was not executed before executing digIn PARAMETER channel is the input channel number 0 23 RETURN VALUE The state of the input 0 or 1 SEE ALSO brdInit digOut 44 Smartcat BL2100 4 4 3 Serial Communication 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 serial functions where packets can be delim ited 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 transmit ting or receiving and nonblocking functions which must be called repeatedly until they are finished For more information see the Dynamic C User s Manual and Technical Note 213 Rabbit Serial Port Software Use the following function calls with the BL2100 User interface to set up BL2100 serial communication lines Call this function after serXOpen Whether you are opening one or multiple serial ports this function must be executed after executing the last serXOpen function AND before you start using any of the serial ports This function is non reentrant If Mode 1 is selected CTS RTS flow control is exercised using the serC l1owcontrolOn and serCflowcontrolOff functions from the RS232 LIB libr
32. of the BL2100 high current outputs OUTO0 OUT195 has the capability of being configured in software as either sinking or sourcing using the digOutConfig function Execute digOutConfig at the start of your application to initially set OUTOO OUTI5 to be OFF for the type of circuit that you have either sinking or sourcing To properly set the high current outputs you will need to decide for each channel whether the output is sinking or sourcing The digOutConfig function will then ensure that each output remains OFF when the digital output control interface is initialized The individual high current outputs remain activated until you activate the desired output driver s channel s using digOut NOTE The brdInit function must be executed before calling digOutConfig NOTE You must execute the digOutConfig function to set the high current drivers to be either sinking or sourcing A runtime error will occur in digOut if digOutConfig has not executed NOTE The extra digital outputs resulting from the reconfiguration of IN16 IN23 as digital out puts are sinking outputs only and cannot be configured with digOutConfig PARAMETER outputMode is a 16 bit parameter where each bit corresponds to one of the following high current outputs Bit 15 high current output channel OUT15 Bit 14 high current output channel OUT14 Bit 13 high current output channel OUT13 Bit 12 high current output channel OUT12 Bit 11 high current output channel OUTI1
33. that is in excess of the available memory in the first flash User s Manual 35 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 2000 and later see Rabbit s Technical Note TN257 Running Dynamic C With Windows Vista for additional information if you are using a Dynamic C release prior to v 9 60 under Windows Vista Programs can be downloaded at baud rates of up to 460 800 bps after the program compiles Dynamic C has a number of standard features Full feature source and or assembly level debugger no in circuit emulator required 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 C SPI GPS file system gt LCD display and keypad drivers Powerful language extensions for cooperative or preemptive multitasking Loader utility program to load binary images into Rabbit based targets in the absence of Dynamic C e Provision for customers to create their own source code libraries and au
34. the bottom mount sockets are on the outside edges of the connector locations The pinouts for these connectors are shown in Figure 8 b Analog Outputs Analog Ground INO7 INO6 IN08 IN09 IN10 INOS Digital IN11 INO4 Digital Inputs IN12 IN03 Inputs IN13 IN02 IN14 INO1 IN15 INO RS 485 TXB RS 485 cei RXB RS 232 PES INT TXC RTS GND RXC CTS IN23 RAW Power IN22 SND Supply Battery IN21 Digital IN20 OUTOO OUTO1 13 J7 gt Inputs R U3 t U8 u7 AT p T S 02 url OUTO2 o pem IN18 OUTO3 9 E eI E IN17 o z OUTO4 Digital IN16 f our Outputs OUT45 OUTO6 OUT44 OUTO7 20 Digital oun ae mm GUITB Outputs our 2 T p JET n La OUTO9 0 OUT11 as a OUT10 CT ELHER ULT K2 K apa C RETE Figure 8 b BL2100 Pinouts other 0 1 connectors NOTE Header J1 and the associated analog I O are not available on the BL2110 and the BL2130 User s Manual 19 3 2 Digital I O 3 2 1 Digital Inputs The BL2100 has 24 digital inputs INOO IN23 each of which is protected over a range of 36 V to 36 V The inputs are factory configured to be pulled up to 5 V but they can also be pulled up to K2 or down to 0 V in banks of eight by changing a surface mounted 0 Q resistor as shown in Figure 9 K2 A Factory it
35. the BL2100 with the LCD keypad module plugged in e Plastic enclosure base LCD keypad module One enclosure base is included with the Tool Kit Further details on these add ons are provided in Appendix C and in Appendix D Visit our Web site for up to date information about additional add ons and features as they become available The Web site also has the latest revision of this user s manual User s Manual 1 4 Development and Evaluation Tools 1 4 1 Tool Kit A Tool Kit contains the hardware essentials you will need to use your own BL2100 single board computer The items in the Tool Kit and their use are as follows BL2100 Getting Started instructions Dynamic C CD ROM with complete product documentation on disk Programming cable used to connect your PC serial port to the BL2100 Universal AC adapter 12 V DC 1 A includes Canada Japan U S Australia N Z U K and European style plugs Demonstration Board with pushbutton switches and LEDs The Demonstration Board can be hooked up to the BL2100 to demonstrate the I O Wire assembly to connect Demonstration Board to BL2100 Plastic enclosure base with mounting screws Screwdriver Rabbit 2000 Processor Easy Reference poster Registration card Programming c 6 amp ows Cable Universal AC Adapter with Plugs Screwdriver QE Demo Board Wiring Harness Demo Board Plastic Enclosure Base Getting Started Instructio
36. the LCD keypad module LED1 and LED2 on the Demonstration Board will match those 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 sample program SMTP C SAMPLES BL2100 TCPIP allows you to send an E mail when a switch on the Demonstration Board is pressed Follow the instructions included with the sample program The sample program TELNET C SAMPLES BL2100 TCPIP allows you to communi cate with the BL2100 using the Telnet protocol This program takes anything that comes in on a port and sends it out Serial Port B It uses digital input INOO to indicate that the TCP IP connection should be closed and it uses high current output OUTOO to indicate that there is an open connection You may change the digital input and output to suit your application needs Run the Telnet program on your PC Start gt Run telnet 10 10 6 100 As long as you have not modified the TCPCONFIG 1 macro in the sample program the IP address is 10 10 6 100 as shown otherwise use the TCP IP settings you entered in the TCP CONFIG LIB library Each character you type will be printed in Dynamic C s STDIO window indicating that the board is receiving the characters typed via TCP IP 5 3 Where Do I Go From Here
37. the TCP_CONFIG LIB library in the LIB TCPIP directory There are some other standard configurations for TCPCONFIG that let you select differ ent 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 IP Addresses Before Dynamic C 7 30 Most of the sample programs use macros to define the IP address assigned to the board and the IP address of the gateway if there is a gateway Instead of the TCPCONFIG macro you will see a MY IP ADDRESS macro and other macros tdefine MY IP ADDRESS 10 10 6 170 tdefine MY NETMASK 255 255 255 0 define MY GATEWAY 10 10 6 1 define MY NAMESERVER 10 10 6 1 In order to do a direct connection the following IP addresses can be used for the BL2100 define MY IP ADDRESS 10 1 1 2 tdefine MY NETMASK 255 255 255 0 define MY GATEWAY 10 10 6 1 define MY NAMESERVER 10 10 6 1 In this case the gateway and nameserver are not used and are commented out The IP address of the board is defined to be 10 1 1 2 The IP address of you PC can be defined as 10 1 1 1 User s Manual 57 5 2 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 speci
38. the slave BL2100 SLAVE C This program demonstrates a simple RS 485 transmission of lower case letters to a slave BL2100 The slave will send back converted upper case letters back to the master BL2100 and display them in the STDIO window Use MASTER C to program the master BL2100 4 2 3 A D Converter Inputs The following sample programs are found in the ADC subdirectory in SAMPLES BL2100 e AD CALIB C Demonstrates how to recalibrate an A D converter channel using two knownvoltages to generate two coefficients gain and offset which are rewritten into the user block data area The voltage that is being monitored is displayed continuously Make sure that you don t exceed the voltage range of the A D converter input channel NOTE This sample program will overwrite the calibration constants set at the factory e AD1 c Demonstrates how to access the A D internal test voltages in both the TLC2543 and TLC1543 A D converter chips The program reads the A D internal volt ages and then uses the STDIO window to display the RAW data AD2 C Demonstrates how to access the A D channels using the anaInVolt func tion The program uses the STDIO window to display the voltage that is being moni tored AD3 C Demonstrates how to access the A D converter channels with the low level A D driver The program uses the STDIO window to display the voltage that is being monitored on all the A D channels using the low level A D driver AD4 c
39. the various dialog boxes BL2100 IP 10 10 6 101 Board Netmask 255 255 255 0 User s PC Ethernet crossover cable Direct Connection PC to BL2100 Board 58 Smartcat BL2100 5 2 3 Run the PINGME C Demo Connect the crossover cable from your computer s Ethernet port to the BL2100 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 run ning the green LNK light on the BL2100 should be on to indicate an Ethernet connection is made Note If the LNK light does not light you may not have 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 ping program ping 10 10 6 100 or by Start Run and typing the command ping 10 10 6 100 Notice that the orange ACT light flashes on the BL2100 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 User s Manual 59 5 2 4 Running More Demo Programs With a Direct Connection The program SSI C SAMPLES BL2100 TCPIP demonstrates how to make the BL2100 a Web server This program allows you to turn the LEDs on an attached Demon stration Board from the Tool Kit on and off from a remote Web browser LEDO and LED1 on
40. vere VCC Default e Rabbit 2000 Microprocessor Figure 9 BL2100 Digital Inputs Pulled Up Factory Default NOTE If the inputs are pulled up to K2 the voltage range over which the digital inputs are protected changes to K2 36 V to 36 V The actual switching threshold is approximately 2 40 V Anything below this value is a logic 0 and anything above is a logic 1 The digital inputs are each fully protected over a range of 36 V to 36 V and can handle short Noms Switching spikes of 40 V Spikes 40 V 436 V Spikes I o E 9 33v 3 Q t 8 gt a 40 V Spikes Figure 10 BL2100 Digital Input Protected Range 20 Smartcat BL2100 3 2 2 Digital Outputs The BL2100 has 16 digital outputs OUTO0 OUTIS which can each sink or source up to 200 mA Figure 11 shows a wiring diagram for using the digital outputs in a sinking or a souring configuration All the digital outputs sink and source actively They can be used as high side drivers low side drivers or as an H bridge driver When the BL2100 is first powered up or reset all the outputs are disabled that is at a high impedance status until the digoutConfig software function call is made The digoutConfig call sets the initial state of each digi tal output according to the configuration specified by the user and enables the digital out puts to their initial status SINKING OUTPUT K1 or K2
41. 0 cm extension cables Contact your authorized distributor or sales representative for more information User s Manual 89 C 7 Sample Programs The following sample programs are found in the SAMPLES LCD_Keypad 122x32_1x7 folder e ALPHANUM C Demonstrates how to create messages using the keypad and then dis playing them on the LCD display e COFTERMA C Demonstrates cofunctions the cofunction serial library and using a serial ANSI terminal such as Hyperterminal from an available COM port connection DISPPONG C Demonstrates output to LCD display DKADEMO1 C Demonstrates some of the LCD keypad module font and bitmap manipulation features with horizontal and vertical scrolling and using the GRAPHIC LIB library e FUN C Demonstrates drawing primitive features lines circles polygons using the GRAPHIC LIB library KEYBASIC C Demonstrates the following keypad functions in the STDIO display window default ASCII keypad return values custom ASCII keypad return values keypad repeat functionality KEYMENU C Demonstrates how to implement a menu system using a highlight bar on a graphic LCD display The menu options for this sample are as follows 1 Set Date Time 2 Display Date Time 3 Turn Backlight OFF 4 Turn Backlight ON 5 Toggle LEDs 6 Increment LEDs 7 Disable LEDs e LED C PDemonstrates how to toggle the LEDs on the LCD keypad module e SCROLLING c Demonstrates scrolling featur
42. 2 shows the battery backup circuit located on the BL2100 module Internal Battery BT1 R39 D3 VBAT 2 kQ RT1 l thermistor 22 KQ R41 R38 10 KQ R37 22 kQ Figure B 2 BL2100 Backup Battery Circuit The battery backup circuit serves three purposes t reduces the battery voltage to the SRAM and to the real time clock thereby limiting the current consumed by the real time clock and lengthening the battery life e It ensures that current can flow only out of the battery to prevent charging the battery A voltage VOSC is supplied to U6 which keeps the 32 768 kHz oscillator working when the voltage begins to drop VRAM and Vcc are nearly equal 100 mV typically 10 mV when power is supplied to the BL2100 User s Manual 75 B 2 3 Power to VRAM Switch The VRAM switch on the BL2100 module shown in Figure B 3 allows the battery backup to provide power when the external power goes off The switch provides an isola tion between Vcc and the battery when Vcc goes low This prevents the Vcc line from draining the battery VCC VRAM R33 A 00 o Q5 FDV302P R30 10 ko RESET Q2 A MMBT3904 Figure B 3 VRAM Switch Field effect transistor Q5 is needed to provide a very small voltage drop between Vcc and VRAM 100 mV typically 10 mV so that the board components powered by Vcc will not have a significantly different voltage
43. 264 MHz 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 3 9 3 Spectrum Spreader BL2100 boards that carry the CE mark on their RabbitCore module have a Rabbit 2000 microprocessor that features a spectrum spreader which helps to mitigate EMI problems By default the spectrum spreader is on automatically for BL2100 boards that carry the CE mark when used with Dynamic C 7 30 or later versions but the spectrum spreader 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 the 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 unnecessary for the BL2000 3 Click OK to save the macro The spectrum spreader will now be set to the state specified by the macro value whenever you are in the project file where you defined the macro There is no spectrum spreader functionality for BL2100 boards that do not carry the CE mark on their RabbitCore module or when using any BL2100 with a version of Dynamic C prior to 7 30 34 Smartcat BL2100 4 SOFTWA
44. 3 SOE Lise retten 15 function calls anaOutVolts 52 telephone based technical sup analn MM LEE EE 48 Demonstration Board 4 POTT mex 5 37 anaInCalib eee 46 hookup instructions 119 upgrades and patches 37 anaInDriver 47 digital input sample pro analnBERd 48 DOREM po E anaInEEWT 49 digital output sample pro EMI EE 4 i anaInVolts 8 grams oo eee 121 spectrum spreader feature 34 oe See TCP IP sample programs Ethernet cables 55 GEHE Coenen cast 120 122 Ethernet connections 55 analog I O jumper configurations 120 SEEPS Mm 55 in uro DE s 121 124 Ethernet port ai ecscetosa 26 analog inputs See A D converter wire assembly bisa tussehaneeseneenee 4 handling EMI and noise 26 analog outputs See D A convert digital I O aout g a 26 a address assignments won 71 exclusion zone 64 A CSHUSDOS vale cucnt configure IN16 IN23 as digi external interrupts 33 31 tal inputs or outputs 71 control register bit map 71 F B l function calls 1 battery connect ons iei 74 digIn RP MEC 44 feat fes oeste does board initialization digOut er 44 flash Memory i function calls s 42 digOutConfig 2149 elei wale Cycles ease brdInit sss 42 SMODBO e 27 H board serial number 40 SMODEL 27 digital inputs
45. 82 L LCD keypad module 3 bezel mount installation 87 contrast adjustment 81 dimensions 79 header pinout 83 T O address assignments 83 keypad function calls keyConfig 109 keyGet 110 keyInit 109 keypadDef 111 keyProcess 110 keyScan 111 keyUnget 110 keypad template 82 LCD display function calls glBackLight 93 glBlankScreen 94 glBlock 94 glBuffLock 100 glBuffUnlock 100 glDispOnOff 93 glDownl 103 glFillCircle 97 glFillPolygon 96 glFillScreen 94 glFillVPolygon 96 glFontCharAddr 98 glGetBrushType 101 glGetPfStep 99 glHScroll 104 glInit i s 93 glLeftl mm 102 glPlotCircle 96 glPlotDot 101 glPlotLine 102 glPlotPolygon 95 glPlotVPolygon 95 glPrintf 100 glPutChar 99 glPutFont 98 glRightl 102 glSetBrushType 101 glSetContrast 94 glSetPfStep 98 glSwap 101 DJUPT i
46. ALUE 0 if sucessful 1 if not able to make calibration constants SEE ALSO anaOut anaOutVolts brdInit 50 Smaricat BL2100 Sets the voltage of a D A converter output channel by serially clocking in 16 bits to a D A converter using the following format D15 D12 Register R1 Register RO 00 Write data to DAC OUTB 01 Write data to buffer 10 Write data to DAC OUTA 11 Reserved D14 Speed control 0 slow 1 fast default D13 Power control 0 normal default 1 powerdown D11 DO Data bits MSB LSB 0 4095 PARAMETERS power control is the D A converter power control option 0 normal default or 1 powerdown When the power down mode is selected the only other parameter that is used is the D A converter chan nel channel The values of the other parameters are not considered Two D A converter channels are affected when putting a D A converter output in powerdown or normal mode Powerdown Mode When power control equals 1 and channel is 0 or 1 then both D A converter channels 0 and 1 are put in powerdown mode channels 2 and 3 not affected When power control equals and channel is 2 or 3 then both D A converter channels 2 and 3 are put in powerdown mode channels 0 and 1 not affected Normal Mode When power control equals 1 and channel is 0 or 1 then both D A converter channels 0 and 1 are put in normal mode channels 2 and 3 not affected When power control equals 1 and chann
47. D keypad module 115 reconnect RabbitCore mod pics 115 remove RabbitCore module 114 power management 73 power supply 73 backup battery circuit 75 battery backup 74 chip select circuit TI connections sss 13 switching voltage regulator 73 VRAM switch 76 programming flash vs RAM 35 programming cable 4 programming port 27 programming cable 4 connections ss 12 PROG connector 28 switching between Program Mode and Run Mode 28 use when LCD keypad module installed 85 86 programming port 27 R Rabbit 2000 parallel ports 69 real time clock how to set 40 IeSeL 2n men ooo Ee 13 124 Smartcat BL2100 hardware see 13 PINGME 59 electrical 80 reset generator 76 SMTP C Rn 60 header footprint 80 R 232 x eA 23 SSEG stu 60 mechanical 80 RS 485 insssesosneosene 23 TELNET C irinin 60 relative pin 1 locations 80 RS 485 network 24 serial communication 23 temperature 80 termination and bias resistors flow control 45 plastic enclosure 25
48. ER Erara 27 SP al Programmin s edm 28 3 4 1 Changing Between Program Mode and Run Mode seen 28 3 2 AJD Converter Inputs oni eere ssecssvecestcenscoesseennsvaccsvereduncesbcvasnded ee gehe ese inverter ko aere NES OS ERR ER NER HEURE Cn 29 3 6 D A Converter Outputs 1 ie eer etae tree kept ue En ena nE Ease ean eee E ed arse e EE e eee ra ele Ede ae Slo ere are ER o eee ge qa 30 3 7 Analog Reference Voltage Circuit esses esent nne snnt en iresi taraino 31 39 Memory eM tio nacd aE E EEE EEE RE EE E EE EEE S 32 ISl SRAM cso E E EROE EEE EEE EEEE NEE EEE EEE 32 382 Flas Memory aeon ne eeen EE anesse EEEE EEEE AEE vouse cease ESEE ARETES EEEE RES ROEE OEEC EEEE 32 3 9 Other Hardware etie cetero ane eE ERA cuss E RAS E EE EE TER Uus ca pu SEA AS 33 39 V External Inte tEBDIs siete ee e eE En E pe aeee 33 Redde 34 3 0 3 Spectrum Spreader eer eere reet erre tenerte etr nube eye EEEE EE EE eR EENES ed SE ES E oe rede 34 User s Manual Chapter 4 Software 35 4 1 Running Dynamic C 52 nette Here TR RE e EE b eR e E bee ea 35 4 1 1 Upgrading Dynamic ea eu RE RE ate ie cR Ae es these es 37 4 1 2 BXtraS roter ete tiet ep ne ARCU aes 37 4 2 Saniple Programs oie ebenso aee rte pe eri ne REC ei ee deter Ia 38 42 1 Digital UO eee Uere Ue ee tree et e rere eR eU Ee ec 38 4 22 Serial Communication e Hep better en e ERIS MESSI EE E E uses 38 4 2 3 A D Converter Inputs tice itecto Te Rui
49. ES i i mS 2 ELIT ata ME T EE HH S E JHO LI Ir LE Ok Z 28522888 Header 15 put tte pee H2 8 S S S RAW K Jumpers ha GND GND INOO swt Tu None P DEMO BOARD N01 sw2 As shown 5 6 INO2 sw3 e e e s sna Os sw ow sw 25 GE Figure E 1 General Digital Input Connections Between BL2100 and Demonstration Board 120 Smartcat BL2100 n SSO0SOSOSOSS SCSVSVKEGCOLVGS S S e oF g BL2100 ol 21 i Q GI OR C li DIE Qik J8 SLOG SOOVDSASSQeSegs J5 darc ue Jc cud e O Bseses osssE O amp E gm BL2100 Demonstration Board 8 28 29 8B gag Header J5 J8 Header J1 m H2 8 2 S S 20 OUTO0 K dumpers Wc E e H1 None 84 DEMO BOARD OUTO2 LED2 H2 As shown 5e 9 6 6 OUTO3 LED3 e e e e ABBE OUTO4 LED4 Osm sw sm sw TERE O Figure E 2 Digital Output Connections Between BL2100 and Demonstration Board NOTE K1 and K2 on screw terminal header J8 must be connected to RAW on screw terminal header J5 as s
50. L2100 4 3 BL2100 Libraries Two library directories provide libraries of function calls that are used to develop applica tions for the BL2100 BL2100 libraries associated with features specific to the BL2100 The functions in the BL21xx LIB library are described in Section 4 4 BL2100 Function APIs e TCPIP libraries specific to using TCP IP functions on the BL2100 Two other library directories provide libraries of function calls that are used to develop applications for the optional BL2100 LCD keypad module DISPLAYS GRAPHIC libraries associated with LCD display KEYPADS libraries associated with the keypad The LCD keypad module functions are described in Section C 8 Other generic functions applicable to all devices based on the Rabbit 2000 microprocessor are described in the Dynamic C Function Reference Manual User s Manual 41 4 4 BL2100 Function APIs 4 4 1 Board Initialization Call this function at the beginning of your program This function initializes the system I O ports and loads all the A D converter and D A converter calibration constants from flash memory into SRAM for use by your program If the LCD keypad module is installed this function will turn off LED DS1 to indi cate that the initialization was successful The ports are initialized according to Table A 3 SEE ALSO digOut digIn serMode anaOut anaIn anaInDriver anaOutDriver 42 Smaricat BL2100 4 4 2 Digital I O Each
51. RE Dynamic C is an integrated development system for writing embedded software It runs on an IBM compatible PC and is designed for use with single board computers and other devices based on the Rabbit microprocessor Chapter 4 provides the libraries function calls and sample pro grams related to the BL2100 4 1 Running Dynamic C You have a choice of doing your software development in the flash memory or in the static RAM included on the BL2100 The flash memory and SRAM options are selected with the Options Compiler menu The advantage of working in RAM is to save wear on the flash memory which is limited to about 100 000 write cycles The disadvantage is that the code and data might not both fitin RAM NOTE An application can be developed in RAM but cannot run standalone from RAM after the programming cable is disconnected Standalone applications can only run from flash memory NOTE Do not depend on the flash memory sector size or type Due to the volatility of the flash memory market the BL2100 and Dynamic C were designed to accommodate flash devices with various sector sizes BL2100s that are special ordered with 512K flash 512K SRAM memory options have two 256K flash memories By default Dynamic C will use only the first flash memory for program code in these BL2100s Uncomment the USE 2NDFLASH CODE macro within the RABBITBIOS C file in the Dynamic C BIOS folder to allow the second flash memory to hold any program code
52. ack plastic shrik wrap PROG To BL2100 programming port Figure C 8 Peel Back Plastic Shrink Wrap 2 Disconnect the programming cable at RS 2332 CMOS level converter board To PC COM port DIAG j d Disconnect programming cable at RS 232 CMOS level converter board PROG To BL2100 programming port Figure C 9 Disconnect Programming Cable User s Manual 85 3 Line up the colored edges of the programming cable when reconnecting the program ming cable Reconnect the programming cable as shown in Figure C 10 being careful to align the pins with the jack To PC COM port Line up colored edges when reconnecting To programming cable BL2100 programming port Figure C 10 Reconnect Programming Cable Once you have finished programming the LCD keypad module you should disconnect the programming cable from the BL2100 programming port remembering to first remove or at least lift up the LCD keypad module disconnect the programming cable and finally mount the LCD keypad module back firmly on the BL2100 main board 86 Smartcat BL2100 C 6 Bezel Mount Installation This section describes and illustrates how to bezel mount the LCD keypad module designed for remote installation Follow these steps for b
53. ad 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 header sockets at J1 J2 and J3 10 100 for physical connection to other boards or ribbon cables Figure C 2 shows the LCD keypad module foot print These values are relative to one of the mounting holes NOTE All measurements are in X inches followed by millimeters enclosed in parentheses All dimen sions have a manufacturing toler ance of 0 01 0 25 mm 2 5 J1 15 4 19 5 0768 0 607 D 1 600 40 6 0 200 _ 0 500 5 1 12 7 I 1 450 36 8 2 200 55 9 Figure C 2 User Board Footprint for LCD Keypad Module 80 Smaricat BL2100 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 system they would be used in Be sure to select a KDUSV LCD keypad module for use with the BL2100 these modules operate at 5 V You may adjust the contrast using the potentiometer at R2 as shown in Figure C 3 LCD keypad modules configured for 3 3 V should not be used with the BL2100 because the higher voltage will reduce the backlight service life dramatically LCD Keypad Module Jumper Configurations Pins Factory D Contrast Adjustment
54. ain board to the plastic enclosure base Position the BL2100 main board over the plastic enclosure base as shown below in Figure D 2 Attach the BL2100 to the base using the four 4 40 x 1 4 screws supplied with the enclosure base Figure D 2 Attach BL2100 to Plastic Enclosure Base 114 Smartcat BL2100 3 Reconnect the RabbitCore module to headers J16 and J17 on the BL2100 main board as shown in Figure D 3 Be careful to align the pins over the headers and do not bend them as you press down to mate the module with the BL2100 main board NOTE If you are working with more than one BL2100 at a time take care to keep the BL2100 main boards and their corresponding RabbitCore modules paired since the RabbitCore modules store calibration constants specific to the BL2100 main board to which they are plugged in P E Brot ur 6 SGOSGSQSOSesSsesSsueeosesosmoses XRIINCIAUINCUR INSIGNE SUO Q H O o 2 o o Q Wo 8 BG Figure D 3 Reconnect Module to BL2100 Main Board 4 Install the LCD keypad module optional as shown in Figure D 4 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 th
55. ams demonstrating various uses of TCP IP for networking embedded systems These programs require that you connect your PC and the BL2100 together on the same network This network can be a local private network pre ferred for initial experimentation and debugging or a connection via the Internet 5 2 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 1 You can replace the TCPCONFIG macro with individual MY IP ADDRESS MY NETMASK MY GATEWAY and MY NAMESERVER macros in each program 2 You can leave TCPCONF IG 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 forthe BL2100 board and 10 1 1 1 for your PC you can edit the values in the section that directly follows the General Configuration comment in the TCP CONFIG LIB library You will find this library in the LIB TCPIP directory 3 You can create a CUSTOM CONFIG LIB library and use a TCPCONFIG value greater than 100 Instructions for doing this are at the beginning of
56. arallel Ports continued Port 1 0 Signal Output Function State i i 1 standard JP2 1 2 PB4 Input I O Configuration Option stan ide header JP2 0 custom JP2 2 3 PBS Taput Analog Circuit Option 1 BL2100 BL2120 JP3 1 2 header JP3 0 BL2110 BL2130 JP3 2 3 PB6 Output Not Used Off PB7 Output DAC ADC SDI Inactive high PCO Output TXD RS 485 Inactive high Serial Port D PCI Input RXD RS 485 Inactive high PC2 Output RTS TXC RS 232 Inactive high Serial Port C PC3 Input CTS RXC RS 232 Inactive high PC4 Output TPOUT Realtek reset Initialized by sock_init PCS Input TPOUT Realtek INTO Pulled up PC6 Output TXA Programming Port Inactive high Serial Port A PC7 Input RXA Programming Port Inactive high PDO Input Realtek CLK Initialized by sock_init PDI Input Realtek SDO Initialized by sock init PD2 Output Not used Inactive high PD3 Output DAC CLK Line Inactive high PD4 Output ATXB RS 232 Inactive high Serial Port B PD5 Input ARXB RS 232 Inactive high PD6 Output Not used Inactive high PD7 Output Not used Inactive high PEO Output Digital I O strobe Inactive high PEI Output External I O enable Inactive high PE2 N A Realtek IORB strobe Initialized by sock init PE3 N A Realtek SDI line Initialized by sock init PE4 Input INTOB Tied to PES by 1 KQ resistor PES Input INTIB User interrupt input PE6 N A Realtek IOWB strobe Init
57. ary PARAMETER mode is the defined serial port configuration Serial Port Mode B C D 0 RS 232 3 wire RS 232 3 wire RS 485 1 RS 232 5 wire CTS RTS RS 485 RETURN VALUE 0 if valid mode 1 if not SEE ALSO ser485Tx ser485Rx Sets pin 3 DE high to enable the RS 485 transmitter SEE ALSO serMode ser485Rx Resets pin 3 DE low to disable the RS 485 transmitter SEE ALSO serMode ser485Tx serCflowcontrolOn serCflowcontrolOff User s Manual 45 4 4 4 A D Converter Inputs The functions in this section apply only to the BL2100 and the BL2120 models Calibrates the response of the A D converter channel as a linear function using the two conversion points provided Gain and offset constants are calculated and placed into global table adcCalib PARAMETERS channel is the A D converter input channel 0 10 valuel is the first A D converter channel value 0 4095 volts1 is the voltage corresponding to the first A D converter channel value 10 V to 10 V value2 is the second A D converter channel value 0 4095 volts2 is the voltage corresponding to the second A D converter channel value 10 V to 10 V RETURN VALUE 0 if successful 1 if not able to make calibration constants SEE ALSO anaIn anaInVolts brdInit 46 Smaricat BL2100 Reads the voltage of an analog input channel by serially clocking out an 8 bit command to the A D con verter The driver has bee
58. ation constants gain and offset from the simulated EEPROM in flash memory located in reserved user block memory area 0x1C00 0x1FFF PARAMETER channel is the D A converter output channel 0 3 RETURN VALUE 0 if successful if address or range is invalid SEE ALSO anaOutEEWr brdInit Writes the calibration constants gain and offset to the simulated EEPROM in flash memory located in reserved user block memory area 0x 1C00 0x1FFF PARAMETER channel is the D A converter output channel 0 3 RETURN VALUE 0 if successful if address or range is invalid SEE ALSO anaOutEERd brdInit User s Manual 53 54 Smartcat BL2100 RE 5 USING THE TCP IP FEATURES Chapter 5 discusses using the TCP IP features on the BL2100 and BL2110 boards The TCP IP feature is not available on BL2120 and BL2130 versions 5 1 TCP IP Connections Before proceeding you will need to have the following items f 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 Two RJ 45 straight through Ethernet cables and a hub or an RJ 45 crossover Ethernet cable The Ethernet cables and Ethernet hub are available from Rabbit in a TCP IP tool kit More information is available at www rabbit com 1 Connect the AC adapter and the programming cable as shown in Chapter 2 Getting Started 2 Ethernet Connections If you do not
59. be used as an output Refer to the Rabbit 2000 Microprocessor User s Manual for more information User s Manual 27 3 4 Programming Cable The programming cable is used to connect the programming port of the RabbitCore module to a PC serial COM port The programming cable converts the RS 232 voltage levels used by the PC serial port to the TTL voltage levels used by the Rabbit 2000 When the PROG connector on the programming cable is connected to the RabbitCore module s programming header programs can be downloaded and debugged over the serial interface The DIAG connector of the programming cable may be used on the programming header of the RabbitCore module with the module operating in the Run Mode This allows the pro gramming port to be used as a regular serial port 3 4 1 Changing Between Program Mode and Run Mode The BL2100 is automatically in Program Mode when the PROG connector on the pro gramming cable is attached to the RabbitCore module and is automatically in Run Mode when no programming cable is attached When the Rabbit 2000 is reset the operating mode is determined by the status of the SMODE pins When the programming cable s PROG connector is attached the SMODE pins are pulled high placing the Rabbit 2000 in the Program Mode When the programming cable s PROG connector is not attached the SMODE pins are pulled low causing the Rabbit 2000 to operate in the Run Mode
60. coordinate of one endpoint of the line yO 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 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 glLeftl1 102 Smartcat BL2100 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
61. d 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 us 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 109 cSpdHi 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 th
62. d 0 V is output as 10 V The RS 232 transceiver also provides the proper line loading for reliable commu nication RS 232 can be used effectively at the BL2100 s maximum baud rate for distances of up to 15 m 3 3 2 RS 485 The BL2100 has one RS 485 serial channel which is connected to the Rabbit 2000 Serial Port D through an RS 485 transceiver The half duplex communication uses the Rabbit 2000 s PB6 pin to control the transmit enable on the communication line User s Manual 23 The BL2100 can be used in an RS 485 multidrop network Connect the 485 to 485 and 485 to 485 using single twisted pair wires nonstranded tinned as shown in Figure 13 Note that a common ground is recommended Ground recommended SGSSSoGOSOSOGS eoesesosoSsseS G6sos0cosesoso ecesesesosss LIS OGSCOGOVDOSVY oeese oeseses Figure 13 BL2100 Multidrop Network 24 Smartcat BL2100 The BL2100 comes with a 220 termination resistor and two 681 bias resistors installed and enabled with jumpers across pins 1 2 and 5 6 on header JP1 as shown in Figure 14 peeseseoossse HEIL
63. d TCP SEND C are executed on two separate sin gle board computers to demonstrate how the two boards communicate with each other Use PCSEND EXE on the PC console side at the command prompt if you do not have a second board PCSEND EXE is located with source code in the SAMPLES LCD Keypad Windows directory TCP RESPOND C waits for a message from another single board computer The mes sage received is displayed on the LCD and you may respond by pressing a key on the keypad The response is then sent to the remote single board computer TCPSEND C This program and TCP_RESPOND C are executed on two separate single board computers to demonstrate how the two boards communicate with each other Use PCRESPOND EXE on the PC console side at the command prompt if you do not have a second board PCRESPOND EXE is located with source code in the SAMPLES LCD Keypad Windows directory When a key on the keypad is pressed a message associated with that key is sent to a specified destination address and port The destination then responds to that message The response is displayed on the LCD Note that only the LEFT and UP scroll keys are set up to cause a message to be sent When using TCPSEND C and TCP RESPOND C connect the BL2100 and the other single board computer to an Ethernet If you connect the them directly be sure to use a crossover Ethernet cable strait through Ethernet cables and a hub may be used instead User s Manual
64. e 94 Smartcat BL2100 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 pFirstCoord is a pointer to array of vertex coordinates x1 y1 x2 y2 x3 y3 RETURN VALUE None SEE ALSO glPlotPolygon glFillPolygon glFillVPolygon 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 glFillVPolygon User s Manual 95 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
65. e BL2100 main board o 96060600 o CLCDOP YOSGSOG SOSOCSKEQDOGGsg O UH OK eet Ti SSKDOVPOSVegge Figure D 4 Install LCD Keypad Module on BL2100 Main Board User s Manual 115 5 Mount plastic enclosure optional Use four 10 screws to attach the plastic enclosure at the four outer corner mounting holes to the surface on which it will be mounted This step applies to production versions of BL2100 units once development has been completed 6 Attach the enclosure cover to the base Position the cover over the plastic enclosure base as shown below in Figure D 5 Attach the cover to the base using the four 4 40 x 7 8 screws supplied Figure D 5 Attach Enclosure Top D 2 Dimensions Figure D 6 shows the dimensions for the plastic enclosure 116 Smartcat BL2100 4 875 124 lt 3 603 92 9 2 113 1 375 54 35 4 853 123 Y Figure D 6 Plastic Enclosure Dimensions When fully assembled with the BL2100 and the LCD keypad module installed the total height of the plastic enclosure will be 1 5 38 mm NOTE All measurements are in inches followed by millimeters enclosed in parentheses All dimensions have a manufacturing tolerance of 0 01 0 25 mm User s
66. e LCD screen locking counter The contents of the LCD buffer are transferred to the LCD if the counter goes to zero RETURN VALUE None SEE ALSO glBuffLock glSwap 100 Smaricat BL2100 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 glGetBrushType Gets the current method or color of pixels drawn by subsequent graphic calls RETURN VALUE The current brush type SEE ALSO glSetBrushType 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 xis the x coordinate of the dot y is the y coordinate of the dot RETURN VALUE None SEE ALSO glPlotline glPlotPolygon glPlotCircle User s Manual 101 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
67. e input queue which is 16 bytes deep PARAMETER cKey RETURN VALUE None SEE ALSO keyGet 110 Smaricat BL2100 Configures the physical layout of the keypad with the default ASCII return key codes Keypad physical mapping 1 x 7 0 4 1 5 2 6 3 L U D R E where D represents Down Scroll U represents Up Scroll R represents Right Scroll L represents Left Scroll represents Page Down t represents Page Up E represents the ENTER key Example Do the followingfor the above physical vs ASCII return key codes keyConfig 3 R 0 0 0 0 0 keyConfig 6 E 0 0 0 0 O keyConfig 2 D 0 0 0 0 O keyConfig 4 0 0 0 0 0 keyConfig 1 U 0O 0 0 0 O keyConfig 5 0 0 0 0 O keyConfig 0 L 0O 0 0 0 O Characters are returned upon keypress with 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 111 112 Smartcat BL2100 APPENDIX D PLASTIC ENCLOSURE The plastic enclosure provides a secure way to protect your BL2100 The enclosure itself may be mounted on any flat surface The complete plastic enclosure consis
68. ed at no extra charge a one year telephone based technical support subscription is also available for purchase Visit our Web site at www rabbit com for further information and complete documentation User s Manual 37 4 2 Sample Programs Sample programs are provided in the Dynamic C Samples folder The sample program PONG C demonstrates the output to the STDIO window The various directories in the Samples folder contain specific sample programs that illus trate the use of the corresponding Dynamic C libraries The BL2100 folder provides sample programs specific to the BL2100 Each sample pro gram has comments that describe the purpose and function of the program 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 compile it using the Compile menu and then run it by selecting Run in the Run menu The BL2100 must be connected to a PC using the programming cable as described in Section 2 1 BL2100 Connections More complete information on Dynamic C is provided in the Dynamic C User s Manual TCP IP specific functions are described in the Dynamic C TCP IP User s Manual Infor mation on using the TCP IP features and sample programs is provided in Section 5 Using the TCP IP Features 4 2 1 Digital I O The following sample programs are found in the IO subdirectory in SAMPLES BL2100 e DIGIN C Demonstrates the use of the dig
69. el is 2 or 3 then both D A converter channels 2 and 3 are put in normal mode channels 0 and 1 not affected User s Manual 51 speed control is the D A converter power control option 0 slow or 1 fast default Mode Speed vs Power Dissipation 0 slow 12 us access vs 1 mA fast default 3 us access vs 2 3 mA Test conditions from TI s data sheet TLV5618A D A converter for the speed control option No load All inputs are at GND or VDD D A converter latch 2 0x800 channel is the D A converter output channel to write 0 3 rawcount is the data value corresponding to the desired voltage on the analog output channel 0 4095 RETURN VALUE None SEE ALSO anaOut anaOutVolts anaOutCalib Sets the voltage of a D A converter output channel PARAMETERS channel is the D A converter output channel 0 3 rawcount is a data value corresponding to the voltage desired on the output channel 0 4095 RETURN VALUE 0 if sucessful 1 if rawcount is more than 4095 SEE ALSO anaOutDriver anaOutVolts anaOutCalib Sets the voltage of a D A converter output channel by using the previously set calibration constants to calculate the correct data values PARAMETERS channel is the D A converter output channel 0 3 voltage is the voltage desired on the output channel RETURN VALUE None SEE ALSO anaOut anaOutCalib brdInit 52 Smartcat BL2100 Reads the calibr
70. er ti eei ec e ete RE er ee nid e eet 83 C 4 1 I O Address Assignments esses eren en R E eene treten erret ener enne 83 C 5 Mounting LCD Keypad Module on the BL2100 essere enne 84 C 5 1 Programming Cable Tips errei eegene e eene nennen trennen nre nen eerie eene 85 C 6 Bezel Mount Installation teen terr EGRE PH Dr EHRRR Hai 87 C 6 1 Connect the LCD Keypad Module to Your BL2100 esee 89 Smartcat BL2100 C 7 Sample Programs een eU t e ute ge mec 90 C 8 LCD Keypad Module Function Calls 0 0 cece ceceseeesceeceeecseeseecseesaecaecsaeesecsseeseseeseaeesesenessaesseeaees 92 Crs ME DSi iii si thet Veena eis ts Woat Athsgta aa Sil en eed tein uide eoe eg 92 C 8 2 ECD Displays sesiss sos sods pereo DT PU DU UP ea p ea Eig 93 C1823 Keypad eric ret te e EE e HO HERR HEATER E HEINE 109 Appendix D Plastic Enclosure 113 IP erudite 114 D 2 Dimensions E ggade eue demens ede dep be 116 Appendix E Demonstration Board 119 E 1 Connecting Demonstration Board essssssesssseeseeeeeeee ener nennen nennen nene 119 Index 123 Schematics 127 User s Manual Smartcat BL2100 1 INTRODUCTION The BL2100 is a high performance C programmable single board computer that offers built in digital and analog I O com bined with Ethernet connectivity in a compact form factor A Rabbit 2000 microprocessor operating at 22 1 MHz
71. es of the GRAPHIC LIB library e TEXT C Demonstrates the text functions in the GRAPHIC LIB library Here is a list of what is demonstrated 1 Font initialization 2 Text window initialization 3 Text window end of line wraparound end of text window clipping line feed and carriage return 4 Creating 2 different TEXT windows for display 5 Displaying different FONT sizes 90 Smartcat BL2100 The following sample programs found in the SAMPLES LCD Keypad 122x32 1x7 TCPIP folder are targeted at the Ethernet enabled versions of the BL2100 the BL2100 and the BL2110 Remember to configure the IP address netmask and gateway as indi cated in the sample programs MBOXDEMO C This program implements a web server that allows e mail messages to be entered that are then shown on the LCD display The keypad allows you 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 turns on and turns 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 When using MBOXDEMO C connect the BL2100 and a PC or other device with a Web Browser to an Ethernet If you connect the PC and the BL2100 directly be sure to use a crossover Ethernet cable strait through Ethernet cables and a hub may be used instead TCP_RESPOND C This program an
72. es the Dynamic C software libraries and introduces some sample pro grams and Chapter 5 Using the TCP IP Features explains the TCP IP features 16 Smartcat BL2100 3 SUBSYSTEMS Chapter 3 describes the principal subsystems for the BL2100 Digital I O Serial Communication A D Converter Inputs D A Converter Outputs Analog Reference Voltage Circuit Memory External Interrupts Figure 7 shows these Rabbit based subsystems designed into the BL2100 Data Register Data Decoder Register Control AID Converter Interface to r LCD Keypad D A RabbitCore Module Modus Converter Figure 7 BL2100 Subsystems User s Manual 17 3 1 BL2100 Pinouts The BL2100 pinouts are shown in Figure 8 a and Figure 8 b Analog Outputs Analog Analog Analog Inputs Ground Inputs O0 0529S99SSS0SeSesess Qj nos Q z et inos mol Qs 16 15 14 13 12 M 0 9 8 7 654321 4 QD nos zo J2 pic in Qr u HQ mos Digital pu mz Q2 s or QD mos Inputs int3 3 9 6 finoz na 2 mot nts Ges J10 J5 Q ioo RS 485 6 9 TXB RS 485 9 rs 485 QD oF s Rx pes int QD 1 v Q rois RS 232 GND D e Q RXC CTS
73. eypad module on header sockets J20 J21 and J22 of the BL2100 main board as shown in Figure C 7 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 BL2100 main board J1 EIU UNDO O ENDUY PUN TDI OV CRY ooceosccd o e 600000 o D 221 Ou G pesoseisosese sesecesososes GSSGoSOoSOSoOSS Figure C 7 Install LCD Keypad Module on BL2100 Main Board 84 Smartcat BL2100 C 5 1 Programming Cable Tips Once the LCD keypad module is in place on the BL2100 it is not possible to remove or attach the programming cable to from the BL2100 programming port You will have to remove or at least lift up the LCD keypad module while you connect or disconnect the programming cable While you are developing your application you may wish to connect or disconnect the programming cable when resetting the BL2100 and switching between the Program Mode and the Run Mode To avoid the inconvenience of removing and replacing the LCD key pad module each time the programming cable may be disconnected reconnected at the RS 232 CMOS level converter in the middle of the programming cable 1 Peel back plastic shrink wrap as shown in Figure C 8 ge COM port NS Peel b
74. ezel mount installation 1 Cut mounting holes in the mounting panel in accordance with the recommended dimen sions in Figure C 11 then use the bezel faceplate to mount the LCD keypad module onto the panel 0 125 D 4x 1 8 i ex z N P N A E 7 x a z 7 AN Ed x N fo x CUTOUT Sz c5 2 N P N N N Pl N 7 NS vi N 7 N p b E pa N EF ii zi 58 NE L 2 870 72 9 b 3 100 N 78 8 Figure C 11 Recommended Cutout Dimensions 2 Carefully drop in the LCD keypad module with the bezel and gasket attached User s Manual 87 88 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 Bezel Gasket Om Om ON R8 Panel TAE Figure C 12 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 Apply 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
75. fically 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 Adapter 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 OK or Closes to exit
76. gging the AC adapter then plugging it back in User s Manual 13 2 2 Installing Dynamic C If you have not yet installed Dynamic C version 7 06 or a later version do so now by inserting the Dynamic C CD in your PC s CD ROM drive The CD will auto install unless you have disabled auto install on your PC If the CD does not auto install click Start Run from the Windows Start button and browse for the Dynamic C setup exe file on your CD drive Click OK to begin the installation once you have selected the setup exe file 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 COMI You may select any available port for Dynamic C s use If you are not cer tain which port is available select COMI This selection can be changed later within Dynamic C Once your installation is complete you will have up to three icons on your PC desktop 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 the optional Dynamic C Rabbit Embedded Security Pack install it after installing Dynamic C You must install the Rabbit Embedded Security Pack in the same direct
77. gment on line help by creating function description block comments using a special format for library functions Execution tracing and symbolic stack tracing 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 uC 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 gt 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 print outputs to this window and keyboard input on the host PC can be detected for debugging purposes printf output may also be sent to a serial port or file 36 Smartcat BL2100 4 1 1 Upgrading Dynamic C 4 1 1 1 Patches and Bug Fixes Dynamic C patches that focus on bug fixes are available from time to time Check ou
78. he backlight on or off 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 turn the LCD screen on 0 turn the LCD screen off RETURN VALUE None SEE ALSO glInit glSetContrast glBackLight User s Manual 93 Sets display contrast NOTE This function is not used with 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 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 x is the x coordinate of the top left corner of the block y is the y coordinate of the top left corner of the block bmWidth is the width of the block bmWidth is the height of the block RETURN VALUE None SEE ALSO glFillScreen glBlankScreen glPlotPolygon glPlotCircl
79. hown in Figure E 2 User s Manual 121 BL2100 J8 Jumpers H1 None H2 As shown INCENDIOS wWSSEVLSELLOCOGSYSSGV Ja OJ3 esesesesosssesoe 960659 J5 mm o LJ m 9g o B T EE BL2100 Header J5 J8 Demonstration Board Header J1 RAW GND OUTOO OUTO1 OUTO2 OUTO3 K GND LED1 gt LED2 LED3 LED4 Figure E 3 SSI C Connections Between BL2100 and Demonstration Board NOTE K1 and K2 on screw terminal header J8 must be connected to RAW on screw terminal header J5 as shown in Figure E 3 122 Smartcat BL2100 A function calls installation 14 naO t eee 52 Rabbit Embedded Security AID converter 29 anaOutCalib 50 Pack T 5 14 37 buffered Inputs 29 anaOutDriver 51 standard features 36 calibration constants 29 anaOutEERd 53 debugging 36 board serial number 40 anaOutEEWT 5
80. ialized by sock init PE7 Output LCD KEYPAD strobe Inactive high NI6 IN23 are sinking outputs in this custom configuration T PES is driven by PE4 if the interrupt is not being used 70 Smartcat BL2100 A 5 I O Address Assignments Table A 4 lists the external I O addresses for the digital inputs and outputs Table A 4 Digital I O Addresses FUA Name Function 0000 DIPA Digital inputs IN00 07 read only 0001 DOPA Digital outputs OUTO0 OUTO7 write only 0002 DIPB Digital inputs IN08 15 read only 0003 DOPB Digital outputs OUTO8 OUT I5 write only PEI serves as a system enable control When PE is high or in a high impedance status all BL2100 outputs are disabled digital outputs and analog outputs are disabled and RS 485 is at listen status PEO is configured as a strobe and is used for digital inputs digital outputs and the control register The control register is located at Oxx4 0xx7 write only The function of each bit is listed in Table A 5 Table A 5 Control Register Bit Map External 0x0004 0x007 Bit Name Function 0 485 SEND RS 485 send receive 1 DO CSO Digital output 0 08 enable low active 2 DO CS1 Digital output 09 16 enable low active 3 Not used Not used 4 AO CS Analog output 00 04 enable low active 5 DAC CSO Chip select for analog ch 00 and 01 6 DAC CS1 Chip select for analog ch 02 and 03 7 ADC CS Chip select for A D conve
81. ias resistors not connected pins 3 and 4 are not actually connected to anything and this configuration is a parking configuration for the jumpers so that they will be readily available should you need to enable the termination and bias resistors in the future 68 Smartcat BL2100 A 4 Use of Rabbit 2000 Parallel Ports Figure A 6 shows the Rabbit 2000 parallel ports PBO PB2 PDO PD1 PB4 PB5 PB7 PD5 PD3 PD4 RR D B Address Lines PAO PA7 Sr AOL Serial Port A 2 more inputs i I O Control ORR 4 Ethernet signals s Emnerne 2 LED outputs Data Lines E RESET EN Misc I O SlavePort D0 D7 LL CleckDouler jJ Doubler iura bc ud bc ud Figure A 6 BL2100 Rabbit Based Subsystems MM one Port B BEEN PE7 BENE A0 A3 Real Time Clock Matoligeg Table A 3 lists the Rabbit 2000 parallel ports and their use in the BL2100 Table A 3 Use of Rabbit 2000 Parallel Ports Port yo Signal Output Function State PAO Input IN16 Pulled up PAI Input IN17 Pulled up PA2 Input IN18 Pulled up PA3 Input IN19 Pulled up PA4 Input IN20 Pulled up PA5 Input IN21 Pulled up PA6 Input IN22 Pulled up PA7 Input IN23 Pulled up PBO Input DAC_ADC_SDO Pulled up PBI Input Not Used Pulled up PB2 Input ADC_EOC Driven by A D converter PB3 Input Not Used Pulled up User s Manual 69 Table A 3 Use of Rabbit 2000 P
82. ications should not be constrained by the sector size of the flash memory since it may be necessary to change the sector size in the future A Flash Memory Bank Select jumper configuration option based on 0 surface mounted resistors exists at header JP2 on the RabbitCore module This option used in conjunction with some configuration macros allows Dynamic C to compile two different co resident programs for the upper and lower halves of the 256K flash in such a way that both pro grams start at logical address 0000 This is useful for applications that require a resident download manager and a separate downloaded program See Technical Note 218 Imple menting a Serial Download Manager for a 256K Flash for details 32 Smartcat BL2100 3 9 Other Hardware 3 9 1 External Interrupts The BL2100 is already configured to support external interrupts on pin 11 of screw terminal header J11 The external interrupt circuit is shown in Figure 22 External Interrupt Request Interrupt Request 1 Edge Detectors Interrupt Request 0 Single Interrupt Request Figure 22 Use of Rabbit 2000 External Interrupt In addition to its primary use as an external interrupt pin 11 of screw terminal header J11 may also be used as a CMOS level digital input or output or to generate a PWM signal When using pin 11 as a CMOS level digital input or output use the standard Rabbit 2000 register function configuration for PES on Parallel Port E to se
83. in inches followed by millimeters enclosed in parentheses All dimensions have a manufacturing tolerance of 0 01 0 25 mm 62 Smartcat BL2100 Table A 1 lists the electrical mechanical and environmental specifications for the BL2100 without the optional LCD keypad module plugged in Appendix C provides specifications for the LCD keypad Table A 1 BL2100 Specifications Feature BL2100 BL2110 BL2120 BL2130 Microprocessor Rabbit 2000 at 22 1 MHz Ethernet Port 10Base T LNK and ACT LEDs None Flash Memory 256K standard SRAM 128K standard Panasonic CR2330 or equivalent 3 V lithium coin type 265 mA h Backup Battery standard using onboard battery holder optional 3 V 950 mA h solder in battery available Vs 24 inputs hardware configurable pull up or pull down Punta pute 36 V DC switching threshold 2 4 V typical Digital Outputs 16 outputs software toggled as sinking or sourcing 36 V DC 200 mA maximum per channel Eleven 12 bit res x10 V DC 1 MQ Eleven 12 bit res x10 V DC 1 MQ Analog Inputs up to 4 100 None up to 4 100 None samples s samples s Four 12 bit res Four 12 bit res Analog Outputs 0 10 V DC None 0 10 V DC None update rate 12 kHz update rate 12 kHz Serial Ports 4 serial ports e two RS 232 or one RS 232 with CTS RTS one RS 485 onboard network termination and bias resistors one 5 V CMOS compatible programming port Seria
84. indowFrame function before using this function PARAMETERS window is 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 also escape sequences r and n are recognized All other escape sequences will be skipped over for example b and t will print if they exist in the font set but will not have any effect as control characters 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 fmt 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 108 Smartcat BL2100 C 8 3 Keypad The functions used to control the keypad are contained in the located in the Dynamic C KEYPADSNKEYPAD7 LIB library folder Initializes keypad process RETURN VALUE None SEE ALSO brdInit Assigns each key with key press and release codes and hold and repeat ticks for auto repeat an
85. ing LCD keypad module 40 90 remove RabbitCore module 9 changing COM port 15 ALPHANUN C nanana 9o Software eee 5 connections 15 COFTERMA C 90 LCD keypad module LEDs DISPPONG C onon 90 i U DKADEMOLC n90 T nn dl USBfserial port converter 12 KESHASIE C A o BL2IXX LIB Lee 41 Dynamic C settings 15 KEYMENU C 90 PACKET LIB 45 LED ecc cnn 90 RS232 LIB eo SCROLLINGC 90 TEPP uites 41 TEX sa adecctessus 90 E bie in LCD keypad module with USB ZNDELASH CODE TCP IP 35 MBOXDEMOC 91 sample programs 38 TCP RESPOND C 9 SPecifications TCPSEND C oniinn 91 BL2100 PONG C c esercita 15 electrical ee 63 real time cock exclusion zone 64 RTC TESTC 40 header footprint 65 SETRTCKB C 40 headers eee eM 65 Si alicommu n aton relative pin locations 65 MASTER C c cceee 39 temperature 63 PUTS C nn 38 dimensions BL2100 main RELAYCHR C 38 board sssss 62 SLAVE C s eee 39 LCD keypad module TCP IP ud 40 57 dimensions e 79 User s Manual 125 126 Smartcat BL2100 SCHEMATICS 090 0124 BL2100 Schematic www rabbit com documentation schemat 090 0124 pdf 090 0120 RCM2200 Module Schematic www rabbit com documentation schemat 090 0120 pdf 090 0119 RCM2300 Module Schematic www rabb
86. it com documentation schemat 090 01 19 pdf 090 0042 Demonstration Board Schematic www rabbit com documentation schemat 090 0042 pdf 090 0156 LCD Keypad Module Schematic www rabbit com documentation schemat 090 01 56 pdf 090 0128 Programming Cable Schematic www rabbit com documentation schemat 090 0128 pdf You may use the URL information provided above to access the latest schematics directly User s Manual 127
87. ital inputs Using the Demonstration Board you can see an input channel toggle from HIGH to LOW when pressing a pushbutton on the Demonstration Board See Appendix D for hookup instructions for the Demon stration Board e DIGOUT C Demonstrates the use of the high current outputs configured as either sinking or sourcing outputs Using the Demonstration Board you can see an LED tog gle on off via a high current output See Appendix D for hookup instructions for the Demonstration Board PWM C Demonstrates the use of Timer B to generate a PWM signal on PES INT located on header J11 J10 The program generates a 42 Hz PWM signal with the duty cycle adjustable from 1 to 99 4 2 2 Serial Communication The following sample programs are found in the RS232 subdirectory in SAMPLES BL2100 PUTS C Transmits and then receives an ASCII string on Serial Ports B and C It also displays the serial data received from both ports in the STDIO window RELAYCHR C This program echoes characters over Serial Port B to Serial Port C It must be run with a serial utility such as Hyperterminal 38 Smartcat BL2100 The following sample programs are found in the RS485 subdirectory in SAMPLES BL2100 e MASTER C This program demonstrates a simple RS 485 transmission of lower case letters to a slave BL2100 The slave will send back converted upper case letters back to the master BL2100 and display them in the STDIO window Use SLAVE C to program
88. k both ends of the programming cable to ensure that they are firmly plugged into the PC and the PROG connector not the DIAG connector is plugged in to the program ming port on the RabbitCore module with the marked colored edge of the program ming cable towards pin 1 of the programming header Ensure that the RabbitCore module is firmly and correctly installed in its connectors on the BL2100 main board Dynamic C uses the COM port specified during installation Select a different COM port within Dynamic C From the Options menu select Project 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 until you locate the COM port used by the programming cable If Dynamic C appears to compile the BIOS successfully but you then receive a communi cation error message when you compile and load a sample program it is possible that your PC cannot handle the higher program loading baud rate Try changing the maximum download rate to a slower baud rate as follows Locate the Serial Options dialog in the Dynamic C Options Communications menu Select a slower Max download baud rate User s Manual 15 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 defaul
89. l Rate Max burst rate CLK 32 Max sustained rate CLK 64 Connectors one RJ 45 Ethernet one 2 x 5 2 mm pitch serial programming port one power jack for AC adapter 2 five screw terminal connectors accept up to 14 AWG 1 5 mm wire option for 0 1 IDC or friction lock connectors Real Time Clock Yes Timers Five 8 bit timers four are cascadable from the first and one 10 bit timer with two match registers Watchdog Supervisor Yes User s Manual 63 Table A 1 BL2100 Specifications continued Feature BL2100 BL2110 BL2120 BL2130 Power 9 36 V DC 1 5 W max without display 3 W max with display Operating Temperature 40 C to 70 C Humidity 5 95 noncondensing Board Size 3 41 x 4 14 x 0 93 87 mm x 105 mm x 24 mm 13 V to 36 V DC supply voltage required to support full 0 10 V DC output range of D A converter A 1 1 Exclusion Zone It is recommended that you allow for an exclusion zone of 0 25 6 mm around the BL2100 in all directions when the BL2100 is incorporated into an assembly that includes other components This exclusion zone that you keep free of other components and boards will allow for sufficient air flow and will help to minimize any electrical or EMI interference between adjacent boards An exclusion zone of 0 12 3 mm is recom mended below the BL2100 Figure A 2 show
90. n designed for the Texas Instruments TLC2543 A D converter used on the BL2100 and the BL2120 PARAMETERS cmd is formatted as follows TLC2543 commands D7 D4 Channel 0 10 Channel 11 Vig Vref 2 Channel 12 Vef Channel 13 Veg Channel 14 software powerdown D3 D2 Output data length 01 38 bits 00 12 bits normally used as default 11 16 bits not supported by driver DI Output data format 0 MSB first 1 LSB first not supported by driver DO Mode of operation 0 Unipolar normally used as default Bipolar len is the output data length 0 12 bit mode 1 8 bit mode RETURN VALUE A value corresponding to the voltage on the A D converter input channel which will be 0 4095 for 12 bit A D conversions 0 255 for 8 bit A D conversions SEE ALSO anaIn anaInVolts brdInit EXAMPLE Look at the sample programs in SAMPLES BL2100 ADC User s Manual 47 Reads the state of an A D converter input channel PARAMETER channel is the A D converter input channel 0 10 to read RETURN VALUE A value corresponding to the voltage on the analog input channel 0 4095 SEE ALSO analnVolts anaInCalib anaInfast brdInit Reads the state of an A D converter input channel and uses the previously set calibration constants to convert it to volts PARAMETER channel is the A D converter input channel 0 10 RETURN VALUE A voltage value corresponding to the voltage on the analog input
91. ns Figure 1 BL2100 Tool Kit Smartcat BL2100 1 4 2 Software The BL2100 is programmed using version 7 06 or later of Rabbit s Dynamic C A compatible version is included on the Tool Kit CD ROM Dynamic C v 9 60 includes the popular un C OS II real time operating system point to point protocol PPP FAT file system RabbitWeb and other select libraries that were previously sold as individual Dynamic C modules Rabbit also offers for purchase the Rabbit Embedded Security Pack featuring the Secure Sockets Layer SSL and a specific Advanced Encryption Standard AES library In addi tion to the Web based technical support included at no extra charge a one year telephone based technical support subscription is also available for purchase Visit our Web site at www rabbit com for further information and complete documentation or contact your Rabbit sales representative or authorized distributor 1 4 3 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 The latest versions of all documents are always available for free unregistered download from our Web sites as well User s Manual 5 1 5 CE Compliance Equipment is generally divided into
92. ntrol circuit accomplishes this task for the SRAM s chip select signal line In a powered up condition the CS control circuit must allow the processor s chip select signal CS1 to control the SRAM s CS signal CSRAM So with power applied CSRAM must be the same signal as CS1 and with power removed CSRAM must be held high but only needs to be battery voltage high Q3 and Q4 are MOSFET transistors with com plementary polarity They are both turned on when power is applied to the circuit They allow the CS signal to pass from the processor to the SRAM so that the processor can peri odically access the SRAM When power is removed from the circuit the transistors will turn off and isolate CSRAM from the processor The isolated CSRAM line has a 100 KQ pullup resistor to VRAM R28 This pullup resistor keeps CSRAM at the VRAM voltage level which under no power condition is the backup battery s regulated voltage at a little more than 2 V Transistors Q3 and Q4 are of opposite polarity so that a rail to rail voltage can be passed When the CS1 voltage is low Q3 will conduct When the CS1 voltage is high Q4 con ducts It takes time for the transistors to turn on creating a propagation delay This propa gation delay is typically very small about 10 ns to 15 ns User s Manual 77 78 Smartcat BL2100 APPENDIX C LCD KEYPAD MODULE An optional LCD keypad is available for the BL2100 Appendix C describes the LCD keypad and p
93. oatings in the online documentation set 66 Smartcat BL2100 A 3 Jumper Configurations Figure A 5 shows the header locations used to configure the various BL2100 options via jumpers OSDSGSGSS G9S9OSoOSOSoOSSS O Top Side O JP1 DOVKS VVC DAV EGVSVQsegg QSVKVGDOKPYOSVEGVG 6SOSOSOSOSGOS R69 R60 R56 R71R59 R54 R70R61 R57 EI EY E3 Bottom Side Figure A 5 Location of BL2100 Configurable Positions User s Manual 67 Table A 2 lists the configuration options Table A 2 BL2100 Jumper Configurations Header Description Pins Connected Factory Default 1 2 Bias and termination resistors 5 6 connected x JP1 RS 485 Bias and Termination Resistors 1 3 Bias and termination resistors not 4 6 connected 1 2 Standard x JP2 Software I O Configuration Option Custom IN16 IN23 are config 2 3 1 e ured as digital sinking outputs BL2100 1 2 Installed BL2120 JP3 Analog Circuit Option BL2110 2 3 Not installed BL2130 R56 Pulled up to Vcc x INO0 INO7 R57 Pulled up to K2 R54 Pulled down R60 Pulled up to Vcc x INOS INI5 R61 Pulled up to K2 R59 Pulled down R69 Pulled up to Vcc x INIG IN25 R70 Pulled up to K2 R71 Pulled down Although pins 1 3 and 4 6 of header JP1 are shown jumpered for the termination and b
94. ocated at the bottom of the RJ 45 jack in Figure 15 are always absolute and the RJ 45 connector will work properly with off the shelf Ethernet cables ETHERNET RJ 45 Plug Figure 15 RJ 45 Ethernet Port Pinout RJ 45 pinouts are sometimes numbered opposite to the way shown in Figure 15 Two LEDs are placed next to the RJ 45 Ethernet jack one to indicate an Ethernet link LNK and one to indicate Ethernet activity ACT The transformer connector assembly ground is connected to the BL2100 module printed circuit board digital ground via a 0 2 resistor jumper R29 as shown in Figure 16 RJ 45 Ethernet Plug T R29 7 L Board Chassis Ground Ground Figure 16 Isolation Resistor R29 The factory default is for the 0 Q resistor jumper at R29 to be installed In high noise environments remove R29 and ground the transformer connector assembly directly through the chassis ground This will be especially helpful to minimize ESD and or EMI problems 26 Smaricat BL2100 3 3 4 Programming Port The RabbitCore module on the BL2100 has a 10 pin programming header The program ming port uses the Rabbit 2000 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 2000 on the RabbitCore module after a reset Remotely download and debug a p
95. of your choice and will be unique to a particular BL2100 Do not use the MAC address on the bar code label of the RabbitCore module attached to the BL2100 since you may at some later time use that par ticular RabbitCore module on another BL2100 and the previously saved calibration data would no longer apply GETCALIB C This program demonstrates how to retrieve your analog calibration data to rewrite it back to the simulated EEPROM in flash with using a serial utility such as Tera Term NOTE Calibration data must be saved previously in a file by the sample program SAVECALIB C e SAVECALIB C This program demonstrates how to save your analog calibration coef ficients using a serial port and a PC serial utility such as Tera Term NOTE Use the sample program GETCALIB C to retrieve the data and rewrite it to the single board computer 4 2 6 Real Time Clock If you plan to use the real time clock functionality in your application you will need to set the real time clock You may set the real time clock using the SETRTCKB c sample pro gram from the Dynamic C SAMPLES RTCLOCK folder The RTC TEST C sample program in the Dynamic C SAMPLES RTCLOCK folder provides additional examples of how to read and set the real time clock 4 2 7 TCP IP Sample Programs TCP IP sample programs are described in Chapter 5 4 2 8 LCD Keypad Module Sample Programs Sample programs for the LCD keypad module are described in Section C 7 40 Smartcat B
96. ome PCs now come equipped only with a USB port It may be possible to use an RS 232 USB converter with the programming cable supplied with the Tool Kit An RS 232 USB converter part number 20 151 0178 is available through the Web store Note that not all RS 232 USB converters work with Dynamic C 12 Smaricat BL2100 5 Connect the power supply First prepare the AC adapter for the country where it will be used by selecting the plug The BL2100 Tool Kit presently includes Canada Japan U S Australia N Z U K and European style plugs Snap in the top of the plug assembly into the slot at the top of the AC adapter as shown in Figure 5 then press down on the spring loaded clip below the plug assembly to allow the plug assembly to click into place Connect the bare ends of the power supply to the RAW and GND positions on screw terminal header J5 IDC header J4 as shown in Figure 6 Remove slot cover insert tab into slot Figure 6 Power Supply Connections 6 Apply power Plug in the AC adapter If you are using your own power supply it must provide 9 to 36 V DC 13 to 36 V DC if you intend to use the full range of the D A converter outputs voltages outside this range could damage the BL2100 CAUTION Unplug the power supply while you make or otherwise work with the connections to the headers This will protect your BL2100 from inadvertent shorts or power spikes NOTE A hardware RESET is done by unplu
97. on the board with the analog ground connected at a single point to the digital ground by a 0 Q resistor R29 This is done to minimize digital noise in the analog circuits and to eliminate the possibility of ground loops External connections to analog ground are made on header J2 J1 and external connections to digital ground are made on headers J5 J4 and J11 J10 B 1 1 Power for Analog Circuits Power to the analog circuits is provided by way of a two stage low pass filter which iso lates the analog section from digital noise generated by the other components The analog power voltage V powers the op amp for the buffered A D converter inputs the A D con verter the D A converter and the 4 096 V reference circuit The maximum current draw on V is less than 10 mA V is not accessible to the user User s Manual 73 B 2 Batteries and External Battery Connections The SRAM and the real time clock have battery backup Power to the SRAM and the real time clock VRAM is provided by two different sources depending on whether the main part of the BL2100 is powered or not When the BL2100 is powered normally and Vcc is within operating limits the SRAM and the real time clock are powered from Vcc If power to the board is lost or falls below 4 63 V the VRAM and real time clock power will come from the battery The reset generator circuit controls the source of power by way of its RESET output signal A replaceable 265 mA h lithium batter
98. ory where Dynamic C was installed The Dynamic C User s Manual provides detailed instructions for the installation of Dynamic C and any future upgrades NOTE If you have an earlier version of Dynamic C already installed the default installation of the later version will be in a different folder and a separate icon will appear on your desk top 14 Smartcat BL2100 2 3 Starting Dynamic C Once the BL2100 is connected to your PC and to a power source start Dynamic C by double clicking on the Dynamic C icon on your desktop or in your Start menu If you are using a USB port to connect your computer to the BL2100 choose Options gt Project Options and select Use USB to Serial Converter under the Communications tab Click OK 2 4 Run a Sample Program Use the File menu 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 window will open on your PC and will display a small square bouncing around in a box This program shows that the CPU is working The sample program described in Section 5 2 3 Run the PINGME C Demo tests the TCP IP portion of the board 2 4 1 Troubleshooting If Dynamic C cannot find the target system error message No Rabbit Processor Detected Check that the BL2100 is powered correctly the AC adapter should be plugged in to the RAW and GND positions on screw terminal header J5 IDC header J4 Chec
99. ow 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 x coordinate width has exceeded the display boundary 2 y coordinate height has exceeded the display boundary 106 Smartcat BL2100 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 107 Displays a character on the display where the cursor is currently pointing If any portion of a bitmap character is outside the LCD display area the character will not be displayed The cursor increments its position as needed NOTE Execute the TextW
100. provides fast data processing An optional plastic enclosure and LCD keypad module are available and may be wall mounted 1 1 BL2100 Description The BL2100 is an advanced single board computer that incorporates the powerful Rabbit 2000 microprocessor flash memory static RAM digital I O ports A D converter inputs D A converter outputs RS 232 RS 485 serial ports and a 10Base T Ethernet port 1 2 BL2100 Features Rabbit 2000 microprocessor operating at 22 1 MHz 128K static RAM and 256K flash memory standard may be increased to 512K SRAM and 512K flash memory 40 digital I O 24 protected digital inputs and 16 high current digital outputs provide sinking and sourcing outputs 15 analog channels eleven 12 bit A D converter inputs four 12 bit D A converter 0 10 V outputs selected models One RJ 45 Ethernet port compliant with IEEE 802 3 standard for 10Base T Ethernet protocol selected models Two Ethernet status LEDs selected models Four serial ports 2 RS 232 or 1 RS 232 with RTS CTS 1 RS 485 and 1 CMOS com patible programming port Battery backed real time clock Watchdog supervisor Optional backlit 122 x 32 graphic display keypad module Remote program downloading and debugging capability via RabbitLink Boards with the CE mark on their RabbitCore module are CE compliant User s Manual 1 Four BL2100 models are available Their standard features are summarized in Table 1 Table 1 BL2100 Models
101. r Web site www rabbit com support for the latest patches workarounds and bug fixes The default installation of a patch or bug fix is to install the file in a directory folder dif ferent from that of the original Dynamic C installation Rabbit recommends using a differ ent directory so that you can verify the operation of the patch without overwriting the existing Dynamic C installation If you have made any changes to the BIOS or to libraries or if you have programs in the old directory folder make these same changes to the BIOS or libraries in the new directory containing the patch Do not simply copy over an entire file since you may overwrite a bug fix of course you may copy over any programs you have written Once you are sure the new patch works entirely to your satisfaction you may retire the existing installation but keep it available to handle legacy applications 4 1 2 Extras 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 Starting with Dynamic C version 9 60 Dynamic C includes the popular uC OS II real time operating system point to point protocol PPP FAT file system RabbitWeb and other select libraries Rabbit also offers for purchase the Rabbit Embedded Security Pack featuring the Secure Sockets Layer SSL and a specific Advanced Encryption Standard AES library In addition to the Web based technical support includ
102. rogram over an Ethernet connection using the RabbitLink EG2110 Fast copy designated portions of flash memory from one Rabbit based board the master to another the slave using the Rabbit Cloning Board In addition to Serial Port A the Rabbit 2000 startup mode SMODEO SMODE1 status and reset pins are available on the serial programming port The two startup mode pins determine what happens after a reset the Rabbit 2000 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 t can also serve as a general purpose output The RESET IN pin is an external input that is used to reset the Rabbit 2000 and the onboard peripheral circuits on the RabbitCore module The serial programming port can be used to force a hard reset on the RabbitCore module by asserting the RESET IN signal Alternate Uses of the Serial Programming Port AII three clocked Serial Port A signals are available as asynchronous serial port e an asynchronous serial port with the clock line usable as a general CMOS input The programming port may also be used as a serial port once the application is running The SMODE pins may then be used as inputs and the status pin may
103. rovides the software APIs 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 BL2100 They are shown in Figure C 1 LCD Keypad Modules o 96606000 o Figure C 1 LCD Keypad Module Versions Only the version without the bezel can mount directly on the BL2100 either version can be installed at a remote location up to 60 cm 24 away The version without a bezel is also sold with the enclosure described in Appendix D Contact your Rabbit sales represen tative or your authorized distributor for further assistance in purchasing an LCD keypad module Mounting hardware and a 12 5 cm 5 extension cable are also available for the LCD keypad module through your sales representative or authorized distributor User s Manual 79 Table C 1 lists the electrical mechanical and environmental specifications for the LCD keypad module Table C 1 LCD Keypad Specifications Parameter Specification 2 60 x 3 00 x 0 75 pone 66 mm x 76 mm x 19 mm Bezel Size 4 50 x 3 60 x 0 30 114 mm x 91 mm x 7 6 mm Operating Range 0 C to 50 C Teepe nurs Storage Range 40 C to 85 C Humidity 596 to 9596 noncondensing Power Consumption 1 5 W maximum Connections Connects to high rise header sockets on BL2100 LCD Panel Size 122 x 32 graphic display Keyp
104. rter PAO PA7 are used with IN16 IN23 which may be reconfigured as sinking digital outputs OUT16 OUT23 by installing removing components as reflected in the schematic All analog inputs and outputs are accessed by a series connection PD3 is served as a clock line while PBO and PB7 are used for data in and data out respectively PD4 and PDS are used for RS 485 communication The direction of the communication is controlled by the control register PCO PC1 and PC2 PC3 are used for RS 232 communi cation They can be used separately as two 3 wire RS 232 or they may be combined to work as a 5 wire RS 232 port User s Manual 71 72 Smartcat BL2100 APPENDIX B PowER SUPPLY Appendix B describes the power circuitry provided on the BL2100 B 1 Power Supplies Power is supplied to the BL2100 via header J5 J4 The BL2100 is protected against reverse polarity by a diode at D1 as shown in Figure B 1 RAW SWITCHING POWER REGULATOR y J5 J4 T X VIN LLI ae e e U4 T C56 m 17 2 4 C66 Q ap HE 18 330 uH 7 330 uF 1 1 3 alls LM2575 o p M JL l AL p T 1N5819 s Figure B 1 BL2100 Power Supply The input voltage range is from 9 V to 36 V A switching power regulator is used to pro vide a Vcc of 5 V for the BL2100 logic circuits Vcc is not accessible to the user The digital ground and the analog ground share a single split ground plane
105. s this exclusion zone LL mmi Figure A 2 BL2100 Exclusion Zone Exclusion Zone 64 Smartcat BL2100 A 1 2 Headers The BL2100 has an option for 0 1 IDC headers friction lock connectors or bottom mount sockets at J1 J4 J7 J10 and J13 for physical connection to other boards or ribbon cables The holes on the outside edges of the connector locations are the holes used by the friction lock connectors and by the holes in the bottom mount sockets Figure A 3 shows the BL2100 footprint These values are relative to one of the mounting holes Two other mounting holes are located under the RabbitCore module OOOOOOOOOOODOOOO Y J7 Og ce n 5 mci du D 5 one ci os oe om A RO Oo D A 8 R j s C Ne oe ES oS 2T O NS TH H ple BE wo Te to Oe L fE E o gi 0 05 Se B 1 4 Y 00000 dB Y Y Y Y a eb eese b HELP J10 J13 OOOOOOOOOODOOOO ceo t IT ST 0513 0 145 13 0 3 7 p 1 520 38 6 1 750 7 44 5 2 840 a 72 1 Figure A 3 User Board Foo
106. sb tes cusses itte e Dp i bei pee o beige Hie ER ees 39 4 2 4 DIA Converter Qu pu ts hte tpe e ORC ER RT DRE EE ORI IP Uu RE 39 4 2 5 Using Calibration Constants eee cece eseeesceseeeeceeeeeeeeseeceecaecsaesaeceecssecssceseeeseaeeaeeesesaesneeenees 40 4 2 6 Real Time Clock eerte eet he dan tanec desta Re E RB re ERE ET eH 40 42 1 TGPAP Sample Progratnis 5 2 heroe tr Dee m TOTO HE 40 4 2 8 LCD Keypad Module Sample Programs esent nennen eren 40 4 3 BE2100 labra ries nri HO ERES HEP RUE shea Ss TRES E e ERHEBEN 41 4 4 BE2100 F nction APIs iunc eov tee e EUER tU IRE s 42 AAD Board Initialization 5 eorr pee pert E EEE E E EEEE EEE etn 42 44 2 Digtal CENE Ec 43 4 4 3 Serial Communication 5 epe pee etin tome DIO pH tede ters 45 444 A D Converter Inputs riter itt erento sides e ne de eer te pde espe 46 4 4 5 D A Converter Outputs isses eren emen enr ener en nennen nennen enne 50 Chapter 5 Using the TCP IP Features 55 5 1 TCP IP Connections itr tette re rere tinere o one ce Ir oues eoo enu eee aee RR RUE 55 5 2 TCP IP Sample Programs tee nee ERU PO pre e le ere eee tap eds 57 5 2 1 How to Set IP Addresses in the Sample Programs eseeseeeeeeneen rennen 57 5 2 2 How to Set Up Your Computer for Direct Connect 58 2 2 3 R n th PINGME C Demo tog repre oett team vU UR ren 59 5 2 4 Running More Demo Programs With a Direct Connection
107. sese 60 25 3 Where Do T Go From Here etn eter OE D estere ty eee dte un 60 Appendix A Specifications 61 A 1 Electrical and Mechanical Specifications esee enne emen 62 AJ Excl siomZotie tse tnoti eua AS 64 ALN 2 He adets ean cinere eene eR ER T Hr EEST 65 A2 Conformal Coating imet celi ei aee eicere tend 66 A3 Jumper Configurations errare pe Re EE e EO ERR EE D reiten 67 A 4 Use of Rabbit 2000 Parallel Ports ssssssseessseseseeeeeee enne nen nennen rne nennen nnne 69 A S VO Address Assignments eee pnmo ree perite me pt HERE RH en 71 Appendix B Power Supply 73 B I PowerSuppliesa username edet rep enu d Ep eed 73 B L1 Powerdor Analog CIrCUlts 31a ee eg vie eco tre costretti tn 73 B 2 Batteries and External Battery Connections sees eene en nennen nene 74 B21 Replacing the Backup Battery oot rete eed Hee eiie ds 75 B 2 2 Battery Backup Circuit eessssseseeseeeeeeee e e enne enne entente Ee trennen EEE 75 B 2 3 Power to VRAM Switch eiesenaese emper mre emer eimi 76 B 2 4 Reset Generator sspe ut eR PUE EEUU CR DR 76 B 3 Chip Select Circuit iret pce egt rete DE ger pbi erbe perpe HE ere better ridet TI Appendix C LCD Keypad Module 79 CI Specifications ie ep hE SS ESSO ei ue ev AA 79 C 2 Contrast Adjustments for All Boards anipse eerte eren entente 81 G3 Keypad Labeling n s i RE AUOPEBPRRUSUUD GRIP Sas RS ea abe ed ibe 82 54 Header P1n oUts eer ette
108. t debugging baud rate Try lowering the debugging baud rate as follows Locate the Serial Options dialog in the Dynamic C Options Communications menu Choose a lower debug baud rate 2 5 Where Do I Go From Here If the sample program ran fine you are now ready to go on to other sample programs and to develop your own applications The source code for the sample programs is provided to allow you to modify them for your own use The BL2100 User s Manual also provides complete hardware reference information and describes the software function calls for the BL2100 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 BL2100 through a distributor or Rabbit partner contact the distributor or partner first for technical support If there are any problems at this point Use the Dynamic C Help menu to get further assistance with Dynamic C Check the Rabbit Technical Bulletin Board and forums at www rabbit com support bb and at www rabbit com forums Use the Technical Support e mail form at www rabbit com support If the sample program ran fine you are now ready to go on to explore other BL2100 fea tures and develop your own applications Chapter 3 Subsystems provides a description of the BL2100 s features Chapter 4 Software describ
109. t this pin up for your intended use Be aware that there is no provision for protection against voltage spikes while PES is pulled up to Vcc with a 27 kQ pull up resistor The sample program PWM C in the Dynamic C SAMPLES BL2100 directory illustrates how to use pin 11 of screw terminal header J11 to generate a PWM signal User s Manual 33 3 9 2 Clock Doubler The BL2100 takes advantage of the Rabbit 2000 microprocessor s internal clock doubler A built in clock doubler allows half frequency crystals to be used to reduce radiated emis sions The 22 1 MHz frequency is generated using an 11 0592 MHz crystal The clock doubler is disabled automatically in the BIOS for crystals with a frequency above 12 9 MHz The clock doubler may be disabled if 22 1 MHz clock speeds are not required Disabling the Rabbit 2000 microprocessor s internal clock doubler will reduce power consumption and further reduce radiated emissions The clock doubler is disabled with a simple config uration macro as shown below 1 Select the Defines tab from the 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 The clock speed will be doubled as long as the crystal frequency is less than or equal to 26 7
110. th 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 giXPutFastmap glPrintf User s Manual 105 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 window frame descriptor pointer pFont is a font descriptor pointer 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 of the text wind
111. than VRAM When the BL2100 is not in reset the RESET line will be high This turns on Q2 causing its collector to go low This turns on Q5 allowing VRAM to nearly equal Vcc When the BL2100 is in reset the RESET line will go low This turns off Q2 and Q5 pro viding an isolation between Vcc and VRAM B 2 4 Reset Generator The BL2100 module uses a reset generator on the module U1 to reset the Rabbit 2000 microprocessor when the voltage drops below the voltage necessary for reliable operation The reset occurs between 4 50 V and 4 75 V typically 4 63 V 76 Smartcat BL2100 B 3 Chip Select Circuit Figure B 4 shows a schematic of the chip select circuit located on the BL2100 module VRAM A R 100 kQ CSRAM Q4 CS1 Q3 VRAM QD SWITCH Figure B 4 Chip Select Circuit RESET OUT The current drain on the battery in a battery backed circuit must be kept at a minimum When the BL2100 is not powered the battery keeps the SRAM memory contents and the real time clock RTC going The SRAM has a powerdown mode that greatly reduces power consumption This powerdown mode is activated by raising the chip select CS signal line Normally the SRAM requires Vcc to operate However only 2 V is required for data retention in powerdown mode Thus when power is removed from the circuit the battery voltage needs to be provided to both the SRAM power pin and to the CS signal line The CS co
112. tprint for BL2100 NOTE The same footprint applies for the IDC header and bottom mount socket options Headers J21 J22 and J23 are used to mount the optional LCD keypad module User s Manual 65 A 2 Conformal Coating The areas around the crystal oscillator and the battery backup circuit on the BL2100 mod ule have had the Dow Corning silicone based 1 2620 conformal coating applied The con formally coated areas are shown in Figure A 4 The conformal coating protects these high impedance circuits from the effects of moisture and contaminants over time 6Gececososeseso eseseseoosos e 7 m k lis Conformally ENRE coated area BX 10 B0000 97 Pp Re On 20 thO FE MoM SOSGSSpSOQSOSOSS ne oSoSo9S0SSSG Q p Q Q 9 Q Q Q S S Figure A 4 BL2100 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 Rabbit Technical Note TN303 Conformal C
113. ts of a base and a cover The base alone is a convenient surface on which to mount the BL2100 and also provides a means to mount the BL2100 on any flat surface The base and cover are sold together with an LCD keypad module that plugs into the main BL2100 board Part No 101 0466 Appendix D describes how to mount the BL2100 and the LCD keypad inside the plastic enclosure and provides details on mounting the assembly User s Manual 113 D 1 Assembly Instructions 1 Remove the RabbitCore module from the BL2100 main board and set the module aside The module will be plugged back in to the main board later NOTE If you are working with more than one BL2100 at a time take care to keep the BL2100 main boards and their corresponding RabbitCore modules paired since the RabbitCore modules store calibration constants specific to the BL2100 main board to which they are plugged in RCM2200 RCM2300 Module BL2100 Main Board 656sesocoocseo HOOSON M EET E lo ORE 2 d E T t Lu ut os d 21 UL em E uU BE preme NUN Er on EAR ee SGOSSG0SOSOSOSG S9 S69S9esoSoSSS 1206696960596 SANSON Figure D 1 Remove RCM2200 Module from BL2100 Main Board 2 Attach the BL2100 m
114. two classes CLASS A CLASS B Digital equipment meant for light industrial use Digital equipment meant for home use Less restrictive emissions requirement less than 40 dB un V m at 10 m 40 dB relative to 1 un V m or 300 un V m More restrictive emissions requirement 30 dB u V m at 10 m or 100 un V m These limits apply over the range of 30 230 MHz The limits are 7 dB higher for frequencies above 230 MHz Although the test range goes to 1 GHz the emissions from Rabbit based systems at frequencies above 300 MHz are generally well below background noise levels The BL2100 single board computer has been tested and was found to be in conformity with the following applicable immunity and emission standards The BL2110 BL2120 and BL2130 single board computers are also CE qualified as they are sub versions of the BL2100 single board computer Boards that are CE compliant have the CE mark Immunity The BL2100 series of single board computers meets the following EN55024 1998 immu nity standards e EN61000 4 3 Radiated Immunity e EN61000 4 4 EFT e EN61000 4 6 Conducted Immunity Additional shielding or filtering may be required for a heavy industrial environment Emissions The BL2100 series of single board computers meets the following emission standards with the Rabbit 2000 spectrum spreader turned on and set to the normal mode The spectrum spreader is only available with Rev C or higher of the Rabbit 2000
115. utions to prevent ESD damage to the BL2100 Safety All inputs and outputs to and from the BL2100 single board computer must not be con nected to voltages exceeding SELV levels 42 4 V AC peak or 60 V DC The lithium backup battery circuit on the BL2100 single board computer has been designed to protect the battery from hazardous conditions such as reverse charging and excessive current flows Do not disable the safety features of the design 1 5 2 Interfacing the BL2100 to Other Devices There are two versions of the LCD keypad module that may be used with the BL2100 a plug in version Part No 101 0465 and a remote panel mounted version with bezel Part No 101 0502 The BL2100 with the LCD keypad module plugged in may be regarded as a maintenance unit that conforms to the same CE standards as does the BL2100 alone where the entire assembly is mounted inside an enclosure and the enclosure is only opened to tune up the system In addition the cable for a panel mounted LCD keypad module should be less than 30 cm 12 to maintain CE compliance Appendix C provides complete information for mounting and using the LCD keypad module Since the BL2100 single board computers are designed to be connected to other devices good EMC practices should be followed to ensure compliance CE compliance is ulti mately the responsibility of the integrator Additional information tips and technical assistance are available from your authori
116. ve value will produce a scroll to the left RETURN VALUE None SEE ALSO glVScroll 104 Smartcat BL2100 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 glXPutFastmap 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 wid
117. window must be evenly divisible by 8 otherwise truncates rows is the number of rows in the window RETURN VALUE None SEE ALSO glVScroll glDownl 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 glUp1l User s Manual 103 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 negati
118. y provides power to the real time clock and SRAM when external power is removed from the circuit board The drain on the battery is typically less than 10 pA when there is no external power applied to the BL2100 and so the expected shelf life of the battery is 265 mA h 3 0 years 10 pA The drain on the battery is typically less than 4 uA when external power is applied and so the expected BL2100 battery in service life is 265 mA h 7 5 years 4 uA A long life 950 mA h solder in battery is also provided for in the board layout 74 Smartcat BL2100 B 2 1 Replacing the Backup Battery The battery is user replaceable and is fitted in a battery holder To replace the battery lift up on the spring clip and slide out the old battery Use only a Panasonic CR2330 or equiv alent replacement battery and insert it into the battery holder with the side facing up NOTE The SRAM contents and the real time clock settings will be lost if the battery is replaced with no power applied to the BL2100 Exercise care if you replace the battery while external power is applied to the BL2100 CAUTION There is an explosion danger if the battery is short circuited recharged or replaced incorrectly Replace the battery only with the same type or an equivalent A type recommended by the battery manufacturer Dispose of used batteries according to the battery manufacturer s instructions B 2 2 Battery Backup Circuit Figure B
119. z A LOAD D REF A 4 DCNTL 0 15 g 0 15 External a po Power Supply G GND HEN SOURCING OUTPUT K1 or K2 K External OUT Power D REF A 4 Supply a DCNTL_ 0 15 w A LOAD GND Figure 11 BL2100 Digital Outputs T GN OUT00 OUTO07 are powered by to K1 and OUTO8 OUT15 are powered by K2 K1 and K2 can each be up to 36 V They don t have to be same All the sinking current which could be up to 3 2 A is returned through the GND pins Be sure to use a suitably sized GND and keep the distance to the power supply as short as possible Since there are two GND terminals header J5 J4 and header J11 J10 it is User s Manual 21 highly recommend that you split the GND returns according to the two banks of digital outputs K K Bar For the H bridge which is shown in Figure 12 yi K1 and K2 should be the same if two digital out LOAD puts used for the H bridge are on different banks A Figure 12 H Bridge Smartcat BL2100 3 3 Serial Communication The BL2100 has two RS 232 serial ports which can be configured as one RS 232 serial channel with RTS CTS or as two RS 232 3 wire channels using the serMode software function call Table 2 summarizes the options Table 2 Serial Communication Configurations
120. zed Rabbit distributor and are also available on our Web site at www rabbit com User s Manual 7 Smartcat BL2100 2 GETTING STARTED Chapter 2 explains how to connect the programming cable and power supply to the BL2100 2 1 BL2100 Connections 1 Remove the RabbitCore module from the BL2100 main board and set the module aside The module is removed to allow access to the mounting holes on the main BL2100 board and will be plugged back in to the main board later NOTE If you are working with more than one BL2100 at a time take care to keep the BL2100 main boards and their corresponding RabbitCore modules paired since the Rab bitCore modules store calibration constants specific to the BL2100 main board to which they are plugged in RCM2200 RCM2300 Module BL2100 Main Board eceosoeesooeseseo sp rne HEEL n ng iM oul ut 2 LL i SES EZ an ig ay Te N pace ose Ek Emm iz pu Onl RPS jeg 7 ieee eee CSLKVVKDGLKGOSVKLSOGg4SVSCOeQeCdsegyg DWDLSGVVGV DG GVSVegse Figure 2 Remove RabbitCore Module from BL2100 Main Board User s Manual 2 Attach the BL2100 main board to the plastic enclosure base Position the BL2100 main
Download Pdf Manuals
Related Search
Related Contents
Untitled RESIDENTIAL GAS WATER HEATERS M2DPlayer for iPhone Rechaud 5 - Bartscher GmbH Automatic vehicle locator VT-850 Guía rápida - Satmap.com Novatel Wireless Modem U727 User's Manual Manual de Instruções Manuel d`instructions CC2-TANGO User Guide Copyright © All rights reserved.
Failed to retrieve file