Kl25Z - SPI- Chip select

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Kl25Z - SPI- Chip select

1,562 次查看
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,300 次查看
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,300 次查看
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,300 次查看
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,300 次查看
wilk
Contributor II

Ok all right ! Then everything is fine :smileyhappy:

0 项奖励
回复