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
LED
[0.
.7]
VC
C
_
3
.3
V
LC
D
[0.
.10]
GSR
N
S
W
IT
CH
[0
..9
]
XP2
_
PR
O
G
R
A
M
N
XP2
_
D
O
N
E
XP2
_
IN
IT
N
Ti
tl
e
Siz
e
D
o
c
u
m
e
nt
N
u
m
b
er
Re
v
D
at
e:
Sheet
of
B
S
w
it
ch
e
s
, L
E
Ds,
L
C
D Disp
la
y
C
71
4
Ti
tl
e
Siz
e
D
o
c
u
m
e
nt
N
u
m
b
er
R
ev
D
at
e:
Sheet
of
B
S
w
it
ch
e
s
, L
E
Ds,
L
C
D Disp
la
y
C
71
4
Ti
tl
e
Siz
e
D
o
c
u
m
e
nt
N
u
m
b
er
R
ev
D
at
e:
Sheet
of
B
S
w
it
ch
e
s
, L
E
Ds,
L
C
D Disp
la
y
C
71
4
LUMEX or Equiv. use pins 3-18
OPTREX 51505 or Equiv. use pins 1-16
Backlight
Adjustment
Contrast
Adjustment
LCD Connector
Lattice Semiconductor Corporation
[13]
[5]
7 Segment Display
A(Pin 1)
D(Pin 8)
F(Pin 2)
B(Pin 13)
E(Pin 7)
C(Pin 10)
G(Pin 11)
(AA16)
(U13)
(AA14)
(V13)
(T15)
(T14)
(AA15)
(AA17)
DP(Pin 9)
LED(U12)
LED(V12)
LED(AB19)
LED(AB18)
[5]
LED(AA13)
LED(AB16)
LED(AB17)
LED(Y14)
[12]
Source
Drain
On when INITN low
On when DONE high
On when PROGRAMN low
[4]
PROGRAM
DONE
INIT
Gate
Source
Drain
SOT-23
Gate
[8]
1
(W15)
2
(U16)
3
(T16)
4
(Y15)
5
(Y16)
6
(Y18)
7
(Y17)
8
(W18)
(E12)
GSRN
PROGRAMN
ON
PB2
PB1
PB3
[2]
[2]
[2]
[5]
[5]
(U7)
(W17)
(W18)
TP
1
0
9
TP
1
0
9
D1
9
LED
0603 Green
D1
9
LED
0603 Green
TP
1
0
7
TP
1
0
7
R2
8
6
4
7
0
R2
8
6
4
7
0
R3
0
3
10K
R3
0
3
10K
D2
0
LED
0603 Green
D2
0
LED
0603 Green
SW
6
SW
P
U
SH
BU
T
T
ON
P
anas
onic
EV
QP
2H
02B
SW
6
SW
P
U
SH
BU
T
T
ON
P
anas
onic
EV
QP
2H
02B
Debouncer
U1
8
M
C
14490
Debouncer
U1
8
M
C
14490
Ai
n
1
Ao
ut
15
Bi
n
14
Ci
n
3
Di
n
12
Ei
n
5
Fi
n
10
Bo
ut
2
Co
u
t
13
Do
u
t
4
Eo
ut
11
Fo
u
t
6
OSC
in
7
OSC
o
ut
9
VD
D
16
GN
D
8
R2
4
8
10K
R2
4
8
10K
VR
4
100 P
O
T
M
urat
a P
V
36Y101C
01
PV3
7
W
VR
4
100 P
O
T
M
urat
a P
V
36Y101C
01
PV3
7
W
1
3
2
R3
0
2
10K
R3
0
2
10K
Q10
BSS138LT
1
SOT
-23
Q10
BSS138LT
1
SOT
-23
R2
4
7
10K
R2
4
7
10K
D2
1
LED
0603 Green
D2
1
LED
0603 Green
R2
4
6
10K
R2
4
6
10K
R3
0
1
10K
R3
0
1
10K
SW
5
SW
P
U
SH
BU
T
T
ON
P
anas
onic
EV
QP
2H
02B
SW
5
SW
P
U
SH
BU
T
T
ON
P
anas
onic
EV
QP
2H
02B
D2
8
LED
0603 Green
D2
8
LED
0603 Green
D1
8
LED
0603 Green
D1
8
LED
0603 Green
J5
5
LC
D
_C
onnec
tor
J5
5
LC
D
_C
onnec
tor
AN
OD
E
1
CA
T
HO
DE
2
VSS
3
RS
6
VO
5
VD
D
4
R/W
7
E
8
DB
0
9
DB
1
10
DB
2
11
DB
3
12
DB
4
13
DB
5
14
DB
6
15
DB
7
16
AN
OD
E
17
CA
T
HO
DE
18
SW
7
SW
P
U
SH
BU
T
T
ON
P
anas
onic
EV
QP
2H
02B
SW
7
SW
P
U
SH
BU
T
T
ON
P
anas
onic
EV
QP
2H
02B
R2
8
5
2
2
0
R2
8
5
2
2
0
R3
0
0
10K
R3
0
0
10K
D2
2
LED
0603 Green
D2
2
LED
0603 Green
D1
7
LED
0603 Green
D1
7
LED
0603 Green
U2
0
Sev
e
n Segm
e
nt
D
is
p
lay
F
a
irc
h
ild M
A
N
4
710A
738m
ilX
386m
il
U2
0
Sev
e
n Segm
e
nt
D
is
p
lay
F
a
irc
h
ild M
A
N
4
710A
738m
ilX
386m
il
ca
th
o
d
e
A
1
c
at
h
od
e F
2
a
nno
de
1
3
NC1
4
NC2
5
NC3
6
ca
th
o
d
e
E
7
c
at
h
od
e D
8
ca
th
o
d
e
DP
9
c
at
h
od
e C
10
ca
th
o
d
e
G
11
NC4
12
ca
th
o
d
e
B
13
a
nno
de
2
14
R2
4
5
10K
R2
4
5
10K
Debouncer
U1
5
M
C
14490
Debouncer
U1
5
M
C
14490
Ai
n
1
Ao
ut
15
Bi
n
14
Ci
n
3
Di
n
12
Ei
n
5
Fi
n
10
Bo
ut
2
Co
u
t
13
Do
u
t
4
Eo
ut
11
Fo
u
t
6
OSC
in
7
OSC
o
ut
9
VD
D
16
GN
D
8
C2
1
4
0.
01uF
0402
C2
1
4
0.
01uF
0402
R2
8
9
4
7
0
0402
R2
8
9
4
7
0
0402
R2
9
2
4
7
0
R2
9
2
4
7
0
D2
4
LED
0603 Green
D2
4
LED
0603 Green
R2
9
9
10K
R2
9
9
10K
R2
9
8
4
7
0
0402
R2
9
8
4
7
0
0402
R2
7
8
2
2
0
R2
7
8
2
2
0
D2
5
LED
0603 Green
D2
5
LED
0603 Green
R2
9
7
4
7
0
0402
R2
9
7
4
7
0
0402
TP
1
0
8
TP
1
0
8
R2
9
3
4
7
0
R2
9
3
4
7
0
VR
5
20K P
O
T
M
urat
a P
V
36Y203C
01
PV3
7
W
VR
5
20K P
O
T
M
urat
a P
V
36Y203C
01
PV3
7
W
1
3
2
R2
8
2
2
2
0
R2
8
2
2
2
0
R2
7
5
2
2
0
R2
7
5
2
2
0
R2
9
6
4
7
0
0402
R2
9
6
4
7
0
0402
SW
8
SW
D
IP
-8 C
T
S 194-8M
ST
SW
8
SW
D
IP
-8 C
T
S 194-8M
ST
1
2
3
4
5
6
7
8
16
15
14
13
12
11
10
9
R2
8
3
2
2
0
R2
8
3
2
2
0
D2
7
LED
0603 Yellow
D2
7
LED
0603 Yellow
R2
7
6
2
2
0
R2
7
6
2
2
0
R3
0
6
10K
R3
0
6
10K
R2
8
4
2
2
0
R2
8
4
2
2
0
C5
7
0.
1uF
0402
C5
7
0.
1uF
0402
R2
9
5
4
7
0
0402
R2
9
5
4
7
0
0402
R2
8
7
4
7
0
0402
R2
8
7
4
7
0
0402
R2
7
7
2
2
0
R2
7
7
2
2
0
R3
0
5
10K
R3
0
5
10K
SW
10
SW
P
U
SH
BU
T
T
ON
P
anas
onic
EV
QP
2H
02B
SW
10
SW
P
U
SH
BU
T
T
ON
P
anas
onic
EV
QP
2H
02B
C2
1
9
0.
01uF
0402
C2
1
9
0.
01uF
0402
D2
9
LED
0603 R
ed
D2
9
LED
0603 R
ed
R2
9
4
4
7
0
0402
R2
9
4
4
7
0
0402
SW
4
SW
P
U
SH
BU
T
T
ON
P
anas
onic
EV
QP
2H
02B
SW
4
SW
P
U
SH
BU
T
T
ON
P
anas
onic
EV
QP
2H
02B
R3
0
4
10K
R3
0
4
10K
R2
8
8
4
7
0
0402
R2
8
8
4
7
0
0402
Switches, LEDs, LCD Display