自己實(shí)現(xiàn)的Proteus仿真(共陰極數(shù)碼管)
放大圖:
CODE:
#include
sbit dula=P2^6;
sbit wela=P2^7;
void main()
{
wela=1;
P0=0x00;
wela=0;
dula=1;
P0=0xff;
dula=0;
}
EEPW首頁(yè) > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > 自己實(shí)現(xiàn)的Proteus仿真(共陰極數(shù)碼管)
放大圖:
CODE:
#include
sbit dula=P2^6;
sbit wela=P2^7;
void main()
{
wela=1;
P0=0x00;
wela=0;
dula=1;
P0=0xff;
dula=0;
}
評(píng)論