101-0530 Rabbit Semiconductor, 101-0530 Datasheet

no-image

101-0530

Manufacturer Part Number
101-0530
Description
KIT TOOL FOR LP3500 INTL
Manufacturer
Rabbit Semiconductor
Series
RabbitCore 3000r
Type
Single Board Computers (SBC)r
Datasheet

Specifications of 101-0530

Contents
Demo Board, Serial Cable, Software and Documentation
For Use With/related Products
Rabbit 3000-based products, except RCM30/3100, LP3500
Lead Free Status / RoHS Status
Vendor undefined / Vendor undefined
Fox (LP3500)
C-Programmable Single-Board Computer
User’s Manual
019–0111 • 081121–L

Related parts for 101-0530

101-0530 Summary of contents

Page 1

Fox (LP3500) C-Programmable Single-Board Computer User’s Manual 019–0111 • 081121–L ...

Page 2

Fox (LP3500) User’s Manual Part Number 019-0111 • 081121–L • Printed in U.S.A. ©2002–2008 Digi International Inc. • All rights reserved. No part of the contents of this manual may be reproduced or transmitted in any form or by any ...

Page 3

Chapter 1. Introduction 1.1 LP3500 Description ..............................................................................................................................1 1.2 LP3500 Features ...................................................................................................................................2 1.3 Optional Add-Ons.................................................................................................................................3 1.4 Development and Evaluation Tools......................................................................................................4 1.4.1 Tool Kit .........................................................................................................................................4 1.4.2 Software ........................................................................................................................................5 1.5 CE Compliance .....................................................................................................................................6 1.5.1 Design Guidelines .........................................................................................................................7 1.5.2 Interfacing the LP3500 to Other ...

Page 4

Chapter 4. Software 4.1 Upgrading Dynamic C ....................................................................................................................... 41 4.1.1 Patches and Bug Fixes................................................................................................................ 41 4.1.2 Extras.......................................................................................................................................... 41 4.2 Sample Programs................................................................................................................................ 42 4.2.1 Power Modes .............................................................................................................................. 42 4.2.2 Digital I/O................................................................................................................................... 42 4.2.3 Serial Communication ................................................................................................................ 43 4.2.4 A/D Converter Inputs ...

Page 5

Appendix E. Power Management E.1 External Power Supply .....................................................................................................................123 E.2 Batteries and External Battery Connections.....................................................................................125 E.2.1 Replacing the Backup Battery ..................................................................................................126 E.2.2 Power to VRAM Switch...........................................................................................................126 E.2.3 Reset Generator ........................................................................................................................127 E.3 Chip Select Circuit ...........................................................................................................................127 Appendix F. Running a Sample ...

Page 6

Fox (LP3500) ...

Page 7

The LP3500 is a low-power single-board computer with built-in analog and digital I/O. Although the LP3500 was designed spe- cifically for low-power applications and data logging, it has a host of features that make it attractive for other applications as ...

Page 8

LP3500 Features ® • Rabbit 3000 microprocessor operating 7.4 MHz. • 512K/128K static RAM and 512K/256K flash memory options. • 26 digital I/O: 16 protected digital inputs and 10 high-current digital outputs provide sinking and sourcing ...

Page 9

Optional Add-Ons • Plastic enclosure (can be wall-mounted or panel-mounted), which consists of a base and a cover for either the LP3500 by itself or an assembly made up of the LP3500 and the LP3500 Prototyping Board. The base ...

Page 10

Development and Evaluation Tools 1.4.1 Tool Kit A Tool Kit contains the hardware essentials you will need to develop applications with the LP3500 single-board computer. The items in the Tool Kit and their use are as follows. • LP3500 ...

Page 11

Software The LP3500 is programmed using version 7.26P or later of Rabbit’s Dynamic C. patible version is included on the Tool Kit CD-ROM. interface for the LP3500. Software drivers for digital and analog I/O, and for serial com- munication ...

Page 12

CE Compliance Equipment is generally divided into two classes. CLASS A Digital equipment meant for light industrial use Less restrictive emissions requirement: less than 40 dB µV (40 dB relative to 1 µV/m) or 300 µV/m ...

Page 13

... There are two versions of the LCD/keypad module that may be used with the LP3500: without a bezel (Part No. 101-0601), and a remote panel-mounted version with bezel (Part No. 101-0541). The cable used to connect the 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 ...

Page 14

Fox (LP3500) ...

Page 15

Chapter 2 explains how to connect the programming cable and power supply to the LP3500. 2.1 LP3500 Connections 1. Use the 4-40 screws supplied with the Tool Kit to attach the metal standoffs to your LP3500 series board as shown ...

Page 16

Attach the LP3500 main board to the Prototyping Board as shown in Figure 3. Press the pins from the headers on the bottom side of the LP3500 board firmly into the corresponding header sockets located at J1, J2, and ...

Page 17

... LP3500. NOTE: Use only the programming cable that has a red shrink wrap around the RS-232 level converter (Part No. 101-0513), which is supplied with the LP3500 Tool Kit. Other Rabbit programming cables with clear or blue shrink wrap might not be voltage-com- patible or their connector sizes may be different ...

Page 18

Connect the power supply. First, prepare the AC adapter for the country where it will be used by selecting the plug. The LP3500 Tool Kit presently includes Canada/Japan/U.S., Australia/N.Z., U.K., and European style plugs. Snap in the top of ...

Page 19

Remove Battery Tab The backup battery on the LP3500 has a plastic tab to protect the battery against discharg- ing before the LP3500 is placed into service. NOTE: Rabbit recommends that the battery tab not be removed until you ...

Page 20

Installing Dynamic C If you have not yet installed Dynamic C version 7.26P (or a later version now by inserting the Dynamic your PC’s CD-ROM drive. The CD will auto-install unless you have disabled ...

Page 21

PONG.C You are now ready to test your set-up by running a sample program. Find the file , which is in the Dynamic C PONG.C open it with the menu ( not still open), then compile and ...

Page 22

Fox (LP3500) ...

Page 23

Chapter 3 describes the principal subsystems for the LP3500. • Power Modes • Digital I/O • Serial Communication • A/D Converter Inputs (LP3500 only) • PWM Outputs • Relay Output Circuit (LP3500 only) • Memory Figure 7 shows these Rabbit-based ...

Page 24

LP3500 Pinouts The LP3500 pinouts are shown in Figure 8. NOTE: Although header J2 is installed on the LP3510, the associated analog I/O are not available on the LP3510. The relay screw-terminal header also not installed ...

Page 25

Power Modes User’s Manual See note 19 ...

Page 26

Table 2 lists the power modes based on clock frequency that can be defined in software using the function. powerMode The LP3500 can operate at various power levels, depending on the clock frequency and on which subsystems on the board ...

Page 27

Operating in the Power-Save Mode VIN may be removed to allow the LP3500 to operate using the external battery once the LP3500 is in Mode 10. At this point, the LP3500 will draw 200 µA after the subsystems listed ...

Page 28

Digital I/O 3.3.1 Digital Inputs The LP3500 has 16 digital inputs, IN00–IN15. The inputs are factory-configured to be pulled banks of eight, but they can also be pulled up to Vcc or down to 0 ...

Page 29

Digital Outputs The LP3500 has 10 digital outputs: OUT0–OUT7 can each sink up to 200 mA, and OUT8–OUT9 can each source up to 200 Figure 11 shows a wiring diagram for using the digital outputs ...

Page 30

When the LP3500 is connected to the Proto- typing Board Ω resistor on the Prototyp- ing Board (R1) ties +K to VIN, the raw DC input voltage. Figure 12 shows the location of this 0 Ω resistor on ...

Page 31

Serial Communication The LP3500 has three RS-232 serial ports that can set using the call as one RS-232 serial channel (with RTS/CTS) and one 3-wire channel, or they may be set as three RS-232 (3-wire) channels. Table 4 summarizes ...

Page 32

RS-232 The LP3500 RS-232 serial communication is supported by an RS-232 transceiver. This trans- ceiver 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 ...

Page 33

Figure 13. LP3500 Multidrop Network Zener diodes are used in lieu of termination and bias resistors to minimize power consumption. User’s Manual 27 ...

Page 34

Serial Interface Port The LP3500 offers a serial interface port at header J6 × 5 socket. This port may be used to connect serial logic-level devices such as Rabbit’s SF1000 serial flash expansion cards to ...

Page 35

Alternate Uses of the Serial Programming Port All three clocked Serial Port A signals are available as • a synchronous serial port • an asynchronous serial port, with the clock line usable as a general CMOS input The programming port ...

Page 36

Display Interface The LP3500 supports an interface with the parallel ports on the Rabbit 3000 via the Display Interface at header J9. The Display Interface may be used with Rabbit’s LCD/keypad module, which offers an operator interface with seven ...

Page 37

A/D Converter Inputs (LP3500 only) The single 8-channel A/D converter chip used in the LP3500 (the LP3510 does not have analog capabilities) has a resolution of 12 bits for differential measurements or 11 bits for single-ended measurements. Four of ...

Page 38

Single-ended measurements are made by connecting the analog signal between an analog input channel (AIN0–AIN7) and AGND. Differential measurements are made by connect- ing a pair of differential analog signals to an adjacent pair of analog input channels (AIN0–AIN1, …, ...

Page 39

PWM Outputs The D/A conversion outputs are pulse-width modulated and scaled to provide an output from Vcc (approx. 2.8 V). Figure 17 shows the PWM outputs. W User’s Manual Figure 17. PWM Outputs 33 ...

Page 40

Relay Output Circuit (LP3500 only) A bistable relay is stuffed on LP3500 models only at position K1, and the relay contacts are accessed via screw-terminal header J8. The relay can switch DC. ...

Page 41

Serial Programming Cable The programming cable is used to connect the LP3500’s serial programming port serial COM port. The programming cable converts the RS-232 voltage levels used by the PC serial port to the CMOS voltage ...

Page 42

A program “runs” in either mode, but can only be downloaded and debugged when the LP3500 is in the Program Mode. Refer to the Rabbit 3000 Microprocessor User’s Manual gramming port and the programming cable. 3.9.2 Standalone Operation of the ...

Page 43

Memory 3.11.1 SRAM The LP3500 module is designed to accept 128K to 512K of SRAM at U5. The standard LP3500 modules come with 512K of SRAM. 3.11.2 Flash Memory The LP3500 is also designed to accept 256K to 512K ...

Page 44

Fox (LP3500) ...

Page 45

Dynamic 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, ...

Page 46

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. • Hundreds of functions in source-code libraries and sample programs: Exceptionally ...

Page 47

Upgrading Dynamic C 4.1.1 Patches and Bug Fixes Dynamic C patches that focus on bug fixes are available from time to time. Check the Web site www.rabbit.com/support/ The default installation of a patch or bug fix is to install ...

Page 48

Sample Programs Sample programs are provided in the Dynamic C demonstrates the output to the PONG.C The various directories in the trate the use of the corresponding Dynamic C libraries. The folder provides sample programs specific to the LP3500. ...

Page 49

Serial Communication The following sample programs are found in the —This program demonstrates basic initialization for a simple RS-232 • SIMPLE3WIRE.C 3-wire loopback displayed in the The following sample programs are found in the —This program demonstrates a simple ...

Page 50

PWM Outputs The following sample program is found in the —This program demonstrates the PWM functions. It will set the PWM chan- • PWMOUT.C nels, PWM0–PWM2, to the following duty cycles: PWM Channel 0 to 10% PWM Channel 1 ...

Page 51

A/D con- • AD_CALMA_CH.C verter channel operating in the 4–20 mA current mode using two known currents to generate two coefficients, gain and offset, which are rewritten into the user block data ...

Page 52

LP3500 Libraries One library directory provides the function calls that are used to develop applications for the LP3500. —libraries associated with features specific to the LP3500. The functions in the • LP3500 LIB\Rabbit3000\LP35xx.LIB Calls.” The LCD/keypad module functions are ...

Page 53

LP3500 Function Calls 4.4.1 LP3500 Power Modes int devPowerSet(int devices, int state); Sets individual devices to low-power or fully active states in the order listed below. PARAMETERS devices is a list of the following macros, which are OR'ed together, ...

Page 54

Sets the LP3500 operating power. PARAMETERS mode is the operating mode based on the following macros. Mode Description 1 CCLK = PCLK = MainOsc = 7.3728 MHz 2 CCLK = PCLK = MainOsc/2 = 3.6864 MHz 3 ...

Page 55

Use this function to poll Serial Port E for any activity or until a timeout occurs. The function call forces the LP3500 to enter the low-power mode using the battery ...

Page 56

Use this function to poll a selected digital input until a timeout occurs. The function call forces the LP3500 to enter the low-power mode using the ...

Page 57

Board Initialization void brdInit (void); 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 ...

Page 58

Digital I/O void digOut(int channel, int value); Sets the state of a digital output ( Remember to call brdInit before executing this function. A runtime error will occur for the following conditions: 1. channel or value out of range. ...

Page 59

Reads the state of an input channel (IN00–IN15). A run-time error will 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 ...

Page 60

Serial Communication Library files included with Dynamic C provide a full range of serial communications sup- port. The LIB\Rabbit3000\RS232.LIB serial functions. The LIB\Rabbit3000\PACKET.LIB functions where packets can be delimited by the 9th bit, by transmission gaps, or with user-defined ...

Page 61

Enables the RS-485 transmitter. Transmitted data get echo'ed back into the receive data buffer. These echo'ed data could be used to know when to disable the transmitter by using one of the following methods: Byte mode—disable the transmitter ...

Page 62

A/D Converter Inputs The functions in this section apply only to the LP3500 model. unsigned int anaInConfig(unsigned int instructionbyte, unsigned int cmd, long baud); Use this function to configure the ADS7870 A/D converter. This function will address the ADS7870 ...

Page 63

PARAMETERS instructionbyte will initiate a read or write operation bits on the designated register address, for example: checkid = anaInConfig(0x5F, 0, 9600); cmd is the command data that configure the registers addressed by the instruction byte. ...

Page 64

Reads the voltage of an analog input channel by serial-clocking an 8-bit command to the ADS7870 device by its Direct Mode method. The conversion begins as soon as the last data bit ...

Page 65

RETURN VALUE A value corresponding to the voltage on the analog input channel, which will be: 0–2047 for 11-bit A/D conversions (bit 12 for sign) -1 for overflow SEE ALSO anaInConfig, anaIn User’s Manual 59 ...

Page 66

Reads the value of an analog input channel using the direct method of addressing the ADS7870 A/D converter. PARAMETERS channel is the analog input channel number ( corresponding to AIN0–AIN7 ...

Page 67

Calibrates the response of the A/D converter channel as a linear function using the two conversion points provided. Four values are calculated and placed into ...

Page 68

A/D converter channel value (0–2047). volts1 is the voltage or current corresponding to the first A/D converter channel value ( ...

Page 69

Reads the state of a single-ended analog input channel and uses the previously set calibration constants to convert it to volts. PARAMETER channel is the channel number (0–7): gaincode is the gain code ...

Page 70

Reads the state of an analog input channel and uses the previously set calibration constants to convert it to current. PARAMETER channel is 0–3: RETURN VALUE A current value between 4.00 and 20.00 mA corresponding to ...

Page 71

Reads the state of a differential analog input channel and uses the previously set calibration constants to convert it to volts. PARAMETER channel is the channel number ( 6): gaincode is ...

Page 72

Reads the calibration constants, gain, and offset for an input based on its designated channel code posi- tion into global table _adcCalib. The constants are stored in the top 1K of ...

Page 73

Writes the calibration constants, gain, and offset for an input based on its designated channel code posi- tion from global table _adcCalib. The constants are stored in the top 1K of ...

Page 74

Vcc Monitoring (LP3500 only) void VccMonitorInit(int state); PIO3 on the ADS7870 A/D converter enables or disables Vcc monitoring. If monitoring is enabled, ana- log input channel AIN7 is not available. PARAMETER state 1 = enable Vcc monitor 0 = ...

Page 75

PWM Outputs The PWM functions in this section can be used to operate the analog outputs on the LP3500 model. int pwmOutConfig(unsigned long frequency); Sets the base frequency for the PWM pulses and enables the PWM driver on all ...

Page 76

Relay Output (LP3500 only) int relayOut(int relay, int value low-to-high pulse sets the state of a relay. On power-up or brdInit() the relay contact will go to the normally closed (NC) RESET contact. PARAMETERS relay 0 ...

Page 77

A PPENDIX Appendix A provides the specifications for the LP3500, and describes the conformal coating. User’s Manual A. LP3500 S PECIFICATIONS 71 ...

Page 78

A.1 Electrical and Mechanical Characteristics Figure A-1 shows the mechanical dimensions for the LP3500. 72 Figure A-1. LP3500 Dimensions Fox (LP3500) ...

Page 79

Table A-1 lists the electrical, mechanical, and environmental specifications for the LP3500. Table A-1. LP3500 Specifications Feature Microprocessor EMI Reduction Flash Memory SRAM Backup Battery Keypad/Display Digital Inputs 16: fully protected 0–36 V DC, can handle short spikes ±40 V ...

Page 80

Table A-1. LP3500 Specifications (continued) Feature 6 shared high-speed, CMOS-compatible ports: • 1 RS-485 • 3 RS-232 (one 5-wire and one 3-wire or three 3-wire), jumper option for Serial Ports logic-level outputs; one RS-232 port needs to have wake-up capability ...

Page 81

A.1.1 Exclusion Zone It is recommended that you allow for an “exclusion zone” of 0.25" (6 mm) around the LP3500 in all directions when the LP3500 is incorporated into an assembly that includes other printed circuit boards. This “exclusion zone” ...

Page 82

A.1.2 Headers The LP3500 uses 0.1" IDC headers at J1–J4 for physical connection to other boards. J5, the programming port × 5 header with pin spacing. Figure A-3 shows the LP3500 footprint. These values ...

Page 83

A.2 Conformal Coating The areas around the 32 kHz real-time clock crystal oscillator has had the Dow Corning silicone-based 1-2620 conformal coating applied. The conformally coated area is shown in Figure A-4. The conformal coating protects these high-impedance circuits from ...

Page 84

A.3 Jumper Configurations Figure A-5 shows the header locations used to configure the various LP3500 options via jumpers. Figure A-5. Location of LP3500 Configurable Positions 78 Fox (LP3500) ...

Page 85

Table A-2 lists the configuration options. Table A-2. LP3500 Jumper Configurations Header Description A/D Converter Voltage/Current J3 Measurement Options JP1 RxE RS-232/Logic Level Select JP2 TxE RS-232/Logic Level Select JP3 RxC RS-232/Logic Level Select JP4 TxC RS-232/Logic Level Select JP5 ...

Page 86

Table A-2. LP3500 Jumper Configurations (continued) Header Description JP11 Manufacturing Use JP12 Manufacturing Use JP13 Manufacturing Use NOTE: The jumper connections on header J3 are made using standard slip-on jumpers. All other jumper connections except those across JP11 and JP12 ...

Page 87

A.4 Use of Rabbit 3000 Parallel Ports Figure A-6 shows the Rabbit 3000 parallel ports. Figure A-6. LP3500 Rabbit-Based Subsystems Table A-3 lists the Rabbit 3000 parallel ports and their use in the LP3500. Table A-3. Use of Rabbit 3000 ...

Page 88

Table A-3. Use of Rabbit 3000 Parallel Ports (continued) Port I/O PB3 Input PB4 Input PB5 Input PB6 Output PB7 Output PC0 Output PC1 Input PC2 Output PC3 Input PC4 Output PC5 Input PC6 Output PC7 Input PD0 Output PD1 ...

Page 89

Table A-3. Use of Rabbit 3000 Parallel Ports (continued) Port I/O PF0 Output PF1 Input PF2 Input PF3 Output PF4 Output PF5 Output PF6 Output PF7 Output PG0 Output PG1 Output PG2 Output PG3 Input PG4 Output PG5 Output PG6 ...

Page 90

Fox (LP3500) ...

Page 91

A PPENDIX Appendix B describes the features and accessories of the Proto- typing Board included with the LP3500 Tool Kit, and explains the use of the Prototyping Board to demonstrate the LP3500 and to build prototypes of your own circuits. ...

Page 92

B.1 Mechanical Dimensions and Layout Figure B-1 shows the mechanical dimensions and layout for the LP3500 Prototyping Board. Figure B-1. LP3500 Prototyping Board Dimensions Table B-1 lists the electrical, mechanical, and environmental specifications for the Proto- typing Board. Table B-1. ...

Page 93

B.2 Using the Prototyping Board B.2.1 Interface to LP3500 The Prototyping Board serves as a convenient interface for the LP3500, extending the IDC headers to convenient screw-terminal connectors, and provides interfaces to the AC adapter included with the Tool Kit ...

Page 94

B.2.2 Demonstration Board The Prototyping Board is actually both a demonstration board and a prototyping board demonstration board, it can be used to demonstrate the functionality of the LP3500 right out of the box without any modifications to ...

Page 95

A PPENDIX An optional LCD/keypad is available for the LP3500. Appendix C describes the LCD/keypad module and provides the software calls to make full use of the LCD/keypad module. C.1 Specifications Two optional LCD/keypad modules—with or without a panel-mounted NEMA ...

Page 96

Table C-1 lists the electrical, mechanical, and environmental specifications for the LCD/ keypad module. Table C-1. LCD/Keypad Specifications Parameter Board Size Bezel Size Temperature Humidity Power Consumption Connections LCD Panel Size Keypad LEDs * The backlight adds approximately 650 mW ...

Page 97

C.2 Contrast Adjustment 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 KDU3V LCD/ keypad module for use with the LP3500 ...

Page 98

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. To replace the keypad legend, remove the old legend and insert ...

Page 99

C.4 Header Pinouts Figure C-6 shows the pinouts for the LCD/keypad module. Figure C-6. LCD/Keypad Module Pinouts NOTE: Note that there are no connections from headers J2 and J3 of the LCD/keypad module to the LP3500. These headers interface to ...

Page 100

C.5 Bezel-Mount Installation This section describes and illustrates how to bezel-mount the LCD/keypad module. Follow these steps for bezel-mount installation. 1. Cut mounting holes in the mounting panel in accordance with the recommended dimen- sions in Figure C-7, then use ...

Page 101

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) longer than the thickness of the panel. Figure C-8. ...

Page 102

C.6 Connect the LCD/Keypad Module to Your LP3500 The LCD/keypad module can be located as far as 2 ft. (60 cm) away from the LP3500, and is connected via a ribbon cable as shown in Figure C-9. Figure C-9. Connecting ...

Page 103

C.7 LCD/Keypad Module Function Calls The LCD/keypad module is normally off. Add the to turn on the LCD/keypad buffers. brdInit brdInit(); devPowerSet(DISPDEV, 1); C.7.1 LEDs When power is applied to the LCD/keypad module for the first time, the red LED ...

Page 104

C.7.2 LCD Display The functions used to control the LCD display are contained in the DISPLAYS\GRAPHIC.LIB specified, x can range from 0 to 121, and y can range from 0 to 31. These numbers repre- sent pixels from the top ...

Page 105

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. void glFillScreen(char pattern); Fills the LCD display screen with a pattern. PARAMETER The ...

Page 106

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. ...

Page 107

... LCD display area will be clipped. PARAMETERS xc is the x coordinate of the center of the circle the y coordinate of the center of the circle. rad is the radius of the center of the circle (in pixels). RETURN VALUE None. SEE ALSO User’s Manual 101 ...

Page 108

Fox (LP3500) ...

Page 109

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. ...

Page 110

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 ...

Page 111

Gets the current glPrintf() 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, ...

Page 112

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', ...

Page 113

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 that you are using) void glSetBrushType(int type); Sets ...

Page 114

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. ...

Page 115

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 ...

Page 116

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 ...

Page 117

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 ...

Page 118

Draws bitmap in the specified space. The data for the bitmap are stored in xmem. This function is like glXPutBitmap, except that it is faster. The restriction is ...

Page 119

TextGotoXY(windowFrame *window, int col, int row); 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 PARAMETERS *window is a ...

Page 120

TextPutChar(struct windowFrame *window, char ch); 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 ...

Page 121

C.7.3 Keypad The functions used to control the keypad are contained in the Dynamic C Rabbit3000\DISPLAYS\ KEYPADS\KEYPAD7.LIB void keyInit(void); Initializes keypad process RETURN VALUE None. SEE ALSO brdInit void keyConfig(char cRaw, char cPress, char cRelease, char cCntHold, char cSpdLo, char ...

Page 122

How many times to repeat after low speed repeat None. RETURN VALUE None. SEE ALSO keyProcess, keyGet, keypadDef void keyProcess(void); Scans and processes ...

Page 123

Configures the physical layout of the keypad with the default ASCII return key codes. Keypad physical mapping ['L'] ['U'] ['–'] where 'D' represents Down Scroll 'U' represents Up Scroll 'R' represents Right ...

Page 124

C.8 Sample Programs Sample programs illustrating the use of the LCD/keypad module with the LP3500 board are provided in the SAMPLES\LP3500\Display_Keypad To run a sample program, open it with the using the menu, and then run it by selecting Compile ...

Page 125

A PPENDIX The plastic enclosure provides a secure way to protect your LP3500. The enclosure itself may be mounted on any flat sur- face. The complete plastic enclosure consists of a base and a cover. The base alone is a ...

Page 126

D.1 Assembly Instructions 1. Remove any stand-offs on the LP3500 board or LP3500 board/Prototyping Board com- bination to be enclosed. Figure D-1. Remove Stand-Offs from LP3500 Board 2. Attach the LP3500, the LP3500 Prototyping Board, or the board combination to ...

Page 127

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 will be most suitable to production versions of ...

Page 128

D.2 Dimensions Figure D-4 shows the dimensions for the plastic enclosure. Figure D-4. Plastic Enclosure Dimensions 122 Fox (LP3500) ...

Page 129

A PPENDIX Appendix E describes the power circuitry provided on the LP3500. The LP3500 can operate from an unregulated external power source, or from an external battery. There is onboard bat- tery backup for the SRAM and the real-time clock. ...

Page 130

The linear regulator maintains its output voltage to within ±5% as long as the linear regula- tor is dissipating less than 0.75 W. Thermal shutdown turns the regulator off when it over- heats. Figure E-1 shows the power operating curves ...

Page 131

Parallel Port PF7 on the Rabbit 3000 chip controls whether the linear regulator off. Parallel Port PB0 senses whether there is an output from the linear regulator, and shuts off the RS-232 (except RxE, which is used ...

Page 132

E.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 ...

Page 133

E.2.3 Reset Generator The LP3500 module uses a reset generator on the module, U11, to reset the Rabbit 3000 microprocessor when the voltage drops below the voltage necessary for reliable operation. The reset occurs between 2.55 V and 2.75 V, ...

Page 134

Fox (LP3500) ...

Page 135

A PPENDIX Appendix G goes through the steps of running a sample program with the LP3500 connected to the Prototyping Board. Sample programs are provided in the Dynamic C in the folder contain specific sample programs that illustrate the use ...

Page 136

A 0 Ω resistor on the Prototyping Board (R1) ties +K to VIN from the AC adapter and thus satisfies this requirement as long as the LP3500 is connected to ...

Page 137

A A/D converter ....................... 31 buffered inputs .................. 31 calibration constants ......... 32 differential measurements . 32 function calls anaIn .............................. 60 anaInCalib ..................... 61 anaInConfig ................... 56 anaInDriver ................... 58 anaInEERd .................... 66 anaInEEWr .................... 67 anaInmAmps ................. 64 ...

Page 138

... glDown1 ..................109 glFillCircle ...............103 glFillPolygon ...........101 glFillScreen ................99 glFillVPolygon ........101 glFontCharAddr .......104 glGetBrushType .......107 glGetPfStep ..............105 glHScroll ..................110 glInit ...........................98 glLeft1 .....................108 glPlotCircle ..............101 glPlotDot ..................107 glPlotLine ................108 glPlotPolygon ..........100 glPlotVPolygon .......100 glPrintf .....................106 glPutChar .................105 glPutFont .................104 glRight1 ...................108 glSetBrushType .......107 glSetContrast .............99 glSetPfStep ...

Page 139

LCD/keypad module . 45, 118 KEYBASIC.C ............... 92 PONG.C ............................ 15 power modes POWER.C ..................... 42 PWM outputs PWMOUT.C ................. 44 real-time clock RTC_TEST.C ................ 13 SETRTCKB.C .............. 13 relay output SWRELAY.C ................ 44 running a sample ...

Page 140

Fox (LP3500) ...

Page 141

LP3500 Schematic www.rabbit.com/documentation/schemat/090-0150.pdf 090-0151 LP3500 Prototyping Board Schematic www.rabbit.com/documentation/schemat/090-0151.pdf 090-0156 LCD/Keypad Module Schematic www.rabbit.com/documentation/schemat/090-0156.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 S CHEMATICS 137 ...

Page 142

...

Related keywords