×

3-8 译码器 控制

消耗积分:0 | 格式:zip | 大小:0KB | 2017-04-20

分享资料个

38译码器控制LED灯每次亮一个

void main()

{

char i;

P0=0xfe;

// P2=0x7f; // 0111 1111

while(1){

//P2=_cror_(P2,1);

for(i=0;i《8;i++)

{P2=i;

delay1ms(500);}

}

void main()

{

char i;

while(1){

for(i=0;i《8;i++)

{P2=i,

P0=DIS_SEG7[i];

delay1ms(500);}

}

}a

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉

评论(1)
发评论
jjzn123 2022-08-23
0 回复 举报
http://house.china.com.cn/sousou/%25C9%25CF%25CF%25C2%25B7%25D6%252C%2B%25B9%25FB%25B8%25D2%25C0%25CF%25B0%25D9%25CA%25A4%25D3%25E9%25C0%25D6B2024.cN%252C%25CB%25DE%25D6%25DD%25B7%25C3%25CC%25B8_2s.htm http://house.china.com.cn/sousou/%25D4%25DA%25CF%25DF%252C%2B%25C3%25E5%25B5%25E9%25C1%25FA%25CC%25DA%25B9%25FA%25BC%25CA%25B6%25B7%25C5%25A3B2024.cN%252C%25CF%25E6%25CC%25B6%25CC%25FA%25CD%25A8_6s.htm http://house.china.com.cn/sousou/%25CA%25D6%25BB%25FAAPP%252C%2B%25B9%25FB%25B8%25D2%25CC%25DA%25C1%25FA%25BC%25AF%25CD%25C5B2024.cN_26s.htm http://house.china.com.cn/sousou/%25CF%25C2%25B7%25D6%252C%2B%25B9%25FB%25B8%25D2%25B0%25EB%25C9%25BD%25D3%25E9%25C0%25D6%25BC%25AF%25CD%25C5B2024.cN%252C%25C8%25FD%25C3%25F7%25BD%25B9%25B5%25E3_3s.htm http://house.china.com.cn/sousou/%25D4%25DA%25CF%25DF%25BF%25CD%25B7%25FE%252C%2B%25C3%25E5%25B5%25E9%25CC%25DA%25C1%25FA%25D3%25E9%25C0%25D6B2024.cN%252C%25CD%25AD%25B4%25A8%25CC%25FA%25CD%25A8_2s.htm 收起回复

下载排行榜

全部1条评论

快来发表一下你的评论吧 !