I want to make a 3 PHASE AC MOTOR SPEED CONTROLER (V/F VARIABLE VOLTAGE AND FREQUENCY METHOD (3 HP power) ). I Found an article in Microchip web site an00843a (application note) PWM code for 3 phase generation is in Assembly language. Any one have C or Basic code implementation to solve this problem.
If some one have knowledge or experience regarding this taskt then please share.
Oh dear dani,
You are trying a really tough matter. I have worked with three phase inverters during my graduation project and the difficulty lies in power section no in the control section. Regarding the PIC micro, it has only two CCP modules and you need three. You will have to perform PWM in software. The simplest PWM is square wave PWM with high harmonic content. I suggest you refere to a book on power electronics like that by Rashid (available in the download section) or that by Mohan.
There is no a problem with pwm modules... you can use a PIC16F777 or 18F4431, the real problem is that in Argentina you just CANT find those pic , so if you can send me pair of 18F4431 .. I'll make the soft for you, and de power stage too
Gustavo Tasquer jast send me a mail: gustavo_tasquer yahoo com ar
In microchip's application note 0843a which is PIC18F452 based three phase induction motor(AC) driver application a technicque is described briefly and ASM code is also given.
But the problem that i am facing is to understand that assambly code and modify it.
So i want if some one have C code or Basic code to perform same function i.e generation of SINE waves from three 120 degree out pwm outputs to drive 3 phase inverter.
Here's some code I wrote (not C, but assembly) to generate 3-phase sine waves 120 degrees apart. Haven't gotten a chance to put it into hardware, but the simulation works nicely.
I noticed you're in the UK. Unfortunately, this code generates 60 Hz waves with a 4 MHz oscillator. You could use a 3.33 MHz (if they make them) to get 50 Hz.
I am also having same problem. Have you solved the problem now? I also can share my knowledge with on AN843. I have CCS C compiler, and I found it is impossible to use for the same. Because Interrupt latency is not supported that fast.
As you know there was a software PWM is incoporated, for correct operation you have to go with ASM
I talked with CCS guys and they also recommed to go with ASM..!
Fortunately Mikroelektronika people says it is possible. will see (www.mikroelektronika.yu ??) I have their Basic and Pascal Compilers.