Other Parts Discussed in Thread: ADS131A04
Hi,
I am trying to write FPGA code to talk to the ADS131A02 but even the latest datasheet (RevD Jan2018) seems very unclear and ambiguous in many areas.
1) Table 31 says you have to enable all or none of the ADCs by writing "0000" or "1111" to ENA[3:0] (ie enabling 4 ADCs but does this also apply to the ADS131A02 which only has 2 channels?
2) In dynamic frame mode, at what point does the frame size change.... Datasheet sections 9.5.3.3 and 9.5.3.4 say the ENA[3:0] bits must be cleared/set prior to doing a standby/wakeup command respectfully (note datasheet also incorrectly references ADCx registers regarding enable bits and should reference ADC_ENA register instead) but it is not clear if the reg write command to change ENA[3:0] is what changes the frame size, or if it is the following standby/wakeup command that causes the frame size change.
3) After a reset (soft or hard) it is not clear if you MUST use the null command to retrieve the ready response. I have read somewhere that you can just keep issuing the UNLOCK command until you receive the 0x0655 ACK response to the Unlock command. Is this allowed and/or will it work?... even it it is not 'technically' allowed/recommended.
4) Must the part be unlocked before you can issue a soft reset command?
5) is there any difference between doing a soft reset and just re-writing all the registers to their default values? ie does the soft reset do more than just reset the registers and if so what?
6) Section 9.5.3.10 says "The command status response for the WREGS command is 010a aaaa nnnn nnnn" but the top 3 bits of the WREGS command are "011". ie I was expecting "Ack (WREGS)" as the response ie "011a aaaa nnnn nnnn". Is there a typo in Section 9.5.3.10 ? What is the correct command status response for the WREGS command?
7) Section 9.5.1.2 in Rev D datasheet says "When CRC data integrity is disabled in dynamic-frame mode, the sixth device word for the ADS131A0x is removed from the data frame. If CRC data integrity remains enabled, the device word count remains at six." but Rev C datasheet said "When CRC data integrity is disabled in dynamic frame mode, the sixth device word for the ADS131A04 and the fourth device word for the ADS131A02 are removed from the data frame. If CRC data integrity remains enabled, the device word count remains at six and four, similar to the fixed-frame size option." However, in table 27 (RevD) and table 31 (RevC) the description of the "FIXED" bit is identical. Does the channel count of the device (2 vs 4) affect the frame size in dynamic mode or not? ALSO, Does the channel count of the device (2 vs 4) affect the frame size in fixed mode or not?
8) Do you have any example SPI code available yet?
Thanks
Dave
"