Re: 30F4011 PWM控制伺服機
|
||||
---|---|---|---|---|
版主
|
書沒有看清楚,再詳看一下 dsPIC30F Family Reference Manual 裡的 MCPWM 章節。http://www.microchip.com/stellent/gro ... ts/devicedoc/en026096.pdf
有幾個戰存器是要了解的: PTCON : PWM Time Base Control register PTMR : PWM Time Base counter PTPER : PWM Time Base Period register SEVTCMP : PWM Special Event Compare register PWMCON1 : PWM Control register #1 PWMCON2 : PWM Control register #2 DTCON1: Dead Time Control register #1 DTCON2: Dead Time Control register #2 FLTACON : Fault A Control register FLTBCON : Fault B Control register PDCx : PWM Duty Cycle register #1 ~ #4 控制 Period 的就是 PTPER 暫存器。 控制 Duty Cycle 的是PDC1, PDC2, PDC3 三個暫存器,看底下波形應可知道。 Attach file: (0.00 KB) (0.00 KB)
發表於: 2009/7/16 9:52
|
|||
|