void display(uchar sh,uchar ge)
{
P0=table[ge]; DUAN=1; DUAN=0; P0=0xfd; WEI=1; WEI=0; P0=table[sh]; DUAN=1; DUAN=0; P0=0xfe; WEI=1; WEI=0;}
實現2位數計數器
源代碼與hex文件下載
匯編:http://www.zg4o1577.cn/ziliao/51hei-5/計時器_asm.rar
c語言:http://www.zg4o1577.cn/ziliao/51hei-5/計時器_C.rar