- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
This is the Config Wizard for Motix TLE9879 contorller.
May I know why the MRST pins are not enabled for both the SPI ports running in master and slave mode?
Note: I have taken the example code from Keil IDE without any modification.
While I was doing R&D for a project where I have other slaves connected to the same SPI having different SPI settings for each slave's bus all other slaves respond well except the TLE9879. Always it sends some garbage values (0xFF). I am thinking these pin selections might be the reason for it.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @ashrafulkhn ,
>> The above code example is to demonstrate the SSC1 as a Master and SSC2 as a slave.
- SSC1 and SSC2 are connected using CLK and MTSR (Master Transmit Slave Receive).
- The MRST (Master Receive and Slave Transmit) are not connected for SSC1 and SSC2 as the Master (SSC1) is not expecting any input from the slave device. Hence the MRST for both Master and Slave isn’t initialized.
>> If the input from the slave is expected then initialize the MRST for both Master and Slave devices.
>> Initialization of MRST can be done from SSC as well as from the PORT tab of the Config Wizard for MOTIX.
>> Please also check if the slave buffer is loaded with the correct value to be transmitted to Master.
Please make the above-mentioned changes and try the above code example to send and receive the data.
Best Regards
Sahil Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @ashrafulkhn ,
>> The above code example is to demonstrate the SSC1 as a Master and SSC2 as a slave.
- SSC1 and SSC2 are connected using CLK and MTSR (Master Transmit Slave Receive).
- The MRST (Master Receive and Slave Transmit) are not connected for SSC1 and SSC2 as the Master (SSC1) is not expecting any input from the slave device. Hence the MRST for both Master and Slave isn’t initialized.
>> If the input from the slave is expected then initialize the MRST for both Master and Slave devices.
>> Initialization of MRST can be done from SSC as well as from the PORT tab of the Config Wizard for MOTIX.
>> Please also check if the slave buffer is loaded with the correct value to be transmitted to Master.
Please make the above-mentioned changes and try the above code example to send and receive the data.
Best Regards
Sahil Kumar