你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

Can DMA be enabled for I2C slave mode in STM32

[复制链接]
hellonsn 提问时间:2018-8-15 10:22 /
STM32 supports DMA operation in I2C master and SPI master mode obviously. However , can we  enable DMA in I2C slave or SPI slave mode to transfer user data ?


收藏 评论7 发布时间:2018-8-15 10:22

举报

7个回答
琦子 回答时间:2018-8-15 11:57:58
我认为应该是可以的

评分

参与人数 1蝴蝶豆 +2 收起 理由
zero99 + 2

查看全部评分

zhangxu56726 回答时间:2018-8-15 13:48:58
ok,STM32 transfer data use DMA, I used ,long long ago.

评分

参与人数 1蝴蝶豆 +2 收起 理由
zero99 + 2

查看全部评分

feixiang20 回答时间:2018-8-15 23:23:21
可以的吧,在主模式(SPI_InitStructure.SPI_Mode = SPI_Mode_Master;)接收数据可以用DMA.能使I2C从或从SPI从属模式中的DMA传输用户数据

评分

参与人数 1蝴蝶豆 +2 收起 理由
zero99 + 2

查看全部评分

hellonsn 回答时间:2018-8-16 12:53:32
feixiang20 发表于 2018-8-15 23:23
可以的吧,在主模式(SPI_InitStructure.SPI_Mode = SPI_Mode_Master;)接收数据可以用DMA.能使I2C从或从SPI ...

I use I2C slave mode to receive data by DMA , is that possible ? if yes ,how to count the number of bytes it received by DMA ?
hellonsn 回答时间:2018-8-16 12:54:33
zhangxu56726 发表于 2018-8-15 13:48
ok,STM32 transfer data use DMA, I used ,long long ago.

I2C slave mode to get data by DMA mode , not the I2C master mode,is that possible ?????
hellonsn 回答时间:2018-8-16 14:17:42
bargagebaobei 发表于 2018-8-15 11:57
我认为应该是可以的

One question is that in slave mode , the I2C receiver dont know in advance how many bytes it is to receive because the number of bytes transferred is determined by the i2c maset? In that case , seems the DMA cannot be used.

but DMA can be enable in transmitter in slave mode , since it knows how many bytes it is going to transfer.

Is that right ?  thanks.
zhangxu56726 回答时间:2018-8-16 17:23:55
hellonsn 发表于 2018-8-16 12:54
I2C slave mode to get data by DMA mode , not the I2C master mode,is that possible ?????

yes, I use I2C slave in DMA mode,please scan the example in library.

所属标签

相似问题

关于意法半导体
我们是谁
投资者关系
意法半导体可持续发展举措
创新和工艺
招聘信息
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
关注我们
st-img 微信公众号
st-img 手机版