User’s Manual
129
A
PPENDIX
G. R
UNNING
A
S
AMPLE
P
ROGRAM
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
Samples
folder. The various directories
in the
Samples
folder contain specific sample programs that illustrate the use of the cor-
responding Dynamic C libraries.
The
LP3500
folder provides sample programs specific to the LP3500. 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.
Let’s look at the sample program
DIGIN.C
in the
Samples/LP3500/IO
folder.
1. Connect the LP3500 to a PC using the programming cable as described in Section 2.1,
“LP3500 Connections,” and connect the AC adapter to header J5 on the Prototyping
Board.
Figure G-1. Programming Cable and Power Supply Connections
GND RxE TxE
GND RxC TxC GND RxB
TxB GND + 485 GND +K OUT9 OUT8 OUT7 OUT6 OUT5 OUT4 OUT3 OUT2 OUT1 OUT0
GND
VIN GND
VBAT
EXT
GND PWM2 PWM1 PWM0
GND AIN7
AIN6 AIN5
AIN4 AIN3
AIN2 AIN1
AIN0 GND
IN15 IN14 IN13 IN12 IN1
1 IN10 IN09 IN08 GND IN07 IN06 IN05 IN04 IN03
IN02 IN01 IN00 GND
J2
J21
J22
J23
J11
J12
J1
J13
J41
J42
J4
J43
J44
GND
VIN
J5
PROGRAM
PORT
PROG
S1
S2
S3
S4
RN1
DS4 DS3 DS2 DS1
D1
PWR
J5
R1
VIN
GND
VIN
GND
VIN
GND
VIN
GND
GND
VIN
J3
3 V VBAT
JP1
JP2
JP3
JP4
JP5
JP6
JP8
JP1
1
JP7
JP10
JP9
JP12
RP1
D3
RP2
D6
D12
D10
RP4
RP3
D16
D14
Q3
Q4
D23
D24
Q7
D27
Q9
RP10
D29
Q11
D31
Q15
RP12
RP11
Q21
Q19
Q18
PROGRAM
PORT
TP2
/RESET
RESET
S2
R14
C14
R15
C9
R5
R8
C27
R19
R21
R27
R24
C34
R28
C38
R35
C25
C31
C18
C28
C30
RP9
RP8
R59
C49
R52
R53
C63
R46
U2
815
07
IN
R10
R11
R12
R2
R3
R4
+K
GND
VCC
U6
U7
C42
C41
D9
C7
C5
C1
C4
C69
C68
C23
C17
DIAG
PROG
Colored edge
Programming
Cable
To
PC
COM
port
J5
Do
not
connect
AC adapter to
VBAT
terminal
X
IN0IN15
S1S4
Summary of Contents for Fox LP3500
Page 1: ...Fox LP3500 C Programmable Single Board Computer User s Manual 019 0111 041029 E ...
Page 6: ...Fox LP3500 ...
Page 14: ...8 Fox LP3500 ...
Page 22: ...16 Fox LP3500 ...
Page 86: ...80 Fox LP3500 ...
Page 120: ...114 Fox LP3500 ...
Page 130: ...124 Fox LP3500 ...
Page 134: ...128 Fox LP3500 ...
Page 138: ...132 Fox LP3500 ...
Page 142: ...136 Fox LP3500 ...
Page 144: ......