单片机流水灯实验
报告
软件系统测试报告下载sgs报告如何下载关于路面塌陷情况报告535n,sgs报告怎么下载竣工报告下载
东华理工
学院:机械与电子工程学院
单片机第三次实验报告
专业:自动化
班级:1121502
学号:201120150229
姓名:曾小燕
d slope to facilitate emptying. (1) during the excavation process, feel free to check the status of side slope, vertical dig depth is greater than 1.5M, according to the changes of soil, excavation (Groove) or trench support preparation, to prevent collapse. (2) excavation (Groove) and when the trench should not dig to the design height of the following, if not exactly digging base elevation is to design, persistence of elevation above a layer of soil is not dug, to copy after ping dug out by hand. (3) mechanical construction dig into the Earth, digging manual at any time, and trolleys to transport Earth machinery to dig the place, so as to use the machinery of cherry-picking. 5, trimming ... (1) soil excavation on a rainy day, their work should not be too large, should be done piecemeal, by staging. (2) the rain at the time of construction in the excavation and earth-moving required great attention to slope stability. If necessary, the appropriate slow slope, or braces, while in the pits (Groove) outside surrounded by Earthen berms or digging ditches, prevent surface water from entering. Always check on the slope, support, an embankment, identify problems and deal with. II, backfill Engineering (a) construction preparation research field site formation, earth fill construction plan, determine the fill line, order, range, slope, drainage levels, and so on. 1, the engineering according to the characteristics of species, density of the fill quantity requirements, construction site conditions of reasonable fill soil moisture control, virtual shop and compaction parameters, such as number. 2, underground and above-ground pipelines should be found out before construction obstacles, requirements shall in accordance with the construction plan, the construction of aboveground and underground obstacle clearance in the region and dealt
实验任务:
(1)使用单片机的P1、P3口控制驱动12个LED灯,要求编程使用软件延时的方法实现LED流动显示。
(2)在上面实验的基础上编写
设计
领导形象设计圆作业设计ao工艺污水处理厂设计附属工程施工组织设计清扫机器人结构设计
4种LED花样显示,编程实现顺序显示不同的花样。
实验电路和原理说明:
从原理图中可以看出,如果要让接在P1.0口的led1亮起来,那么只要把P1.0口的电平变为低电平就可以了;相反, 如果要接在P1.0口的LED1熄灭,就要把P1.0口的电平变为高电平;同理,其他11d slope to facilitate emptying. (1) during the excavation process, feel free to check the status of side slope, vertical dig depth is greater than 1.5M, according to the changes of soil, excavation (Groove) or trench support preparation, to prevent collapse. (2) excavation (Groove) and when the trench should not dig to the design height of the following, if not exactly digging base elevation is to design, persistence of elevation above a layer of soil is not dug, to copy after ping dug out by hand. (3) mechanical construction dig into the Earth, digging manual at any time, and trolleys to transport Earth machinery to dig the place, so as to use the machinery of cherry-picking. 5, trimming ... (1) soil excavation on a rainy day, their work should not be too large, should be done piecemeal, by staging. (2) the rain at the time of construction in the excavation and earth-moving required great attention to slope stability. If necessary, the appropriate slow slope, or braces, while in the pits (Groove) outside surrounded by Earthen berms or digging ditches, prevent surface water from entering. Always check on the slope, support, an embankment, identify problems and deal with. II, backfill Engineering (a) construction preparation research field site formation, earth fill construction plan, determine the fill line, order, range, slope, drainage levels, and so on. 1, the engineering according to the characteristics of species, density of the fill quantity requirements, construction site conditions of reasonable fill soil moisture control, virtual shop and compaction parameters, such as number. 2, underground and above-ground pipelines should be found out before construction obstacles, requirements shall in accordance with the construction plan, the construction of aboveground and underground obstacle clearance in the region and dealt
个LED的点亮和熄灭的方法同LED1。
编程思路:
实验1:移位发。先将p1,p3的所有位全置1。把C清0。然后带进位左移。左一次,p1的0位亮。左移两次,p1的1位亮。同理,其他位也一样。
实验2:直接读p1和p3的位进行清零和置一可以实现各种要求。
程序流程图:
实验1
d slope to facilitate emptying. (1) during the excavation process, feel free to check the status of side slope, vertical dig depth is greater than 1.5M, according to the changes of soil, excavation (Groove) or trench support preparation, to prevent collapse. (2) excavation (Groove) and when the trench should not dig to the design height of the following, if not exactly digging base elevation is to design, persistence of elevation above a layer of soil is not dug, to copy after ping dug out by hand. (3) mechanical construction dig into the Earth, digging manual at any time, and trolleys to transport Earth machinery to dig the place, so as to use the machinery of cherry-picking. 5, trimming ... (1) soil excavation on a rainy day, their work should not be too large, should be done piecemeal, by staging. (2) the rain at the time of construction in the excavation and earth-moving required great attention to slope stability. If necessary, the appropriate slow slope, or braces, while in the pits (Groove) outside surrounded by Earthen berms or digging ditches, prevent surface water from entering. Always check on the slope, support, an embankment, identify problems and deal with. II, backfill Engineering (a) construction preparation research field site formation, earth fill construction plan, determine the fill line, order, range, slope, drainage levels, and so on. 1, the engineering according to the characteristics of species, density of the fill quantity requirements, construction site conditions of reasonable fill soil moisture control, virtual shop and compaction parameters, such as number. 2, underground and above-ground pipelines should be found out before construction obstacles, requirements shall in accordance with the construction plan, the construction of aboveground and underground obstacle clearance in the region and dealt
实验2
使用的资源分配:
R0,R1,R2,R7装循环次数。堆栈起始地址为60H
实验调试与结果
分析
定性数据统计分析pdf销售业绩分析模板建筑结构震害分析销售进度分析表京东商城竞争战略分析
:
结果符合实验要求,对一那个1秒灯闪一次的要求,结果与硬件有关
系。
d slope to facilitate emptying. (1) during the excavation process, feel free to check the status of side slope, vertical dig depth is greater than 1.5M, according to the changes of soil, excavation (Groove) or trench support preparation, to prevent collapse. (2) excavation (Groove) and when the trench should not dig to the design height of the following, if not exactly digging base elevation is to design, persistence of elevation above a layer of soil is not dug, to copy after ping dug out by hand. (3) mechanical construction dig into the Earth, digging manual at any time, and trolleys to transport Earth machinery to dig the place, so as to use the machinery of cherry-picking. 5, trimming ... (1) soil excavation on a rainy day, their work should not be too large, should be done piecemeal, by staging. (2) the rain at the time of construction in the excavation and earth-moving required great attention to slope stability. If necessary, the appropriate slow slope, or braces, while in the pits (Groove) outside surrounded by Earthen berms or digging ditches, prevent surface water from entering. Always check on the slope, support, an embankment, identify problems and deal with. II, backfill Engineering (a) construction preparation research field site formation, earth fill construction plan, determine the fill line, order, range, slope, drainage levels, and so on. 1, the engineering according to the characteristics of species, density of the fill quantity requirements, construction site conditions of reasonable fill soil moisture control, virtual shop and compaction parameters, such as number. 2, underground and above-ground pipelines should be found out before construction obstacles, requirements shall in accordance with the construction plan, the construction of aboveground and underground obstacle clearance in the region and dealt
实验
总结
初级经济法重点总结下载党员个人总结TXt高中句型全总结.doc高中句型全总结.doc理论力学知识点总结pdf
:
做完这次试验,我学会怎么简单的使用I/O口。从此对单片机的兴趣
也更加浓厚。自己也会做各种花样流水灯了。
实验程序清单:
实验1:ORG 0000 ;单片机上电后从0000H地址执行
AJMP START;跳转到主程序存放地址处
ORG 0040H;设置主程序开始地址
START:MOV SP,#60H;设置堆栈起始地址为60H
MOV A,#0FFH ;参数赋初值
MOV P1,A
MOV P3,A
MOV R7,#12
CLR C
LOOP:MOV A,P1 ;把p1复制给A
RLC A ;左移A
MOV P1,A ;把A复制给p1
MOV A,P3
RLC A
MOV P3,A
ACALL DELAY ;调用延时子程序
DJNZ R7,LOOP ;判断循环是否结束
AJMP START;移动完12次后跳到开始重来,以达到循环流动效果
DELAY:MOV R0,#12 ;延时子程序
D1:MOV R1,#207
D2:MOV R2,#200
D3:DJNZ R2,D3
DJNZ R1,D2
DJNZ R0,D1
RET ;子程序返回
END
d slope to facilitate emptying. (1) during the excavation process, feel free to check the status of side slope, vertical dig depth is greater than 1.5M, according to the changes of soil, excavation (Groove) or trench support preparation, to prevent collapse. (2) excavation (Groove) and when the trench should not dig to the design height of the following, if not exactly digging base elevation is to design, persistence of elevation above a layer of soil is not dug, to copy after ping dug out by hand. (3) mechanical construction dig into the Earth, digging manual at any time, and trolleys to transport Earth machinery to dig the place, so as to use the machinery of cherry-picking. 5, trimming ... (1) soil excavation on a rainy day, their work should not be too large, should be done piecemeal, by staging. (2) the rain at the time of construction in the excavation and earth-moving required great attention to slope stability. If necessary, the appropriate slow slope, or braces, while in the pits (Groove) outside surrounded by Earthen berms or digging ditches, prevent surface water from entering. Always check on the slope, support, an embankment, identify problems and deal with. II, backfill Engineering (a) construction preparation research field site formation, earth fill construction plan, determine the fill line, order, range, slope, drainage levels, and so on. 1, the engineering according to the characteristics of species, density of the fill quantity requirements, construction site conditions of reasonable fill soil moisture control, virtual shop and compaction parameters, such as number. 2, underground and above-ground pipelines should be found out before construction obstacles, requirements shall in accordance with the construction plan, the construction of aboveground and underground obstacle clearance in the region and dealt
实验2:ORG 0000 ;单片机上电后从0000H地址执行
AJMP START ;跳转到主程序存放地址处
ORG 0040H ;设置主程序开始地址
START:MOV SP,#60H ;设置堆栈起始地址为60H
MOV A,#0FFH ;参数赋初值
MOV P3,A
MOV A,#0FEH
MOV P1,A
ACALL DELAY ;调用延时子程序
CLR P1.2 ;位操作
ACALL DELAY ;调用延时子程序
CLR P1.4
ACALL DELAY
CLR P1.6
ACALL DELAY
CLR P3.0
ACALL DELAY
CLR P3.2
ACALL DELAY
MOV A,#0FDH
MOV P1,A
MOV A,#0FFH
MOV P3,A
ACALL DELAY
CLR P1.3
ACALL DELAY
CLR P1.5
ACALL DELAY
CLR P1.7
ACALL DELAY
CLR P3.1
ACALL DELAY
CLR P3.3
ACALL DELAY
MOV A,#00H
MOV P1,A
MOV A,#0F0H
MOV P3,A
ACALL DELAY
d slope to facilitate emptying. (1) during the excavation process, feel free to check the status of side slope, vertical dig depth is greater than 1.5M, according to the changes of soil, excavation (Groove) or trench support preparation, to prevent collapse. (2) excavation (Groove) and when the trench should not dig to the design height of the following, if not exactly digging base elevation is to design, persistence of elevation above a layer of soil is not dug, to copy after ping dug out by hand. (3) mechanical construction dig into the Earth, digging manual at any time, and trolleys to transport Earth machinery to dig the place, so as to use the machinery of cherry-picking. 5, trimming ... (1) soil excavation on a rainy day, their work should not be too large, should be done piecemeal, by staging. (2) the rain at the time of construction in the excavation and earth-moving required great attention to slope stability. If necessary, the appropriate slow slope, or braces, while in the pits (Groove) outside surrounded by Earthen berms or digging ditches, prevent surface water from entering. Always check on the slope, support, an embankment, identify problems and deal with. II, backfill Engineering (a) construction preparation research field site formation, earth fill construction plan, determine the fill line, order, range, slope, drainage levels, and so on. 1, the engineering according to the characteristics of species, density of the fill quantity requirements, construction site conditions of reasonable fill soil moisture control, virtual shop and compaction parameters, such as number. 2, underground and above-ground pipelines should be found out before construction obstacles, requirements shall in accordance with the construction plan, the construction of aboveground and underground obstacle clearance in the region and dealt
AJMP START ;跳到开始重来,以达到循环流动效果
DELAY:MOV R0,#255 ;延时子程序
D1:MOV R1,#255
D2:MOV R2,#5
D3:DJNZ R2,D3
DJNZ R1,D2
DJNZ R0,D1
RET ;子程序返回
END
d slope to facilitate emptying. (1) during the excavation process, feel free to check the status of side slope, vertical dig depth is greater than 1.5M, according to the changes of soil, excavation (Groove) or trench support preparation, to prevent collapse. (2) excavation (Groove) and when the trench should not dig to the design height of the following, if not exactly digging base elevation is to design, persistence of elevation above a layer of soil is not dug, to copy after ping dug out by hand. (3) mechanical construction dig into the Earth, digging manual at any time, and trolleys to transport Earth machinery to dig the place, so as to use the machinery of cherry-picking. 5, trimming ... (1) soil excavation on a rainy day, their work should not be too large, should be done piecemeal, by staging. (2) the rain at the time of construction in the excavation and earth-moving required great attention to slope stability. If necessary, the appropriate slow slope, or braces, while in the pits (Groove) outside surrounded by Earthen berms or digging ditches, prevent surface water from entering. Always check on the slope, support, an embankment, identify problems and deal with. II, backfill Engineering (a) construction preparation research field site formation, earth fill construction plan, determine the fill line, order, range, slope, drainage levels, and so on. 1, the engineering according to the characteristics of species, density of the fill quantity requirements, construction site conditions of reasonable fill soil moisture control, virtual shop and compaction parameters, such as number. 2, underground and above-ground pipelines should be found out before construction obstacles, requirements shall in accordance with the construction plan, the construction of aboveground and underground obstacle clearance in the region and dealt