I see that in the function RegRead0x0004() you write a couple bytes but then you call ClearBuffer() right after that. Why is that? Does that not consume all the bytes from the meter? This could explain that the call to Serial1.available() in RegRead0x0004() will return 0. Not sure why this behaves different on the MSP430 and TivaC though. Also, how quick is the meter in responding after you write the commands? You could be calling Serial1.available() before the meter has send any data. Robert
↧