hi.I need sine modulated pwm output ,iam able to get the pwm,but not able to get sine modulated pwm
dspic33ev sine pwm
Code (Text):
- //////////program.////////
- #include <stdio.h>
- #include <stdlib.h>
- #include "newfile.h"
- #define FCY 20000000 // 20 MIPS
- #define FPWM 20000 // 20 kHz
- #define _DES_FREQ 60
- int i=0;
- signed long sinetable[64]={0, 3263, 6493, 9658, 12728, 15671, 18458, 21062,
- 23457, 25618, 27525, 29158, 30502, 31542, 32269, 32675, 32757, 32513,
- 31945, 31061, 29867, 28377, 26605, 24568, 22287, 19785, 17086,...