SPI

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SPI

434 Views
siyuanzhengwei
Contributor III

在我对SPI主从机通信的测试中,我设置SPI0作为我的从机,SPI2作为主机,我将PTB3作为SPI2的SOUT,同时我还分别测试了SPI0作为从机时,PTE0,PTC9,PTD10,PTD16作为SIN时的数据接收情况,发现PTE0作为SIN时没有数据接收,PTC9作为SIN时前四个数据错误,PTD10,PTD16则正常,经反复测试,并确保接线正常,有通过设置成GPIO测试过输入正常,这可能是什么原因

0 Kudos
Reply
1 Reply

401 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@xuanming

你所使用的MCU型号是什么?所使用的RTD版本是什么?所使用的版本太低的话请升级至较新的版本再进行尝试。如果依然有问题,提供你的测试工程以及你的波形截图。

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2305672%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3ESPI%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2305672%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3EIn%20my%20test%20of%20SPI%20master-slave%20communication%2C%20I%20set%20SPI0%20as%20my%20slave%2C%20SPI2%20as%20the%20host%2C%20I%20will%20PTB3%20as%20SPI2%20SOUT%2C%20at%20the%20same%20time%20I%20also%20tested%20SPI0%20as%20a%20slave%2C%20PTE0%2C%20PTC9%2C%20PTD10%2C%20PTD16%20as%20the%20SIN%20when%20the%20data%20reception%2C%20found%20that%20the%20PTE0%20as%20a%20SIN%20when%20there%20is%20no%20data%20reception.%20PTC9%20as%20SIN%20when%20the%20first%20four%20data%20errors%2C%20PTD10%2C%20PTD16%20is%20normal%2C%20after%20repeated%20tests%2C%20and%20to%20ensure%20that%20the%20wiring%20is%20normal%2C%20have%20been%20tested%20by%20setting%20into%20the%20GPIO%20input%20is%20normal%2C%20what%20could%20be%20the%20reason%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2305851%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SPI%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2305851%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EHi%40xuanming%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EWhat%20is%20the%20MCU%20model%20you%20are%20using%3F%20What%20is%20the%20RTD%20version%20you%20are%20using%3F%20If%20the%20version%20you%20are%20using%20is%20too%20low%2C%20please%20upgrade%20to%20a%20newer%20version%20and%20try%20again.%20If%20you%20still%20have%20problems%2C%20provide%20your%20test%20project%20and%20your%20waveform%20screenshots.%3C%2FP%3E%3C%2FLINGO-BODY%3E