Spi data

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

Spi data

1,213 Views
Ashish4525
Contributor II

Dear Tech Support

I am trying to communicate to UJA1169 and I am using 12 volt supply.

I am using Autosar standard for communication ,and  I have used Setup_Eb Apis for setting buffer and for transmission I have sent 0xFD,0xCF but in rx buffer I am getting 0xFF.

even I have changed value.

Can you explain the reason behind this?

B.R

Ashish

0 Kudos
Reply
3 Replies

1,174 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

could you please measure SPI signals with scope/analyzer to be sure what is sent? Also be sure right SPI protocol is used as mentioned in the UJA1169 datasheet.
An SPI read/write access must not be attempted for at least tto(SPI) after the UJA1169 exits
Reset mode (positive edge on RSTN).

BR, Petr

0 Kudos
Reply

1,115 Views
Ashish4525
Contributor II

Dear PetrS

I am trying to run spi in synchronous mode. Do I have to enable SPI interrupt?

Note: I am running SPI on 40MHZ is it ok? In mOSi no data I am able to see now also TDR register no value is getting stored. 

B.R

Ashish

0 Kudos
Reply

1,081 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

for sync transmit SPI interrupt is not needed.
A 40MHz rate is quite high, depends on pins used. You can test lower rates first.

BR, Petr

0 Kudos
Reply