Spi Logic analyzer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
To read devide ID register you need to send FDh followed by dummy byte.
BR, Petr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
sorry I do not see that on your given screenshots.
If have issue still, share a simplified project you have.
BR, Petr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Nxp's Tech support
I am wating for your response.
Best regards
Ashish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear all
I haven't received any response from tech support yet, still I am on this position.
Best regards
Ashish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
