航天大学出版社 1999年Р[6] 谭浩强 C程序设计(第三版) 清华大学出版社 2005年Р附录A 系统原理图Р附录B 设计程序Р#include<reg51.h>Р#include <intrins.h>Р#define uchar unsigned charР#define uint unsigned intРuchar code table[]={0xC0,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,0x80,0x90};Р sbit exter=P3^3; //外部中断Р sbit key0=P1^0; //清零Р sbit key1=P1^1; //切换/+Р sbit key2=P1^2; //-Р sbit key3=P1^3; //功能键Р sbit p30=P3^0; //数码管各位控制Р sbit p31=P3^1;Р sbit p32=P3^2;Р sbit p34=P3^4;Р sbit p35=P3^5;Р sbit p36=P3^6;Р sbit p37=P3^7;Рuint inter,aa,bb,temp,temp1; Рuint zongjine,licheng,dengdai;Рuint key3num,qiehuantemp,delaytemp;Рuchar danjia1,danjia2,danjia3,danjia,qibu;Рvoid delay(uint x) //延时时基为1msР { int i,j;Р for(i=x;i>0;i--)Р for(j=340;j>0;j--);Р }Рvoid display(uint zongjine0,uint licheng0,uint danjia0) //数码管显示Р{Р uint jbai,jshi,jge,lshi,lge,dshi,dge;