數(shù)碼顯示管顯示按鍵序號(hào) 89c51單片機(jī)編程實(shí)例
題目:AT89C51單片機(jī)P1口接8個(gè)按鍵(button),P2口接1個(gè)共陰極數(shù)碼顯示管,當(dāng)有鍵按下時(shí),數(shù)碼顯示管顯示按鍵的序號(hào)
本文引用地址:http://butianyuan.cn/article/201611/320747.htm電路圖:
源碼如下:
start:
start1:
next:
shift:
display:
again:
delay:mov r6,#50
table:db 3fh,06h,5bh,4fh,66h,6dh,7dh,07h
評(píng)論