mpc5604的pwm配置谁有啊
RE:mpc5604的pwm配置谁有啊
{ //PA11
EMIOS_0.CH[11].CADR.R=0; /* Leading edge when channel counter bus=250*/
EMIOS_0.CH[11].CBDR.R=0; /* Trailing edge when channel counter bus=500*/
EMIOS_0.CH[11].CCR.B.BSL=0x0; /* Use counter bus A (default) */
EMIOS_0.CH[11].CCR.B.EDPOL=1; /* Polarity-leading edge sets output/trailing clears*/
EMIOS_0.CH[11].CCR.B.MODE=0x60; /* Mode is OPWM Buffered */
SIU.PCR[11].R=0x0600; /* MPC56xxS: Assign EMIOS_0 ch 21 to pad PE5*/
}
emios0模块的通道11配置