Hi all
This is my i2c register config according to datasheet
#define I2C0_BASE 0x48028000
#define I2C0_REV *( volatile Uint32* )( I2C0_BASE + 0x00 )
#define I2C0_IE *( volatile Uint32* )( I2C0_BASE + 0x84 )
#define I2C0_STAT *( volatile Uint32* )( I2C0_BASE + 0x28 )
#define I2C0_WE *( volatile Uint32* )( I2C0_BASE + 0x34 )
#define I2C0_SYSS *( volatile Uint32* )( I2C0_BASE + 0x90 )
#define I2C0_BUF *( volatile Uint32* )( I2C0_BASE + 0x94 )
#define I2C0_CNT *( volatile Uint32* )( I2C0_BASE + 0x98 )
#define I2C0_DATA *( volatile Uint32* )( I2C0_BASE + 0x9c )
#define I2C0_SYSC *( volatile Uint32* )( I2C0_BASE + 0xa0 )
#define I2C0_CON *( volatile Uint32* )( I2C0_BASE + 0xa4 )
#define I2C0_OA *( volatile Uint32* )( I2C0_BASE + 0xa8 )
#define I2C0_SA *( volatile Uint32* )( I2C0_BASE + 0xac )
#define I2C0_PSC *( volatile Uint32* )( I2C0_BASE + 0xb0 )
#define I2C0_SCLL *( volatile Uint32* )( I2C0_BASE + 0xb4 )
#define I2C0_SCLH *( volatile Uint32* )( I2C0_BASE + 0xb8 )
#define I2C0_SYSTEST *( volatile Uint32* )( I2C0_BASE + 0xbc )
when I run the demo, the function EVM816x_I2C0_write() return 2002, I debug the problem is the status of the I2C0_STAT does not change, so why it does not change? how should I can do for that?
thanks
zhong