摘要: char.h const unsigned char code Font8x16[96][16] = //Font8x16{//按照ASCII编码顺序//0x08,0x10,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // columns, rows, num_bytes_per_char{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,... 阅读全文
posted @ 2012-07-02 20:49 sky1991 阅读(1736) 评论(1) 推荐(1) 编辑
摘要: 1 /*************************此部分为AT2402的驱动程序使用I2C总线连接*************************************/ 2 3 #include<I2C.c> 4 5 //AT2402的功能函数 6 /******************************************************************* 7 向有子地址器件发送多字节数据函数 8 函数原型: bit ISendStr(UCHAR sla,UCHAR suba... 阅读全文
posted @ 2012-07-02 19:48 sky1991 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 1 /*************************此部分为I2C总线的驱动程序*************************************/ 2 3 #include<reg52.h> 4 #include <intrins.h> 5 6 //#define NOP() _nop_() /* 定义空指令 */ 7 #define _Nop() _nop_() /*定义空指令*/ 8 9 10 sbit SCL=P2^1; //I2C 时钟 11 sbit SDA=P2^0; //I2C ... 阅读全文
posted @ 2012-07-02 19:39 sky1991 阅读(665) 评论(0) 推荐(0) 编辑