Hi,
I am generating 6 pwms by pic18f2431 for three phase inverter (hex bridge for vfd). I am varying the frequency by varying the delay (counterL and counterH registers) which is the source of generating frequency.the problem which i am facing is that the value in these registers is not loaded by two registers (RESL and RESH). The value in RESL and RESH is coming after a multiplication and subtraction operation (implementing an equation of line). The value of RESL and RESH is not loaded in counterL and counterH because the value in these registers is changing every time (decsfz command is doing something that it starts decremening from some value which is greater than RESL and RESH).
I've attached the .asm file.