Hi,
I am looking for a best design idea for following use case.
We use TMS570LS07 controller MIBSPI.
1. one MIBSPI master controller should communicate with 4 similar slaves. Slaves are different micro controllers. Each slave has different chip select line. All slaves have same data format. like clock phase, polarity, speed, character length ( 16 bits).
2. Need to send 3 kind of data length dynamically. 4 bytes, 10 bytes, 15 bytes. Since each buffer is 2 bytes, we can define 2,5,8 buffer lengths for a Transfer group.
How do i need to choose transfer groups and buffer lengths of each transfer group.
Approach: If 4 transfer groups are allocated for each slave, then what should be buffer length of each transfer group? can i chose maximum of my requirement like 8? If so how do i change transfer lengths dynamically when i need to transfer only 2 buffers only?
Constraints:
1. I should check transfer complete of each group through polling. Currently don't want to check through interrupts.
2. Approach should involve very minimal CPU intervention, that is the reason we choose MIBSPI over normal SPI.
3. Trigger of each transfer group is software trigger. settings presently are ONE SHOT, CSHOLD for entire transfer of group, TRG ALWAYS.
Can you please suggest a design approach for my requirement.
Thanks,
Rambabu