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

Issue with SPIWriteReg #3

Open
AbhishekGNair opened this issue Feb 24, 2015 · 0 comments
Open

Issue with SPIWriteReg #3

AbhishekGNair opened this issue Feb 24, 2015 · 0 comments

Comments

@AbhishekGNair
Copy link

Hi Morgan,

I am looking to program an Arduino to talk with the AFE4400 and found your code very helpful as a starting point. That said, I think I have discovered an issue with the SPIWriteReg(byte regAddress, uint32_t regValue) function. When I am trying to write values less than 16 bits wide, I am getting wrong values out of the registers using SPIReadReg(byte regAddress). I think this is because the >>16 and >>8 shifts in the code don't work well when the data is less than 16 bits long. Are you aware of this issue? I will continue to chip away and will update you if I find anything useful.

Thanks again.

Regards,
AGN.

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

1 participant