#define DELAY_TIME 0x4000 /*SEEDDM642的IIC的设置结构*/ I2C_Config SEEDDM642IIC_Configt = { 0, /* master mode, i2coar;采用主模式 */ 0, /* no interrupt, i2cimr;只写,不读,采用无中断方式*/ (20-5), /* scl low time, i2cclkl; */ (20-5), /* scl high time,i2cclkh; */ 2, /* configure later, i2ccnt;*/ 0, /* configure later, i2csar;*/ 0x4620, /* master tx mode, */ /* i2c runs free, */ /* 8-bit data + NACK */ /* no repeat mode */ (75-1), /* 2MHz clock, i2cpsc */ };
I2C_Config SEEDDM642IIC_Configr = { 0, /* master mode, i2coar;采用主模式 */ 0, /* no interrupt, i2cimr;只写,不读,采用无中断方式*/ (20-5), /* scl low time, i2cclkl; */ (20-5), /* scl high time,i2cclkh; */ 1, /* configure later, i2ccnt;*/ 0, /* configure later, i2csar;*/ 0x4420, /* master tx mode, */ /* i2c runs free, */ /* 8-bit data + NACK */ /* no repeat mode */ (75-1), /* 2MHz clock, i2cpsc */ }; |