Kl25Z - SPI- Chip select

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

Kl25Z - SPI- Chip select

1,560 Views
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 Kudos
Reply
4 Replies

1,298 Views
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,298 Views
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 Kudos
Reply

1,298 Views
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,298 Views
wilk
Contributor II

Ok all right ! Then everything is fine :smileyhappy:

0 Kudos
Reply