
- UID
- 163545
- 性别
- 男
|
老师你好
我用的是MC9S12DG128芯片 想用PWM2和PWM3合并成16位的通道
但是合并后没有波形 老师你看看这是为什么 合并通道还需要注意什么呢
Init_pwmout:NOP
LDAB #$20
STAB PWMCTL
LDAB #$09
STAB PWMCLK
LDAB #$40
STAB PWMPRCLK
LDAB #$FF
STAB PWMPOL
LDAB #15
STAB PWMSCLB
LDAB #$03
STAB PWMPER2
LDAB #$E8
STAB PWMPER3
LDAB #75
STAB PWMDTY3
LDAB #3
STAB PWMSCLA
LDAB #200
STAB PWMPER0
LDAB #2
STAB PWMDTY0
LDAB #0
STAB PWMCAE
LDAB #$09
STAB PWME
RTC
|
|