This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SM470R1B1M 通过I2C读取AT45C04中的数据,但读出来的数据不正确,谁帮我解答一下

uint16 I2c_Page_Rx_single()
{
  uint16 I2Cbuffer;
  while(I2C2SR_bit.BB);
   I2C2SAR = 0x50;
          I2C2DXR = 0x00;
   I2C2CNT = 1;
   I2C2MDR = 0x2e20;
          DelayUs(10000);
   I2C2SR_bit.SCD &=0x0;
   I2C2CNT = 16;
   I2C2MDR = 0x2c20;
   DelayUs(10000);

     for( int i=0;i<16;i++)
     {
        printf("%d\r\n", I2Cbuffer);
 DelayUs(10000);
     }
     I2C2MDR = 0x00;

}

这是读取一页数据的程序,不知道哪里出问题了,求各路大神指导