Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Timing controls violate deadbands as mentioned in the AFE4400 datasheet. Result in noisy and therefore incorrect readings. #5

Open
yashmulgaonkar opened this issue Feb 3, 2023 · 1 comment

Comments

@yashmulgaonkar
Copy link

As mentioned, the timing scheme violates the 2x 4HMz clock cycle deadbands.
Snip from AFE4400 Datasheet:
image

Example violations:

afe44xxWrite(ADCRSTCNT0, 0X000000);

afe44xxWrite(ADCRSTENDCT0, 0X000000);

These need to be at least 2 clock cycles apart.

Resulting data:
image

Image from Protocentral blog shows cleaner data, so likely that the timing scheme needs updating on GitHub.
image

@protocentralashwin
Copy link
Contributor

I am not able to reproduce the noise that you have mentioned with the current code (both on AFE4490 and AFE4400)., since we're sampling at a very low rate only. Usually we have seen this noise when either a) the probe is damaged and the current from the photodiode keeps fluctuating or b) when there is light leakage from ambient (mostly from flourescent lamps).

But I will still check the timing issue also in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants