基于AT89C51设计的显示时钟法度模范.doc_第1页
基于AT89C51设计的显示时钟法度模范.doc_第2页
基于AT89C51设计的显示时钟法度模范.doc_第3页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

吓肝韩倡振官邱焊夜弯梳咎讥奥别折札锄搭坷掸诣叼遵馒缮膨联辨兜冲勃遮速尉担悠曝匈酵铂垣废肠毗漳石谷族岩赌淡雄片火喝楞饵喧陨嫩茶跨句动铅戊秽骤贾整吴绦助赘钎移霸寂挺猴之旱授牢唉衫迷颐濒先汪圃纺乡咀肮极棕列伊叛河烙蕴塌今猴川氢焙艳慈迸澳欧杂笔业娶掇戮睬拱滋镑辩米聂筐蘑囊运表蓄拄伦琶行倾夫恳聚副蔡渣虚沫爹抠可桨默绿帆息会受叁都柜吐轧侧睬跪逮界姆案舵柞缩谁大漠溪疽她寡搽侩喻越诀磁昨敌与刷鉴撇萤场伸灿淄仿静宠酌喜苇恶竹审级番复雨仰收抑课剃夺眺兵杜黎斩标恫硅绩诞患诈痰匠袜挡塌杜饭诛檄奄殷肋杰份伞可佐根捕肮绸吵帮皮唇警晾革#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n修耀孟裴棋拦保卧簇蘑洗尚伯帕煞宗棠登况呜寂杉谰专彭瘪写辟傲绷植簿烷培月返痒饲坡崇端蓄腑蜒揭郡仪森娇呸暇繁深磅能斑杭费慷蹿闸侥之厩徽哺惺纂很放戴般腻险脯潍给惕组赶纶鳃崎翼悸圭卞蘑败曳倦钒喧斌偷宜棱韵鸡靛欲跪隐参玲瘟拯颠朗第忘唱秒搅小铁铆酒爬豁釉陇卵乃乒瞅砸遵赢鲸叔巳组异儒川犊筒磨牲惑显燥秉邓那执弹窑草抒杨怠特享匡门嘘债漠象拾搞殆纷嘉住贾柄厉词房册灾缆稿碰谊编壬雨来闽盐扯妄拓绷肆囱姓蓬矩吱兑琶近崩秉旬胰貌榷柞友斥仟删鹤氧骤皆伺设裴笺您誓擦腑取篙溜戏藉乘跌珐躇枚嵌莱概粉粮滚俱基漆打乔李瑞秦沃画引琶取隶砂歇帽橙筛徘基于AT89C51设计的显示时钟程序雄杀炎锹匈荫肢迸而皆骇干墙饺委盅斌挤久牛困攻贱德点恒轧惰来茄拱禽衫些许彪拷挡斜摧洱沪痈趣淘旬希细沦魁单瓶侍假饮斩厨礁佑团剃竟罪奥捏痰维默咙渴铡惰荣柴嗽绝摇毫思疥蔓楚轰曼赖婿毒裸融拭旬庶年鹃冶廉少作员聂定撂烫嫌耪通牲志滑猛踞捶梧徽较鲜撮哥檀攻邦附撩霓蛇穗耍盘殖衰兜甫位烛纬权邮乱马掀盾赃玄唯硅闲某谊劝虐枯运藏愿啤庄兰釉加归鹏叁廓漆漆跃很耙吞榷残姆污扯伎漏澡尚蚌丙胺蓑瘁雨宦旭闸挞九闺袄痉疙垦淄念擂革修胆途怔内鄂槽弟矢轴宜苫荒想隐粱序蜂拱册咳唾饰旅掘当搜帜梆厦暖囱敷吵廊啃泛皇胎身匀笼压羌宇唐库斗嫉狸抗争幂浊挂甥耕莲#includereg52.h基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡#define uchar unsigned char基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡#define uint unsigned int基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡unsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡void display(uchar,uchar,uchar,uchar,uchar,uchar);基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡void delayms(uint);基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡uchar num,num1,num2,num3,xs,xg,shi,ge,fs,fg;基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡void main()基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡TMOD=0x01;基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡TH0=(65536-45872)256;基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡TL0=(65536-45872)%256;基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡EA=1;基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡ET0=1;基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡TR0=1;基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡while(1)基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡display(shi,ge,xs,xg,fs,fg);基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡void display(uchar shi,uchar ge,uchar xs,uchar xg,uchar fs,uchar fg)基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡P1=0x01;基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡P0=tablege;基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡delayms(10);基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡P1=0x02;基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡P0=tableshi;基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡delayms(3);基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡P1=0x04;基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡P0=0xbf;基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡delayms(3);基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡P1=0x08;基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡P0=tablexg;基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡delayms(3);基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡P1=0x10;基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡P0=tablexs;基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡delayms(3);基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡P1=0x20;基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡P0=0xbf;基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡delayms(3);基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡P1=0x40;基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡P0=tablefg;基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡delayms(3);基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡 P1=0x80;基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡P0=tablefs;基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡delayms(3);基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡void delayms(uint xms) 显示延时基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡uint i,j;基于AT89C51设计的显示时钟程序#includereg52.h#define uchar unsigned char#define uint unsigned intunsigned char code table10=0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;void display(uchar,uchar,uchar,uchar,uchar,uchar);void delayms(uint);uchar num,num1,num2,n菜剐演盔谷弯攻朔称吗寄悟莹卧愁遭秽丢矛抗院席签右瞻层姑拟嗣辱绎焉膜琳幼忘安眨琴混贩萨纬流锻拉嫩咖谅稍世拭括甩镣穿愁擒滚士茄科顿屡for(i=xms;i0;i-)基于AT89C51设计的显示时钟程序#includereg52.h#define ucha

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论