上一页 1 ··· 14 15 16 17 18

2008年4月29日

AVR(M48)的i2c程序,读写at24c02

摘要: //ICC-AVR application builder : 2007-12-5 17:34:01// Target : m48// Crystal: 1.0000Mhz#include <iom168v.h>#include <macros.h>#include <myfun.h>//#include <I2C.h>#define START 0x08#define ReSTART 0x10#define MT_SLA_ACK 0x18#define MT_DATA_ACK 0x28#define MR_SLA_ACK 0x40#define 阅读全文

posted @ 2008-04-29 15:44 yanhc 阅读(693) 评论(0) 推荐(0)

2008年2月18日

AVR_M168_debug_log

摘要: USART://TIPS://transmitt and receive enable,set the baud rate;if use the interrupt,//then set the interrupt enable最好是先启动串口调试工具,再启动M168,若相反,则导致起始位定在一帧数据的中间,造成接受的数据连续出错,eg:发59,收到95,56,65,59 阅读全文

posted @ 2008-02-18 14:32 yanhc 阅读(179) 评论(0) 推荐(0)

上一页 1 ··· 14 15 16 17 18

导航