2024年4月24日发(作者:喻锦)
12345678
JP17
R1
P00
P01
P02
P03
A
P04
P05
P06
P07
1
3
5
7
1
3
5
7
R2330
2
4
6
8
U10
2
4
6
1
2
3
4
DINVCC
SCLKOUT
DSREF
DOUTGND
TLC5616
85V
7
6
5
JP18
1
2
JP19
1
2
A
共阳数码管模块
330
2
4
6
8
11DS1
DS27
DS34
DS4
2
DS5
1
DS6
10
5
3
DS7
DS8
DS1
a
ba
c
f
dg
e
e
fd
g
dpcom
1
2
a
b
c
dp
com
9
f
e
d
g
b
c
dp
com
8
f
e
d
a
g
b
c
dp
com
6
f
e
d
a
g
b
c
dp
DS111
DS27
DS34
DS4
2
DS5
1
DS6
10
DS7
5
DS8
3
DS2
a
ba
c
f
dg
e
e
fd
g
dpcom
1
2
a
b
c
dp
com
9
f
e
d
g
b
c
dp
com
8
f
e
d
a
g
b
c
dp
com
6
f
e
d
a
g
b
c
dp
JP1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Header 14
AVR RST1
2
3
4
5
6
5V7
8
9
10
11
12
13
14
AMEG8模块
U2
JP2
(RESET) PC6(ADC5/SCL) PC5
PD0 (RXD)(ADC4/SDA) PC4
PD1 (TXD)(ADC3) PC3
PD2 (INT0)(ADC2) PC2
PD3 (INT1)(ADC1) PC1
PD4 (XCK/T0)(ADC0) PC0
VCCGND
GNDAREF
PB6 (XTAL1/TOSC1)AVCC
PB7 (XTAL2/TOSC2)PB5 (SCK)
PD5 (T1)PB4 (MISO)
PD6 (AIN0)PB3 (MOSI/OC2)
PD7 (AIN1)PB2 (SS/OC1B)
PB0 (ICP)PB1 (OC1A)
28
27
26
25
24
23
22
21
20
19
18
17
16
15
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Header 14
ATMEGA8
P15
P16
P14
1
3
5
数据跳针
DA模块
5V
R6
5V
1
2
3
4
5
6
7
8
9
P009
P0114
P028
P03
12
P04
1
P05
7
P06
2
P07
5
LED1
LED-INT64
Q1
S20
1
2
5V
SW DIP-2
P27
P26
P25
P24
1
3
5
7
4.7K
4LCDSW
3
9015
R3
2
4
6
8
9015
Q2
9015
Q3
9015
Q4
9015
R4
P23
P22
P21
P20
1
3
5
7
4.7K
2
4
6
8
Q5
9015
Q6
9015
Q7
9015
Q8
JP3
AVR RST
1
3
5
7
9
2
4
6
8
10
5V
1K
Header 5X2
单色点阵模块
R7
1K
987654321
5V
B
热敏
NTC
B
1
RG
2
5V
R8
U3
10K
1
2
R10
SW1
10K
R20
1K
SEL1
10K
R11
C13
0.1
10K
R12
2
P137
2
3
4
CLK
CH0
CH1
GND
VCC
DI
DO
CS
8
5P15
6P14
1P16
P11
P10
JP4
1
2
Header 2
4
5V
U5
1
2
3
6
7
E0
E1
E2
SCL
WC
GND
M24C02BN6
VCC
SDA
8
V
S
S
V
D
D
V
0
R
S
R
/
W
E
D
B
0
D
B
1
D
B
2
D
B
3
D
B
4
D
B
5
D
B
6
D
B
7
P
S
B
N
C
/
R
E
T
N
C
L
E
D
_
A
L
E
D
_
B
W3
LCDSW
Jumper
DS11
P32
P33
R9
470
5
P12
123
U4
Jumper
5VLCD12864IR1308
5V
W2
LED灯模块
ADC0832CCN
外部电压测试
5V
EEPROM
LCD1602
18B20
5V
2
RST
S1S5
S9S13
R21
10K
+
V
S
S
V
C
C
V
0
R
S
R
/
W
E
D
B
0
D
B
1
D
B
2
D
B
3
D
B
4
D
B
5
D
B
6
D
B
7
B
L
A
B
L
K
C1
Cap
0.1
C3
Cap
0.1
P31
1
3
4
5
11
10
12
C1+
C1-
C2+
C2-
VCC
V+
16
2
C2
Cap
0.1
亮度调节
321
U6
5V
RS232
1
6
2
7
3
8
4
9
5
C6
Cap
0.1
0.1
1K
555应用模块
U7
4
6
5
2
1
R23
C4
0.1
C5
RST
THR
CVOLT
TRIG
GND
LM555J
R17
R18
68K
10K
VCC
DISC
OUT
8
7
3
12
R14
1K
JP5
P
2
4
P
2
5
P
2
6
P
0
0
P
0
1
P
0
2
P
0
3
P
0
4
P
0
5
P
0
6
P
0
7
P
2
1
P
2
2
P
2
3
光敏
DS3DS4DS5DS6DS7DS8DS9DS10
WHWHGREGREYELYELREDRED
P17P16P15P14P13P12P11P10
1
123456789
1
0
1
1
1
2
1
3
1
4
1
5
1
6
1
7
1
8
1
9
2
0
红外模块
+
5V
P17
R15
4.7K
S17
C10
R13
10K
+
C11
S3S7S11S15
P30
P31
P32
P33
P34
P35
P36
P37
S2S6S10S14
14
7
13
8
GND
MAX3232CPE
V-
6
P
2
4
P
2
5
P
2
6
P
0
0
P
0
1
P
0
2
P
0
3
P
0
4
P
0
5
P
0
6
P
0
7
123456789
1
0
1
1
1
2
1
3
1
4
1
5
1
6
R16
10K
亮度调节
C
P30
9
15
R22
10K
液晶屏模块
1
SW25V
S18
温度传感器
S4S8S12
1
3
341
0
61
1
1
5
1
6
S16
P
2
0
P
2
1
P
2
2
P
2
3
P
2
4
P
2
5
P
2
6
P
2
7
C
高低电平复位
2
1
SEL2
串口通讯
万能排座
步进马达模拟
JP9
P10
P11
P12
P13
P12
P12
P12
12
34
56
78
910
1112
1314
Header 7X2
1
2
3
4
5
6
7
8
IN1
IN2
IN3
IN4
IN5
IN6
IN7
U9
JP15
D
J3
5V5
1
2
3
6
K1
1
3
4
2
JP16
1
2
3
4
5
6
P31
1
2
DC MOTO
P32
5V
out2
out2
out3
out4
out5
out6
out7
16
15
14
13
12
11
10
a
b
c
d
R5
LS1
Speaker
1
3
5
7
330
2
4
6
8
DS13
d
c
DS15
JP12
5V
JP13
1
2
3
4
5
a
b
c
d
1
2
3
4
5
6
7
a
b
DS12
DS14
JP8
P10
1
P11
2
P12
3
P13
4
P14
5
P15
6
P16
7
P17
8
RST
9
P30
10
P31
11
P32
12
P33
13
P34
14
P35
15
P36
16
P37
17
XTAL2
18
XTAL1
19
20
Header 20
U1
P10
P11
P12
P13
P14
P15
P16
P17
1
2
3
4
5
6
7
8
P1.0(T2)
P1.1(T2EX)
P1.2
P1.3
P1.4
P1.5
P1.6
P1.7
RST
P3.0(RXD)
P3.1(TXD)
P3.2(INT0)
P3.3(INT1)
P3.4(T0)
P3.5(T1)
P3.6(WR)
P3.7(RD)
XTAL2
XTAL1
GND
VCC
(AD0)P0.0
(AD1)P0.1
(AD2)P0.2
(AD3)P0.3
(AD4)P0.4
(AD5)P0.5
(AD6)P0.6
(AD7)P0.7
(A8)P2.0
(A9)P2.1
(A10)P2.2
(A11)P2.3
(A12)P2.4
(A13)P2.5
(A14)P2.6
(A15)P2.7
EA/VPP
ALE/PROG
PSEN
40
39
38
37
36
35
34
33
32
21
22
23
24
25
26
27
28
31
30
29
P00
P01
P02
P03
P04
P05
P06
P07
P20
P21
P22
P23
P24
P25
P26
P27
EA
ALE
PSEN
5V
JP7
1
2
3
4
XTAL1
JP11
P15
RST
1
3
5
7
9
1
P00
2
P01
3
P02
4
P03
5
P04
6
P05
7
P06
8
P07
9
EA
10
ALE
11
PSEN
12
P27
13
P26
14
P25
15
P24
16
P23
17
P22
18
P21
19
P20
20
Header 20
EA
W4
5V
30
5V
JP6
U8
2
1
8
7P36
6
P34
5P35
vccvcc1
x1SLCK
x2IO
GNDRST
DS1302
JP10
2
1
电源开关
1
S19
2
4
3
2
1
3
+
SW-SPDT
F1
Fuse
JP14
1
2
3
GND
C12
C7
0.1
G
N
D
D
+
D
-
RST
9
P30
10
P31
11
P32
12
P33
13
P34
14
P35
15
P36
16
P37
17
XTAL2
18
XTAL1
19
20
DS1302模块
2
4
6
8
10
P16
P17
5V
外供电端
J2
J1
1
2
3
VCC
5V
R19
390GNDvcc
9
5V
跳针选择
USB
+
AT89S-ISP
X1
XTAL1
C8
0~24M
51 ISP
XTAL2
USB供电
DS16
D
SETP MOTO1SETP MOTO2
Title
C9
30
Size
A3
Date:
File:
2009-5-31Sheet of
Drawn By:
E:
拼板图
C51
开发板
C51
开发板
.SCHDOC
78
NumberRevision
继电器输出
1
马达输出端口
晶振插座
62345
深圳精创电子
淘宝店铺/
单片机开发板使用说明书
免责声明.......................................................................................................
前言...............................................................................................................6
使用前准备...................................................................................................6
1 开发板安装和连接..............................................................................................................................6
1.1 供电线和下载线连接....................................................................................................................7
1.1.1 AT89S5X 芯片..................................................................................................................7
1.1.2 STC89C5X 芯片..............................................................................................................7
1.1.3 Atmega16 芯片............................................................................................................7
1.1.4 Atmega8 芯片...................................................................................................................7
2 芯片安装与拔插..................................................................................................................................8
2.1 芯片安装和更换...........................................................................................................................8
3 程序烧写与运行................................................................................................................................ 9
4 下载软件说明................................................................................................................................ 13
功能分类..................................................................................................... 17
第1 章LED 流水灯........................................................................................................................... 17
1.1 硬件连接..................................................................................................................................... 17
1.2 软件操作..................................................................................................................................... 18
1.2.1 汇编部分程序.......................................................................................................................................18
1.2.2 C 语言程序...........................................................................................................................................18
第2 章数码管.................................................................................................................................... 19
2.1 硬件连接..................................................................................................................................... 19
2.2 软件操作..................................................................................................................................... 20
2.3 注意事项..................................................................................................................................... 21
第3 章独立按键................................................................................................................................ 21
3.1 硬件连接..................................................................................................................................... 21
3.2 软件操作..................................................................................................................................... 21
3.3 注意事项..................................................................................................................................... 22
第4 章矩阵键盘................................................................................................................................ 22
4.1 硬件连接..................................................................................................................................... 22
1
2024年4月24日发(作者:喻锦)
12345678
JP17
R1
P00
P01
P02
P03
A
P04
P05
P06
P07
1
3
5
7
1
3
5
7
R2330
2
4
6
8
U10
2
4
6
1
2
3
4
DINVCC
SCLKOUT
DSREF
DOUTGND
TLC5616
85V
7
6
5
JP18
1
2
JP19
1
2
A
共阳数码管模块
330
2
4
6
8
11DS1
DS27
DS34
DS4
2
DS5
1
DS6
10
5
3
DS7
DS8
DS1
a
ba
c
f
dg
e
e
fd
g
dpcom
1
2
a
b
c
dp
com
9
f
e
d
g
b
c
dp
com
8
f
e
d
a
g
b
c
dp
com
6
f
e
d
a
g
b
c
dp
DS111
DS27
DS34
DS4
2
DS5
1
DS6
10
DS7
5
DS8
3
DS2
a
ba
c
f
dg
e
e
fd
g
dpcom
1
2
a
b
c
dp
com
9
f
e
d
g
b
c
dp
com
8
f
e
d
a
g
b
c
dp
com
6
f
e
d
a
g
b
c
dp
JP1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Header 14
AVR RST1
2
3
4
5
6
5V7
8
9
10
11
12
13
14
AMEG8模块
U2
JP2
(RESET) PC6(ADC5/SCL) PC5
PD0 (RXD)(ADC4/SDA) PC4
PD1 (TXD)(ADC3) PC3
PD2 (INT0)(ADC2) PC2
PD3 (INT1)(ADC1) PC1
PD4 (XCK/T0)(ADC0) PC0
VCCGND
GNDAREF
PB6 (XTAL1/TOSC1)AVCC
PB7 (XTAL2/TOSC2)PB5 (SCK)
PD5 (T1)PB4 (MISO)
PD6 (AIN0)PB3 (MOSI/OC2)
PD7 (AIN1)PB2 (SS/OC1B)
PB0 (ICP)PB1 (OC1A)
28
27
26
25
24
23
22
21
20
19
18
17
16
15
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Header 14
ATMEGA8
P15
P16
P14
1
3
5
数据跳针
DA模块
5V
R6
5V
1
2
3
4
5
6
7
8
9
P009
P0114
P028
P03
12
P04
1
P05
7
P06
2
P07
5
LED1
LED-INT64
Q1
S20
1
2
5V
SW DIP-2
P27
P26
P25
P24
1
3
5
7
4.7K
4LCDSW
3
9015
R3
2
4
6
8
9015
Q2
9015
Q3
9015
Q4
9015
R4
P23
P22
P21
P20
1
3
5
7
4.7K
2
4
6
8
Q5
9015
Q6
9015
Q7
9015
Q8
JP3
AVR RST
1
3
5
7
9
2
4
6
8
10
5V
1K
Header 5X2
单色点阵模块
R7
1K
987654321
5V
B
热敏
NTC
B
1
RG
2
5V
R8
U3
10K
1
2
R10
SW1
10K
R20
1K
SEL1
10K
R11
C13
0.1
10K
R12
2
P137
2
3
4
CLK
CH0
CH1
GND
VCC
DI
DO
CS
8
5P15
6P14
1P16
P11
P10
JP4
1
2
Header 2
4
5V
U5
1
2
3
6
7
E0
E1
E2
SCL
WC
GND
M24C02BN6
VCC
SDA
8
V
S
S
V
D
D
V
0
R
S
R
/
W
E
D
B
0
D
B
1
D
B
2
D
B
3
D
B
4
D
B
5
D
B
6
D
B
7
P
S
B
N
C
/
R
E
T
N
C
L
E
D
_
A
L
E
D
_
B
W3
LCDSW
Jumper
DS11
P32
P33
R9
470
5
P12
123
U4
Jumper
5VLCD12864IR1308
5V
W2
LED灯模块
ADC0832CCN
外部电压测试
5V
EEPROM
LCD1602
18B20
5V
2
RST
S1S5
S9S13
R21
10K
+
V
S
S
V
C
C
V
0
R
S
R
/
W
E
D
B
0
D
B
1
D
B
2
D
B
3
D
B
4
D
B
5
D
B
6
D
B
7
B
L
A
B
L
K
C1
Cap
0.1
C3
Cap
0.1
P31
1
3
4
5
11
10
12
C1+
C1-
C2+
C2-
VCC
V+
16
2
C2
Cap
0.1
亮度调节
321
U6
5V
RS232
1
6
2
7
3
8
4
9
5
C6
Cap
0.1
0.1
1K
555应用模块
U7
4
6
5
2
1
R23
C4
0.1
C5
RST
THR
CVOLT
TRIG
GND
LM555J
R17
R18
68K
10K
VCC
DISC
OUT
8
7
3
12
R14
1K
JP5
P
2
4
P
2
5
P
2
6
P
0
0
P
0
1
P
0
2
P
0
3
P
0
4
P
0
5
P
0
6
P
0
7
P
2
1
P
2
2
P
2
3
光敏
DS3DS4DS5DS6DS7DS8DS9DS10
WHWHGREGREYELYELREDRED
P17P16P15P14P13P12P11P10
1
123456789
1
0
1
1
1
2
1
3
1
4
1
5
1
6
1
7
1
8
1
9
2
0
红外模块
+
5V
P17
R15
4.7K
S17
C10
R13
10K
+
C11
S3S7S11S15
P30
P31
P32
P33
P34
P35
P36
P37
S2S6S10S14
14
7
13
8
GND
MAX3232CPE
V-
6
P
2
4
P
2
5
P
2
6
P
0
0
P
0
1
P
0
2
P
0
3
P
0
4
P
0
5
P
0
6
P
0
7
123456789
1
0
1
1
1
2
1
3
1
4
1
5
1
6
R16
10K
亮度调节
C
P30
9
15
R22
10K
液晶屏模块
1
SW25V
S18
温度传感器
S4S8S12
1
3
341
0
61
1
1
5
1
6
S16
P
2
0
P
2
1
P
2
2
P
2
3
P
2
4
P
2
5
P
2
6
P
2
7
C
高低电平复位
2
1
SEL2
串口通讯
万能排座
步进马达模拟
JP9
P10
P11
P12
P13
P12
P12
P12
12
34
56
78
910
1112
1314
Header 7X2
1
2
3
4
5
6
7
8
IN1
IN2
IN3
IN4
IN5
IN6
IN7
U9
JP15
D
J3
5V5
1
2
3
6
K1
1
3
4
2
JP16
1
2
3
4
5
6
P31
1
2
DC MOTO
P32
5V
out2
out2
out3
out4
out5
out6
out7
16
15
14
13
12
11
10
a
b
c
d
R5
LS1
Speaker
1
3
5
7
330
2
4
6
8
DS13
d
c
DS15
JP12
5V
JP13
1
2
3
4
5
a
b
c
d
1
2
3
4
5
6
7
a
b
DS12
DS14
JP8
P10
1
P11
2
P12
3
P13
4
P14
5
P15
6
P16
7
P17
8
RST
9
P30
10
P31
11
P32
12
P33
13
P34
14
P35
15
P36
16
P37
17
XTAL2
18
XTAL1
19
20
Header 20
U1
P10
P11
P12
P13
P14
P15
P16
P17
1
2
3
4
5
6
7
8
P1.0(T2)
P1.1(T2EX)
P1.2
P1.3
P1.4
P1.5
P1.6
P1.7
RST
P3.0(RXD)
P3.1(TXD)
P3.2(INT0)
P3.3(INT1)
P3.4(T0)
P3.5(T1)
P3.6(WR)
P3.7(RD)
XTAL2
XTAL1
GND
VCC
(AD0)P0.0
(AD1)P0.1
(AD2)P0.2
(AD3)P0.3
(AD4)P0.4
(AD5)P0.5
(AD6)P0.6
(AD7)P0.7
(A8)P2.0
(A9)P2.1
(A10)P2.2
(A11)P2.3
(A12)P2.4
(A13)P2.5
(A14)P2.6
(A15)P2.7
EA/VPP
ALE/PROG
PSEN
40
39
38
37
36
35
34
33
32
21
22
23
24
25
26
27
28
31
30
29
P00
P01
P02
P03
P04
P05
P06
P07
P20
P21
P22
P23
P24
P25
P26
P27
EA
ALE
PSEN
5V
JP7
1
2
3
4
XTAL1
JP11
P15
RST
1
3
5
7
9
1
P00
2
P01
3
P02
4
P03
5
P04
6
P05
7
P06
8
P07
9
EA
10
ALE
11
PSEN
12
P27
13
P26
14
P25
15
P24
16
P23
17
P22
18
P21
19
P20
20
Header 20
EA
W4
5V
30
5V
JP6
U8
2
1
8
7P36
6
P34
5P35
vccvcc1
x1SLCK
x2IO
GNDRST
DS1302
JP10
2
1
电源开关
1
S19
2
4
3
2
1
3
+
SW-SPDT
F1
Fuse
JP14
1
2
3
GND
C12
C7
0.1
G
N
D
D
+
D
-
RST
9
P30
10
P31
11
P32
12
P33
13
P34
14
P35
15
P36
16
P37
17
XTAL2
18
XTAL1
19
20
DS1302模块
2
4
6
8
10
P16
P17
5V
外供电端
J2
J1
1
2
3
VCC
5V
R19
390GNDvcc
9
5V
跳针选择
USB
+
AT89S-ISP
X1
XTAL1
C8
0~24M
51 ISP
XTAL2
USB供电
DS16
D
SETP MOTO1SETP MOTO2
Title
C9
30
Size
A3
Date:
File:
2009-5-31Sheet of
Drawn By:
E:
拼板图
C51
开发板
C51
开发板
.SCHDOC
78
NumberRevision
继电器输出
1
马达输出端口
晶振插座
62345
深圳精创电子
淘宝店铺/
单片机开发板使用说明书
免责声明.......................................................................................................
前言...............................................................................................................6
使用前准备...................................................................................................6
1 开发板安装和连接..............................................................................................................................6
1.1 供电线和下载线连接....................................................................................................................7
1.1.1 AT89S5X 芯片..................................................................................................................7
1.1.2 STC89C5X 芯片..............................................................................................................7
1.1.3 Atmega16 芯片............................................................................................................7
1.1.4 Atmega8 芯片...................................................................................................................7
2 芯片安装与拔插..................................................................................................................................8
2.1 芯片安装和更换...........................................................................................................................8
3 程序烧写与运行................................................................................................................................ 9
4 下载软件说明................................................................................................................................ 13
功能分类..................................................................................................... 17
第1 章LED 流水灯........................................................................................................................... 17
1.1 硬件连接..................................................................................................................................... 17
1.2 软件操作..................................................................................................................................... 18
1.2.1 汇编部分程序.......................................................................................................................................18
1.2.2 C 语言程序...........................................................................................................................................18
第2 章数码管.................................................................................................................................... 19
2.1 硬件连接..................................................................................................................................... 19
2.2 软件操作..................................................................................................................................... 20
2.3 注意事项..................................................................................................................................... 21
第3 章独立按键................................................................................................................................ 21
3.1 硬件连接..................................................................................................................................... 21
3.2 软件操作..................................................................................................................................... 21
3.3 注意事项..................................................................................................................................... 22
第4 章矩阵键盘................................................................................................................................ 22
4.1 硬件连接..................................................................................................................................... 22
1