[SOLVED] how to generate sine look up table for spwm generation by arduino uno atemga328?

Status
Not open for further replies.

mobinmk

Full Member level 2
Joined
May 27, 2010
Messages
140
Helped
4
Reputation
8
Reaction score
4
Trophy points
1,298
Location
Kollam (Quilon),kerala, India
Visit site
Activity points
2,484
hi frnds,

i got sine look up table from internet.


how to get these 256 values,??
any calculation.??

i got smart sine wave app and make sine look up table, but its value is differnt.

],6,5,5,4,3,2,2,1,1,1,0,0,0,0,0,0,0,1,1,1,2,
2,3,4,5,5,6,
[/QUOTE

i think these values for dead time
 

The table shows a full sine period in 8-Bit "straight binary" coding.

For some reason, it only spans the range from 0 (sine minimum) to 254 (maximum) instead of 255. I guess this has to do with PWM generator properties.

Basically you can code a sine table in any numerical format of your choice, everything depends on the intended usage.
 

Thnks Fvm

would you mind to review this thread

https://www.edaboard.com/threads/332423/
 


what is the duty cycle of this spwm signal ??

is it 100% ??
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…