Hello,
I want to develop software using F28388D.
In this software I will use ADC, DMA, Ethernet, SCI, Center Aligned Deadband PWM and PLL.
With ADC and DMA I want to read 4 different sensor data (current and voltage every 20 microseconds, 2 different temperature measurements every one second).
Since I need to generate a continuous signal instantaneously, the PWM (50 kHz) will generate an interrupt on the rising edge every 20 microseconds and within this interrupt function I will do a trigonometric calculation that will take about 1.5 microseconds. (This calculated value will be the next PWM duty value in the continuously generated signal. The PWM interrupt should be a priority interrupt. But this priority should not negatively affect the data of units such as ADC, ETH, PLL, SCI).
I want to clamp the sine current and voltage I produce using PWM with PLL and measure the phase difference between current and voltage.
There will be PC communication with Ethernet. ADC data and some error information will be sent to the PC. In some cases user parameters will be sent from the PC to the MCU.
I need your comments and support for this software.
If everything except the PWM interrupt in the state machine works in polling mode, will continuous PWM interrupts cause incorrect data in ADC, ETH, SCI read and write states? How should the system work here?
How can I build the state machine structure with a single CPU?
Would it be advantageous to use dual CPU? For example, would it be better if PWM and PLL are in CPU1, ADC, ETH, SCI are in CPU2? (I have not developed with Dual CPU, an additional learning and understanding process will be required to develop the software).
Thank you.