Kl25Z - SPI- Chip select

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

Kl25Z - SPI- Chip select

1,577件の閲覧回数
wilk
Contributor II

Hi guys !

I'm new and I wanted to know if it's possible to have two slaves controlled by a single spi master (from the kl25z) with the chip select or do I have to use two spi master ?

I didn't understand where the chip select pin are on the datasheet. It looks like there's just one chip select for an spi master but on several pins ?

0 件の賞賛
返信
4 返答(返信)

1,315件の閲覧回数
BlackNight
NXP Employee
NXP Employee

Yes, having two SPI slaves (or more) is easily possible with one SPI master. But in that case disable the automatic chip select feature of the peripheral, because otherwise that chip select is asserted for any bus transfer. Instead, have two normal pins used as chip selects.

I hope this helps,

Erich

1,315件の閲覧回数
wilk
Contributor II

Ok thanks ! Well do you maybe know if disabling the automatic chip select would be a problem if I want to communicate with an Ethercat ASIC ?

0 件の賞賛
返信

1,315件の閲覧回数
BlackNight
NXP Employee
NXP Employee

this should not be a problem at all. Just make sure you have the chip select line configured properly. I did this with a Beckhoff Ethercat module.

1,315件の閲覧回数
wilk
Contributor II

Ok all right ! Then everything is fine :smileyhappy:

0 件の賞賛
返信