
 
ֻ ٸ߼HSPWMͺţSTC32F  STC32GͺŲ֧HSPWM
ڡˢ-STC32G-HALL-Ver2汾
https://www.stcaimcu.com/thread-17737-1-1.html
HSPWMο֣32F12K54-FOC Lite V2
https://www.stcaimcu.com/forum.php?mod=viewthread&tid=7475&highlight=Lite%20V2&page=1&extra=#pid68308


¼ʱʱƵʱӣ24MHz

======޸ĵط======

õ
//		current = (u16)((float)j / 55.05f);	//ADC˲16λ0.02RŴ(1+20/1)=21οѹ5V1.00AӦADC = 65536*1*0.02*21/5=5505 = adc/55.05ֱ0.01A
 current = (u16)((float)j / 27.22f);//0.01R

ϵʱʾ  
ڵٵλ趨ֵʱᷢDo-Re-Mi 
ٵλ趨ֵʱ   ϵķDi-Re ,
һֱ ٵλ 趨ֵʱᷢDo-Re-Mi 
ֻġDo-Re-Mi ܽѭкͿơ


U P1.0 P1.1 
V P5.4 P1.3 
W P1.4 P1.5 

CMP-: P36
EMFC: P37
EMFB: P51
EMFA: P50

 0: ADC8(),  P00
 1ADC9(ѹ)P01
 2ADC11(λ) P03


	







