跑马灯实验报告

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

基于Proteus 的跑马灯

一、实验目的

1、 掌握Proteus 系统的使用,能够建立、保存,打开和修改文件。

2、 掌握使用各种元器件绘制电路原理图的方法,实现电路的仿真。 二、实验内容

跑马灯电路,即完成P1口上的八个发光二极管循环闪亮。 三、实验程序

ORG 0000H AJMP MAIN ORG 30H MAIN: MOV R2,#16 MOV A,#0FEH LOOP: MOV P1,A LCALL D1 RL A

DJNZ R2,LOOP

D1: MOV R4,#10 D2: MOV R5,#100 D3: MOV R6,#249 DJNZ R6,$

DJNZ R5,D3

DJNZ R4,D2 RET END 四、实验硬件电路

XTAL2

18

XTAL1

19

ALE 30EA

31

PSEN 29RST

9

P0.0/AD039P0.1/AD138P0.2/AD237P0.3/AD336P0.4/AD435P0.5/AD534P0.6/AD633P0.7/AD732P1.0/T21P1.1/T2EX 2P1.23P1.34P1.45P1.56P1.67P1.78

P3.0/RXD 10P3.1/TXD 11P3.2/INT012P3.3/INT113P3.4/T014P3.7/RD

17

P3.6/WR 16P3.5/T115P2.7/A1528P2.0/A821P2.1/A922P2.2/A1023P2.3/A1124P2.4/A1225P2.5/A1326P2.6/A1427U1

AT89C52

R1

10k

C1

1nF

C2

1nF

C3

1uF

X1

CRYSTAL

D1

LED-BIBY

D2

LED-BIBY

D3

LED-BIBY

D4

LED-BIBY

D5

LED-BIBY

D6

LED-BIBY

D7

LED-BIBY

D8

LED-BIBY

23456789

1

RP1

RESPACK-8

五、运行Proteus 仿真结果

XTAL2

18

XTAL1

19

ALE 30EA

31

PSEN 29RST

9

P0.0/AD039P0.1/AD138P0.2/AD237P0.3/AD336P0.4/AD435P0.5/AD534P0.6/AD633P0.7/AD732P1.0/T21P1.1/T2EX 2P1.23P1.34P1.45P1.56P1.67P1.78

P3.0/RXD 10P3.1/TXD 11P3.2/INT012P3.3/INT113P3.4/T014P3.7/RD

17

P3.6/WR 16P3.5/T115P2.7/A1528P2.0/A821P2.1/A922P2.2/A1023P2.3/A1124P2.4/A1225P2.5/A1326P2.6/A1427U1

AT89C52

R1

10k

C1

1nF

C2

1nF

C3

1uF

X1

CRYSTAL

D1

LED-BIBY

D2

LED-BIBY

D3

LED-BIBY

D4

LED-BIBY

D5

LED-BIBY

D6

LED-BIBY

D7

LED-BIBY

D8

LED-BIBY

23456789

1

RP1

RESPACK-8

XTAL2

18

XTAL1

19

ALE 30EA

31

PSEN 29RST

9

P0.0/AD039P0.1/AD138P0.2/AD237P0.3/AD336P0.4/AD435P0.5/AD534P0.6/AD633P0.7/AD732P1.0/T21P1.1/T2EX 2P1.23P1.34P1.45P1.56P1.67P1.78

P3.0/RXD 10P3.1/TXD 11P3.2/INT012P3.3/INT113P3.4/T014P3.7/RD

17

P3.6/WR 16P3.5/T115P2.7/A1528P2.0/A821P2.1/A922P2.2/A1023P2.3/A1124P2.4/A1225P2.5/A1326P2.6/A1427U1

AT89C52

R1

10k

C1

1nF

C2

1nF

C3

1uF

X1

CRYSTAL

D1

LED-BIBY

D2

LED-BIBY

D3

LED-BIBY

D4

LED-BIBY

D5

LED-BIBY

D6

LED-BIBY

D7

LED-BIBY

D8

LED-BIBY

23456789

1

RP1

RESPACK-8

XTAL2

18

XTAL1

19

ALE 30EA

31

PSEN 29RST

9

P0.0/AD039P0.1/AD138P0.2/AD237P0.3/AD336P0.4/AD435P0.5/AD534P0.6/AD633P0.7/AD732P1.0/T21P1.1/T2EX 2P1.23P1.34P1.45P1.56P1.67P1.78

P3.0/RXD 10P3.1/TXD 11P3.2/INT012P3.3/INT113P3.4/T014P3.7/RD

17

P3.6/WR 16P3.5/T115P2.7/A1528P2.0/A821P2.1/A922P2.2/A1023P2.3/A1124P2.4/A1225P2.5/A1326P2.6/A1427U1

AT89C52

R1

10k

C1

1nF

C2

1nF

C3

1uF

X1

CRYSTAL

D1

LED-BIBY

D2

LED-BIBY

D3

LED-BIBY

D4

LED-BIBY

D5

LED-BIBY

D6

LED-BIBY

D7

LED-BIBY

D8

LED-BIBY

23456789

1

RP1

RESPACK-8

相关文档
最新文档