Part Number: AM2612
Hi experts,
I am asking for customer.
Customer's application scenario: The customer needs to use 2 SPI modules to read 6 channels of magnetic encoder results. The motor control algorithm requires the reading to be completed within 30 µs. Each SPI module handles 3 chip selects (2 hardware chip selects + 1 software chip select), and everything must be completed within the same ADC interrupt, meaning SPI cannot use interrupts.
The customer tested both MCAL and SDK:
- A single SPI read of 6 bytes takes 25 µs (MCAL) and 7 µs (SDK)
- The actual data transmission time on the bus is 5 µs
The preliminary conclusion is that only the SDK can meet the requirement. But even with SDK, reading 6 channels sequentially is not sufficient — it is necessary to read 2 channels in parallel each time to meet the timing requirement.
Customer's question is: Can the SDK support initiating communication on two SPI hardware units simultaneously (without using interrupts), and then polling to check the completion status of both channels? This would enable a 2×3 SPI read, with a theoretical total time of just over 21 µs, which can meet requirements.
Could you help to check and better give us a demo?
Best Regards