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.
Hello to all,
I'm using a MSP430-F169 and a MAX127 ADC connected via I2C-Bus.
Its easy to read the first correct value from the ADC (two bytes) - but once only. The following received values are all wrong, till I reset the CPU.
From Datasheet ADC:
"After receiving the acknowledge, the slave issues the second byte followed by a NOT acknowledge from the master to indicate that the last data byte has been received. Finally, the master issues a STOP condition, ending the read cycle."
I know, how to generate a STOP condition, but I don't know how to generate a NOT acknowledge.
Probably this is the reason why it only works once.
Someone knows what to do?
Thanks for your time!
Use it in the mode where I2CRM=0. In this setup the I2C peripheral uses the I2CNDAT register to count the number of bytes being received. The I2C spec requires that a master receiver NACK the last byte received so this will be done by the peripheral automatically.
**Attention** This is a public forum