Other Parts Discussed in Thread: TIDM-1000, TIDM-1001, TIDM-1007
I have searched a lot to find any reference design or training relating to implementing multiple control loops in C2000 piccolo controllers. The application is digital power conversion. The control codes will be coming from Simulink Embedded Code Generator. Some control loops will be slow such as 3 MPPT channels updating at 1 KHz and there will be a fast control loop for battery charging running at 10 or 20 KHz. Should I go with single ISR or multiple ISRs for individual control loops?. How to time ADC conversions?. Some channels need fast sampling as for 10 KHz control loop. Other need lower sampling such as 1 KHz for MPPT readings. There are still lower sampling rate for temperature readings such as 10 Hz or slow. The background task include SPI communication for updating measurements and configurations. Basically it will be nice if to have any software design document that suggests scheduling and timing of control & background tasks.