Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4922

dspic33ev sine pwm

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

Viewing all articles
Browse latest Browse all 4922

Trending Articles