No MISO activity needed during MOSI operation in iMX8MM EVK

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

No MISO activity needed during MOSI operation in iMX8MM EVK

跳至解决方案
845 次查看
sreedhar_appala
Contributor IV

Hi,

I am working with iMX8MM EVK and Yocto distribution 4.19.35 version

Build Configuration:
BB_VERSION = "1.42.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "imx8mmevk"
DISTRO = "fsl-imx-xwayland"
DISTRO_VERSION = "4.19-warrior"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""

We have interfaced an SPI slave to ecspi2 on J1003 of i.Mx8MM EVK.

ECSPI2 as master, When i do the SPI write operation.

I am observing same data on the MISO line of MOSI line.

Actually as per the data format of the slave, only during the read operation MISO sends the data to Master.

I would like to make MISO line to be sending nothing during spi write.

I checked the ECSPI2_CONFIG and ECSPI2_CONTROL register. I could not find to cutoff MISO activity during spi writes.

Please let me know is there any register bit to achieve what i need.

Thank you, Sreedhar

0 项奖励
1 解答
835 次查看
igorpadykov
NXP Employee
NXP Employee

Hi sreedhar_appala

 

when i.MX8MM eCSPI is master, MISO signal is an input and only slave signal can drive it

as described in sect.10.1.2.4.1 Typical Master Mode i.MX 8M Mini Applications Processor Reference Manual

 

"When the ECSPI is in Master mode the SS, SCLK, and MOSI are output signals, and the
MISO signal is an input."

 

Best regards
igor

在原帖中查看解决方案

0 项奖励
2 回复数
836 次查看
igorpadykov
NXP Employee
NXP Employee

Hi sreedhar_appala

 

when i.MX8MM eCSPI is master, MISO signal is an input and only slave signal can drive it

as described in sect.10.1.2.4.1 Typical Master Mode i.MX 8M Mini Applications Processor Reference Manual

 

"When the ECSPI is in Master mode the SS, SCLK, and MOSI are output signals, and the
MISO signal is an input."

 

Best regards
igor

0 项奖励
827 次查看
sreedhar_appala
Contributor IV

Thank you igor !!

0 项奖励