SPI communication Chip Select issue - UJA1169 SBC with S32K146 uC

cancel
Showing results for 
Search instead for 
Did you mean: 

SPI communication Chip Select issue - UJA1169 SBC with S32K146 uC

287 Views
rogeliovdm
Contributor II

Hi, 

I am trying yo communicate with the UJA1169 through SPI with S32K146 uC. As the datasheet of the UJA1169 says, I have a function sending buffers of 16 bits to allow me to read one register of the SBC. Problem is that, I can't see the Chip Select line being activated (falling edge to start, rising edge to end transmission). 

My question is, where could I configure the chip select line to behave as it indicates above? Is this possible? Or should I configure manually the GPIO associated to the Chip Sel line in order to behave like this?

I attach one picture 

Thank you in advance, 

I attach one picture of this

(In the picture, starting from above): 

  • 1st channel: SPI Chip select -> problem
  • 2nd channel: SPI CLK
  • 3rd channel: SPI Data Input (to micro)
  • 4th channel: SPI Data Output (from micro)

 

Regards, 

Rogelio V

0 Kudos
4 Replies

271 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Rogelio,

I need to mention that we have SDK UJA116x driver.

You can refer to the sbc_uja116x_s32k144 example.

I compared the signal that you attached with the UJA1169 datasheet.

danielmartynek_0-1613037147942.png

danielmartynek_1-1613037188708.png

Bit sampling is performed on the falling edge of the clock (SBC datasheet) and on the rising edge of the clock (your configuration).

Please change it accordingly.

 

Thank you,

Daniel

 

0 Kudos

268 Views
rogeliovdm
Contributor II
 

Hi, 

I changed what you've indicated, but I still don't have any response from the SBC. 

 

Thank you in advance. I attach a picture. 

 

Rogelio 

 

0 Kudos

264 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Just to be sure, is the SCB powered? It needs 12V.

 

BR, Daniel

0 Kudos

282 Views
rogeliovdm
Contributor II

I accomplished to configure the CS as active low, but still, I am no getting any response from the SBC. 

 

I attach oscil. picture:

 

Thanks

Tags (1)
0 Kudos