I use Real Time workshop in simulink to generate code , and the generated code is about AC motor control , and Execute the code generated by this motor control code in the interrupt and it is a cycle of 50us . But the generated code assumed 220us , i do not know why assumed so long time . I hope this time is reduced to 40us. I am very confused. The following is the RTW generated code . The function is void FOC_INTC_test1_z_FOC_ISR(int_T controlPortIdx) in FOC_INTC_test1_z.c file. Very thanks.
Original Attachment has been moved to: FOC_INTC_test1_z.c.zip