freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

電子設(shè)計(jì)大賽交流電網(wǎng)測(cè)量分析儀報(bào)告書(shū)(編輯修改稿)

2024-08-30 06:03 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 由Excel軟件處理得出的校正方程: 源程序include include include include include include include include include include include define MAX_HARMONIOUS_TIME 32define HARMONIOUS_DISP_TIME 3define NYQUIST_INTERVAL 2define FREQDIV_FACTOR 2define PERIOD_MEASURE_TIMES 10define PERIOD_UPPER_REVISER 41667 // 48Hzdefine PERIOD_LOWER_REVISER 32258 // 62Hzdefine ADCMAX_VALUE 0x0FE0define ADCMIN_VALUE 0x001Fdefine SHOWMAX_VALUE 0x0B00define SHOWMIN_VALUE 0x0500define THS7002CTRL P3OUTconst float GAINTABLE[8] = {,,}。 //FROM THS7002 DATA SHEETunsigned char demoMode = 1。 //// 小信號(hào)標(biāo)志 unsigned char reviseSign = 1。union{ struct{unsigned int LSB,MSB。} AsInt。 unsigned long AsLong。} timerAR。struct{unsigned int degree。 unsigned char min, sec。 float value。} phasicGap = {0x0000,0x00,0x00,0x0000}。struct{unsigned int Year。unsigned char Month,Day。} date = {2008,12,6}。struct{unsigned char Hour,Minute。float Second。} time = {0,0,}。struct{unsigned int Sample[SAMPLETIMES]。unsigned char Gain。float Spectrum[FFTTIMES]。float RMS。float phasicAngle。}voltage,current。unsigned char waveFormCounter = 0。enum PowerSource{PLUG , BATTERY} powerSource = PLUG。enum MainTask {IDLE , DATAPROCESS , REFRESHDATA , GAINADJUST , USERRESPONSE} mainTask[5] = {IDLE,IDLE,IDLE,IDLE,IDLE}。enum TimerAFunc {PWMGENERATOR , PERIODMEASURE} timerAFunc = PWMGENERATOR。enum WindowType {HAMMING , HAINING , NONE} windowType = HAMMING, windowTypeBuffer = HAMMING。enum IsGainReady{BOTH , NOTCURRENT , NOTVOLTAGE , READY} isGainReady = BOTH。enum Channel {CURRENT, VOLTAGE}。enum waveform {WF_TRIANGLE, WF_SINUSOIDAL, WF_RECTANGLE, WF_SAWTOOTH} waveForm = WF_TRIANGLE。unsigned char taskPtr = 0。float powerFactor = 。float voltageAvr = , currentAvr = 。unsigned int signalPeriod = 0x9C40。unsigned char sampleIndex = 0x00。float signalDistrotion = 。float frequency = 。float signalPower = 。unsigned char refreshSign = 0。unsigned char topRankDisp = 0。void InitUI()。void ValueProcess(char* str, const char width, const float value)。void RefreshWaveForm()。void RefreshPowerStatus()。void RefreshData()。void RefreshTime()。void DispRankChange()。void WaveformPlayBack()。void RefreshHarmonic()。void GetTouchCmd()。void DataProcess()。void GainAdjust()。pragma vector=TIMERB0_VECTOR__interrupt void Timer_B (void){ static unsigned waveFormCounter = 0。 switch(waveForm) { case WF_SAWTOOTH: DAC12_1DAT = waveFormCounter * 31。 break。 case WF_SINUSOIDAL: DAC12_1DAT = SinTable[waveFormCounter]。 break。 case WF_RECTANGLE: if(waveFormCounter == 64||waveFormCounter==128) if(DAC12_1DAT!=0) DAC12_1DAT = 0x0000。 else DAC12_1DAT = 0x0FFF。 break。 case WF_TRIANGLE: if(waveFormCounter65) DAC12_1DAT = 0x3F * waveFormCounter。 else DAC12_1DAT = 0x3F * (129 waveFormCounter)。 break。 } if(waveFormCounter129) waveFormCounter++。 else waveFormCounter=0。}pragma vector=TIMERA1_VECTOR__interrupt void TA1_ISR(){ static unsigned long lastTAR = 0x0000000。 switch(TAIV) { case TAIV_TACCR1: //TACCR1 Capture Int. Phasicgap measurement { = TAR。 // = lastTAR。 lastTAR = 。 TACCTL1 = OUTMOD_6。 break。 } case TAIV_TACCR2: //TACCR2 Capture Int. Period measurement { static unsigned char periodMeasureCounter = 0。 static unsigned long periodMeasureBuffer = 0。 = TAR。 unsigned int deltaTAR = (unsigned)( lastTAR)。 lastTAR = 。 if(timerAFunc == PERIODMEASURE) //Check if the TACCR2 started { //TACCR2 started. if(deltaTAR PERIOD_LOWER_REVISER amp。amp。 deltaTAR PERIOD_UPPER_REVISER) {
點(diǎn)擊復(fù)制文檔內(nèi)容
數(shù)學(xué)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1