Quantcast
Channel: Data converters
Viewing all articles
Browse latest Browse all 90541

Forum Post: RE: ADS7128: How to correctly use RMS

$
0
0
One interesting update. I was able to make in the python proper read method, as showed in the datasheet (using i2c_rdwr). That means only set address, and then read 2 bytes. What's funny, that it doesn't work... When I first set to read multiple registers (e.g. bus.write_byte_data(ADSI2C_ADDR, READ_MR_CODE, RECENT_CH0_LSB_REG)) and then try to read the two bytes, it returns 0,0 and the data are ended by NACK. The reason why I have the weird value in the RMS result (in my previous reply) is probably because when I skip the setting of the multiple registers to read, it returns some actual values of CH0 (also ended with NACK). I don't really get this behavior, that when I try to read data with wrong settings, it output CH0 data... UPDATE: With the proper two byte read and autonomous mode, it outputs some data in RMS. Recent data are not outputted (I don't know if this is expected behavior when RMS is used?) Still the data are ended with NACK, I will check tomorrow if they make some sense.

Viewing all articles
Browse latest Browse all 90541


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>