Part Number: AFE4300EVM-PDK
Other Parts Discussed in Thread: AFE4300
Dear,
I would like to write the registers and read the output values in Matlab. I tried to make a Matlab program to write the registers with help of the Message Communication Protocol document.
After some attempts, I managed to write the registers according to the values in the device GUI (like I select the boxes in the GUI). I can also read back the register values and they are correct. For example: for changing the sample frequency to 860 sps in ADC_CONTROL_REGISTER1, I send 'w015170?' and then I send 'r01?' and I read back 5170 (also, the display of the AFE4300 EVM PDK board shows this value). However, I am not able to measure the potential difference over 1 pair of measurement electrodes (I keep receiving the 0A 0D default value) in Matlab.
When I adjust the registers in the GUI and try to read the measurements through Matlab, it does work. In my Matlab code, I first set all registers to the default values and then I adjust all the register values. Is there something else that I should add to my Matlab code, except all the register values?
Regards,
Jinke