Skip to content

Explanation of I2C Write #25

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

Closed
tay10r opened this issue Jan 9, 2025 · 4 comments
Closed

Explanation of I2C Write #25

tay10r opened this issue Jan 9, 2025 · 4 comments

Comments

@tay10r
Copy link

tay10r commented Jan 9, 2025

I'm curious about this line:

retVal = writeRegisterByte(0x7F, 0);

As far as I can tell from the manual, there isn't a register mapped at this address and the software reset is done by setting a bit in the CNTL 2 register (which happens shortly after this line). What is this line of code doing?

@edspark
Copy link
Contributor

edspark commented Jan 9, 2025

@PaulZC Can you give some insight here - looks like you added it a while back. I can confirm what @tay10r mentions, that there isn't anything in the datasheet regarding that particular value.

@PaulZC
Copy link
Contributor

PaulZC commented Jan 9, 2025

There are notes referring to the Kionix TN027 "Power On Procedure" 20 lines earlier. I'll investigate tomorrow...

@PaulZC
Copy link
Contributor

PaulZC commented Jan 9, 2025

More detail on page 4 here:

https://fscdn.rohm.com/kionix/en/document/TN027-Power-On-Procedure.pdf

@tay10r : please close this issue if this answers your question.

Best wishes,
Paul

@tay10r
Copy link
Author

tay10r commented Jan 9, 2025

As you mentioned, it's all explained on page 4. Thanks for sharing and for the quick response!

@tay10r tay10r closed this as completed Jan 9, 2025
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

3 participants