Part Number: TMS320F28027F
Tool/software: Code Composer Studio
Hello Everyone,
Greetings of the Day!!!
I was trying to write a code for Sine wave Generation using Look up Table ,in which i had certain question to ask:-
1.The following 32 bit table is it will it work for a 50-hz sine wave generation using 20khz PWM.Also any suggestion or precaution needed to be taken care before configuring this ePWM.It Has got 100 samples.
int32_t SineTable[Sine_TABLE_LENGTH]={0x40210138,0x40220260,0x40230367,0x4024043d,0x402504d3,0x40260517,0x402704fb,0x4028046d,0x4029035d,0x402a01bc,0x402aff79,0x402bfc84,0x402cf8ce,0x402cf8ce,0x402eeede,0x402fe883,0x4030e128,0x4031d8bc,0x4032cf30,0x4033c474,0x4034b879,0x4035ab2e,0x40369c86,0x40378c71,0x40387adf,0x403967c2,0x403a530a,0x403b3caa,0x403c2491,0x403d0ab1,0x403deefd,0x403ed165,0x403fb1db,0x40409051,0x40416cb9,0x40424705,0x40431f28,0x4043f513,0x4044c8b9,0x40459a0d,0x40466902,0x4047358a,0x4047ff99,0x4048c721,0x40498c17,0x404a4e6e,0x404b0e1a,0x404bcb0e,0x404c853e,0x404d3ca0,0x404df126,0x404ea2c7,0x404f5176,0x404ffd29,0x4050a5d4,0x40514b6e,0x4051edec,0x40528d43,0x40532969,0x4053c255,0x405457fd,0x4054ea57,0x4055795a,0x405604fe,0x40568d39,0x40571203,0x40579353,0x40581122,0x40588b67,0x4059021a,0x40597535,0x4059e4af,0x405a5082,0x405ab8a8,0x405b1d18,0x405b7dce,0x405bdac3,0x405c33f1,0x405c8952,0x405cdae2,0x405d289a,0x405d7277,0x405db873,0x405dfa8a,0x405e38b7,0x405e72f8,0x405ea948,0x405edba4,0x405f0a08,0x405f3472,0x405f5adf,0x405f7d4c,0x405f9bb8,0x405fb621,0x405fcc84,0x405fdee1,0x405fed36,0x405ff782,0x405ffdc5,0x405fffff };
2.This is regarding interrupt,which interrupt should be used to reload the duty for sine and how to configure it?
Any other suggestion to be taken care while writing this code.
Thank you for you support and time in Advance