本帖最后由 john_lee 于 2011-9-17 08:39 编辑
1、I2C Control Register (I2CON)寄存器的BIT6,TRM上的名字是ENS1:
而NUC1xx.h文件中定义的名字是ENSI: typedef struct
{
__I uint32_t RESERVE0:2;
__IO uint32_t AA:1;
__IO uint32_t SI:1;
__IO uint32_t STO:1;
__IO uint32_t STA:1;
__IO uint32_t ENSI:1;
__IO uint32_t EI:1;
__I uint32_t RESERVE1:24;
} I2C_CON_T;
到底哪个是正确的?
2、TRM中关于I2CSTATUS寄存器的描述:I2CSTATUS [7:0] is an 8-bit read-only register. The three least significant bits are always 0. The bit field I2CSTATUS [7:3] contain the status code. There are 26 possible status codes, All states are listed in section 5.6.6.
但section 5.6.6并没有status code的定义,整个TRM中都没有。 |