Hello guys, I'm trying to solve issue on SSI module. I have to devices on one bus. One is is "mode 1 device" and one is "mode 0 device". How do I propertly change SSI modes?
On the beginning I send data to "mode 0 device" so I call this function to set up SSI module:
SSIConfigSetExpClk(SSI3_BASE, SysCtlClockGet(),SSI_FRF_MOTO_MODE_0, SSI_MODE_MASTER,500000 ,8 );
When I want to send data to "mode 1 device" I call the same function, but with another mode parameter:
SSIConfigSetExpClk(SSI3_BASE, SysCtlClockGet(),SSI_FRF_MOTO_MODE_1, SSI_MODE_MASTER,500000 ,8 );
My question is if this is a good practise or I have to Disable module, change parameters and enable module.
Thank you,
Jan