1
1
2
2
3
3
4
4
5
5
6
6
7
7
8
8
D D
C C
B B
A A
Title
Number RevisionSize
A3
Date: 2021/8/16 Sheet of
File: E:\电路城(51单片机)\售货机\原理图\Sheet1.SchDocDrawn By:
P1.0
1
P1.1
2
P1.2
3
P1.3
4
P1.4
5
P1.5
6
P1.6
7
P1.7
8
RST
9
P3.0/RXD
10
P3.1/TXD
11
P3.2/INT0
12
P3.3/INT1
13
P3.4/T0
14
P3.5/T1
15
P3.6/WR
16
P3.7/RD
17
XTAL2
18
XTAL1
19
GND
20
P2.0
21
P2.1
22
P2.2
23
P2.3
24
P2.4
25
P2.5
26
P2.6
27
P2.7
28
PSEN
29
ALE/PROG
30
EA
31
P0.7
32
P0.6
33
P0.5
34
P0.4
35
P0.3
36
P0.2
37
P0.1
38
P0.0
39
VCC
40
U?
80511 2
Y1
XTAL
30pF
C2
Cap
10uF
C1
Cap Pol1
30pF
C3
Cap
10K
R1
Res2
GND
VCC
15
A
14
D7
13
D6
12
D5
11
D4
10
D3
9
D2
8
D1
7
D0
6
E
5
RW
4
RS
3
V0
2
VCC
1
GND
16
K
LCD1602
LCD1
1
2
3
4
5
6
7
8
9
RP1
RESP
S1
SW-PB
Q1
PNP
LS1
Speaker
GND
VCC
GND
10K
R3
Res2
S2
SW-PB
S3
SW-PB
S4
SW-PB
S5
SW-PB
S6
SW-PB
S7
SW-PB
S8
SW-PB
S9
SW-PB
S10
SW-PB
S11
SW-PB
S12
SW-PB
S13
SW-PB
S14
SW-PB
S15
SW-PB
S16
SW-PB
S17
SW-PB
P10
P11
P12
P13
P14
P15
P16
P17
P30
P31
P32
P33
P34
P35
P36
P37
P10
P11
P12
P13
P14
P15
P16
P17
Vin Vout
GND
7805
Volt Reg
0.1uF
C5
Cap
100uF
C4
Cap Pol1
0.1uF
C7
Cap
100uF
C6
Cap Pol1
1
2
P1
电源接口
GND
VCC
1K
R2
RPot
VCC
P37
S18
SW-PB
S19
SW-PB
S20
SW-PB
S21
SW-PB
GND
P26
P25
P24
P23
P26
P25
P24
P23
Q2
PNP
VCC
GND
10K
R5
Res2
P36
1
2
3
4
5
K1
Relay
D1
LED0
1K
R4
Res2
Q3
PNP
VCC
GND
10K
R6
Res2
P33
1
2
3
4
5
K2
Relay
D2
LED0
1K
R9
Res2
Q4
PNP
VCC
GND
10K
R7
Res2
P234
1
2
3
4
5
K3
Relay
D3
LED0
1K
R10
Res2
Q5
PNP
VCC
GND
10K
R8
Res2
P35
1
2
3
4
5
K4
Relay
D4
LED0
1K
R11
Res2