SPI communication Chip Select issue - UJA1169 SBC with S32K146 uC

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

SPI communication Chip Select issue - UJA1169 SBC with S32K146 uC

6,250件の閲覧回数
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 件の賞賛
返信
4 返答(返信)

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

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

6,227件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

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

 

BR, Daniel

0 件の賞賛
返信

6,244件の閲覧回数
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

タグ(1)
0 件の賞賛
返信