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

Forum Post: RE: AFE4300: Source code is needed

$
0
0
Hi Probin, I tested the below code and I got 0 or 1 unrelated to the load cell input force LVDO is 1.7 V. Do I need to Write 0x4120 on ADC_CONTROL_REGISTER1 during reading loop? DO I need to manipulate register Address (like 0x1F | RegAddress) in the AFE4300 _writeRegister(RegAddress)? In the AFE4300 _ReadRegister(RegAddress, Data), send 0x20 | RegAddress and after delay MSB sent first then LSB? How much delay is needed between each SPI transfer? If this reading loop is correct? dflag=0x0; for (uint8_t i=0; i<200; i++) { while(dflag==0x0); while(digitalRead(PIN_DRDY)); dflag=0x0; afe4300Data = AFE4300 _readRegister(0x00); Serial.println(afe4300Data ); delay(100); }

Viewing all articles
Browse latest Browse all 27683

Trending Articles



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