Spi Logic analyzer

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

Spi Logic analyzer

12,085 次查看
Ashish4525
Contributor II

Dear all

I am trying to run SPI protocol on s32k118evb in mode 0 so in logic analyzer it is showing 0xff data in MISO but I am sending different data. I have attached on snip of docs ,as same I have configured MOSI,MISO,SCK,CS in tresos and why my rx buffer taking value as 0xFF.

 

PFA for reference,.

Best regards

Ashish

0 项奖励
回复
11 回复数

11,978 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

have you set right pins, that are connected to SBC? Do you have board powered by 12V so SBC is powered properly? SPI mode 1 should be used for communication.

BR, Petr

0 项奖励
回复

11,974 次查看
Ashish4525
Contributor II

Dear PetrS

I am running board with jumper settings (J107 1-2) for 12volt and J10(1-2) and I have configured the right pins in Tresos also MOSI data is showing in logicAnalyzer but no ,MISO data is coming it shows only 0xFF ,at first I am reading UJA1169 by sending command 0xFD,in mode 1 with LSB data first.

PFA all screenshots.

I am unable to understand root cause of this problem.

Best regards

Ashish

0 项奖励
回复

11,859 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

you have CFh, FDh sequence sent to UJA1169, as per analyzer screenshot.
Also you mentioned LSB is sent first, but have MSB setting I think. Anyway MSB have to be chosen.
Device protocol is below

PetrS_0-1717142778469.png

To read devide ID register you need to send FDh followed by dummy byte.

BR, Petr

 

0 项奖励
回复

11,852 次查看
Ashish4525
Contributor II

Dear PetrS

I have sent the same command 0xFD,it is showing on logic analyzer but in MISO pin I am getting 0xFF.

I have made TxBuffer in which first 8bit are address(7-bit) + read only bit and other 8 bit are, 0xCF which is device identification value.

I have even tried with MSB first but same issue I am facing.

BR

Ashish

0 项奖励
回复

11,823 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

sorry I do not see that on your given screenshots.
If have issue still, share a simplified project you have.

BR, Petr

0 项奖励
回复

11,816 次查看
Ashish4525
Contributor II

Dear PetrS

PFA

0 项奖励
回复

11,873 次查看
Ashish4525
Contributor II

Dear Nxp's Tech support

I am wating for your response.

Best regards

Ashish 

0 项奖励
回复

12,027 次查看
Ashish4525
Contributor II

Dear all

I haven't received any response from tech support yet, still I am on this position.

Best regards

Ashish

0 项奖励
回复

12,063 次查看
dylan_cristiani
Contributor II

Hi: the MISO (master input slave output) signal is the answer of the slave node of the spi communication, so the question is: who's is your slave node, if you have one? as it seems, from the protocol analyzer, your slave is not answering to you at all (you see 0xff probably due to some pullup on the miso line)

0 项奖励
回复

12,060 次查看
Ashish4525
Contributor II
Hi Dylan
my slave device UJA1169 and master is s32k118evb and I am trying to send some data on it.I have disabled pull up and pull down still same issue.
0 项奖励
回复

12,052 次查看
dylan_cristiani
Contributor II

Maybe there is something wrong in the spi settings ie: slave samples data on the falling clk edge, while master is syncing out data with rising edges, or something similar

0 项奖励
回复