Hi @Jaber,
To address your question regarding,” I want to control a bldc motor using FOC but after doing some research i find that i can't use FOC with BLDC only with PMSM.Can any one say if i can use FOC”
Yes, you can use Field-Oriented Control (FOC) with Brushless DC (BLDC) motors, please click the link below.
https://www.mathworks.com/help/ecoder/infineonaurix/ug/foc-pmsm-ifx.html
In the link above, by following the "Field-Oriented Control of BLDC with Encoder Using Infineon AURIX Microcontrollers," you can create a closed-loop system that effectively regulates both speed and torque.
Requirements for Successful Implementation
Hardware: you will need compatible hardware such as the Infineon AURIX TC4x TriBoards and a suitable incremental encoder.
Software: Utilize resources like the Embedded Coder Support Package and Motor Control Blockset for guidance on software implementation.
Knowledge Base: Familiarize yourself with the necessary tutorials and examples provided by Infineon to set up your control system correctly.
Hope, this answers your question.