ST意法半导体
直播中

郝汉

7年用户 249经验值
私信 关注
[问答]

请问STM32 MCU和STPM01 AFE如何建立它们之间的SPI通信?

嗨,我是一名嵌入式电子工程师,最近我有一个基于STM32 MCU和STPM01 AFE的名为“插头电表”的项目,但我无法在AFE和MCU之间建立SPI通信,因为没有可读取的库和通过SPI写,请帮帮我!

以上来自于谷歌翻译


以下为原文





Hi, i am an embedded electronic engineer and lately i have a project named 'plug meter' based on an STM32 MCU and the STPM01 AFE, but i couldn't establish the SPI communication between AFE and MCU because there are no libraries to read and write through SPI, please help me!

回帖(3)

蔡鼎瑾

2018-9-26 15:42:26
你的设计是这样的......?
http://www.st.com/en/evaluation-tools/steval-rfplug01.html
我建议使用STPM32 / STPM33 / STPM34
寻找评估工具软件
http://www.st.com/en/data-converters/stpm33.html

以上来自于谷歌翻译


以下为原文




You design is something like this... ?

http://www.st.com/en/evaluation-tools/steval-rfplug01.html
I suggest to use STPM32/ STPM33 / STPM34
Look for Evaluation Tool Software at
http://www.st.com/en/data-converters/stpm33.html
举报

郝汉

2018-9-26 15:47:49
不,实际上我愿意使用ST(STM32f030K6T)和AFE模块(STPM ......)的MCU设计自己的主板。
我想象这个设计:
在那里,我需要建立MCU和AFE之间的低级通信层,但我在你的数据表中找不到一些软件库来促进通信; (仅SPI的硬件描述:
我是否被迫为AFE创建自己的硬件抽象层(HAL)?
还有其他公司提供常规SPI通信接口(已与任何MCU兼容)。
所以我的问题是:
有没有
 库通过SPI读写?如果不是我怎么能这样做(考虑到我会,但STPM ...和MCU可分离并设计我的板)?
谢谢

以上来自于谷歌翻译


以下为原文




No, in fact i am willing to design my own board, using a MCU from ST (STM32f030K6T) and an AFE module (STPM...).
I imagined this design:
There for, i need to establish the low level communication layer between MCU and AFE, but i couldn't find in your datasheet, some software libraries to facilitate the communication; (only hardware description of SPI :
Am i forced to create my own Hardware Abstraction Layer (HAL) for the AFE ??
There is other companies providing a regular SPI communication Interface (already compatible with any MCU).
So my question is:
Is there any
libraries to read and write through SPI ? if not how can i do it then (considering that i will but the STPM.. and MCU separably and design my board)?

Thank you
举报

蔡鼎瑾

2018-9-26 16:01:28
对于新设计STPM32 / 33/34推荐
寻找评估工具软件
 
/external-link.jspa?url=http%3A%2F%2Fwww.st.com%2Fen%2Fdata-converters%2Fstpm33.html
 
 
 注意:原始帖子包含大量线程对话,只能迁移到第9级

以上来自于谷歌翻译


以下为原文




For new designs STPM32/33/34 recommended

Look for Evaluation Tool Software at

/external-link.jspa?url=http%3A%2F%2Fwww.st.com%2Fen%2Fdata-converters%2Fstpm33.html


Note: the original post contained a large number of threaded conversations and was only able to be migrated to the 9th level
举报

更多回帖

发帖
×
20
完善资料,
赚取积分