Fox (LP3500)
C-Programmable Single-Board Computer
User’s Manual
019–0111 •
081121–L
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 means
without the express written permission of Digi International.
Permission is granted to make one or more copies as long as the copyright page contained therein is
included. These copies of the manuals may not be let or sold for any reason without the express written
permission of Digi International.
Digi International reserves the right to make changes and
improvements to its products without providing notice.
Trademarks
Rabbit and Dynamic C are registered trademarks of Digi International Inc.
Rabbit 2000 and RabbitCore are trademarks of Digi International Inc.
The latest revision of this manual is available on the Rabbit Web site,
www.rabbit.com,
for free, unregistered download.
Digi International Inc.
www.rabbit.com
Fox (LP3500)
T
ABLE OF
C
ONTENTS
Chapter 1. Introduction
1
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 Devices .....................................................................................7
Chapter 2. Getting Started
2.1
2.2
2.3
2.4
2.5
2.6
9
LP3500 Connections.............................................................................................................................9
Remove Battery Tab ...........................................................................................................................13
Installing Dynamic C ..........................................................................................................................14
Starting Dynamic C ............................................................................................................................14
PONG.C ..............................................................................................................................................15
Where Do I Go From Here? ...............................................................................................................15
Chapter 3. Subsystems
17
3.1 LP3500 Pinouts...................................................................................................................................18
3.1.1 Headers and Screw Terminals.....................................................................................................18
3.2 Power Modes ......................................................................................................................................19
3.2.1 Setting the Power-Save Mode.....................................................................................................20
3.2.2 Operating in the Power-Save Mode ............................................................................................21
3.2.3 Resuming Normal-Power or Low-Power Operation ..................................................................21
3.3 Digital I/O ...........................................................................................................................................22
3.3.1 Digital Inputs...............................................................................................................................22
3.3.2 Digital Outputs............................................................................................................................23
3.4 Serial Communication ........................................................................................................................25
3.4.1 RS-232 ........................................................................................................................................26
3.4.2 RS-485 ........................................................................................................................................26
3.4.3 Serial Interface Port ....................................................................................................................28
3.4.4 Programming Port .......................................................................................................................28
3.5 Display Interface.................................................................................................................................30
3.6 A/D Converter Inputs (LP3500 only) .................................................................................................31
3.7 PWM Outputs .....................................................................................................................................33
3.8 Relay Output Circuit (LP3500 only) ..................................................................................................34
3.9 Serial Programming Cable..................................................................................................................35
3.9.1 Changing Between Program Mode and Run Mode ....................................................................35
3.9.2 Standalone Operation of the LP3500 ..........................................................................................36
3.10 Other Hardware.................................................................................................................................36
3.10.1 Spectrum Spreader ....................................................................................................................36
3.11 Memory.............................................................................................................................................37
3.11.1 SRAM .......................................................................................................................................37
3.11.2 Flash Memory ...........................................................................................................................37
User’s Manual
Chapter 4. Software
39
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 ................................................................................................................. 43
4.2.5 PWM Outputs............................................................................................................................. 44
4.2.6 Relay Output............................................................................................................................... 44
4.2.7 Vcc Monitoring .......................................................................................................................... 44
4.2.8 LP3500 Calibration .................................................................................................................... 44
4.2.9 LCD/Keypad Module Sample Programs.................................................................................... 45
4.3 LP3500 Libraries................................................................................................................................ 46
4.4 LP3500 Function Calls....................................................................................................................... 47
4.4.1 LP3500 Power Modes ................................................................................................................ 47
4.4.2 Board Initialization ..................................................................................................................... 51
4.4.3 Digital I/O................................................................................................................................... 52
4.4.4 Serial Communication ................................................................................................................ 54
4.4.5 A/D Converter Inputs ................................................................................................................. 56
4.4.6 Vcc Monitoring (LP3500 only) .................................................................................................. 68
4.4.7 PWM Outputs............................................................................................................................. 69
4.5 Relay Output (LP3500 only) .............................................................................................................. 70
Appendix A. LP3500 Specifications
71
A.1 Electrical and Mechanical Characteristics ........................................................................................ 72
A.1.1 Exclusion Zone .......................................................................................................................... 75
A.1.2 Headers ...................................................................................................................................... 76
A.2 Conformal Coating ............................................................................................................................ 77
A.3 Jumper Configurations ...................................................................................................................... 78
A.4 Use of Rabbit 3000 Parallel Ports ..................................................................................................... 81
Appendix B. Prototyping Board
85
B.1 Mechanical Dimensions and Layout ................................................................................................. 86
B.2 Using the Prototyping Board ............................................................................................................. 87
B.2.1 Interface to LP3500 ................................................................................................................... 87
B.2.2 Demonstration Board................................................................................................................. 88
B.2.3 Prototyping Area........................................................................................................................ 88
Appendix C. LCD/Keypad Module
89
C.1 Specifications..................................................................................................................................... 89
C.2 Contrast Adjustment .......................................................................................................................... 91
C.3 Keypad Labeling................................................................................................................................ 92
C.4 Header Pinouts................................................................................................................................... 93
C.4.1 I/O Address Assignments .......................................................................................................... 93
C.5 Bezel-Mount Installation ................................................................................................................... 94
C.6 Connect the LCD/Keypad Module to Your LP3500 ......................................................................... 96
C.7 LCD/Keypad Module Function Calls................................................................................................ 97
C.7.1 LEDs .......................................................................................................................................... 97
C.7.2 LCD Display .............................................................................................................................. 98
C.7.3 Keypad ..................................................................................................................................... 115
C.8 Sample Programs............................................................................................................................. 118
Appendix D. Plastic Enclosure
119
D.1 Assembly Instructions ..................................................................................................................... 120
D.2 Dimensions...................................................................................................................................... 122
Fox (LP3500)
Appendix E. Power Management
123
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 Program
Index
Schematics
129
131
135
User’s Manual