hi,
I have a problem of reading MC33PF8200/PFS8613 registers, here is the problem:
when I try to read registers of MC33PF8200/PFS8613, the first time the result is OK, but the second time the result is wrong, the third time the result is OK, the fourth time the result is wrong...
I read the registers through I2C interface, and I'm using GPIO to simulate I2C bus, the I2C software driver has been tested with other ICs, and it's OK with others ICs like MAX20087, MPQ4230...
The test codes is here(the parameter 0x00 meas DEVICE ID register address):
uint8 testValue;
testValue = PF8200TestFuncReadReg(0x00); // the result is 0x48, it's right
testValue = PF8200TestFuncReadReg(0x00); // the result is a wrong number
testValue = PF8200TestFuncReadReg(0x00); // the result is 0x48, it's right
testValue = PF8200TestFuncReadReg(0x00); // the result is a wrong number
testValue = PF8200TestFuncReadReg(0x00); // the result is 0x48, it's right
I have no idea why it acting like this, dose anyone knows the reason?