上傳我業余時間編寫STC單片機小程序(小白菜)
rfid讀取卡號。
0.png (46.42 KB, 下載次數: 80)
下載附件
2017-8-21 17:56 上傳
單片機源程序如下:
- ////****************lcd.c************/
- ////osc=11.059mhz////
- #include"stc12c5a60s2.h"
- #include <intrins.h>
- //#include "lcd.h"
- //#include"ht1380.h"
- #include"fengmingqi.h"
- #include"rfid_muyi.h"
- //#include"18b20.h"
- ////#include <string.h>
- //#include"pca.h"
- ////#include "china16x.h"
- ////#include"stc12adc.h"
- #include"dingshiqi.h"
- #include"ascii_rfid.h"
- //===========================主程序=================================
- /*******************************************************************
- *本程序是12M晶體 256US發送一個脈沖 是RFID模擬工具
- * wasc_8x16(0,2,"ABCDEFGHIJKLMNOP"); //Asc8x16
- * 在0列,第2行寫入字符//一共有6行。
- * 一個8x16字母占1行。
- * 一個16x16漢字占2行。2013-11-02采用STC12C5A60S2單片機
- *////////////////////////////////////////////////////////////////////
- void main(void)
- { //u8 idata table[]={1,2,11,4,5,11,7,8};//11=://
- //u16 i;
- t0_init();//
- BBZZ(255);
- //rfid_ma_out=0;
- // asc816show(0,0,10,(u8 *) one16X8); //Asc8x16
- // asc816show(0,2,10,(u8 *) one16X8); //Asc8x16
- // asc816show(0,4,10,(u8 *) one16X8); //Asc8x16
- // asc816show(0,6,10,(u8 *) one16X8); //Asc8x16
- while(1)
- {
- /*******************************************************************
- * wasc_8x16(0,2,"ABCDEFGHIJKLMNOP"); //Asc8x16
- * 在0列,第2行寫入字符//一共有6行。
- * 一個8x16字母占1行。
- * 一個16x16漢字占2行。
- *////////////////////////////////////////////////////////////////////
- //LCDcls(0);// 全屏清屏,全部寫入某一個字節
- //htrr();//讀時鐘//
- //led=~led;
- // LCD_PutString(10,5,"ID_LOCK");//在0列第五行寫入漢字5=0,2,4,6//
- //shzhong_w();//寫入時鐘//
- //shizhong_w16x8(0,0);//x=0-127,y=0-7寫入16X8時鐘
- //w_shizhong_2017_7(0,0);//指定地址寫入時鐘2017-7
- //keytz();//時間調節//
- //delayms(500);
- // LCDcls(0);// 全屏清屏,全部寫入某一個字節
- // for(i=0;i<800;i++)
- // { //adc_test();//測量電壓//
- // //delayms(50);
- // huatu(); //打點程序//
- // }
- //LCDcls(0);// 全屏清屏,全部寫入某一個字節
- // testvo();//測量數值與電壓值對應關系//
- //xianshiwendu(88,0);////溫度顯示
- //shizhong_6x8(0,7);//指定地址寫入6X8字符//
- //jilushizhian(0,6);//x=0-128,y=0-7記錄時間表 10分鐘后蜂鳴器響//
- //test_yindaoma();//檢測引導碼
- // delayms(2800);//在第五行0地址開始寫入一串漢字//
-
- ……………………
- …………限于本文篇幅 余下代碼請從51黑下載附件…………
復制代碼
所有資料51hei提供下載:
RFID2017-8-21009.rar
(55.45 KB, 下載次數: 42)
2017-8-21 12:51 上傳
點擊文件名下載附件
下載積分: 黑幣 -5
|