13.07.2015 Views

[Instruction] Contents

[Instruction] Contents

[Instruction] Contents

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Advanced Function <strong>Instruction</strong>FUN 139HSPWMHIGH SPEED PULSE WIDTH MODULATION OUTPUTFUN 139HSPWMPW : PWM output ( 0 = Y0、1 = Y2、2 = Y4、3 = Y6 )OP : Output polarity ; 0 = Normal1 = Inverse of outputRS : Resolution ; 0 = 1/100 (1%)1 = 1/1000 (0.1%)Pn : Setting of output frequency( 0~255 )OR : Setting register of output pulse width ( 0~100 or0~1000)WR : Working registerOperandRangeY WX WY WM WS TMR CTR HR IR OR SR ROR DR KYn ofmainunitWX0∣WX240WY0∣WY240WM0∣WM1896WS0∣WS984T0∣T255C0∣C255R0∣R3839R3840∣R3903R3904∣R3967R3968∣R4167R5000∣R8071D0∣D4095Pw ○ 0~3OpRsPn ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 0~255OR ○ ○ ○ 0~1000WR ○ ○ ○ ○ ○ ○ ○ ○ ○ ○0~10~1Description• When operation control “EN” = 1, the specified digital output will perform the PWM output, the expression foroutput frequency as shown bellow:1.184320f =while Rs(Resolution)=1/100pwm(P +1)n2.18432f = while Rs(Resolution)=1/1000pwm(P +1)nExample 1 : If Pn ( Setting of output frequency ) = 50, Rs = 0( 1/100 ), then184320f pwm ==3614.117‧‧‧ ≒3.6KHz(50 + 1)T(Period)=1f pwm≒277uSFor Rs = 1/100, if OR( Setting of output pulse width ) = 1, then T0 ≒ 2.7uS; if OR( Setting of output pulse width )= 50, then To ≒ 140uS..Output waveform :(1).Pn ( Output frequency ) = 50, Rs = 0 ( 1/100 ), OR ( Output pulse width ) = 1 :7-114

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!