calviodotde
Newbie level 1
- Joined
- Oct 24, 2014
- Messages
- 1
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 11
I am using a very basic ADE7753 breadboard design with v-divider on Ch2 and 0R001 shunt on Ch1.
SPI-comm works fine, I can write to and read back the MODE register successfully. I set MODE to 0x4021 (WAVEFORM source Ch1) or 0x6021 (WAVEFORM source Ch2)
When I do 3-byte reads on the 24bit signed WAVEFORM, I get reasonable values with source Ch2 selected, like 0xFFF481 @ V=-10V
Reading WAVEFORM with source Ch1 selected, I get values like 0xFC7A00, i.e. LSB always 0x00.
Reading WAVEFORM Ch2 with swapped ADCs (i.e. with same physical source as before) returns a reasonable value of e.g. 0xFFFC7A.
Seems like Ch1 shifts left 8 bit when transferred into WAVEFORM-reg but Ch2 does not - what am I doing/getting wrong?
Thanks for any help or hints!
SPI-comm works fine, I can write to and read back the MODE register successfully. I set MODE to 0x4021 (WAVEFORM source Ch1) or 0x6021 (WAVEFORM source Ch2)
When I do 3-byte reads on the 24bit signed WAVEFORM, I get reasonable values with source Ch2 selected, like 0xFFF481 @ V=-10V
Reading WAVEFORM with source Ch1 selected, I get values like 0xFC7A00, i.e. LSB always 0x00.
Reading WAVEFORM Ch2 with swapped ADCs (i.e. with same physical source as before) returns a reasonable value of e.g. 0xFFFC7A.
Seems like Ch1 shifts left 8 bit when transferred into WAVEFORM-reg but Ch2 does not - what am I doing/getting wrong?
Thanks for any help or hints!