Spi Logic analyzer

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Spi Logic analyzer

3,791件の閲覧回数
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 返答(返信)

3,684件の閲覧回数
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 件の賞賛
返信

3,680件の閲覧回数
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 件の賞賛
返信

3,565件の閲覧回数
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 件の賞賛
返信

3,558件の閲覧回数
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 件の賞賛
返信

3,529件の閲覧回数
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 件の賞賛
返信

3,522件の閲覧回数
Ashish4525
Contributor II

Dear PetrS

PFA

0 件の賞賛
返信

3,579件の閲覧回数
Ashish4525
Contributor II

Dear Nxp's Tech support

I am wating for your response.

Best regards

Ashish 

0 件の賞賛
返信

3,733件の閲覧回数
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 件の賞賛
返信

3,769件の閲覧回数
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 件の賞賛
返信

3,766件の閲覧回数
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 件の賞賛
返信

3,758件の閲覧回数
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 件の賞賛
返信