新聞中心

        555應用

        作者: 時間:2016-11-17 來源:網絡 收藏
        C代碼:

        /*************** writer:shopping.w ******************/
        #include
        #define uint unsigned int
        #define uchar unsigned char

        本文引用地址:http://www.104case.com/article/201611/315540.htm

        sbit Signal = P1^0;
        sbit BEEP = P3^7;

        void Delay(uint x)
        {
        uchar i;
        while(x--)
        {
        for(i=0;i<120;i++);
        }
        }

        void main()
        {
        while(1)
        {
        if(Signal)
        {
        BEEP=~BEEP;
        Delay(3);
        }
        }
        }

        仿真電路:



        關鍵詞: 555單片

        評論


        技術專區

        關閉
        主站蜘蛛池模板: 故城县| 应城市| 南宁市| 搜索| 吴堡县| 连城县| 商水县| 拉孜县| 平乡县| 怀化市| 宁明县| 桑日县| 新竹县| 离岛区| 大荔县| 吉木乃县| 苗栗县| 祥云县| 邵阳县| 平原县| 大田县| 旅游| 双牌县| 乌兰察布市| 上林县| 兴和县| 宣恩县| 温宿县| 郧西县| 泾阳县| 涡阳县| 普安县| 鄂伦春自治旗| 沙雅县| 芜湖市| 四会市| 湟中县| 西贡区| 临江市| 陵川县| 乌海市|