AnsweredAssumed Answered

Configuring >1 PCS Lines on same SPI Channel

Question asked by Kishore Kumar Devendran on May 20, 2019
Latest reply on May 21, 2019 by Lukas Zadrapa

I would like to know if there is a special setting or configuration inorder to use more than 1 PCS lines on SPI_3 channel in MPC5748G.

MPC5748G as SPI Master talking to 2 External Slave Devices

Observation 1:

Config

1st External Device with PCS0 on SPI_3

2nd External Device with PCS1 on SPI_3

 

Transmit Request is sent to both Devices with corresponding PCS pulled LOW before sending and pull it back to HIGH

Observation :

Successfull communication only with 1st External Device.

On transmission request to 2nd External Device

PCS1 line remains HIGH while PCS0 is pulled low when transmission to 2nd External Device. Since the Master Node is same for both External Devices successful communication is seen on 1st Device instead of 2nd Device

 

Observation 2:

Config

1st External Device with PCS1 on SPI_3

2nd External Device with PCS0 on SPI_3

 

Transmit Request is sent to both Devices with corresponding PCS pulled LOW before sending and pull it back to HIGH

Observation :

Successfull communication only with 1st External Device.

On transmission request to 2nd External Device

PCS0 line remains HIGH while PCS1 is pulled low when transmission to 2nd External Device. Since the Master Node is same for both External Devices successful communication is seen on 1st Device instead of 2nd Device

 

Conclusion : Whichever PCS Lines is used for the 1st External Device the same PCS Line is used for other slaves as well without considering the corresponding PCS lines of those Slaves. 

 

Is there any place where the second PCS should be initialized explitcily ??

Outcomes