3 Phase Wave Generation.ppt

  1. 1、本文档共20页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
3 Phase Wave Generation.ppt

3 Phase Wave Generation 3 Phase waveform generation using Timer/Counter1 and 3 on atmega128 Topics Sinusoidal Wave Generation Theory Atmega128 setup and considerations Results 3 Phase line to line voltages uC used to control switch states +E or 0 is shown to the load on each phase Depends on if upper or lower switch is on 3 Phase line to line voltages 2/3 on switching scheme used Allowing switches to be off for 1/3 of the time reduces switching power losses Line to neutral voltages are not sinusoidal, but line to line are!!! Topics Sinusoidal Wave Generation Theory Atmega128 setup and considerations Results uC Sinusoidal PWM Line to neutral voltages approximated using PWM switching Average output voltage controlled by duty cycle uC duty cycle OCRnA:C/Top Top and pre-scaler are set so switching frequency is at 20kHz Lookup Table Generation Using Excel duty cycle of was approximated One cycle broken up into 192 steps Sin 2*PI*i/192 , i 0..191 OCRnA:C Round Sin 2*PI*i/192 *TOP TOP value is 400 for my 20kHz switching frequency Looking up values frees up uC for other tasks sine Look-Up Table Sin lookup table array Timer/Counter 1/3 Setup Phase Frequency correct PWM Dual Slope Operation Used to control switches Timer/Counter1 Upper Switches Timer/Counter3 Lower Switches Timer/Counter 3 switches inverse of Timer/Counter 1 Output bit is set or cleared on compare match Timer/Counter 2 Updates Timer/Counter1/3 OCRnA,OCRnB,OCRnC to control duty cycle Counter variable incremented by 3 every time Timer/Counter 2 interrupts OCRnA:C value generated from lookup table OCRnA sin_lookup[counter] OCRnB sin_lookup[counter+1] OCRnC sin_lookup[counter+2] Interrupts occur fdesired*192 times per second My epiphany Viewing Wave forms Topics Sinusoidal Wave Generation Theory Atmega128 setup and considerations Results Results Shoot Thru If S+ and S- on at same time the circuit would short Shoot Thru To avoid shoot-thru add a switching delay Amount to increment or decrement by d

文档评论(0)

gshbzl + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档