ImageVerifierCode 换一换
格式:DOC , 页数:12 ,大小:457.51KB ,
资源ID:4753372      下载积分:8 金币
快捷注册下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

开通VIP
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.zixin.com.cn/docdown/4753372.html】到电脑端继续下载(重复下载【60天内】不扣币)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

开通VIP折扣优惠下载文档

            查看会员权益                  [ 下载后找不到文档?]

填表反馈(24小时):  下载求助     关注领币    退款申请

开具发票请登录PC端进行申请

   平台协调中心        【在线客服】        免费申请共赢上传

权利声明

1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前可先查看【教您几个在下载文档中可以更好的避免被坑】。
5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
6、文档遇到问题,请及时联系平台进行协调解决,联系【微信客服】、【QQ客服】,若有其他问题请点击或扫码反馈【服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【版权申诉】”,意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:0574-28810668;投诉电话:18658249818。

注意事项

本文(单片机综合实验报告之模拟交通灯设计.doc)为本站上传会员【丰****】主动上传,咨信网仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知咨信网(发送邮件至1219186828@qq.com、拔打电话4009-655-100或【 微信客服】、【 QQ客服】),核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载【60天内】不扣币。 服务填表

单片机综合实验报告之模拟交通灯设计.doc

1、leading cadres ' awareness of right in place, study the party Constitution and party rules, series of speeches can make proper effect. Party cadres to "two" lead by example, to lead by example we must change our mind, recognizing that "two" is important. First, learn the Communist Party Constitution

2、 Party rules, learning learning series important speech by General Secretary can enhance theory. With the "third revolution" the rise of rapid changes in our life are feeling, the Communists should adhere to the theory of confidence will continue to learn from the voices of the times, the times, in

3、turn, will have new requirements for leading party cadres. "Two" is the most basic meaning of members all mastering the core theory and the most advanced weapons theory, complement the spirit of calcium. Secondly, the Communist Party Constitution Party rules, learning learning series important speec

4、h by General Secretary be able to firmly build the ideological foundation. Under the impact of multiple values, the "two" is to help cultivate independent judgment in numerous miscellaneous multiple concepts, so that the majority consensus of party members, the important magic weapon of the party wi

5、th the resonance frequency. Finally, the Constitution of the Communist Party, party rules, learning learning series important speech can stand crowds, General Secretary position. Now, some grass-roots work in the "the old way didn't work, hard way cannot, the new approach would not" phenomenon, some

6、times due to a mass of party members and cadres not understanding, does not meet. In fact, the mass "convincing" and "identity"Behind are likely to be party members and leading cadres themselves ignoring beliefs held, resulting in lack of persuasion and sense of identity. "Two" is in fact guarantee

7、d party cadres work, an important prerequisite for convincing the masses. Bacon said it well: "practical men can handle individual matters, but looking at the whole operation globally, but only man can do to knowledge. "Giving up" two "effective, must first raise awareness of leading cadres of part

8、y members, as party members learn real responsibility" to know "to" music "," good "changes, in parallel with the ground, do not forget to also answer the antenna, draw catches on meteorology, which sit between heaven and Earth which melds together the dreams of practicing Communist. Members cadres

9、should in "two learn a do" in the based post do contribution in all members in the carried out "learn Constitution Party rules, and learn series speech, do qualified members" learning education, this is following party of mass line education practice activities and "three strict three real" topic ed

10、ucation zhihou, deepening party education of and once important practice, is promoted "three strict three real" topic education from "key minority" to all members expand, and from concentrated education to regular education extends of important initiatives.    Vast numbers of party members and cadre

11、s in the course of two, should be 单片机综合实验报告 题 目: 模拟真实交通灯 班 级: 姓 名: 学 号: 指导老师: 2014 年 6 月 13 日 一、实验内容:

12、用8255芯片的PA、PB口低四位做输出口,控制十二个发光二极管燃灭,模拟十字路口交通灯管理,并利用数码显示器进行倒计时显示(采用单片机内部定时器定时)。通过外部中断能使交通灯暂停运行,并点亮4个红灯。通过16*16点阵中的图形模拟控制行人过马路的人形“走”、“停”指示灯,可参考下图所示: 利用实验系统16×16点阵实验单元,以两种方式控制点阵显示。要求编制程序实现汉字点阵循环显示。 I/O口地址分配 I/O口分别提供字形代码(列码)、扫描信号(行码),凡字形代码位为“1”、行扫描信号为“1”点亮该点,否则熄灭;通过逐行扫描循环点亮字形或曲线。 二、实验电路及功能说明

13、 8255与发光二极管连线图 数码LED显示器电路 16×16LED点阵显示电路 实验原理图 三、实验程序流程图: 主程序: 四、实验结果分析 通过程序仿真,可以检测设计的电路能基本满足设计要求。 交通灯亮灭过程同“8255控制交通灯实验”,倒计时显示只需两位数(0~99),用定时器定时进行倒计时,每秒钟减1。在16*16点阵中显示的人形“走”、“停”标志可自定义。 五、心得体会 我们通过作这个单片机实验,我们总结了一下点: 1、 加深了对51单片机的理解,不仅仅是以前那样只能点亮发光二极管。 2、 感受到了完成一件程

14、序的乐趣,并且知道了实践精神。 3、 理解了51单片机的强大和我们知识的肤浅。 4、 学到了许多原来C语言中没有的东西,如:控制按键的程序 While(P0_5==1) { Time++; While(P0_5==1); } 这样可以不加防按键抖动的延时程序,更精确时间。 5、进一步充分利用中断时刻都在运行,让时间在中断中显示,就不会出现进入死循环后而无法显示时间的情况,而且还可以快速的反映除时间的变化。 六、程序清单 #include

15、h> #include #define uchar unsigned char #define uint unsigned int #define ROW1 XBYTE[0XFFE3] #define ROW2 XBYTE[0XFFE0] #define COL1 XBYTE[0XFFE2] #define COL2 XBYTE[0XFFE1] #define PA XBYTE[0xffd8] #define PB XBYTE[0xffd9] #define CTL XBYTE[0xffdb] #define SEG XBYTE[0xffdc] #

16、define BIT XBYTE[0xffdd] #define allredend 10 #define ewredend 2*ewstarter+allredend #define snyellowend ewredend+10 #define snredend snyellowend+2*snstarter #define ewyellowend snredend+10 sbit KEY1=P1^0; sbit KEY2=P1^1; sbit KEY3=P1^2; sbit P32=P3^2; uchar tongBu; uchar code ewTable[]={

17、0xb6,0x75,0xf3,0xf7,0xae,0x9e,0xbe}; uchar code nsTable[]={0xd,0xd,0xc,0xd,0xb,0x7,0xf}; //uchar tempa,tempb; int time=1,cnt,change,intflag,inttime=1,ewstarter=10,snstarter=15; int tempseg; uchar key1=0; uchar buffer[]={0,0,0,0,0,0}; uchar table[]={0xC0,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,0x80

18、0x90,0xff}; /*-- 行走 --*/ /*-- 宽度x高度=16x16 --*/ uchar code led1[]={0x01,0x80,0x02,0x40,0x02,0x40,0x01,0x80,0x03,0xC0,0x06,0x60,0x0A,0x50,0x0A,0x50, 0x0B,0xD0,0x12,0x48,0x02,0x40,0x02,0x60,0x04,0x20,0x04,0x20,0x08,0x20,0x18,0x60}; /*-- 停止 --*/ /*-- 宽度x高度=16x16 --*/ uchar code led2[]={0x0

19、1,0x80,0x02,0x40,0x02,0x40,0x01,0x80,0x07,0xE0,0x7E,0x7E,0x02,0x40,0x02,0x40, 0x03,0xC0,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0x80,0x03,0xC0}; /*-- 文字: 高 --*/ /*-- Fixedsys12; 此字体下对应的点阵为:宽x高=16x16 -- uchar code led2[]={0x02,0x00,0x01,0x00,0xFF,0xFE,0x00,0x00,0x0F,0xE0,0x0

20、8,0x20,0x0F,0xE0,0x00,0x00, 0x7F,0xFC,0x40,0x04,0x4F,0xE4,0x48,0x24,0x48,0x24,0x4F,0xE4,0x40,0x14,0x40,0x08};*/ void delayshort() { char n; for(n=50;n>0;n--); } uchar changeleft(uchar led) { uchar temp; temp=0; temp|=(led<<7)&0x80; temp|=(led<<5)&0x40; temp|=(led<<3)&0x20; temp

21、led<<1)&0x10; temp|=(led>>1)&0x08; temp|=(led>>3)&0x04; temp|=(led>>5)&0x02; temp|=(led>>7)&0x01; return(temp); } void led16_16display(uchar *table,uchar length) { uchar i=length/2,scan1=0x1,scan2=0x1; for(i=0;i<16;i++) { if(i<8) { ROW1=0; ROW2=0; COL1=scan1;

22、 COL2=0; ROW1=changeleft(table[2*i]); ROW2=table[2*i+1]; COL1=scan1; COL2=0; delayshort(); scan1<<=1; } else { ROW1=0; ROW2=0; COL1=0; COL2=scan2; ROW1=changeleft(table[2*i]); ROW2=table[2*i+1]; COL1=0; COL2=scan2; delayshort();

23、 scan2<<=1; } } } void changeseg() { if(key1==0) { buffer[3]=10; buffer[0]=10; buffer[5]=tempseg%10; buffer[4]=tempseg/10; buffer[2]=tempseg%10; buffer[1]=tempseg/10; } else if(key1==1) { buffer[3]=10; buffer[0]=10; buffer[5]=ewstarter%10; buffer[4

24、]=ewstarter/10; buffer[2]=ewstarter%10; buffer[1]=ewstarter/10; } else { buffer[3]=10; buffer[0]=10; buffer[5]=snstarter%10; buffer[4]=snstarter/10; buffer[2]=snstarter%10; buffer[1]=snstarter/10; } } void timer1()interrupt 3 { static uchar temp=0x20,cnt1; TH1=

25、65536-1000)/256; TL1=(65536-1000)%256; changeseg(); SEG=0xff; SEG=table[buffer[cnt1]]; cnt1++; if(cnt1==6) cnt1=0; BIT=temp; temp>>=1; if(temp==0) temp=0x20; } void int_0()interrupt 0 { delayshort(); if(P32==0) { PA=0xB6; PB=0xd; PT0=1; PT1=1; intflag

26、1; while(inttime<=20) led16_16display(led2,32); inttime=1; intflag=0; PT0=0; PT1=0; PA=ewTable[tongBu]; PB=nsTable[tongBu]; } } void timer0()interrupt 1 { TH0=(65536-50000)/256; TL0=(65536-50000)%256; cnt++; if(cnt==5) { cnt=0; if(intflag==1) { i

27、nttime++; tempseg=10-inttime/2; } else { time++; if(time<=allredend) { tongBu=0; PA=ewTable[tongBu]; PB=nsTable[tongBu]; tempseg=allredend/2-(time+1)/2; } else if((time>allredend)&&(time<=ewredend)) { tongBu=1; PA=ewTable[tongBu];

28、 PB=nsTable[tongBu]; tempseg=ewstarter+allredend/2-(time+1)/2; } else if((time>ewredend)&&(time<=snyellowend)) { if(change==0) { tongBu=2; PA=ewTable[tongBu]; PB=nsTable[tongBu]; change=1; } else { tongBu=3; PA=ewTable[t

29、ongBu]; PB=nsTable[tongBu]; change=0; } tempseg=ewstarter+allredend/2+5-(time+1)/2; } else if((time>snyellowend)&&(time<=snredend)) { tongBu=4; PA=ewTable[tongBu]; PB=nsTable[tongBu]; tempseg=ewstarter+allredend/2+5+snstarter-(time+1)/2; }

30、 else if((time>snredend)&&(time<=ewyellowend)) { if(change==0) { tongBu=5; PA=ewTable[tongBu]; PB=nsTable[tongBu]; change=1; } else { tongBu=6; PA=ewTable[tongBu]; PB=nsTable[tongBu]; change=0; } tempseg=ewstarte

31、r+10+allredend/2+snstarter-(time+1)/2; } else { tongBu=1; time=allredend+1; PA=ewTable[tongBu]; PB=nsTable[tongBu]; tempseg=ewstarter+allredend/2-(time+1)/2; } } } } void key() { uchar keynum; keynum=~(P1|0XF8); switch(keynum) { case 0x1:

32、 while(KEY1==0)led16_16display(led2,32); key1++; TR0=0; if(key1==3) { key1=0; TR0=1; } break; case 0x2: while(KEY2==0)led16_16display(led2,32); if(key1==1) { ewstarter++; if(ewstarter==100) ewstarter=0; } if(key1==2) {

33、 snstarter++; if(snstarter==100) snstarter=0; } break; case 0x4: while(KEY3==0)led16_16display(led2,32); if(key1==1) { ewstarter--; if(ewstarter==-1) ewstarter=99; } if(key1==2) { snstarter--; if(snstarter==-1) snstarter

34、99; } break; default:break; } } void main() { IE=0x8b; IT0=1; TMOD=0x11; TH0=(65536-50000)/256; TL0=(65536-50000)%256; TH1=(65536-1000)/256; TL1=(65536-1000)%256; CTL=0x80; tongBu=0; TR1=1; PA=ewTable[tongBu]; PB=nsTable[tongBu]; tempseg=allredend/2-(time+1

35、)/2; TR0=1; while(1) { key(); if(intflag==0) { if(key1==0) { if(time<=allredend) led16_16display(led2,32); else if(time>allredend&&time<=snyellowend) led16_16display(led1,32); else if(time>snyellowend&&time<=ewyellowend) led16_16display(led2,32

36、); } else led16_16display(led2,32); } } } 非谓语动词是历年高考英语的重要考点之一,也是较难掌握的难点之一。它贯穿于英语学习和考试过程的始终。但是,只要认真分析、透彻理解、看透本质、准确把握,就一定能在高考中运筹帷幄,游刃有余。based on their actual, striving to be "learning" and "done" markers. Strengthening theoretical study, belief and faith. Theory i

37、s an action guide, only theoretical knowledge in place, to unity, action can consciously. Constitution is the fundamental law of the party, party rules are party must follow the General rules. Studying and implementing the party Constitution Party rules and a series of important speech, General Secr

38、etary, is a guide to persisting and developing socialism with Chinese characteristics, is a basic work of strengthening the party's construction, but also each and every Communist Party Member's obligations and solemn responsibility. These important content, for each party, must know would believe w

39、ill do both. WeGeneral Secretary of the party Constitution, a series of remarks with, and hold, grasp the real "learning" that basis, based on the Constitution speak to issue, in accordance with the series changed the problem. Second, disciplined in line, to become law-abiding model. Is not no rules

40、 If there is no iron discipline, party members and cadres will become a mess, it will lose its fighting strength and vitality, purity and naturally much less advanced.    By "two" education, party members and cadres to keep the "bottom line", not the more "red lines", consciously practice the "thre

41、e Suns" and consciously act according to the Constitution, party rules, remains a political force, to perform party oath, a tree of its own image. Three is the loyal, dare to play and play to party members. Learning is the Foundation, is the key to development is the goal. "Two" main objective is to

42、 let the majority of the play to the exemplary role of party members and cadres, party Constitution, party rules to examine. To use new criteria to guide our behavior. Through education, the ideal and conviction, keep in mind that membership, learn, learn, learn go play a vanguard and exemplary role

43、 the courage to play as, and always maintain the pioneer, pioneering and enterprising spirit, and constantly improve our own capacity and level of service, according to positions and make contributions. Hearts change, lead more strict "began in the know, know as Luke Skywalker", "two" activities, b

44、e qualified party members both a starting point and ending point.    Party cadres only opinions, Foundation, Constitution Party rules, series to better address outside in shape, "two" this is State, leading by example, to lead by example to be qualified party members in the process of doing the deep

45、 and solid, higher and more stringent. Jobs with new skills. To be a qualified party member, most basic element is always advanced requirements themselves, using their power to push forward the cause of the party, the people and the nation. Is to the leading cadres of party members, first of all is based on the job, do the people in the heart. There is not a slogan, but aims to better serve the people, targeted efforts to increase the capacity

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2026 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服