基於proteus的51單片機仿真實例七十四、4-16譯碼器74HC154應用實例

1、本例通過4-16譯碼器74HC154實現用4個IO口控制16個LED循環點亮   2、在keil c51中新建工程ex62,編寫如下程序代碼,編譯並生成ex62.hex文件 //4-16線譯碼器實例 #include <reg51.h> //延時函數 void delayms(unsigned int x) {   unsigned char i;  while(x--)  {    for(
相關文章
相關標籤/搜索