I trying to build a three phase inverter based on microcontroller to control the speed of three phase induction motor using variable frequency method.
I've downloaded a program from microchip but it's written in assembly language and I need help to change it to C so that I could be able to understand it.
I've attached the assembly files so you can help me.
Thanks in advance.View attachment 16f7x7vfmc.zipView attachment 16f7x7vfmc.zip
In MikroC you can not change the frequency of HPWM module during program execution. One of their stupidities, and they still do not have any intention to redo their old libraries. Even Proton+ has the possibility to change the freq "on the fly".
I never used MikroC but changing the frequency of PWM while running requires changing some hardware registers (which I don't remember the names now). You may check the datasheet for names and try inline assembly to change them if MikroC doesn't permit.