2022-07-13 02:19 PM
I am trying to find / create a program to run an IPM module that will run an a/c compressor(PMSM).
Like a MC3PHAC
6 pwm generator.
Never written a program before except change some values to make the led blink faster.
Have a NUCLEO-F401RE
IPM module: PS21245-E
Need help writing/finding program
2022-07-13 08:50 PM
refer to data sheet at link https://www.nxp.com/docs/en/data-sheet/MC3PHAC.pdf , page 21 onwards.
commands explanation is on page 22-23 and flowchart is given on Page 29.
On Nucleo board configure for UART communication using STM32cubeMx. Once configuration is over, in main program send commands as per flowchart on page 29. you have to use commands as per requirement from table 5.
i've one question on what basis you have opted for MC3PHACWP?
plz update status
wishes
2022-07-13 09:18 PM
PS21245-E is different from MC3PHACWP, UART communication is missing. you have to generate signals for Up, Vp, Wp and Un, Vn, Wn ( figure 7 ) from Nucleo board as per your timing diagram for three phases. you can configure TIMER for PWM.