Part Number: TMS320F28379D
Hello, hope you are well.
I am using the F28379D dual CPU launchpad.
I am running a piece of control code that executes through an ISR. This ISR executes every 15 kHz (66.6 microseconds). I am using my SPI modules on the device to read data from my sensors. At my serial clock speed, it takes 24.6 microseconds to send and receive the SPI data signals from my sensors.
This lengthy sensor transaction limits my ISR frequency - prohibiting me from executing it at higher frequencies. I was wondering if I could do the SPI sensor transaction with CPU2 in parallel with my control code being executed on CPU1. I was wondering if I could use the IPC module to do this?
I was thinking of triggering acquiring the sensor readings on CPU2 and sending the data to CPU1 for processing and use.
Currently, the structure of my code looks as follows:
Main code (CPU1)
--------------------------
* Setup GPIOs
* Setup peripherals (SPI, ADC ePWM, etc...)
* Setup ISR (triggers every ePWM carrier period)
ISR
---------------------------
* Read sensor data
* Read current
* Execute control algorithm
* Acknowledge ISR, enabling further interrupts
