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 ?
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.
评分
查看全部评分
评分
查看全部评分
评分
查看全部评分
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 ?
I2C slave mode to get data by DMA mode , not the I2C master mode,is that possible ?????
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.
yes, I use I2C slave in DMA mode,please scan the example in library.