admin管理员组文章数量:1394131
What method should be used to implement 1-wire communication (master) on STM32MP13x board? After doing the research I've found that:
- for RPI, kernel module w1-gpio can be used to achive 1-wire communication. It's done on kernel level so those critical 1-wire timings can be met. But this module is not natively availabe for STM32MP1, there is no DT overlay ready (like for RPI)
- dedicated IC like DS2482-800 can be use as a 1-wire master in-the-middle, from which STM32MP1 can later read out the data using I2C
- no M-core co-processor is available for STM32MP13x series
Maybe there is a chance to port the w1-gpio to STM32MP1. But when using it, or the dedicated IC like DS2492-800 1-wire to I2C, I can only communicate with slaves that perfectly follow all 1-wire slave requirements (reset-present signals, timings, commands etc.). For my usage I need to have more control, because some of the 1-wire slaves I would like to communicate with do not follow those rules (they use custom function codes)
The most obvious way might be to implement it in userland, simply using the GPIOs, but I'm afraid that this way I will never meet the critical 1-wire timings.
本文标签: stm32How to implement 1wire communication on STM32MP13 MPUStack Overflow
版权声明:本文标题:stm32 - How to implement 1-wire communication on STM32MP13 MPU? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744085834a2588503.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论