原帖由 chenhaishu 于 2011-12-9 20:00 发表 #include "compiler_defs.h"#include "C8051F930_defs.h"#include "string.h"#define uint unsigned int#define uchar unsigned charvoid Timer_Init(){TMOD = 0x02;TH0 = 0xD7;TH1 = 0xAE; //定时器T0作为SCL的位发 ...
我记得C8051F的官方例程里有SMBus读写AT24Cxx的例程,你找找看看。 |