Hello,
I'm using the ADC128S102 and I have some problems with it.
How should this ADC be configured (SPI-Communication-configuration)?
Can you please tell me this.
My settings are as following:
ClockPolarity = 1
ClockPhase = 0
ClockFrequency = 12,5MHz
I understand, that on power up I will receive the value of IN0.
After power up I start my conversation as following:
1. Write Adress of IN0 (to get this value the next cycle) and receive IN0 (because of power up) and later IN4.
2. Write Adress of IN1 (to get this value the next cycle) and receive IN0 (because of previous communication).
3. Write Adress of IN2 (to get this value the next cycle) and receive IN1 (because of previous communication).
4. Write Adress of IN3 (to get this value the next cycle) and receive IN2 (because of previous communication).
5. Write Adress of IN4 (to get this value the next cycle) and receive IN3 (because of previous communication).
6. start again at point "1." but now there I will receive IN4.
This is doing well.
But if i mix up the communication order above I won't get the expected channel on the expected adress. I put communication point "2." between "4." and "5." (see following:):
1. Write Adress of IN0 (to get this value the next cycle) and receive IN0 (because of power up) and later IN4.
2. Write Adress of IN2 (to get this value the next cycle) and receive IN3 (because of previous communication).
3. Write Adress of IN3 (to get this value the next cycle) and receive IN0 (because of previous communication).
4. Write Adress of IN1 (to get this value the next cycle) and receive IN2 (because of previous communication).
5. Write Adress of IN4 (to get this value the next cycle) and receive IN1 (because of previous communication).
6. start again at point "1." but now there I will receive IN4.
This was problem 1.
The second problem is that with this settings the LSB of the receiving data is in Bit 17, so the received value I get is shifted by 1 to the right (from 16bit to 17bit).
What could be the problem?
My Last point is, do you have a 12-bit ADC-SPI which has following behaviour. I write the desired adress of the channel and will exactly receive this value?
Thank you very much.
Kind regards,
Philipp Baudermann